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-asserts compile code with asserts enabled
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --enable-locallisppath=PATH
862 directories Emacs should search
for lisp files
863 specific to this site
864 --disable-largefile omit support
for large files
867 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
868 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
869 --without-gcc don
't use GCC to compile Emacs if GCC is found
870 --without-pop don't support POP
mail retrieval with movemail
871 --with-kerberos support Kerberos-authenticated POP
872 --with-kerberos5 support Kerberos version
5 authenticated POP
873 --with-hesiod support Hesiod to get the POP server
host
874 --without-sound don
't compile with sound support
875 --with-x-toolkit=KIT use an X toolkit
876 (KIT = yes/lucid/athena/motif/gtk/no)
877 --with-xpm use -lXpm for displaying XPM images
878 --with-jpeg use -ljpeg for displaying JPEG images
879 --with-tiff use -ltiff for displaying TIFF images
880 --with-gif use -lungif for displaying GIF images
881 --with-png use -lpng for displaying PNG images
882 --with-gtk use GTK (same as --with-x-toolkit=gtk)
883 --with-pkg-config-prog Path to pkg-config to use for finding GTK
884 --without-toolkit-scroll-bars
885 don't use Motif or Xaw3d scroll bars
886 --without-xim don
't use X11 XIM
887 --without-carbon don't use Carbon GUI on Mac OS X
888 --with-x use the X Window System
890 Some influential environment variables
:
891 CC C compiler
command
892 CFLAGS C compiler flags
893 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
894 nonstandard directory
<lib dir
>
895 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
896 headers
in a nonstandard directory
<include dir
>
899 Use these variables to override the choices made by
`configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
905 if test "$ac_init_help" = "recursive"; then
906 # If there are subdirs, report their specific --help.
908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909 test -d $ac_dir || continue
912 if test "$ac_dir" != .; then
913 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
914 # A "../" for each directory in $ac_dir_suffix.
915 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
917 ac_dir_suffix= ac_top_builddir=
921 .) # No --srcdir option. We are building in place.
923 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
928 [\\/]* | ?:[\\/]* ) # Absolute path.
929 ac_srcdir=$srcdir$ac_dir_suffix;
930 ac_top_srcdir=$srcdir ;;
932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
943 # Check for guested configure; otherwise get Cygnus style configure.
944 if test -f $ac_srcdir/configure.gnu; then
946 $SHELL $ac_srcdir/configure.gnu --help=recursive
947 elif test -f $ac_srcdir/configure; then
949 $SHELL $ac_srcdir/configure --help=recursive
950 elif test -f $ac_srcdir/configure.ac ||
951 test -f $ac_srcdir/configure.in; then
955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57. Invocation command line was
989 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
990 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
991 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
992 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
993 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
996 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
998 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
999 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1000 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1001 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1002 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1003 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1004 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_must_keep_next=false
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 -* ) ac_must_keep_next=true ;;
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close
' the trap.
1084 trap 'exit_status
=$?
1085 # Save into config.log some information that might help in debugging.
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1095 # The following way of writing the cache mishandles newlines in values,
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1118 for ac_var
in $ac_subst_vars
1120 eval ac_val
=$
`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1125 if test -n "$ac_subst_files"; then
1132 for ac_var
in $ac_subst_files
1134 eval ac_val
=$
`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -s confdefs.h
; then
1147 sed "/^$/d" confdefs.h |
sort
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1154 rm -f core core.
* *.core
&&
1155 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's
/^
/|
/' "$ac_site_file" >&5
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1230 # Check that the precious variables saved in the cache have kept the same
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1243 ac_cache_corrupted=: ;;
1245 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1252 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1277 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1284 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1308 test "$program_prefix" != NONE &&
1309 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1310 # Use a double $ so make ignores it.
1311 test "$program_suffix" != NONE &&
1312 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1313 # Double any \ or $. echo might interpret backslashes.
1314 # By default was `s,x,x', remove it
if useless.
1315 cat <<\_ACEOF
>conftest.
sed
1316 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1318 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1322 lispdir
='${datadir}/emacs/${version}/lisp'
1323 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1324 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1325 lisppath
='${locallisppath}:${lispdir}'
1326 etcdir
='${datadir}/emacs/${version}/etc'
1327 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1328 docdir
='${datadir}/emacs/${version}/etc'
1329 gamedir
='${localstatedir}/games/emacs'
1334 # Check whether --with-gcc or --without-gcc was given.
1335 if test "${with_gcc+set}" = set; then
1340 # Check whether --with-pop or --without-pop was given.
1341 if test "${with_pop+set}" = set; then
1343 if test "$withval" = yes; then
1344 cat >>confdefs.h
<<\_ACEOF
1345 #define MAIL_USE_POP 1
1351 cat >>confdefs.h
<<\_ACEOF
1352 #define MAIL_USE_POP 1
1358 # Check whether --with-kerberos or --without-kerberos was given.
1359 if test "${with_kerberos+set}" = set; then
1360 withval
="$with_kerberos"
1361 cat >>confdefs.h
<<\_ACEOF
1368 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1369 if test "${with_kerberos5+set}" = set; then
1370 withval
="$with_kerberos5"
1371 if test "${with_kerberos5+set}" = set; then
1372 if test "${with_kerberos+set}" != set; then
1374 cat >>confdefs.h
<<\_ACEOF
1381 cat >>confdefs.h
<<\_ACEOF
1387 # Check whether --with-hesiod or --without-hesiod was given.
1388 if test "${with_hesiod+set}" = set; then
1389 withval
="$with_hesiod"
1391 cat >>confdefs.h
<<\_ACEOF
1398 # Check whether --with-sound or --without-sound was given.
1399 if test "${with_sound+set}" = set; then
1400 withval
="$with_sound"
1405 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1406 if test "${with_x_toolkit+set}" = set; then
1407 withval
="$with_x_toolkit"
1408 case "${withval}" in
1409 y | ye |
yes ) val
=athena
;;
1411 l | lu | luc | luci | lucid
) val
=lucid
;;
1412 a |
at | ath | athe | athen | athena
) val
=athena
;;
1413 m | mo | mot | moti | motif
) val
=motif
;;
1414 g | gt | gtk
) val
=gtk
;;
1416 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1417 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1418 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1419 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1420 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1421 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1422 { (exit 1); exit 1; }; }
1429 # Check whether --with-xpm or --without-xpm was given.
1430 if test "${with_xpm+set}" = set; then
1435 # Check whether --with-jpeg or --without-jpeg was given.
1436 if test "${with_jpeg+set}" = set; then
1437 withval
="$with_jpeg"
1441 # Check whether --with-tiff or --without-tiff was given.
1442 if test "${with_tiff+set}" = set; then
1443 withval
="$with_tiff"
1447 # Check whether --with-gif or --without-gif was given.
1448 if test "${with_gif+set}" = set; then
1453 # Check whether --with-png or --without-png was given.
1454 if test "${with_png+set}" = set; then
1459 # Check whether --with-gtk or --without-gtk was given.
1460 if test "${with_gtk+set}" = set; then
1465 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1466 if test "${with_pkg_config_prog+set}" = set; then
1467 withval
="$with_pkg_config_prog"
1471 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1472 if test "${with_toolkit_scroll_bars+set}" = set; then
1473 withval
="$with_toolkit_scroll_bars"
1477 # Check whether --with-xim or --without-xim was given.
1478 if test "${with_xim+set}" = set; then
1483 # Check whether --with-carbon or --without-carbon was given.
1484 if test "${with_carbon+set}" = set; then
1485 withval
="$with_carbon"
1488 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1489 if test "${enable_carbon_app+set}" = set; then
1490 enableval
="$enable_carbon_app"
1491 carbon_appdir_x
=${enableval}
1494 # Check whether --enable-asserts or --disable-asserts was given.
1495 if test "${enable_asserts+set}" = set; then
1496 enableval
="$enable_asserts"
1497 USE_XASSERTS
=$enableval
1502 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1503 if test "${enable_maintainer_mode+set}" = set; then
1504 enableval
="$enable_maintainer_mode"
1505 USE_MAINTAINER_MODE
=$enableval
1507 USE_MAINTAINER_MODE
=no
1509 if test $USE_MAINTAINER_MODE = yes; then
1516 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1517 if test "${enable_locallisppath+set}" = set; then
1518 enableval
="$enable_locallisppath"
1519 if test "${enableval}" = "no"; then
1521 elif test "${enableval}" != "yes"; then
1522 locallisppath
=${enableval}
1526 #### Make srcdir absolute, if it isn't already. It's important to
1527 #### avoid running the path through pwd unnecessarily, since pwd can
1528 #### give you automounter prefixes, which can go away. We do all this
1529 #### so Emacs can find its files when run uninstalled.
1530 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1535 ## We may be able to use the $PWD environment variable to make this
1536 ## absolute. But sometimes PWD is inaccurate.
1537 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1538 ## but that tested only for a well-formed and valid PWD,
1539 ## it did not object when PWD was well-formed and valid but just wrong.
1540 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1544 srcdir
="`(cd ${srcdir}; pwd)`"
1547 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1550 #### Check if the source directory already has a configured system in it.
1551 if test `pwd` != `(cd ${srcdir} && pwd)` \
1552 && test -f "${srcdir}/src/config.h" ; then
1553 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1554 as a build directory right now; it has been configured in its own
1555 right. To configure in another directory as well, you MUST
1556 use GNU make. If you do not have GNU make, then you must
1557 now do \`make distclean' in ${srcdir},
1558 and then run $0 again." >&5
1559 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1560 as a build directory right now; it has been configured in its own
1561 right. To configure in another directory as well, you MUST
1562 use GNU make. If you do not have GNU make, then you must
1563 now do \`make distclean' in ${srcdir},
1564 and then run $0 again." >&2;}
1567 #### Given the configuration name, set machfile and opsysfile to the
1568 #### names of the m/*.h and s/*.h files we should use.
1570 ### Canonicalize the configuration name.
1573 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1574 if test -f $ac_dir/install-sh
; then
1576 ac_install_sh
="$ac_aux_dir/install-sh -c"
1578 elif test -f $ac_dir/install.sh
; then
1580 ac_install_sh
="$ac_aux_dir/install.sh -c"
1582 elif test -f $ac_dir/shtool
; then
1584 ac_install_sh
="$ac_aux_dir/shtool install -c"
1588 if test -z "$ac_aux_dir"; then
1589 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1590 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1591 { (exit 1); exit 1; }; }
1593 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1594 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1595 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1597 # Make sure we can run config.sub.
1598 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1599 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1600 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1601 { (exit 1); exit 1; }; }
1603 echo "$as_me:$LINENO: checking build system type" >&5
1604 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1605 if test "${ac_cv_build+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 ac_cv_build_alias
=$build_alias
1609 test -z "$ac_cv_build_alias" &&
1610 ac_cv_build_alias
=`$ac_config_guess`
1611 test -z "$ac_cv_build_alias" &&
1612 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1613 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1614 { (exit 1); exit 1; }; }
1615 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1617 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1622 echo "${ECHO_T}$ac_cv_build" >&6
1624 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629 echo "$as_me:$LINENO: checking host system type" >&5
1630 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1631 if test "${ac_cv_host+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 ac_cv_host_alias
=$host_alias
1635 test -z "$ac_cv_host_alias" &&
1636 ac_cv_host_alias
=$ac_cv_build_alias
1637 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1643 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1644 echo "${ECHO_T}$ac_cv_host" >&6
1646 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652 configuration
=${host_alias-$host}
1656 ### If you add support for a new configuration, add code to this
1657 ### switch statement to recognize your configuration name and select
1658 ### the appropriate operating system and machine description files.
1660 ### You would hope that you could choose an m/*.h file pretty much
1661 ### based on the machine portion of the configuration name, and an s-
1662 ### file based on the operating system portion. However, it turns out
1663 ### that each m/*.h file is pretty manufacturer-specific - for
1664 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1665 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1666 ### machines. So we basically have to have a special case for each
1667 ### configuration name.
1669 ### As far as handling version numbers on operating systems is
1670 ### concerned, make sure things will fail in a fixable way. If
1671 ### /etc/MACHINES doesn't say anything about version numbers, be
1672 ### prepared to handle anything reasonably. If version numbers
1673 ### matter, be sure /etc/MACHINES says something about it.
1675 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1676 ### "System V Release 4"; he writes, "The old convention encouraged
1677 ### confusion between `system' and `release' levels'."
1679 machine
='' opsys
='' unported
=no
1680 case "${canonical}" in
1685 case "${canonical}" in
1686 alpha
*-*-freebsd*) machine
=alpha
;;
1687 i
[3456]86-*-freebsd*) machine
=intel386
;;
1694 if test -f /usr
/lib
/crti.o
; then
1696 cat >>confdefs.h
<<\_ACEOF
1702 case "${canonical}" in
1703 alpha
*-*-netbsd*) machine
=alpha
;;
1704 i
[3456]86-*-netbsd*) machine
=intel386
;;
1706 # This is somewhat bogus.
1707 machine
=hp9000s300
;;
1708 powerpc-apple-netbsd
*) machine
=macppc
;;
1709 mips-
*-netbsd*) machine
=pmax
;;
1710 mipsel-
*-netbsd*) machine
=pmax
;;
1711 mipseb-
*-netbsd*) machine
=pmax
;;
1712 ns32k-
*-netbsd*) machine
=ns32000
;;
1713 powerpc-
*-netbsd*) machine
=macppc
;;
1714 sparc
*-*-netbsd*) machine
=sparc
;;
1715 vax-
*-netbsd*) machine
=vax
;;
1716 arm-
*-netbsd*) machine
=arm
;;
1723 case "${canonical}" in
1724 alpha
*-*-openbsd*) machine
=alpha
;;
1725 i386-
*-openbsd*) machine
=intel386
;;
1726 m68k-
*-openbsd*) machine
=hp9000s300
;;
1727 mipsel-
*-openbsd*) machine
=pmax
;;
1728 ns32k-
*-openbsd*) machine
=ns32000
;;
1729 sparc-
*-openbsd*) machine
=sparc
;;
1730 vax-
*-openbsd*) machine
=vax
;;
1735 arm-acorn-riscix1.1
* )
1736 machine
=acorn opsys
=riscix1-1
1738 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1739 ## This name is riscix12 instead of riscix1.2
1740 ## to avoid a file name conflict on MSDOS.
1741 machine
=acorn opsys
=riscix12
1747 case "${canonical}" in
1748 i
[345]86-*-bsdi*) machine
=intel386
;;
1749 sparc-
*-bsdi*) machine
=sparc
;;
1750 powerpc-
*-bsdi*) machine
=macppc
;;
1752 case "${canonical}" in
1753 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1754 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1755 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1756 *-*-bsdi3* ) opsys
=bsdos3
;;
1757 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1762 ## Strictly speaking, we need the version of the alliant operating
1763 ## system to choose the right machine file, but currently the
1764 ## configuration name doesn't tell us enough to choose the right
1765 ## one; we need to give alliants their own operating system name to
1766 ## do this right. When someone cares, they can help us.
1768 machine
=alliant4 opsys
=bsd4-2
1771 machine
=alliant-2800 opsys
=bsd4-3
1774 ## Alpha (DEC) machines.
1776 machine
=alpha opsys
=osf1
1777 # This is needed to find X11R6.1 libraries for certain tests.
1778 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1779 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1780 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1781 # due to non-traditional preprocessing with the current compiler
1782 # defaults. OSF 4 can also have that compiler version, and there
1783 # seems always to have been a usable /usr/bin/cpp.
1784 NON_GNU_CPP
=/usr
/bin
/cpp
1785 case "${canonical}" in
1786 alpha
*-dec-osf[5-9]*)
1791 alpha
*-*-linux-gnu* )
1792 machine
=alpha opsys
=gnu-linux
1796 machine
=arm opsys
=gnu-linux
1801 machine
=altos opsys
=usg5-2
1806 machine
=amdahl opsys
=usg5-2-2
1809 ## Apollo, Domain/OS
1811 machine
=apollo opsys
=bsd4-3
1814 ## AT&T 3b2, 3b5, 3b15, 3b20
1816 machine
=att3b opsys
=usg5-2-2
1819 ## AT&T 3b1 - The Mighty Unix PC!
1821 machine
=7300 opsys
=usg5-2-2
1826 machine
=ibmrs6000 opsys
=aix3-2
1831 machine
=dpx2 opsys
=usg5-3
1836 machine
=sps7 opsys
=usg5-2
1839 ## CCI 5/32, 6/32 -- see "Tahoe".
1842 ## I don't know what configuration name to use for this; config.sub
1843 ## doesn't seem to know anything about it. Hey, Celerity users, get
1844 ## in touch with us!
1845 celerity-celerity-bsd
* )
1846 machine
=celerity opsys
=bsd4-2
1850 ## What operating systems does this chip run that Emacs has been
1854 ## We'll use the catch-all code at the bottom to guess the
1855 ## operating system.
1859 mips-compaq-nonstopux
* )
1860 machine
=nonstopux opsys
=nonstopux
1864 *-convex-bsd* |
*-convex-convexos* )
1865 machine
=convex opsys
=bsd4-3
1866 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1867 NON_GNU_CPP
="cc -E -P"
1871 i
[3456]86-cubix-sysv* )
1872 machine
=intel386 opsys
=usg5-3
1876 cydra
*-cydrome-sysv* )
1877 machine
=cydra5 opsys
=usg5-3
1880 ## Data General AViiON Machines
1881 ## DG changed naming conventions with the release of 5.4.4.10, they
1882 ## dropped the initial 5.4 but left the intervening R. Because of the
1883 ## R this shouldn't conflict with older versions of the OS (which I
1884 ## think were named like dgux4.*). In addition, DG new AViiONs series
1885 ## uses either Motorola M88k or Intel Pentium CPUs.
1886 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1887 machine
=aviion opsys
=dgux4
1889 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1890 ## This name is dgux5-4-3 instead of dgux5-4r3
1891 ## to avoid a file name conflict on MSDOS.
1892 machine
=aviion opsys
=dgux5-4-3
1894 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1895 machine
=aviion opsys
=dgux5-4r2
1898 machine
=aviion opsys
=dgux
1901 ## Data General AViiON Intel (x86) Machines
1902 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1903 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1904 i
[345]86-dg-dguxR4* )
1905 machine
=aviion-intel opsys
=dgux4
1909 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1910 machine
=pmax opsys
=bsd4-2
1912 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1913 machine
=pmax opsys
=bsd4-3
1916 machine
=pmax opsys
=ultrix4-3
1919 machine
=pmax opsys
=osf1
1921 mips-dec-mach_bsd4.3
* )
1922 machine
=pmax opsys
=mach-bsd4-3
1925 ## Motorola Delta machines
1926 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1927 machine
=delta opsys
=usg5-3
1928 if test -z "`type gnucc | grep 'not found'`"
1930 if test -s /etc
/167config
1931 then CC
="gnucc -m68040"
1932 else CC
="gnucc -m68881"
1935 if test -z "`type gcc | grep 'not found'`"
1941 m88k-motorola-sysv4
* )
1942 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1943 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1944 # I hope there are not other 4.0 versions for this machine
1945 # which really need usg5-4 instead.
1946 machine
=delta88k opsys
=usg5-4-2
1948 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1949 machine
=delta88k opsys
=usg5-3
1954 machine
=dual opsys
=usg5-2
1956 m68
*-dual-uniplus* )
1957 machine
=dual opsys
=unipl5-2
1962 machine
=elxsi opsys
=usg5-2
1967 machine
=ns16000 opsys
=umax
1970 ## The GEC 63 - apparently, this port isn't really finished yet.
1971 # I'm sure we finished off the last of the machines, though. -- fx
1973 ## Gould Power Node and NP1
1975 machine
=gould opsys
=bsd4-2
1978 machine
=gould opsys
=bsd4-3
1981 machine
=gould-np1 opsys
=bsd4-3
1984 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1985 ## as far as Emacs is concerned).
1987 # Build needs to be different on 7.0 and later releases
1988 case "`uname -r`" in
1989 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1990 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1992 NON_GNU_CPP
="/lib/cpp"
1994 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1996 machine
=nh3000 opsys
=cxux
1998 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1999 powerpc-harris-powerunix
)
2000 machine
=nh6000 opsys
=powerunix
2001 NON_GNU_CPP
="cc -Xo -E -P"
2003 ## SR2001/SR2201 running HI-UX/MPP
2004 hppa1.1
-hitachi-hiuxmpp* )
2005 machine
=sr2k opsys
=hiuxmpp
2007 hppa1.1
-hitachi-hiuxwe2* )
2008 machine
=sr2k opsys
=hiuxwe2
2011 xps
*-honeywell-sysv* )
2012 machine
=xps100 opsys
=usg5-2
2015 ## HP 9000 series 200 or 300
2017 machine
=hp9000s300 opsys
=bsd4-3
2019 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2021 case "`uname -r`" in
2022 ## Someone's system reports A.B8.05 for this.
2023 ## I wonder what other possibilities there are.
2024 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2025 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2026 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2027 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2028 *) machine
=hp9000s300 opsys
=hpux
;;
2032 ## HP 9000 series 700 and 800, running HP/UX
2034 machine
=hp800 opsys
=hpux
2037 machine
=hp800 opsys
=hpux8
2039 hppa
*-hp-hpux9shr* )
2040 machine
=hp800 opsys
=hpux9shr
2043 machine
=hp800 opsys
=hpux9
2045 hppa
*-hp-hpux10.2
* )
2046 machine
=hp800 opsys
=hpux10-20
2049 machine
=hp800 opsys
=hpux10
2051 hppa
*-hp-hpux1[1-9]* )
2052 machine
=hp800 opsys
=hpux11
2055 hppa
*-*-linux-gnu* )
2056 machine
=hp800 opsys
=gnu-linux
2059 ## HP 9000 series 700 and 800, running HP/UX
2061 ## Cross-compilation? Nah!
2062 case "`uname -r`" in
2063 ## Someone's system reports A.B8.05 for this.
2064 ## I wonder what other possibilities there are.
2065 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2066 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2067 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2068 *) machine
=hp800 opsys
=hpux10
;;
2072 machine
=hp800 opsys
=nextstep
2077 machine
=orion opsys
=bsd4-2
2079 clipper-orion-bsd
* )
2080 machine
=orion105 opsys
=bsd4-2
2084 i
[3456]86-ibm-aix1.1
* )
2085 machine
=ibmps2-aix opsys
=usg5-2-2
2087 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2088 machine
=ibmps2-aix opsys
=usg5-3
2091 machine
=ibm370aix opsys
=usg5-3
2094 machine
=ibms390 opsys
=gnu-linux
2096 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2097 machine
=ibmrs6000 opsys
=aix3-1
2099 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2100 machine
=ibmrs6000 opsys
=aix3-2-5
2102 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2103 machine
=ibmrs6000 opsys
=aix4-1
2105 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2106 machine
=ibmrs6000 opsys
=aix4-2
2108 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2109 machine
=ibmrs6000 opsys
=aix4-2
2111 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2112 machine
=ibmrs6000 opsys
=aix4
2114 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2115 machine
=ibmrs6000 opsys
=aix4-1
2117 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2118 machine
=ibmrs6000 opsys
=aix3-2
2121 machine
=ibmrt opsys
=bsd4-3
2124 machine
=ibmrt opsys
=bsd4-2
2127 machine
=ibmrt opsys
=bsd4-3
2130 machine
=ibmrt opsys
=bsd4-2
2133 machine
=ibmrt opsys
=bsd4-3
2136 machine
=ibmrt opsys
=bsd4-3
2139 machine
=ibmrt-aix opsys
=usg5-2-2
2142 ## Integrated Solutions `Optimum V'
2144 machine
=isi-ov opsys
=bsd4-2
2147 machine
=isi-ov opsys
=bsd4-3
2150 ## Intel 386 machines where we do care about the manufacturer
2151 i
[3456]86-intsys-sysv* )
2152 machine
=is386 opsys
=usg5-2-2
2156 i
[3456]86-prime-sysv* )
2157 machine
=i386 opsys
=usg5-3
2160 ## Sequent Symmetry running Dynix
2161 i
[3456]86-sequent-bsd* )
2162 machine
=symmetry opsys
=bsd4-3
2165 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2166 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2167 machine
=sequent-ptx opsys
=ptx4
2168 NON_GNU_CPP
=/lib
/cpp
2171 ## Sequent Symmetry running DYNIX/ptx
2172 ## Use the old cpp rather than the newer ANSI one.
2173 i
[3456]86-sequent-ptx* )
2174 machine
=sequent-ptx opsys
=ptx
2175 NON_GNU_CPP
="/lib/cpp"
2178 ## ncr machine running svr4.3.
2179 i
[3456]86-ncr-sysv4.3
)
2180 machine
=ncr386 opsys
=usg5-4-3
2183 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2184 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2185 i
[3456]86-ncr-sysv* )
2186 machine
=ncr386 opsys
=usg5-4-2
2189 ## Intel Paragon OSF/1
2191 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2196 machine
=i860 opsys
=usg5-4
2197 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2198 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2201 ## Macintosh PowerPC
2202 powerpc
*-*-linux-gnu* )
2203 machine
=macppc opsys
=gnu-linux
2206 ## Masscomp machines
2207 m68
*-masscomp-rtu* )
2208 machine
=masscomp opsys
=rtu
2211 ## Megatest machines
2212 m68
*-megatest-bsd* )
2213 machine
=mega68 opsys
=bsd4-2
2216 ## Workstations sold by MIPS
2217 ## This is not necessarily all workstations using the MIPS processor -
2218 ## Irises are produced by SGI, and DECstations by DEC.
2220 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2221 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2222 ## it gives for choosing between the alternatives seems to be "Use
2223 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2224 ## the BSD world." I'll assume that these are instructions for
2225 ## handling two odd situations, and that every other situation
2226 ## should use mips.h and usg5-2-2, they being listed first.
2229 ## Fall through to the general code at the bottom to decide on the OS.
2231 mips-mips-riscos4
* )
2232 machine
=mips4 opsys
=bsd4-3
2233 NON_GNU_CC
="cc -systype bsd43"
2234 NON_GNU_CPP
="cc -systype bsd43 -E"
2236 mips-mips-riscos5
* )
2237 machine
=mips4 opsys
=riscos5
2238 NON_GNU_CC
="cc -systype bsd43"
2239 NON_GNU_CPP
="cc -systype bsd43 -E"
2242 machine
=mips opsys
=bsd4-3
2245 machine
=mips opsys
=usg5-2-2
2249 m68
*-next-* | m68k-
*-nextstep* )
2250 machine
=m68k opsys
=nextstep
2253 ## The complete machine from National Semiconductor
2255 machine
=ns32000 opsys
=usg5-2
2259 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2260 machine
=tower32 opsys
=usg5-2-2
2262 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2263 machine
=tower32v3 opsys
=usg5-3
2268 machine
=ews4800 opsys
=ux4800
2271 ## Nixdorf Targon 31
2272 m68
*-nixdorf-sysv* )
2273 machine
=targon31 opsys
=usg5-2-2
2278 machine
=nu opsys
=usg5-2
2283 machine
=plexus opsys
=usg5-2
2287 ## I don't really have any idea what sort of processor the Pyramid has,
2288 ## so I'm assuming it is its own architecture.
2289 pyramid-pyramid-bsd
* )
2290 machine
=pyramid opsys
=bsd4-2
2294 ns32k-sequent-bsd4.2
* )
2295 machine
=sequent opsys
=bsd4-2
2297 ns32k-sequent-bsd4.3
* )
2298 machine
=sequent opsys
=bsd4-3
2302 mips-siemens-sysv
* | mips-sni-sysv
*)
2303 machine
=mips-siemens opsys
=usg5-4
2304 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2305 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2308 ## Silicon Graphics machines
2309 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2311 machine
=irist opsys
=iris3-5
2313 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2314 machine
=irist opsys
=iris3-6
2318 machine
=iris4d opsys
=irix3-3
2321 machine
=iris4d opsys
=irix4-0
2324 machine
=iris4d opsys
=irix6-5
2325 # Without defining _LANGUAGE_C, things get masked out in the headers
2326 # so that, for instance, grepping for `free' in stdlib.h fails and
2327 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2328 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2329 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2332 machine
=iris4d opsys
=irix6-0
2333 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2334 # but presumably it does no harm.
2335 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2336 # -32 probably isn't necessary in later v.6s -- anyone know which?
2337 NON_GCC_TEST_OPTIONS
=-32
2339 mips-sgi-irix5.
[01]* )
2340 machine
=iris4d opsys
=irix5-0
2342 mips-sgi-irix5
* | mips-sgi-irix
* )
2343 machine
=iris4d opsys
=irix5-2
2348 machine
=news opsys
=bsd4-2
2351 machine
=news opsys
=bsd4-3
2353 m68
*-sony-newsos3* | m68
*-sony-news3*)
2354 machine
=news opsys
=bsd4-3
2356 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2357 machine
=news-risc opsys
=bsd4-3
2359 mips-sony-newsos6
* )
2360 machine
=news-r6 opsys
=newsos6
2363 machine
=news-risc opsys
=newsos5
2368 machine
=stride opsys
=usg5-2
2372 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2373 machine
=sparc opsys
=gnu-linux
2376 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2377 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2378 | rs6000-
*-solaris2*)
2379 case "${canonical}" in
2380 m68
*-sunos1* ) machine
=sun1
;;
2381 m68
*-sunos2* ) machine
=sun2
;;
2382 m68
* ) machine
=sun3
;;
2383 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2384 i
[3456]86-*-* ) machine
=intel386
;;
2385 powerpcle
* ) machine
=powerpcle
;;
2386 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2387 sparc
* ) machine
=sparc
;;
2390 case "${canonical}" in
2391 ## The Sun386 didn't get past 4.0.
2392 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2393 *-sunos4.0
* ) opsys
=sunos4-0
;;
2394 *-sunos4.1.
[3-9]*noshare
)
2395 ## This name is sunos413 instead of sunos4-1-3
2396 ## to avoid a file name conflict on MSDOS.
2398 NON_GNU_CPP
=/usr
/lib
/cpp
2399 NON_GCC_TEST_OPTIONS
=-Bstatic
2400 GCC_TEST_OPTIONS
=-static
2402 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2404 NON_GNU_CPP
=/usr
/lib
/cpp
2406 *-sunos4* |
*-sunos )
2408 NON_GCC_TEST_OPTIONS
=-Bstatic
2409 GCC_TEST_OPTIONS
=-static
2411 *-sunos5.3
* |
*-solaris2.3
* )
2413 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2415 *-sunos5.4
* |
*-solaris2.4
* )
2417 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2420 *-sunos5.5
* |
*-solaris2.5
* )
2422 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2425 *-sunos5.6
* |
*-solaris2.6
* )
2427 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2430 *-sunos5* |
*-solaris* )
2432 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2436 ## Watch out for a compiler that we know will not work.
2437 case "${canonical}" in
2438 *-solaris* |
*-sunos5* )
2439 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2440 ## /usr/ucb/cc doesn't work;
2441 ## we should find some other compiler that does work.
2449 machine
=sparc opsys
=nextstep
2453 m68
*-tadpole-sysv* )
2454 machine
=tad68k opsys
=usg5-3
2458 tahoe-tahoe-bsd4.2
* )
2459 machine
=tahoe opsys
=bsd4-2
2461 tahoe-tahoe-bsd4.3
* )
2462 machine
=tahoe opsys
=bsd4-3
2465 ## Tandem Integrity S2
2467 machine
=tandem-s2 opsys
=usg5-3
2471 m88k-tektronix-sysv3
* )
2472 machine
=tekxd88 opsys
=usg5-3
2475 ## Tektronix 16000 box (6130?)
2476 ns16k-tektronix-bsd
* )
2477 machine
=ns16000 opsys
=bsd4-2
2480 ## src/m/tek4300.h hints that this is a m68k machine.
2481 m68
*-tektronix-bsd* )
2482 machine
=tek4300 opsys
=bsd4-3
2486 ## We seem to have lost the machine-description file titan.h!
2488 machine
=titan opsys
=usg5-3
2491 ## Ustation E30 (SS5E)
2492 m68
*-unisys-uniplus* )
2493 machine
=ustation opsystem
=unipl5-2
2499 case "${canonical}" in
2500 *-bsd4.1
* ) opsys
=bsd4-1
;;
2501 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2502 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2503 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2504 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2505 *-vms* ) opsys
=vms
;;
2511 ns16k-whitechapel-
* )
2513 ## We don't know what sort of OS runs on these; we'll let the
2514 ## operating system guessing code below try.
2519 machine
=wicat opsys
=usg5-2
2524 machine
=ia64 opsys
=gnu-linux
2527 ## Intel 386 machines where we don't care about the manufacturer
2530 case "${canonical}" in
2531 *-cygwin ) opsys
=cygwin
;;
2532 *-darwin ) opsys
=darwin
2533 CPP
="${CC-cc} -E -no-cpp-precomp"
2535 *-lynxos* ) opsys
=lynxos
;;
2536 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2537 *-isc2.2
* ) opsys
=isc2-2
;;
2538 *-isc4.0
* ) opsys
=isc4-0
;;
2539 *-isc4.
* ) opsys
=isc4-1
2540 GCC_TEST_OPTIONS
=-posix
2541 NON_GCC_TEST_OPTIONS
=-Xp
2543 *-isc* ) opsys
=isc3-0
;;
2544 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2545 *-esix* ) opsys
=esix
;;
2546 *-xenix* ) opsys
=xenix
;;
2547 *-linux-gnu* ) opsys
=gnu-linux
;;
2548 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2549 *-sco3.2v5
* ) opsys
=sco5
2550 NON_GNU_CPP
=/lib
/cpp
2551 # Prevent -belf from being passed to $CPP.
2552 # /lib/cpp does not accept it.
2553 OVERRIDE_CPPFLAGS
=" "
2555 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2556 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2557 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2558 *-386bsd* ) opsys
=386bsd
;;
2559 *-nextstep* ) opsys
=nextstep
;;
2560 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2564 ## m68k Linux-based GNU system
2566 machine
=m68k opsys
=gnu-linux
2569 ## Mips Linux-based GNU system
2570 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2571 machine
=mips opsys
=gnu-linux
2575 sparc-fujitsu-sysv4
* )
2576 machine
=sparc opsys
=uxpds
2577 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2582 f301-fujitsu-uxpv4.1
)
2583 machine
=f301 opsys
=uxpv
2586 ## Darwin / Mac OS X
2587 powerpc-apple-darwin
* )
2588 machine
=powermac opsys
=darwin
2589 # Define CPP as follows to make autoconf work correctly.
2590 CPP
="${CC-cc} -E -no-cpp-precomp"
2591 # Use fink packages if available.
2592 if test -d /sw
/include
&& test -d /sw
/lib
; then
2593 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2594 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2595 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2599 ## AMD x86-64 Linux-based GNU system
2600 x86_64-
*-linux-gnu* )
2601 machine
=amdx86-64 opsys
=gnu-linux
2609 ### If the code above didn't choose an operating system, just choose
2610 ### an operating system based on the configuration name. You really
2611 ### only want to use this when you have no idea what the right
2612 ### operating system is; if you know what operating systems a machine
2613 ### runs, it's cleaner to make it explicit in the case statement
2615 if test x
"${opsys}" = x
; then
2616 case "${canonical}" in
2617 *-gnu* ) opsys
=gnu
;;
2618 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2619 *-bsd4.2
) opsys
=bsd4-2
;;
2620 *-bsd4.3
) opsys
=bsd4-3
;;
2621 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2622 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2623 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2624 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2625 *-sysv4.2uw
* ) opsys
=unixware
;;
2626 *-sysv5uw* ) opsys
=unixware
;;
2627 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2628 *-sysv4.1
* |
*-sysvr4.1
* )
2629 NON_GNU_CPP
=/usr
/lib
/cpp
2631 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2632 if [ x
$NON_GNU_CPP = x
]; then
2633 if [ -f /usr
/ccs
/lib
/cpp
]; then
2634 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2636 NON_GNU_CPP
=/lib
/cpp
2640 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2649 if test $unported = yes; then
2650 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2651 Check \`etc/MACHINES' for recognized configuration names." >&5
2652 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2653 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2654 { (exit 1); exit 1; }; }
2657 machfile
="m/${machine}.h"
2658 opsysfile
="s/${opsys}.h"
2661 #### Choose a compiler.
2662 test -n "$CC" && cc_specified
=yes
2664 # Save the value of CFLAGS that the user specified.
2665 SPECIFIED_CFLAGS
="$CFLAGS"
2668 "yes" ) CC
="gcc" GCC
=yes ;;
2669 "no" ) : ${CC=cc} ;;
2673 ac_cpp
='$CPP $CPPFLAGS'
2674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2679 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC
="$CC" # Let the user override the test.
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir
=.
2693 for ac_exec_ext
in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test -n "$CC"; then
2706 echo "$as_me:$LINENO: result: $CC" >&5
2707 echo "${ECHO_T}$CC" >&6
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2714 if test -z "$ac_cv_prog_CC"; then
2716 # Extract the first word of "gcc", so it can be a program name with args.
2717 set dummy gcc
; ac_word
=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir
=.
2731 for ac_exec_ext
in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CC
="gcc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2745 echo "${ECHO_T}$ac_ct_CC" >&6
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2756 if test -z "$CC"; then
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2759 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC
="$CC" # Let the user override the test.
2768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir
=.
2773 for ac_exec_ext
in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test -n "$CC"; then
2786 echo "$as_me:$LINENO: result: $CC" >&5
2787 echo "${ECHO_T}$CC" >&6
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2794 if test -z "$ac_cv_prog_CC"; then
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc
; ac_word
=$2
2798 echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 if test -n "$ac_ct_CC"; then
2804 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir
=.
2811 for ac_exec_ext
in '' $ac_executable_extensions; do
2812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813 ac_cv_prog_ac_ct_CC
="cc"
2814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2823 if test -n "$ac_ct_CC"; then
2824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2825 echo "${ECHO_T}$ac_ct_CC" >&6
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2837 if test -z "$CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc
; ac_word
=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC
="$CC" # Let the user override the test.
2849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir
=.
2854 for ac_exec_ext
in '' $ac_executable_extensions; do
2855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857 ac_prog_rejected
=yes
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test $ac_prog_rejected = yes; then
2868 # We found a bogon in the path, so make sure we never use it.
2869 set dummy
$ac_cv_prog_CC
2871 if test $# != 0; then
2872 # We chose a different compiler from the bogus one.
2873 # However, it has the same basename, so the bogon will be chosen
2874 # first if we set CC to just the basename; use the full file name.
2876 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2882 if test -n "$CC"; then
2883 echo "$as_me:$LINENO: result: $CC" >&5
2884 echo "${ECHO_T}$CC" >&6
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2891 if test -z "$CC"; then
2892 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC
="$CC" # Let the user override the test.
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 for ac_exec_ext
in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2930 test -n "$CC" && break
2933 if test -z "$CC"; then
2937 # Extract the first word of "$ac_prog", so it can be a program name with args.
2938 set dummy
$ac_prog; ac_word
=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_ac_ct_CC
="$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2964 if test -n "$ac_ct_CC"; then
2965 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2966 echo "${ECHO_T}$ac_ct_CC" >&6
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$ac_ct_CC" && break
2981 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: no acceptable C compiler found in \$PATH
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2987 # Provide some information about the compiler.
2988 echo "$as_me:$LINENO:" \
2989 "checking for C compiler version" >&5
2990 ac_compiler
=`set X $ac_compile; echo $2`
2991 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2992 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2997 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3002 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3007 cat >conftest.
$ac_ext <<_ACEOF
3008 #line $LINENO "configure"
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3023 ac_clean_files_save
=$ac_clean_files
3024 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3025 # Try to create an executable without -o first, disregard a.out.
3026 # It will help us diagnose broken compilers, and finding out an intuition
3028 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3029 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3030 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3031 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3032 (eval $ac_link_default) 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; then
3036 # Find the output, starting from the most likely. This scheme is
3037 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3040 # Be careful to initialize this variable, since it used to be cached.
3041 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3043 # b.out is created by i960 compilers.
3044 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3046 test -f "$ac_file" ||
continue
3048 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3051 # This is the source file.
3054 # We found the default executable, but exeext='' is most
3058 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 # FIXME: I believe we export ac_cv_exeext for Libtool,
3060 # but it would be cool to find out if it's true. Does anybody
3061 # maintain Libtool? --akim.
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.
$ac_ext >&5
3072 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3073 See \`config.log' for more details." >&5
3074 echo "$as_me: error: C compiler cannot create executables
3075 See \`config.log' for more details." >&2;}
3076 { (exit 77); exit 77; }; }
3079 ac_exeext
=$ac_cv_exeext
3080 echo "$as_me:$LINENO: result: $ac_file" >&5
3081 echo "${ECHO_T}$ac_file" >&6
3083 # Check the compiler produces executables we can run. If not, either
3084 # the compiler is broken, or we cross compile.
3085 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3086 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3087 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3088 # If not cross compiling, check that we can run a simple program.
3089 if test "$cross_compiling" != yes; then
3090 if { ac_try
='./$ac_file'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3098 if test "$cross_compiling" = maybe
; then
3101 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3102 If you meant to cross compile, use \`--host'.
3103 See \`config.log' for more details." >&5
3104 echo "$as_me: error: cannot run C compiled programs.
3105 If you meant to cross compile, use \`--host'.
3106 See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3114 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3115 ac_clean_files
=$ac_clean_files_save
3116 # Check the compiler produces executables we can run. If not, either
3117 # the compiler is broken, or we cross compile.
3118 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3119 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3120 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3121 echo "${ECHO_T}$cross_compiling" >&6
3123 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3124 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3126 (eval $ac_link) 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; then
3130 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3131 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe'), while it won't with
3134 for ac_file
in conftest.exe conftest conftest.
*; do
3135 test -f "$ac_file" ||
continue
3137 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3138 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3148 See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3152 rm -f conftest
$ac_cv_exeext
3153 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3154 echo "${ECHO_T}$ac_cv_exeext" >&6
3156 rm -f conftest.
$ac_ext
3157 EXEEXT
=$ac_cv_exeext
3159 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3160 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3161 if test "${ac_cv_objext+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 cat >conftest.
$ac_ext <<_ACEOF
3165 #line $LINENO "configure"
3168 cat confdefs.h
>>conftest.
$ac_ext
3169 cat >>conftest.
$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.o conftest.obj
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182 (eval $ac_compile) 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; then
3186 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3188 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3189 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.
$ac_ext >&5
3197 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3198 See \`config.log' for more details." >&5
3199 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3200 See \`config.log' for more details." >&2;}
3201 { (exit 1); exit 1; }; }
3204 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3206 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3207 echo "${ECHO_T}$ac_cv_objext" >&6
3208 OBJEXT
=$ac_cv_objext
3210 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3211 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3212 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 cat >conftest.
$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3219 cat confdefs.h
>>conftest.
$ac_ext
3220 cat >>conftest.
$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3234 rm -f conftest.
$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try
='test -s conftest.$ac_objext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.
$ac_ext >&5
3253 rm -f conftest.
$ac_objext conftest.
$ac_ext
3254 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3257 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3258 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3259 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3260 ac_test_CFLAGS
=${CFLAGS+set}
3261 ac_save_CFLAGS
=$CFLAGS
3263 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3264 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3265 if test "${ac_cv_prog_cc_g+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 cat >conftest.
$ac_ext <<_ACEOF
3269 #line $LINENO "configure"
3272 cat confdefs.h
>>conftest.
$ac_ext
3273 cat >>conftest.
$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3284 rm -f conftest.
$ac_objext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try
='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.
$ac_ext >&5
3303 rm -f conftest.
$ac_objext conftest.
$ac_ext
3305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3307 if test "$ac_test_CFLAGS" = set; then
3308 CFLAGS
=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310 if test "$GCC" = yes; then
3316 if test "$GCC" = yes; then
3322 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3323 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3324 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 ac_cv_prog_cc_stdc
=no
3329 cat >conftest.
$ac_ext <<_ACEOF
3330 #line $LINENO "configure"
3333 cat confdefs.h
>>conftest.
$ac_ext
3334 cat >>conftest.
$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3338 #include <sys/types.h>
3339 #include <sys/stat.h>
3340 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3341 struct buf { int x; };
3342 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3343 static char *e (p, i)
3349 static char *f (char * (*g) (char **, int), char **p, ...)
3354 s = g (p, va_arg (v,int));
3358 int test (int i, double x);
3359 struct s1 {int (*f) (int a);};
3360 struct s2 {int (*f) (double a);};
3361 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3372 # Don't try gcc -ansi; that turns off useful extensions and
3373 # breaks some systems' header files.
3374 # AIX -qlanglvl=ansi
3375 # Ultrix and OSF/1 -std1
3376 # HP-UX 10.20 and later -Ae
3377 # HP-UX older versions -Aa -D_HPUX_SOURCE
3378 # SVR4 -Xc -D__EXTENSIONS__
3379 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC
="$ac_save_CC $ac_arg"
3382 rm -f conftest.
$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try
='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_stdc
=$ac_arg
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.
$ac_ext >&5
3401 rm -f conftest.
$ac_objext
3403 rm -f conftest.
$ac_ext conftest.
$ac_objext
3408 case "x$ac_cv_prog_cc_stdc" in
3410 echo "$as_me:$LINENO: result: none needed" >&5
3411 echo "${ECHO_T}none needed" >&6 ;;
3413 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3414 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3415 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3418 # Some people use a C++ compiler to compile C. Since we use `exit',
3419 # in C++ we need to declare it. In case someone uses the same compiler
3420 # for both compiling C and C++ we need to have the C++ compiler decide
3421 # the declaration of exit, since it's the most demanding environment.
3422 cat >conftest.
$ac_ext <<_ACEOF
3427 rm -f conftest.
$ac_objext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429 (eval $ac_compile) 2>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try
='test -s conftest.$ac_objext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 for ac_declaration
in \
3441 '#include <stdlib.h>' \
3442 'extern "C" void std::exit (int) throw (); using std::exit;' \
3443 'extern "C" void std::exit (int); using std::exit;' \
3444 'extern "C" void exit (int) throw ();' \
3445 'extern "C" void exit (int);' \
3448 cat >conftest.
$ac_ext <<_ACEOF
3449 #line $LINENO "configure"
3452 cat confdefs.h
>>conftest.
$ac_ext
3453 cat >>conftest.
$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3465 rm -f conftest.
$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try
='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.
$ac_ext >&5
3484 rm -f conftest.
$ac_objext conftest.
$ac_ext
3485 cat >conftest.
$ac_ext <<_ACEOF
3486 #line $LINENO "configure"
3489 cat confdefs.h
>>conftest.
$ac_ext
3490 cat >>conftest.
$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3501 rm -f conftest.
$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try
='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.
$ac_ext >&5
3519 rm -f conftest.
$ac_objext conftest.
$ac_ext
3522 if test -n "$ac_declaration"; then
3523 echo '#ifdef __cplusplus' >>confdefs.h
3524 echo $ac_declaration >>confdefs.h
3525 echo '#endif' >>confdefs.h
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.
$ac_ext >&5
3533 rm -f conftest.
$ac_objext conftest.
$ac_ext
3535 ac_cpp
='$CPP $CPPFLAGS'
3536 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3541 # On Suns, sometimes $CPP names a directory.
3542 if test -n "$CPP" && test -d "$CPP"; then
3546 #### Some systems specify a CPP to use unless we are using GCC.
3547 #### Now that we know whether we are using GCC, we can decide whether
3548 #### to use that one.
3549 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3554 #### Some systems specify a CC to use unless we are using GCC.
3555 #### Now that we know whether we are using GCC, we can decide whether
3556 #### to use that one.
3557 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3558 test x
$cc_specified != xyes
3563 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3565 CC
="$CC $GCC_TEST_OPTIONS"
3568 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3570 CC
="$CC $NON_GCC_TEST_OPTIONS"
3573 #### Some other nice autoconf tests.
3575 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3576 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3578 if test "$LN_S" = "ln -s"; then
3579 echo "$as_me:$LINENO: result: yes" >&5
3580 echo "${ECHO_T}yes" >&6
3582 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3583 echo "${ECHO_T}no, using $LN_S" >&6
3587 ac_cpp
='$CPP $CPPFLAGS'
3588 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3591 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3592 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3593 # On Suns, sometimes $CPP names a directory.
3594 if test -n "$CPP" && test -d "$CPP"; then
3597 if test -z "$CPP"; then
3598 if test "${ac_cv_prog_CPP+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 # Double quotes because CPP needs to be expanded
3602 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3605 for ac_c_preproc_warn_flag
in '' yes
3607 # Use a header file that comes with gcc, so configuring glibc
3608 # with a fresh cross-compiler works.
3609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610 # <limits.h> exists even on freestanding compilers.
3611 # On the NeXT, cc -E runs the code through the compiler's parser,
3612 # not just through cpp. "Syntax error" is here to catch this case.
3613 cat >conftest.
$ac_ext <<_ACEOF
3614 #line $LINENO "configure"
3617 cat confdefs.h
>>conftest.
$ac_ext
3618 cat >>conftest.
$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3621 # include <limits.h>
3623 # include <assert.h>
3627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3628 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3630 grep -v '^ *+' conftest.er1
>conftest.err
3632 cat conftest.err
>&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } >/dev
/null
; then
3635 if test -s conftest.err
; then
3636 ac_cpp_err
=$ac_c_preproc_warn_flag
3643 if test -z "$ac_cpp_err"; then
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.
$ac_ext >&5
3649 # Broken: fails on valid input.
3652 rm -f conftest.err conftest.
$ac_ext
3654 # OK, works on sane cases. Now check whether non-existent headers
3655 # can be detected and how.
3656 cat >conftest.
$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3660 cat confdefs.h
>>conftest.
$ac_ext
3661 cat >>conftest.
$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <ac_nonexistent.h>
3665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3666 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3668 grep -v '^ *+' conftest.er1
>conftest.err
3670 cat conftest.err
>&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } >/dev
/null
; then
3673 if test -s conftest.err
; then
3674 ac_cpp_err
=$ac_c_preproc_warn_flag
3681 if test -z "$ac_cpp_err"; then
3682 # Broken: success on invalid input.
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.
$ac_ext >&5
3688 # Passes both tests.
3692 rm -f conftest.err conftest.
$ac_ext
3695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3696 rm -f conftest.err conftest.
$ac_ext
3697 if $ac_preproc_ok; then
3709 echo "$as_me:$LINENO: result: $CPP" >&5
3710 echo "${ECHO_T}$CPP" >&6
3712 for ac_c_preproc_warn_flag
in '' yes
3714 # Use a header file that comes with gcc, so configuring glibc
3715 # with a fresh cross-compiler works.
3716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3717 # <limits.h> exists even on freestanding compilers.
3718 # On the NeXT, cc -E runs the code through the compiler's parser,
3719 # not just through cpp. "Syntax error" is here to catch this case.
3720 cat >conftest.
$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3724 cat confdefs.h
>>conftest.
$ac_ext
3725 cat >>conftest.
$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3728 # include <limits.h>
3730 # include <assert.h>
3734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3735 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3737 grep -v '^ *+' conftest.er1
>conftest.err
3739 cat conftest.err
>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } >/dev
/null
; then
3742 if test -s conftest.err
; then
3743 ac_cpp_err
=$ac_c_preproc_warn_flag
3750 if test -z "$ac_cpp_err"; then
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.
$ac_ext >&5
3756 # Broken: fails on valid input.
3759 rm -f conftest.err conftest.
$ac_ext
3761 # OK, works on sane cases. Now check whether non-existent headers
3762 # can be detected and how.
3763 cat >conftest.
$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3767 cat confdefs.h
>>conftest.
$ac_ext
3768 cat >>conftest.
$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #include <ac_nonexistent.h>
3772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3773 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3775 grep -v '^ *+' conftest.er1
>conftest.err
3777 cat conftest.err
>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } >/dev
/null
; then
3780 if test -s conftest.err
; then
3781 ac_cpp_err
=$ac_c_preproc_warn_flag
3788 if test -z "$ac_cpp_err"; then
3789 # Broken: success on invalid input.
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.
$ac_ext >&5
3795 # Passes both tests.
3799 rm -f conftest.err conftest.
$ac_ext
3802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3803 rm -f conftest.err conftest.
$ac_ext
3804 if $ac_preproc_ok; then
3807 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3808 See \`config.log' for more details." >&5
3809 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3810 See \`config.log' for more details." >&2;}
3811 { (exit 1); exit 1; }; }
3815 ac_cpp
='$CPP $CPPFLAGS'
3816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3820 # Find a good install program. We prefer a C program (faster),
3821 # so one script is as good as another. But avoid the broken or
3822 # incompatible versions:
3823 # SysV /etc/install, /usr/sbin/install
3824 # SunOS /usr/etc/install
3825 # IRIX /sbin/install
3827 # AmigaOS /C/install, which installs bootblocks on floppy discs
3828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3831 # ./install, which can be erroneously created by make from ./install.sh.
3832 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3833 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3834 if test -z "$INSTALL"; then
3835 if test "${ac_cv_path_install+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir
=.
3843 # Account for people who put trailing slashes in PATH elements.
3845 .
/ | .
// |
/cC
/* | \
3846 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3849 # OSF1 and SCO ODT 3.0 have their own names for install.
3850 # Don't use installbsd from OSF since it installs stuff as root
3852 for ac_prog
in ginstall scoinst
install; do
3853 for ac_exec_ext
in '' $ac_executable_extensions; do
3854 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3855 if test $ac_prog = install &&
3856 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3857 # AIX install. It has an incompatible calling convention.
3859 elif test $ac_prog = install &&
3860 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3861 # program-specific install script used by HP pwplus--don't use.
3864 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3876 if test "${ac_cv_path_install+set}" = set; then
3877 INSTALL
=$ac_cv_path_install
3879 # As a last resort, use the slow shell script. We don't cache a
3880 # path for INSTALL within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the path is relative.
3883 INSTALL
=$ac_install_sh
3886 echo "$as_me:$LINENO: result: $INSTALL" >&5
3887 echo "${ECHO_T}$INSTALL" >&6
3889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3890 # It thinks the first close brace ends the variable substitution.
3891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3895 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3897 if test "x$RANLIB" = x
; then
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3900 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_prog_RANLIB+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 if test -n "$RANLIB"; then
3907 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir
=.
3914 for ac_exec_ext
in '' $ac_executable_extensions; do
3915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 RANLIB
=$ac_cv_prog_RANLIB
3926 if test -n "$RANLIB"; then
3927 echo "$as_me:$LINENO: result: $RANLIB" >&5
3928 echo "${ECHO_T}$RANLIB" >&6
3930 echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3935 if test -z "$ac_cv_prog_RANLIB"; then
3936 ac_ct_RANLIB
=$RANLIB
3937 # Extract the first word of "ranlib", so it can be a program name with args.
3938 set dummy ranlib
; ac_word
=$2
3939 echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 if test -n "$ac_ct_RANLIB"; then
3945 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir
=.
3952 for ac_exec_ext
in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3964 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3965 if test -n "$ac_ct_RANLIB"; then
3966 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3967 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3969 echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3973 RANLIB
=$ac_ct_RANLIB
3975 RANLIB
="$ac_cv_prog_RANLIB"
3979 # Extract the first word of "install-info", so it can be a program name with args.
3980 set dummy install-info
; ac_word
=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 case $INSTALL_INFO in
3988 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir
=.
3996 for ac_exec_ext
in '' $ac_executable_extensions; do
3997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4010 if test -n "$INSTALL_INFO"; then
4011 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4012 echo "${ECHO_T}$INSTALL_INFO" >&6
4014 echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4018 # Extract the first word of "install-info", so it can be a program name with args.
4019 set dummy install-info
; ac_word
=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 case $INSTALL_INFO in
4027 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 for as_dir
in /usr
/sbin
4034 test -z "$as_dir" && as_dir
=.
4035 for ac_exec_ext
in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4049 if test -n "$INSTALL_INFO"; then
4050 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4051 echo "${ECHO_T}$INSTALL_INFO" >&6
4053 echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4057 # Extract the first word of "install-info", so it can be a program name with args.
4058 set dummy install-info
; ac_word
=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 case $INSTALL_INFO in
4066 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4073 test -z "$as_dir" && as_dir
=.
4074 for ac_exec_ext
in '' $ac_executable_extensions; do
4075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4087 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4089 if test -n "$INSTALL_INFO"; then
4090 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4091 echo "${ECHO_T}$INSTALL_INFO" >&6
4093 echo "$as_me:$LINENO: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4099 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4101 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4104 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4106 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4110 late_LDFLAGS
=$LDFLAGS
4111 if test "$GCC" = yes; then
4112 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4114 LDFLAGS
="$LDFLAGS -znocombreloc"
4117 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4118 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4120 cat >conftest.
$ac_ext <<_ACEOF
4123 rm -f conftest.
$ac_objext conftest
$ac_exeext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4125 (eval $ac_link) 2>&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try
='test -s conftest$ac_exeext'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then
4135 echo "$as_me:$LINENO: result: yes" >&5
4136 echo "${ECHO_T}yes" >&6
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.
$ac_ext >&5
4141 LDFLAGS
=$late_LDFLAGS
4142 echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4145 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4148 echo "$as_me:$LINENO: checking for egrep" >&5
4149 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4150 if test "${ac_cv_prog_egrep+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4154 then ac_cv_prog_egrep
='grep -E'
4155 else ac_cv_prog_egrep
='egrep'
4158 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4159 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4160 EGREP
=$ac_cv_prog_egrep
4164 echo "$as_me:$LINENO: checking for AIX" >&5
4165 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4166 cat >conftest.
$ac_ext <<_ACEOF
4167 #line $LINENO "configure"
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "yes" >/dev
/null
2>&1; then
4180 echo "$as_me:$LINENO: result: yes" >&5
4181 echo "${ECHO_T}yes" >&6
4182 cat >>confdefs.h
<<\_ACEOF
4183 #define _ALL_SOURCE 1
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4195 #### Extract some information from the operating system and machine files.
4197 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4198 - which libraries the lib-src programs will want, and
4199 - whether the GNU malloc routines are usable..." >&5
4200 echo "$as_me: checking the machine- and system-dependent files to find out
4201 - which libraries the lib-src programs will want, and
4202 - whether the GNU malloc routines are usable..." >&6;}
4204 ### First figure out CFLAGS (which we use for running the compiler here)
4205 ### and REAL_CFLAGS (which we use for real compilation).
4206 ### The two are the same except on a few systems, where they are made
4207 ### different to work around various lossages. For example,
4208 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4209 ### as implying static linking.
4211 ### If the CFLAGS env var is specified, we use that value
4212 ### instead of the default.
4214 ### It's not important that this name contain the PID; you can't run
4215 ### two configures in the same directory and have anything work
4217 tempcname
="conftest.c"
4220 #include "'${srcdir}'/src/'${opsysfile}'"
4221 #include "'${srcdir}'/src/'${machfile}'"
4222 #ifndef LIBS_MACHINE
4223 #define LIBS_MACHINE
4228 #ifndef C_SWITCH_SYSTEM
4229 #define C_SWITCH_SYSTEM
4231 #ifndef C_SWITCH_MACHINE
4232 #define C_SWITCH_MACHINE
4234 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4235 configure___ c_switch_system=C_SWITCH_SYSTEM
4236 configure___ c_switch_machine=C_SWITCH_MACHINE
4239 #define LIB_X11_LIB -lX11
4242 #ifndef LIBX11_MACHINE
4243 #define LIBX11_MACHINE
4246 #ifndef LIBX11_SYSTEM
4247 #define LIBX11_SYSTEM
4249 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4252 configure___ unexec=UNEXEC
4254 configure___ unexec=unexec.o
4257 #ifdef SYSTEM_MALLOC
4258 configure___ system_malloc=yes
4260 configure___ system_malloc=no
4263 #ifdef USE_MMAP_FOR_BUFFERS
4264 configure___ use_mmap_for_buffers=yes
4266 configure___ use_mmap_for_buffers=no
4269 #ifndef C_DEBUG_SWITCH
4270 #define C_DEBUG_SWITCH -g
4273 #ifndef C_OPTIMIZE_SWITCH
4275 #define C_OPTIMIZE_SWITCH -O2
4277 #define C_OPTIMIZE_SWITCH -O
4281 #ifndef LD_SWITCH_MACHINE
4282 #define LD_SWITCH_MACHINE
4285 #ifndef LD_SWITCH_SYSTEM
4286 #define LD_SWITCH_SYSTEM
4289 #ifndef LD_SWITCH_X_SITE_AUX
4290 #define LD_SWITCH_X_SITE_AUX
4293 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4294 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4296 #ifdef THIS_IS_CONFIGURE
4298 /* Get the CFLAGS for tests in configure. */
4300 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4302 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4305 #else /* not THIS_IS_CONFIGURE */
4307 /* Get the CFLAGS for real compilation. */
4309 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4311 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4314 #endif /* not THIS_IS_CONFIGURE */
4317 # The value of CPP is a quoted variable reference, so we need to do this
4318 # to get its actual value...
4319 CPP
=`eval "echo $CPP"`
4320 eval `${CPP} -Isrc ${tempcname} \
4321 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4322 if test "x$SPECIFIED_CFLAGS" = x
; then
4323 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4324 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4326 REAL_CFLAGS
="$CFLAGS"
4330 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4332 ### Make sure subsequent tests use flags consistent with the build flags.
4334 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4335 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4337 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4343 cat >>confdefs.h
<<\_ACEOF
4344 #define _GNU_SOURCE 1
4349 # Check whether --enable-largefile or --disable-largefile was given.
4350 if test "${enable_largefile+set}" = set; then
4351 enableval
="$enable_largefile"
4354 if test "$enable_largefile" != no
; then
4356 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4357 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4358 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 ac_cv_sys_largefile_CC
=no
4362 if test "$GCC" != yes; then
4365 # IRIX 6.2 and later do not support large files by default,
4366 # so use the C compiler's -n32 option if that helps.
4367 cat >conftest.
$ac_ext <<_ACEOF
4368 #line $LINENO "configure"
4371 cat confdefs.h
>>conftest.
$ac_ext
4372 cat >>conftest.
$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 #include <sys/types.h>
4375 /* Check that off_t can represent 2**63 - 1 correctly.
4376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4377 since some C++ compilers masquerading as C compilers
4378 incorrectly reject 9223372036854775807. */
4379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4381 && LARGE_OFF_T % 2147483647 == 1)
4391 rm -f conftest.
$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try
='test -s conftest.$ac_objext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.
$ac_ext >&5
4409 rm -f conftest.
$ac_objext
4411 rm -f conftest.
$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try
='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_cv_sys_largefile_CC
=' -n32'; break
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.
$ac_ext >&5
4429 rm -f conftest.
$ac_objext
4433 rm -f conftest.
$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4437 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4438 if test "$ac_cv_sys_largefile_CC" != no
; then
4439 CC
=$CC$ac_cv_sys_largefile_CC
4442 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4443 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4444 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_sys_file_offset_bits
=no
4449 cat >conftest.
$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4453 cat confdefs.h
>>conftest.
$ac_ext
4454 cat >>conftest.
$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <sys/types.h>
4457 /* Check that off_t can represent 2**63 - 1 correctly.
4458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4459 since some C++ compilers masquerading as C compilers
4460 incorrectly reject 9223372036854775807. */
4461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4463 && LARGE_OFF_T % 2147483647 == 1)
4473 rm -f conftest.
$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try
='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.
$ac_ext >&5
4491 rm -f conftest.
$ac_objext conftest.
$ac_ext
4492 cat >conftest.
$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4496 cat confdefs.h
>>conftest.
$ac_ext
4497 cat >>conftest.
$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #define _FILE_OFFSET_BITS 64
4500 #include <sys/types.h>
4501 /* Check that off_t can represent 2**63 - 1 correctly.
4502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4503 since some C++ compilers masquerading as C compilers
4504 incorrectly reject 9223372036854775807. */
4505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4507 && LARGE_OFF_T % 2147483647 == 1)
4517 rm -f conftest.
$ac_objext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try
='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_file_offset_bits
=64; break
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4535 rm -f conftest.
$ac_objext conftest.
$ac_ext
4539 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4540 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4541 if test "$ac_cv_sys_file_offset_bits" != no
; then
4543 cat >>confdefs.h
<<_ACEOF
4544 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4549 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4550 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4551 if test "${ac_cv_sys_large_files+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 ac_cv_sys_large_files
=no
4556 cat >conftest.
$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4560 cat confdefs.h
>>conftest.
$ac_ext
4561 cat >>conftest.
$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 #include <sys/types.h>
4564 /* Check that off_t can represent 2**63 - 1 correctly.
4565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4566 since some C++ compilers masquerading as C compilers
4567 incorrectly reject 9223372036854775807. */
4568 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4570 && LARGE_OFF_T % 2147483647 == 1)
4580 rm -f conftest.
$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try
='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.
$ac_ext >&5
4598 rm -f conftest.
$ac_objext conftest.
$ac_ext
4599 cat >conftest.
$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4603 cat confdefs.h
>>conftest.
$ac_ext
4604 cat >>conftest.
$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 #define _LARGE_FILES 1
4607 #include <sys/types.h>
4608 /* Check that off_t can represent 2**63 - 1 correctly.
4609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4610 since some C++ compilers masquerading as C compilers
4611 incorrectly reject 9223372036854775807. */
4612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4614 && LARGE_OFF_T % 2147483647 == 1)
4624 rm -f conftest.
$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try
='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_sys_large_files
=1; break
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.
$ac_ext >&5
4642 rm -f conftest.
$ac_objext conftest.
$ac_ext
4646 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4647 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4648 if test "$ac_cv_sys_large_files" != no
; then
4650 cat >>confdefs.h
<<_ACEOF
4651 #define _LARGE_FILES $ac_cv_sys_large_files
4659 if test "${with_sound}" != "no"; then
4660 # Sound support for GNU/Linux and the free BSDs.
4661 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4662 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4663 if test "${ac_cv_header_stdc+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 cat >conftest.
$ac_ext <<_ACEOF
4667 #line $LINENO "configure"
4670 cat confdefs.h
>>conftest.
$ac_ext
4671 cat >>conftest.
$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4686 rm -f conftest.
$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try
='test -s conftest.$ac_objext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_cv_header_stdc
=yes
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.
$ac_ext >&5
4703 ac_cv_header_stdc
=no
4705 rm -f conftest.
$ac_objext conftest.
$ac_ext
4707 if test $ac_cv_header_stdc = yes; then
4708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4709 cat >conftest.
$ac_ext <<_ACEOF
4710 #line $LINENO "configure"
4713 cat confdefs.h
>>conftest.
$ac_ext
4714 cat >>conftest.
$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720 $EGREP "memchr" >/dev
/null
2>&1; then
4723 ac_cv_header_stdc
=no
4729 if test $ac_cv_header_stdc = yes; then
4730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4731 cat >conftest.
$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "free" >/dev
/null
2>&1; then
4745 ac_cv_header_stdc
=no
4751 if test $ac_cv_header_stdc = yes; then
4752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4753 if test "$cross_compiling" = yes; then
4756 cat >conftest.
$ac_ext <<_ACEOF
4757 #line $LINENO "configure"
4760 cat confdefs.h
>>conftest.
$ac_ext
4761 cat >>conftest.
$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4764 #if ((' ' & 0x0FF) == 0x020)
4765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4768 # define ISLOWER(c) \
4769 (('a' <= (c) && (c) <= 'i') \
4770 || ('j' <= (c) && (c) <= 'r') \
4771 || ('s' <= (c) && (c) <= 'z'))
4772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4780 for (i = 0; i < 256; i++)
4781 if (XOR (islower (i), ISLOWER (i))
4782 || toupper (i) != TOUPPER (i))
4787 rm -f conftest
$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789 (eval $ac_link) 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4800 echo "$as_me: program exited with status $ac_status" >&5
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.
$ac_ext >&5
4805 ac_cv_header_stdc
=no
4807 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4811 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4812 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4813 if test $ac_cv_header_stdc = yes; then
4815 cat >>confdefs.h
<<\_ACEOF
4816 #define STDC_HEADERS 1
4821 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4831 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4832 inttypes.h stdint.h unistd.h
4834 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 cat >conftest.
$ac_ext <<_ACEOF
4841 #line $LINENO "configure"
4844 cat confdefs.h
>>conftest.
$ac_ext
4845 cat >>conftest.
$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 $ac_includes_default
4849 #include <$ac_header>
4851 rm -f conftest.
$ac_objext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try
='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 eval "$as_ac_Header=yes"
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.
$ac_ext >&5
4868 eval "$as_ac_Header=no"
4870 rm -f conftest.
$ac_objext conftest.
$ac_ext
4872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4875 cat >>confdefs.h
<<_ACEOF
4876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4887 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4889 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo "$as_me:$LINENO: checking for $ac_header" >&5
4892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4899 # Is the header compilable?
4900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4902 cat >conftest.
$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4906 cat confdefs.h
>>conftest.
$ac_ext
4907 cat >>conftest.
$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 $ac_includes_default
4910 #include <$ac_header>
4912 rm -f conftest.
$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try
='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_header_compiler
=yes
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.
$ac_ext >&5
4929 ac_header_compiler
=no
4931 rm -f conftest.
$ac_objext conftest.
$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4933 echo "${ECHO_T}$ac_header_compiler" >&6
4935 # Is the header present?
4936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4938 cat >conftest.
$ac_ext <<_ACEOF
4939 #line $LINENO "configure"
4942 cat confdefs.h
>>conftest.
$ac_ext
4943 cat >>conftest.
$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 #include <$ac_header>
4947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4948 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4950 grep -v '^ *+' conftest.er1
>conftest.err
4952 cat conftest.err
>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev
/null
; then
4955 if test -s conftest.err
; then
4956 ac_cpp_err
=$ac_c_preproc_warn_flag
4963 if test -z "$ac_cpp_err"; then
4964 ac_header_preproc
=yes
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.
$ac_ext >&5
4969 ac_header_preproc
=no
4971 rm -f conftest.err conftest.
$ac_ext
4972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4973 echo "${ECHO_T}$ac_header_preproc" >&6
4975 # So? What about this header?
4976 case $ac_header_compiler:$ac_header_preproc in
4978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4984 ## ------------------------------------ ##
4985 ## Report this to bug-autoconf@gnu.org. ##
4986 ## ------------------------------------ ##
4989 sed "s/^/$as_me: WARNING: /" >&2
4992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5000 ## ------------------------------------ ##
5001 ## Report this to bug-autoconf@gnu.org. ##
5002 ## ------------------------------------ ##
5005 sed "s/^/$as_me: WARNING: /" >&2
5008 echo "$as_me:$LINENO: checking for $ac_header" >&5
5009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 eval "$as_ac_Header=$ac_header_preproc"
5015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5020 cat >>confdefs.h
<<_ACEOF
5021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5028 # Emulation library used on NetBSD.
5029 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5030 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5031 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 ac_check_lib_save_LIBS
=$LIBS
5035 LIBS
="-lossaudio $LIBS"
5036 cat >conftest.
$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5040 cat confdefs.h
>>conftest.
$ac_ext
5041 cat >>conftest.
$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5059 rm -f conftest.
$ac_objext conftest
$ac_exeext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5061 (eval $ac_link) 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try
='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_lib_ossaudio__oss_ioctl
=yes
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.
$ac_ext >&5
5076 ac_cv_lib_ossaudio__oss_ioctl
=no
5078 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5079 LIBS
=$ac_check_lib_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5082 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5083 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5117 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5118 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5119 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5120 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5123 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5125 echo "$as_me:$LINENO: checking for $ac_header" >&5
5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5133 # Is the header compilable?
5134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5136 cat >conftest.
$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5140 cat confdefs.h
>>conftest.
$ac_ext
5141 cat >>conftest.
$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 $ac_includes_default
5144 #include <$ac_header>
5146 rm -f conftest.
$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try
='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_header_compiler
=yes
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.
$ac_ext >&5
5163 ac_header_compiler
=no
5165 rm -f conftest.
$ac_objext conftest.
$ac_ext
5166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5167 echo "${ECHO_T}$ac_header_compiler" >&6
5169 # Is the header present?
5170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5172 cat >conftest.
$ac_ext <<_ACEOF
5173 #line $LINENO "configure"
5176 cat confdefs.h
>>conftest.
$ac_ext
5177 cat >>conftest.
$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 #include <$ac_header>
5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5184 grep -v '^ *+' conftest.er1
>conftest.err
5186 cat conftest.err
>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev
/null
; then
5189 if test -s conftest.err
; then
5190 ac_cpp_err
=$ac_c_preproc_warn_flag
5197 if test -z "$ac_cpp_err"; then
5198 ac_header_preproc
=yes
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.
$ac_ext >&5
5203 ac_header_preproc
=no
5205 rm -f conftest.err conftest.
$ac_ext
5206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5207 echo "${ECHO_T}$ac_header_preproc" >&6
5209 # So? What about this header?
5210 case $ac_header_compiler:$ac_header_preproc in
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5218 ## ------------------------------------ ##
5219 ## Report this to bug-autoconf@gnu.org. ##
5220 ## ------------------------------------ ##
5223 sed "s/^/$as_me: WARNING: /" >&2
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5234 ## ------------------------------------ ##
5235 ## Report this to bug-autoconf@gnu.org. ##
5236 ## ------------------------------------ ##
5239 sed "s/^/$as_me: WARNING: /" >&2
5242 echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 eval "$as_ac_Header=$ac_header_preproc"
5249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5254 cat >>confdefs.h
<<_ACEOF
5255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5263 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5264 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5265 cat >conftest.
$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5269 cat confdefs.h
>>conftest.
$ac_ext
5270 cat >>conftest.
$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <sys/personality.h>
5276 personality (PER_LINUX32)
5281 rm -f conftest.
$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try
='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 emacs_cv_personality_linux32
=yes
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.
$ac_ext >&5
5298 emacs_cv_personality_linux32
=no
5300 rm -f conftest.
$ac_objext conftest.
$ac_ext
5301 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5302 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5304 if test $emacs_cv_personality_linux32 = yes; then
5306 cat >>confdefs.h
<<\_ACEOF
5307 #define HAVE_PERSONALITY_LINUX32 1
5313 for ac_header
in term.h
5315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5316 echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.
$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5325 cat confdefs.h
>>conftest.
$ac_ext
5326 cat >>conftest.
$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <$ac_header>
5330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5331 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1
>conftest.err
5335 cat conftest.err
>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } >/dev
/null
; then
5338 if test -s conftest.err
; then
5339 ac_cpp_err
=$ac_c_preproc_warn_flag
5346 if test -z "$ac_cpp_err"; then
5347 eval "$as_ac_Header=yes"
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.
$ac_ext >&5
5352 eval "$as_ac_Header=no"
5354 rm -f conftest.err conftest.
$ac_ext
5356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5359 cat >>confdefs.h
<<_ACEOF
5360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5369 if test "${ac_cv_header_stdc+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 cat >conftest.
$ac_ext <<_ACEOF
5373 #line $LINENO "configure"
5376 cat confdefs.h
>>conftest.
$ac_ext
5377 cat >>conftest.
$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5392 rm -f conftest.
$ac_objext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394 (eval $ac_compile) 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try
='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_header_stdc
=yes
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.
$ac_ext >&5
5409 ac_cv_header_stdc
=no
5411 rm -f conftest.
$ac_objext conftest.
$ac_ext
5413 if test $ac_cv_header_stdc = yes; then
5414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5415 cat >conftest.
$ac_ext <<_ACEOF
5416 #line $LINENO "configure"
5419 cat confdefs.h
>>conftest.
$ac_ext
5420 cat >>conftest.
$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "memchr" >/dev
/null
2>&1; then
5429 ac_cv_header_stdc
=no
5435 if test $ac_cv_header_stdc = yes; then
5436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5437 cat >conftest.
$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5441 cat confdefs.h
>>conftest.
$ac_ext
5442 cat >>conftest.
$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 $EGREP "free" >/dev
/null
2>&1; then
5451 ac_cv_header_stdc
=no
5457 if test $ac_cv_header_stdc = yes; then
5458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5459 if test "$cross_compiling" = yes; then
5462 cat >conftest.
$ac_ext <<_ACEOF
5463 #line $LINENO "configure"
5466 cat confdefs.h
>>conftest.
$ac_ext
5467 cat >>conftest.
$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5470 #if ((' ' & 0x0FF) == 0x020)
5471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5474 # define ISLOWER(c) \
5475 (('a' <= (c) && (c) <= 'i') \
5476 || ('j' <= (c) && (c) <= 'r') \
5477 || ('s' <= (c) && (c) <= 'z'))
5478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5486 for (i = 0; i < 256; i++)
5487 if (XOR (islower (i), ISLOWER (i))
5488 || toupper (i) != TOUPPER (i))
5493 rm -f conftest
$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495 (eval $ac_link) 2>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5506 echo "$as_me: program exited with status $ac_status" >&5
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.
$ac_ext >&5
5511 ac_cv_header_stdc
=no
5513 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5517 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5518 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5519 if test $ac_cv_header_stdc = yes; then
5521 cat >>confdefs.h
<<\_ACEOF
5522 #define STDC_HEADERS 1
5527 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5528 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5529 if test "${ac_cv_header_time+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 cat >conftest.
$ac_ext <<_ACEOF
5533 #line $LINENO "configure"
5536 cat confdefs.h
>>conftest.
$ac_ext
5537 cat >>conftest.
$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #include <sys/types.h>
5540 #include <sys/time.h>
5546 if ((struct tm *) 0)
5552 rm -f conftest.
$ac_objext
5553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554 (eval $ac_compile) 2>&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 { ac_try
='test -s conftest.$ac_objext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 ac_cv_header_time
=yes
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.
$ac_ext >&5
5569 ac_cv_header_time
=no
5571 rm -f conftest.
$ac_objext conftest.
$ac_ext
5573 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5574 echo "${ECHO_T}$ac_cv_header_time" >&6
5575 if test $ac_cv_header_time = yes; then
5577 cat >>confdefs.h
<<\_ACEOF
5578 #define TIME_WITH_SYS_TIME 1
5583 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5584 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5585 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 cat >conftest.
$ac_ext <<_ACEOF
5589 #line $LINENO "configure"
5592 cat confdefs.h
>>conftest.
$ac_ext
5593 cat >>conftest.
$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 $ac_includes_default
5600 char *p = (char *) sys_siglist;
5607 rm -f conftest.
$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try
='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_have_decl_sys_siglist
=yes
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.
$ac_ext >&5
5624 ac_cv_have_decl_sys_siglist
=no
5626 rm -f conftest.
$ac_objext conftest.
$ac_ext
5628 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5629 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5630 if test $ac_cv_have_decl_sys_siglist = yes; then
5632 cat >>confdefs.h
<<_ACEOF
5633 #define HAVE_DECL_SYS_SIGLIST 1
5638 cat >>confdefs.h
<<_ACEOF
5639 #define HAVE_DECL_SYS_SIGLIST 0
5646 if test $ac_cv_have_decl_sys_siglist != yes; then
5647 # For Tru64, at least:
5648 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5649 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5650 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 cat >conftest.
$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5657 cat confdefs.h
>>conftest.
$ac_ext
5658 cat >>conftest.
$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5664 #ifndef __sys_siglist
5665 char *p = (char *) __sys_siglist;
5672 rm -f conftest.
$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try
='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_have_decl___sys_siglist
=yes
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.
$ac_ext >&5
5689 ac_cv_have_decl___sys_siglist
=no
5691 rm -f conftest.
$ac_objext conftest.
$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5694 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5695 if test $ac_cv_have_decl___sys_siglist = yes; then
5697 cat >>confdefs.h
<<_ACEOF
5698 #define HAVE_DECL___SYS_SIGLIST 1
5703 cat >>confdefs.h
<<_ACEOF
5704 #define HAVE_DECL___SYS_SIGLIST 0
5711 if test $ac_cv_have_decl___sys_siglist = yes; then
5713 cat >>confdefs.h
<<\_ACEOF
5714 #define sys_siglist __sys_siglist
5719 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5720 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5721 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 cat >conftest.
$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5728 cat confdefs.h
>>conftest.
$ac_ext
5729 cat >>conftest.
$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 #include <sys/wait.h>
5734 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5737 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5750 rm -f conftest.
$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } &&
5756 { ac_try
='test -s conftest.$ac_objext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_cv_header_sys_wait_h
=yes
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.
$ac_ext >&5
5767 ac_cv_header_sys_wait_h
=no
5769 rm -f conftest.
$ac_objext conftest.
$ac_ext
5771 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5772 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5773 if test $ac_cv_header_sys_wait_h = yes; then
5775 cat >>confdefs.h
<<\_ACEOF
5776 #define HAVE_SYS_WAIT_H 1
5782 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5783 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5784 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 cat >conftest.
$ac_ext <<_ACEOF
5788 #line $LINENO "configure"
5791 cat confdefs.h
>>conftest.
$ac_ext
5792 cat >>conftest.
$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 #ifdef TIME_WITH_SYS_TIME
5795 #include <sys/time.h>
5798 #ifdef HAVE_SYS_TIME_H
5799 #include <sys/time.h>
5810 static struct utimbuf x; x.actime = x.modtime;
5815 rm -f conftest.
$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try
='test -s conftest.$ac_objext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 emacs_cv_struct_utimbuf
=yes
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.
$ac_ext >&5
5832 emacs_cv_struct_utimbuf
=no
5834 rm -f conftest.
$ac_objext conftest.
$ac_ext
5836 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5837 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5838 if test $emacs_cv_struct_utimbuf = yes; then
5840 cat >>confdefs.h
<<\_ACEOF
5841 #define HAVE_STRUCT_UTIMBUF 1
5846 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5847 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5848 if test "${ac_cv_type_signal+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 cat >conftest.
$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5855 cat confdefs.h
>>conftest.
$ac_ext
5856 cat >>conftest.
$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 #include <sys/types.h>
5864 extern "C" void (*signal (int, void (*)(int)))(int);
5866 void (*signal ()) ();
5877 rm -f conftest.
$ac_objext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try
='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_cv_type_signal
=void
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.
$ac_ext >&5
5894 ac_cv_type_signal
=int
5896 rm -f conftest.
$ac_objext conftest.
$ac_ext
5898 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5899 echo "${ECHO_T}$ac_cv_type_signal" >&6
5901 cat >>confdefs.h
<<_ACEOF
5902 #define RETSIGTYPE $ac_cv_type_signal
5907 echo "$as_me:$LINENO: checking for speed_t" >&5
5908 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5909 if test "${emacs_cv_speed_t+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 cat >conftest.
$ac_ext <<_ACEOF
5913 #line $LINENO "configure"
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #include <termios.h>
5928 rm -f conftest.
$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try
='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 emacs_cv_speed_t
=yes
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.
$ac_ext >&5
5947 rm -f conftest.
$ac_objext conftest.
$ac_ext
5949 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5950 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5951 if test $emacs_cv_speed_t = yes; then
5953 cat >>confdefs.h
<<\_ACEOF
5954 #define HAVE_SPEED_T 1
5959 echo "$as_me:$LINENO: checking for struct timeval" >&5
5960 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5961 if test "${emacs_cv_struct_timeval+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 cat >conftest.
$ac_ext <<_ACEOF
5965 #line $LINENO "configure"
5968 cat confdefs.h
>>conftest.
$ac_ext
5969 cat >>conftest.
$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 #ifdef TIME_WITH_SYS_TIME
5972 #include <sys/time.h>
5975 #ifdef HAVE_SYS_TIME_H
5976 #include <sys/time.h>
5984 static struct timeval x; x.tv_sec = x.tv_usec;
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 emacs_cv_struct_timeval
=yes
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.
$ac_ext >&5
6006 emacs_cv_struct_timeval
=no
6008 rm -f conftest.
$ac_objext conftest.
$ac_ext
6010 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6011 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6012 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6013 if test $emacs_cv_struct_timeval = yes; then
6015 cat >>confdefs.h
<<\_ACEOF
6016 #define HAVE_TIMEVAL 1
6021 echo "$as_me:$LINENO: checking for struct exception" >&5
6022 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6023 if test "${emacs_cv_struct_exception+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.
$ac_ext <<_ACEOF
6027 #line $LINENO "configure"
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6037 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6042 rm -f conftest.
$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try
='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 emacs_cv_struct_exception
=yes
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.
$ac_ext >&5
6059 emacs_cv_struct_exception
=no
6061 rm -f conftest.
$ac_objext conftest.
$ac_ext
6063 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6064 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6065 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6066 if test $emacs_cv_struct_exception != yes; then
6068 cat >>confdefs.h
<<\_ACEOF
6069 #define NO_MATHERR 1
6075 for ac_header
in sys
/socket.h
6077 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6087 # Is the header compilable?
6088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6090 cat >conftest.
$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6094 cat confdefs.h
>>conftest.
$ac_ext
6095 cat >>conftest.
$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 $ac_includes_default
6098 #include <$ac_header>
6100 rm -f conftest.
$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try
='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_header_compiler
=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.
$ac_ext >&5
6117 ac_header_compiler
=no
6119 rm -f conftest.
$ac_objext conftest.
$ac_ext
6120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6121 echo "${ECHO_T}$ac_header_compiler" >&6
6123 # Is the header present?
6124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6126 cat >conftest.
$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6130 cat confdefs.h
>>conftest.
$ac_ext
6131 cat >>conftest.
$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <$ac_header>
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1
>conftest.err
6140 cat conftest.err
>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev
/null
; then
6143 if test -s conftest.err
; then
6144 ac_cpp_err
=$ac_c_preproc_warn_flag
6151 if test -z "$ac_cpp_err"; then
6152 ac_header_preproc
=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.
$ac_ext >&5
6157 ac_header_preproc
=no
6159 rm -f conftest.err conftest.
$ac_ext
6160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6161 echo "${ECHO_T}$ac_header_preproc" >&6
6163 # So? What about this header?
6164 case $ac_header_compiler:$ac_header_preproc in
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6172 ## ------------------------------------ ##
6173 ## Report this to bug-autoconf@gnu.org. ##
6174 ## ------------------------------------ ##
6177 sed "s/^/$as_me: WARNING: /" >&2
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6188 ## ------------------------------------ ##
6189 ## Report this to bug-autoconf@gnu.org. ##
6190 ## ------------------------------------ ##
6193 sed "s/^/$as_me: WARNING: /" >&2
6196 echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 eval "$as_ac_Header=$ac_header_preproc"
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6208 cat >>confdefs.h
<<_ACEOF
6209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 for ac_header
in net
/if.h
6219 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6220 echo "$as_me:$LINENO: checking for $ac_header" >&5
6221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 cat >conftest.
$ac_ext <<_ACEOF
6226 #line $LINENO "configure"
6229 cat confdefs.h
>>conftest.
$ac_ext
6230 cat >>conftest.
$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 $ac_includes_default
6233 #if HAVE_SYS_SOCKET_H
6234 #include <sys/socket.h>
6237 #include <$ac_header>
6239 rm -f conftest.
$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try
='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 eval "$as_ac_Header=yes"
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.
$ac_ext >&5
6256 eval "$as_ac_Header=no"
6258 rm -f conftest.
$ac_objext conftest.
$ac_ext
6260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 cat >>confdefs.h
<<_ACEOF
6264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6273 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6274 if test "${ac_cv_struct_tm+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 cat >conftest.
$ac_ext <<_ACEOF
6278 #line $LINENO "configure"
6281 cat confdefs.h
>>conftest.
$ac_ext
6282 cat >>conftest.
$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 #include <sys/types.h>
6290 struct tm *tp; tp->tm_sec;
6295 rm -f conftest.
$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try
='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_struct_tm
=time.h
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.
$ac_ext >&5
6312 ac_cv_struct_tm
=sys
/time.h
6314 rm -f conftest.
$ac_objext conftest.
$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6317 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6318 if test $ac_cv_struct_tm = sys
/time.h
; then
6320 cat >>confdefs.h
<<\_ACEOF
6321 #define TM_IN_SYS_TIME 1
6326 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6327 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6328 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.
$ac_ext <<_ACEOF
6332 #line $LINENO "configure"
6335 cat confdefs.h
>>conftest.
$ac_ext
6336 cat >>conftest.
$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 #include <sys/types.h>
6339 #include <$ac_cv_struct_tm>
6345 static struct tm ac_aggr;
6346 if (ac_aggr.tm_zone)
6352 rm -f conftest.
$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try
='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_member_struct_tm_tm_zone
=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.
$ac_ext >&5
6369 cat >conftest.
$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6373 cat confdefs.h
>>conftest.
$ac_ext
6374 cat >>conftest.
$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 #include <sys/types.h>
6377 #include <$ac_cv_struct_tm>
6383 static struct tm ac_aggr;
6384 if (sizeof ac_aggr.tm_zone)
6390 rm -f conftest.
$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392 (eval $ac_compile) 2>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -s conftest.$ac_objext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_cv_member_struct_tm_tm_zone
=yes
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.
$ac_ext >&5
6407 ac_cv_member_struct_tm_tm_zone
=no
6409 rm -f conftest.
$ac_objext conftest.
$ac_ext
6411 rm -f conftest.
$ac_objext conftest.
$ac_ext
6413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6414 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6415 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6417 cat >>confdefs.h
<<_ACEOF
6418 #define HAVE_STRUCT_TM_TM_ZONE 1
6424 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6426 cat >>confdefs.h
<<\_ACEOF
6427 #define HAVE_TM_ZONE 1
6431 echo "$as_me:$LINENO: checking for tzname" >&5
6432 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6433 if test "${ac_cv_var_tzname+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 cat >conftest.
$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6440 cat confdefs.h
>>conftest.
$ac_ext
6441 cat >>conftest.
$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 #ifndef tzname /* For SGI. */
6445 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6456 rm -f conftest.
$ac_objext conftest
$ac_exeext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458 (eval $ac_link) 2>&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try
='test -s conftest$ac_exeext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_cv_var_tzname
=yes
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.
$ac_ext >&5
6475 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6477 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6478 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6479 if test $ac_cv_var_tzname = yes; then
6481 cat >>confdefs.h
<<\_ACEOF
6482 #define HAVE_TZNAME 1
6488 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6489 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6490 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 cat >conftest.
$ac_ext <<_ACEOF
6494 #line $LINENO "configure"
6497 cat confdefs.h
>>conftest.
$ac_ext
6498 cat >>conftest.
$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6505 static struct tm ac_aggr;
6506 if (ac_aggr.tm_gmtoff)
6512 rm -f conftest.
$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try
='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_member_struct_tm_tm_gmtoff
=yes
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.
$ac_ext >&5
6529 cat >conftest.
$ac_ext <<_ACEOF
6530 #line $LINENO "configure"
6533 cat confdefs.h
>>conftest.
$ac_ext
6534 cat >>conftest.
$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6541 static struct tm ac_aggr;
6542 if (sizeof ac_aggr.tm_gmtoff)
6548 rm -f conftest.
$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try
='test -s conftest.$ac_objext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_cv_member_struct_tm_tm_gmtoff
=yes
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 ac_cv_member_struct_tm_tm_gmtoff
=no
6567 rm -f conftest.
$ac_objext conftest.
$ac_ext
6569 rm -f conftest.
$ac_objext conftest.
$ac_ext
6571 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6572 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6573 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6575 cat >>confdefs.h
<<\_ACEOF
6576 #define HAVE_TM_GMTOFF 1
6581 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6582 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6583 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.
$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6590 cat confdefs.h
>>conftest.
$ac_ext
6591 cat >>conftest.
$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6594 #if HAVE_SYS_SOCKET_H
6595 #include <sys/socket.h>
6604 static struct ifreq ac_aggr;
6605 if (ac_aggr.ifr_flags)
6611 rm -f conftest.
$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 (eval $ac_compile) 2>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try
='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_member_struct_ifreq_ifr_flags
=yes
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.
$ac_ext >&5
6628 cat >conftest.
$ac_ext <<_ACEOF
6629 #line $LINENO "configure"
6632 cat confdefs.h
>>conftest.
$ac_ext
6633 cat >>conftest.
$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 #if HAVE_SYS_SOCKET_H
6637 #include <sys/socket.h>
6646 static struct ifreq ac_aggr;
6647 if (sizeof ac_aggr.ifr_flags)
6653 rm -f conftest.
$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try
='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_member_struct_ifreq_ifr_flags
=yes
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.
$ac_ext >&5
6670 ac_cv_member_struct_ifreq_ifr_flags
=no
6672 rm -f conftest.
$ac_objext conftest.
$ac_ext
6674 rm -f conftest.
$ac_objext conftest.
$ac_ext
6676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6677 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6678 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6680 cat >>confdefs.h
<<_ACEOF
6681 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6686 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6687 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6688 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 cat >conftest.
$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6695 cat confdefs.h
>>conftest.
$ac_ext
6696 cat >>conftest.
$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6699 #if HAVE_SYS_SOCKET_H
6700 #include <sys/socket.h>
6709 static struct ifreq ac_aggr;
6710 if (ac_aggr.ifr_hwaddr)
6716 rm -f conftest.
$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try
='test -s conftest.$ac_objext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.
$ac_ext >&5
6733 cat >conftest.
$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6737 cat confdefs.h
>>conftest.
$ac_ext
6738 cat >>conftest.
$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 $ac_includes_default
6741 #if HAVE_SYS_SOCKET_H
6742 #include <sys/socket.h>
6751 static struct ifreq ac_aggr;
6752 if (sizeof ac_aggr.ifr_hwaddr)
6758 rm -f conftest.
$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try
='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.
$ac_ext >&5
6775 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
6777 rm -f conftest.
$ac_objext conftest.
$ac_ext
6779 rm -f conftest.
$ac_objext conftest.
$ac_ext
6781 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6782 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6783 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6785 cat >>confdefs.h
<<_ACEOF
6786 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6791 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6792 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6793 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 cat >conftest.
$ac_ext <<_ACEOF
6797 #line $LINENO "configure"
6800 cat confdefs.h
>>conftest.
$ac_ext
6801 cat >>conftest.
$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6804 #if HAVE_SYS_SOCKET_H
6805 #include <sys/socket.h>
6814 static struct ifreq ac_aggr;
6815 if (ac_aggr.ifr_netmask)
6821 rm -f conftest.
$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try
='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.
$ac_ext >&5
6838 cat >conftest.
$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6842 cat confdefs.h
>>conftest.
$ac_ext
6843 cat >>conftest.
$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6846 #if HAVE_SYS_SOCKET_H
6847 #include <sys/socket.h>
6856 static struct ifreq ac_aggr;
6857 if (sizeof ac_aggr.ifr_netmask)
6863 rm -f conftest.
$ac_objext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865 (eval $ac_compile) 2>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try
='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.
$ac_ext >&5
6880 ac_cv_member_struct_ifreq_ifr_netmask
=no
6882 rm -f conftest.
$ac_objext conftest.
$ac_ext
6884 rm -f conftest.
$ac_objext conftest.
$ac_ext
6886 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6887 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6888 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6890 cat >>confdefs.h
<<_ACEOF
6891 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6896 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6897 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6898 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 cat >conftest.
$ac_ext <<_ACEOF
6902 #line $LINENO "configure"
6905 cat confdefs.h
>>conftest.
$ac_ext
6906 cat >>conftest.
$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6909 #if HAVE_SYS_SOCKET_H
6910 #include <sys/socket.h>
6919 static struct ifreq ac_aggr;
6920 if (ac_aggr.ifr_broadaddr)
6926 rm -f conftest.
$ac_objext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928 (eval $ac_compile) 2>&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } &&
6932 { ac_try
='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.
$ac_ext >&5
6943 cat >conftest.
$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6947 cat confdefs.h
>>conftest.
$ac_ext
6948 cat >>conftest.
$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6951 #if HAVE_SYS_SOCKET_H
6952 #include <sys/socket.h>
6961 static struct ifreq ac_aggr;
6962 if (sizeof ac_aggr.ifr_broadaddr)
6968 rm -f conftest.
$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try
='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.
$ac_ext >&5
6985 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
6987 rm -f conftest.
$ac_objext conftest.
$ac_ext
6989 rm -f conftest.
$ac_objext conftest.
$ac_ext
6991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6992 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6993 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6995 cat >>confdefs.h
<<_ACEOF
6996 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7001 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7002 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7003 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 cat >conftest.
$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7010 cat confdefs.h
>>conftest.
$ac_ext
7011 cat >>conftest.
$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 $ac_includes_default
7014 #if HAVE_SYS_SOCKET_H
7015 #include <sys/socket.h>
7024 static struct ifreq ac_aggr;
7025 if (ac_aggr.ifr_addr)
7031 rm -f conftest.
$ac_objext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7033 (eval $ac_compile) 2>&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try
='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_member_struct_ifreq_ifr_addr
=yes
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.
$ac_ext >&5
7048 cat >conftest.
$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7052 cat confdefs.h
>>conftest.
$ac_ext
7053 cat >>conftest.
$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 #if HAVE_SYS_SOCKET_H
7057 #include <sys/socket.h>
7066 static struct ifreq ac_aggr;
7067 if (sizeof ac_aggr.ifr_addr)
7073 rm -f conftest.
$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try
='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_member_struct_ifreq_ifr_addr
=yes
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.
$ac_ext >&5
7090 ac_cv_member_struct_ifreq_ifr_addr
=no
7092 rm -f conftest.
$ac_objext conftest.
$ac_ext
7094 rm -f conftest.
$ac_objext conftest.
$ac_ext
7096 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7097 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7098 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7100 cat >>confdefs.h
<<_ACEOF
7101 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7109 echo "$as_me:$LINENO: checking for function prototypes" >&5
7110 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7111 if test "$ac_cv_prog_cc_stdc" != no
; then
7112 echo "$as_me:$LINENO: result: yes" >&5
7113 echo "${ECHO_T}yes" >&6
7115 cat >>confdefs.h
<<\_ACEOF
7116 #define PROTOTYPES 1
7120 cat >>confdefs.h
<<\_ACEOF
7121 #define __PROTOTYPES 1
7125 echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7129 echo "$as_me:$LINENO: checking for working volatile" >&5
7130 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7131 if test "${ac_cv_c_volatile+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 cat >conftest.
$ac_ext <<_ACEOF
7135 #line $LINENO "configure"
7138 cat confdefs.h
>>conftest.
$ac_ext
7139 cat >>conftest.
$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7152 rm -f conftest.
$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try
='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_cv_c_volatile
=yes
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.
$ac_ext >&5
7171 rm -f conftest.
$ac_objext conftest.
$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7174 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7175 if test $ac_cv_c_volatile = no
; then
7177 cat >>confdefs.h
<<\_ACEOF
7183 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7184 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7185 if test "${ac_cv_c_const+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 cat >conftest.
$ac_ext <<_ACEOF
7189 #line $LINENO "configure"
7192 cat confdefs.h
>>conftest.
$ac_ext
7193 cat >>conftest.
$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7199 /* FIXME: Include the comments suggested by Paul. */
7201 /* Ultrix mips cc rejects this. */
7202 typedef int charset[2];
7204 /* SunOS 4.1.1 cc rejects this. */
7205 char const *const *ccp;
7207 /* NEC SVR4.0.2 mips cc rejects this. */
7208 struct point {int x, y;};
7209 static struct point const zero = {0,0};
7210 /* AIX XL C 1.02.0.0 rejects this.
7211 It does not let you subtract one const X* pointer from another in
7212 an arm of an if-expression whose if-part is not a constant
7214 const char *g = "string";
7215 ccp = &g + (g ? g-g : 0);
7216 /* HPUX 7.0 cc rejects these. */
7219 ccp = (char const *const *) p;
7220 { /* SCO 3.2v4 cc rejects this. */
7222 char const *s = 0 ? (char *) 0 : (char const *) 0;
7226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7228 const int *foo = &x[0];
7231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7232 typedef const int *iptr;
7236 { /* AIX XL C 1.02.0.0 rejects this saying
7237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7238 struct s { int j; const int *ap[3]; };
7239 struct s *b; b->j = 5;
7241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7250 rm -f conftest.
$ac_objext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7252 (eval $ac_compile) 2>&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } &&
7256 { ac_try
='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.
$ac_ext >&5
7269 rm -f conftest.
$ac_objext conftest.
$ac_ext
7271 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7272 echo "${ECHO_T}$ac_cv_c_const" >&6
7273 if test $ac_cv_c_const = no
; then
7275 cat >>confdefs.h
<<\_ACEOF
7281 echo "$as_me:$LINENO: checking for void * support" >&5
7282 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7283 if test "${emacs_cv_void_star+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 cat >conftest.
$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7290 cat confdefs.h
>>conftest.
$ac_ext
7291 cat >>conftest.
$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7302 rm -f conftest.
$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } &&
7308 { ac_try
='test -s conftest.$ac_objext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314 emacs_cv_void_star
=yes
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.
$ac_ext >&5
7319 emacs_cv_void_star
=no
7321 rm -f conftest.
$ac_objext conftest.
$ac_ext
7323 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7324 echo "${ECHO_T}$emacs_cv_void_star" >&6
7325 if test $emacs_cv_void_star = yes; then
7326 cat >>confdefs.h
<<\_ACEOF
7327 #define POINTER_TYPE void
7331 cat >>confdefs.h
<<\_ACEOF
7332 #define POINTER_TYPE char
7341 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7342 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7343 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
7344 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 cat >conftest.
make <<\_ACEOF
7349 @
echo 'ac_maketemp="$(MAKE)"'
7351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7352 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7353 if test -n "$ac_maketemp"; then
7354 eval ac_cv_prog_make_
${ac_make}_set
=yes
7356 eval ac_cv_prog_make_
${ac_make}_set
=no
7360 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7361 echo "$as_me:$LINENO: result: yes" >&5
7362 echo "${ECHO_T}yes" >&6
7365 echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7367 SET_MAKE
="MAKE=${MAKE-make}"
7371 echo "$as_me:$LINENO: checking for long file names" >&5
7372 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7373 if test "${ac_cv_sys_long_file_names+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 ac_cv_sys_long_file_names
=yes
7377 # Test for long file names in all the places we know might matter:
7378 # . the current directory, where building will happen
7379 # $prefix/lib where we will be installing things
7380 # $exec_prefix/lib likewise
7381 # eval it to expand exec_prefix.
7382 # $TMPDIR if set, where it might want to write temporary files
7383 # if $TMPDIR is not set:
7384 # /tmp where it might want to write temporary files
7387 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7390 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7392 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7393 test -d $ac_dir ||
continue
7394 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7395 ac_xdir
=$ac_dir/cf$$
7396 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7397 ac_tf1
=$ac_xdir/conftest9012345
7398 ac_tf2
=$ac_xdir/conftest9012346
7399 (echo 1 >$ac_tf1) 2>/dev
/null
7400 (echo 2 >$ac_tf2) 2>/dev
/null
7401 ac_val
=`cat $ac_tf1 2>/dev/null`
7402 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7403 ac_cv_sys_long_file_names
=no
7404 rm -rf $ac_xdir 2>/dev
/null
7407 rm -rf $ac_xdir 2>/dev
/null
7410 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7411 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7412 if test $ac_cv_sys_long_file_names = yes; then
7414 cat >>confdefs.h
<<\_ACEOF
7415 #define HAVE_LONG_FILE_NAMES 1
7421 #### Choose a window system.
7423 echo "$as_me:$LINENO: checking for X" >&5
7424 echo $ECHO_N "checking for X... $ECHO_C" >&6
7427 # Check whether --with-x or --without-x was given.
7428 if test "${with_x+set}" = set; then
7432 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7433 if test "x$with_x" = xno
; then
7434 # The user explicitly disabled X.
7437 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7438 # Both variables are already set.
7441 if test "${ac_cv_have_x+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 # One or both of the vars are not set, and there is no cached value.
7445 ac_x_includes
=no ac_x_libraries
=no
7447 if mkdir conftest.dir
; then
7449 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7450 cat >Imakefile
<<'_ACEOF'
7452 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7454 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7455 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7456 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7457 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7458 for ac_extension
in a so sl
; do
7459 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7460 test -f $ac_im_libdir/libX11.
$ac_extension; then
7461 ac_im_usrlibdir
=$ac_im_libdir; break
7464 # Screen out bogus values from the imake configuration. They are
7465 # bogus both because they are the default anyway, and because
7466 # using them would break gcc on systems where it needs fixed includes.
7467 case $ac_im_incroot in
7469 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7471 case $ac_im_usrlibdir in
7473 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7480 # Standard set of common directories for X headers.
7481 # Check X11 before X11Rn because it is often a symlink to the current release.
7493 /usr/local/X11/include
7494 /usr/local/X11R6/include
7495 /usr/local/X11R5/include
7496 /usr/local/X11R4/include
7498 /usr/local/include/X11
7499 /usr/local/include/X11R6
7500 /usr/local/include/X11R5
7501 /usr/local/include/X11R4
7505 /usr/XFree86/include/X11
7509 /usr/unsupported/include
7511 /usr/local/x11r5/include
7512 /usr/lpp/Xamples/include
7514 /usr/openwin/include
7515 /usr/openwin/share/include'
7517 if test "$ac_x_includes" = no
; then
7518 # Guess where to find include files, by looking for Intrinsic.h.
7519 # First, try using that file with no special directory specified.
7520 cat >conftest.
$ac_ext <<_ACEOF
7521 #line $LINENO "configure"
7524 cat confdefs.h
>>conftest.
$ac_ext
7525 cat >>conftest.
$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <X11/Intrinsic.h>
7529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7532 grep -v '^ *+' conftest.er1
>conftest.err
7534 cat conftest.err
>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } >/dev
/null
; then
7537 if test -s conftest.err
; then
7538 ac_cpp_err
=$ac_c_preproc_warn_flag
7545 if test -z "$ac_cpp_err"; then
7546 # We can compile using X headers with no special include directory.
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.
$ac_ext >&5
7552 for ac_dir
in $ac_x_header_dirs; do
7553 if test -r "$ac_dir/X11/Intrinsic.h"; then
7554 ac_x_includes
=$ac_dir
7559 rm -f conftest.err conftest.
$ac_ext
7560 fi # $ac_x_includes = no
7562 if test "$ac_x_libraries" = no
; then
7563 # Check for the libraries.
7564 # See if we find them without any special options.
7565 # Don't add to $LIBS permanently.
7568 cat >conftest.
$ac_ext <<_ACEOF
7569 #line $LINENO "configure"
7572 cat confdefs.h
>>conftest.
$ac_ext
7573 cat >>conftest.
$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 #include <X11/Intrinsic.h>
7584 rm -f conftest.
$ac_objext conftest
$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try
='test -s conftest$ac_exeext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7597 # We can link X programs with no special library path.
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.
$ac_ext >&5
7604 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7606 # Don't even attempt the hair of trying to link an X program!
7607 for ac_extension
in a so sl
; do
7608 if test -r $ac_dir/libXt.
$ac_extension; then
7609 ac_x_libraries
=$ac_dir
7615 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7616 fi # $ac_x_libraries = no
7618 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7619 # Didn't find X anywhere. Cache the known absence of X.
7620 ac_cv_have_x
="have_x=no"
7622 # Record where we found X for the cache.
7623 ac_cv_have_x
="have_x=yes \
7624 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7629 eval "$ac_cv_have_x"
7632 if test "$have_x" != yes; then
7633 echo "$as_me:$LINENO: result: $have_x" >&5
7634 echo "${ECHO_T}$have_x" >&6
7637 # If each of the values was on the command line, it overrides each guess.
7638 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7639 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7640 # Update the cache value to reflect the command line values.
7641 ac_cv_have_x
="have_x=yes \
7642 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7643 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7644 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7647 if test "$no_x" = yes; then
7653 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7654 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7655 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7656 x_default_search_path
=""
7657 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7659 ${x_library}/X11/%L/%T/%N%C%S:\
7660 ${x_library}/X11/%l/%T/%N%C%S:\
7661 ${x_library}/X11/%T/%N%C%S:\
7662 ${x_library}/X11/%L/%T/%N%S:\
7663 ${x_library}/X11/%l/%T/%N%S:\
7664 ${x_library}/X11/%T/%N%S"
7665 if test x
"${x_default_search_path}" = x
; then
7666 x_default_search_path
=${x_search_path}
7668 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7672 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7673 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7676 if test x
"${x_includes}" = x
; then
7677 bitmapdir
=/usr
/include
/X11
/bitmaps
7679 # accumulate include directories that have X11 bitmap subdirectories
7681 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7682 if test -d "${bmd}/X11/bitmaps"; then
7683 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7685 if test -d "${bmd}/bitmaps"; then
7686 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7689 if test ${bmd_acc} != "dummyval"; then
7690 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7694 case "${window_system}" in
7698 case "${with_x_toolkit}" in
7699 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7700 motif
) USE_X_TOOLKIT
=MOTIF
;;
7702 USE_X_TOOLKIT
=none
;;
7703 no
) USE_X_TOOLKIT
=none
;;
7704 * ) USE_X_TOOLKIT
=maybe
;;
7714 ### If we're using X11, we should use the X menu package.
7717 yes ) HAVE_MENUS
=yes ;;
7720 if test "${opsys}" = "hpux9"; then
7721 case "${x_libraries}" in
7723 opsysfile
="s/hpux9-x11r4.h"
7728 if test "${opsys}" = "hpux9shr"; then
7729 case "${x_libraries}" in
7731 opsysfile
="s/hpux9shxr4.h"
7737 if test "${HAVE_X11}" != "yes"; then
7738 if test "${with_carbon}" != "no"; then
7739 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7740 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
7741 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7742 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
7746 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7748 # Is the header compilable?
7749 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
7750 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
7751 cat >conftest.
$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7755 cat confdefs.h
>>conftest.
$ac_ext
7756 cat >>conftest.
$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 $ac_includes_default
7759 #include <Carbon/Carbon.h>
7761 rm -f conftest.
$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try
='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_header_compiler
=yes
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.
$ac_ext >&5
7778 ac_header_compiler
=no
7780 rm -f conftest.
$ac_objext conftest.
$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7782 echo "${ECHO_T}$ac_header_compiler" >&6
7784 # Is the header present?
7785 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
7786 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
7787 cat >conftest.
$ac_ext <<_ACEOF
7788 #line $LINENO "configure"
7791 cat confdefs.h
>>conftest.
$ac_ext
7792 cat >>conftest.
$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <Carbon/Carbon.h>
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7799 grep -v '^ *+' conftest.er1
>conftest.err
7801 cat conftest.err
>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } >/dev
/null
; then
7804 if test -s conftest.err
; then
7805 ac_cpp_err
=$ac_c_preproc_warn_flag
7812 if test -z "$ac_cpp_err"; then
7813 ac_header_preproc
=yes
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.
$ac_ext >&5
7818 ac_header_preproc
=no
7820 rm -f conftest.err conftest.
$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7822 echo "${ECHO_T}$ac_header_preproc" >&6
7824 # So? What about this header?
7825 case $ac_header_compiler:$ac_header_preproc in
7827 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
7828 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
7830 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
7833 ## ------------------------------------ ##
7834 ## Report this to bug-autoconf@gnu.org. ##
7835 ## ------------------------------------ ##
7838 sed "s/^/$as_me: WARNING: /" >&2
7841 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
7846 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
7849 ## ------------------------------------ ##
7850 ## Report this to bug-autoconf@gnu.org. ##
7851 ## ------------------------------------ ##
7854 sed "s/^/$as_me: WARNING: /" >&2
7857 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
7858 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7859 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
7864 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
7865 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7868 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7876 ### Compute the unexec source name from the object name.
7877 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
7879 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7880 # Assume not, until told otherwise.
7883 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7884 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7885 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 cat >conftest.
$ac_ext <<_ACEOF
7889 #line $LINENO "configure"
7892 cat confdefs.h
>>conftest.
$ac_ext
7893 cat >>conftest.
$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 /* System header to define __stub macros and hopefully few prototypes,
7896 which can conflict with char malloc_get_state (); below.
7897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898 <limits.h> exists even on freestanding compilers. */
7900 # include <limits.h>
7902 # include <assert.h>
7904 /* Override any gcc2 internal prototype to avoid an error. */
7909 /* We use char because int might match the return type of a gcc2
7910 builtin and then its argument prototype would still apply. */
7911 char malloc_get_state ();
7912 /* The GNU C library defines this for functions which it implements
7913 to always fail with ENOSYS. Some functions are actually named
7914 something starting with __ and the normal name is an alias. */
7915 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7918 char (*f) () = malloc_get_state;
7927 return f != malloc_get_state;
7932 rm -f conftest.
$ac_objext conftest
$ac_exeext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7934 (eval $ac_link) 2>&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try
='test -s conftest$ac_exeext'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 ac_cv_func_malloc_get_state
=yes
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.
$ac_ext >&5
7949 ac_cv_func_malloc_get_state
=no
7951 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7953 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7954 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7955 if test $ac_cv_func_malloc_get_state = yes; then
7961 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7962 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7963 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 cat >conftest.
$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7970 cat confdefs.h
>>conftest.
$ac_ext
7971 cat >>conftest.
$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 /* System header to define __stub macros and hopefully few prototypes,
7974 which can conflict with char malloc_set_state (); below.
7975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7976 <limits.h> exists even on freestanding compilers. */
7978 # include <limits.h>
7980 # include <assert.h>
7982 /* Override any gcc2 internal prototype to avoid an error. */
7987 /* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989 char malloc_set_state ();
7990 /* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7996 char (*f) () = malloc_set_state;
8005 return f != malloc_set_state;
8010 rm -f conftest.
$ac_objext conftest
$ac_exeext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try
='test -s conftest$ac_exeext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_func_malloc_set_state
=yes
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.
$ac_ext >&5
8027 ac_cv_func_malloc_set_state
=no
8029 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8032 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8033 if test $ac_cv_func_malloc_set_state = yes; then
8039 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8040 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8041 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 cat >conftest.
$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8048 cat confdefs.h
>>conftest.
$ac_ext
8049 cat >>conftest.
$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 extern void (* __after_morecore_hook)();
8055 __after_morecore_hook = 0
8060 rm -f conftest.
$ac_objext conftest
$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try
='test -s conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 emacs_cv_var___after_morecore_hook
=yes
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.
$ac_ext >&5
8077 emacs_cv_var___after_morecore_hook
=no
8079 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8081 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8082 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8083 if test $emacs_cv_var___after_morecore_hook = no
; then
8086 if test "${system_malloc}" = "yes"; then
8089 (The GNU allocators don't work with this system configuration.)"
8091 if test "$doug_lea_malloc" = "yes" ; then
8092 if test "$GNU_MALLOC" = yes ; then
8094 (Using Doug Lea's new malloc from the GNU C Library.)"
8097 cat >>confdefs.h
<<\_ACEOF
8098 #define DOUG_LEA_MALLOC 1
8103 if test x
"${REL_ALLOC}" = x
; then
8104 REL_ALLOC
=${GNU_MALLOC}
8110 for ac_header
in stdlib.h unistd.h
8112 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114 echo "$as_me:$LINENO: checking for $ac_header" >&5
8115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8122 # Is the header compilable?
8123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8125 cat >conftest.
$ac_ext <<_ACEOF
8126 #line $LINENO "configure"
8129 cat confdefs.h
>>conftest.
$ac_ext
8130 cat >>conftest.
$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 #include <$ac_header>
8135 rm -f conftest.
$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try
='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_header_compiler
=yes
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.
$ac_ext >&5
8152 ac_header_compiler
=no
8154 rm -f conftest.
$ac_objext conftest.
$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 echo "${ECHO_T}$ac_header_compiler" >&6
8158 # Is the header present?
8159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8161 cat >conftest.
$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8165 cat confdefs.h
>>conftest.
$ac_ext
8166 cat >>conftest.
$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <$ac_header>
8170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8171 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8173 grep -v '^ *+' conftest.er1
>conftest.err
8175 cat conftest.err
>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } >/dev
/null
; then
8178 if test -s conftest.err
; then
8179 ac_cpp_err
=$ac_c_preproc_warn_flag
8186 if test -z "$ac_cpp_err"; then
8187 ac_header_preproc
=yes
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.
$ac_ext >&5
8192 ac_header_preproc
=no
8194 rm -f conftest.err conftest.
$ac_ext
8195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8196 echo "${ECHO_T}$ac_header_preproc" >&6
8198 # So? What about this header?
8199 case $ac_header_compiler:$ac_header_preproc in
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8207 ## ------------------------------------ ##
8208 ## Report this to bug-autoconf@gnu.org. ##
8209 ## ------------------------------------ ##
8212 sed "s/^/$as_me: WARNING: /" >&2
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8223 ## ------------------------------------ ##
8224 ## Report this to bug-autoconf@gnu.org. ##
8225 ## ------------------------------------ ##
8228 sed "s/^/$as_me: WARNING: /" >&2
8231 echo "$as_me:$LINENO: checking for $ac_header" >&5
8232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 eval "$as_ac_Header=$ac_header_preproc"
8238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8243 cat >>confdefs.h
<<_ACEOF
8244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8252 for ac_func
in getpagesize
8254 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255 echo "$as_me:$LINENO: checking for $ac_func" >&5
8256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8257 if eval "test \"\${$as_ac_var+set}\" = set"; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.
$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8264 cat confdefs.h
>>conftest.
$ac_ext
8265 cat >>conftest.
$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char $ac_func (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8272 # include <limits.h>
8274 # include <assert.h>
8276 /* Override any gcc2 internal prototype to avoid an error. */
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8284 /* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
8287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8290 char (*f) () = $ac_func;
8299 return f != $ac_func;
8304 rm -f conftest.
$ac_objext conftest
$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try
='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 eval "$as_ac_var=yes"
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.
$ac_ext >&5
8321 eval "$as_ac_var=no"
8323 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8327 if test `eval echo '${'$as_ac_var'}'` = yes; then
8328 cat >>confdefs.h
<<_ACEOF
8329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8335 echo "$as_me:$LINENO: checking for working mmap" >&5
8336 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8337 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 if test "$cross_compiling" = yes; then
8341 ac_cv_func_mmap_fixed_mapped
=no
8343 cat >conftest.
$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8347 cat confdefs.h
>>conftest.
$ac_ext
8348 cat >>conftest.
$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 $ac_includes_default
8351 /* malloc might have been renamed as rpl_malloc. */
8354 /* Thanks to Mike Haertel and Jim Avera for this test.
8355 Here is a matrix of mmap possibilities:
8356 mmap private not fixed
8357 mmap private fixed at somewhere currently unmapped
8358 mmap private fixed at somewhere already mapped
8359 mmap shared not fixed
8360 mmap shared fixed at somewhere currently unmapped
8361 mmap shared fixed at somewhere already mapped
8362 For private mappings, we should verify that changes cannot be read()
8363 back from the file, nor mmap's back from the file at a different
8364 address. (There have been systems where private was not correctly
8365 implemented like the infamous i386 svr4.0, and systems where the
8366 VM page cache was not coherent with the file system buffer cache
8367 like early versions of FreeBSD and possibly contemporary NetBSD.)
8368 For shared mappings, we should conversely verify that changes get
8369 propagated back to all the places they're supposed to be.
8371 Grep wants private fixed already mapped.
8372 The main things grep needs to know about mmap are:
8373 * does it exist and is it safe to write into the mmap'd area
8374 * how to use it (BSD variants) */
8377 #include <sys/mman.h>
8379 #if !STDC_HEADERS && !HAVE_STDLIB_H
8383 /* This mess was copied from the GNU getpagesize.h. */
8384 #if !HAVE_GETPAGESIZE
8385 /* Assume that all systems that can run configure have sys/param.h. */
8386 # if !HAVE_SYS_PARAM_H
8387 # define HAVE_SYS_PARAM_H 1
8390 # ifdef _SC_PAGESIZE
8391 # define getpagesize() sysconf(_SC_PAGESIZE)
8392 # else /* no _SC_PAGESIZE */
8393 # if HAVE_SYS_PARAM_H
8394 # include <sys/param.h>
8395 # ifdef EXEC_PAGESIZE
8396 # define getpagesize() EXEC_PAGESIZE
8397 # else /* no EXEC_PAGESIZE */
8399 # define getpagesize() NBPG * CLSIZE
8402 # endif /* no CLSIZE */
8403 # else /* no NBPG */
8405 # define getpagesize() NBPC
8406 # else /* no NBPC */
8408 # define getpagesize() PAGESIZE
8409 # endif /* PAGESIZE */
8410 # endif /* no NBPC */
8411 # endif /* no NBPG */
8412 # endif /* no EXEC_PAGESIZE */
8413 # else /* no HAVE_SYS_PARAM_H */
8414 # define getpagesize() 8192 /* punt totally */
8415 # endif /* no HAVE_SYS_PARAM_H */
8416 # endif /* no _SC_PAGESIZE */
8418 #endif /* no HAVE_GETPAGESIZE */
8423 char *data, *data2, *data3;
8427 pagesize = getpagesize ();
8429 /* First, make a file with some known garbage in it. */
8430 data = (char *) malloc (pagesize);
8433 for (i = 0; i < pagesize; ++i)
8434 *(data + i) = rand ();
8436 fd = creat ("conftest.mmap", 0600);
8439 if (write (fd, data, pagesize) != pagesize)
8443 /* Next, try to mmap the file at a fixed address which already has
8444 something else allocated at it. If we can, also make sure that
8445 we see the same garbage. */
8446 fd = open ("conftest.mmap", O_RDWR);
8449 data2 = (char *) malloc (2 * pagesize);
8452 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8453 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8454 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8456 for (i = 0; i < pagesize; ++i)
8457 if (*(data + i) != *(data2 + i))
8460 /* Finally, make sure that changes to the mapped area do not
8461 percolate back to the file as seen by read(). (This is a bug on
8462 some variants of i386 svr4.0.) */
8463 for (i = 0; i < pagesize; ++i)
8464 *(data2 + i) = *(data2 + i) + 1;
8465 data3 = (char *) malloc (pagesize);
8468 if (read (fd, data3, pagesize) != pagesize)
8470 for (i = 0; i < pagesize; ++i)
8471 if (*(data + i) != *(data3 + i))
8477 rm -f conftest
$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_func_mmap_fixed_mapped
=yes
8490 echo "$as_me: program exited with status $ac_status" >&5
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.
$ac_ext >&5
8495 ac_cv_func_mmap_fixed_mapped
=no
8497 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8501 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8502 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8504 cat >>confdefs.h
<<\_ACEOF
8511 if test $use_mmap_for_buffers = yes; then
8515 LIBS
="$libsrc_libs $LIBS"
8518 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8519 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8520 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 ac_check_lib_save_LIBS
=$LIBS
8525 cat >conftest.
$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8529 cat confdefs.h
>>conftest.
$ac_ext
8530 cat >>conftest.
$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8533 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8548 rm -f conftest.
$ac_objext conftest
$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try
='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_lib_dnet_dnet_ntoa
=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.
$ac_ext >&5
8565 ac_cv_lib_dnet_dnet_ntoa
=no
8567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8568 LIBS
=$ac_check_lib_save_LIBS
8570 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8571 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8572 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8573 cat >>confdefs.h
<<_ACEOF
8574 #define HAVE_LIBDNET 1
8582 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8583 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8584 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 ac_check_lib_save_LIBS
=$LIBS
8589 cat >conftest.
$ac_ext <<_ACEOF
8590 #line $LINENO "configure"
8593 cat confdefs.h
>>conftest.
$ac_ext
8594 cat >>conftest.
$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8606 rm -f conftest.
$ac_objext conftest
$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try
='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_lib_Xbsd_main
=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.
$ac_ext >&5
8623 ac_cv_lib_Xbsd_main
=no
8625 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8626 LIBS
=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8629 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8630 if test $ac_cv_lib_Xbsd_main = yes; then
8631 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8636 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8637 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8638 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 ac_check_lib_save_LIBS
=$LIBS
8642 LIBS
="-lpthreads $LIBS"
8643 cat >conftest.
$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8647 cat confdefs.h
>>conftest.
$ac_ext
8648 cat >>conftest.
$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8651 /* Override any gcc2 internal prototype to avoid an error. */
8655 /* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8666 rm -f conftest.
$ac_objext conftest
$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try
='test -s conftest$ac_exeext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_cv_lib_pthreads_cma_open
=yes
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.
$ac_ext >&5
8683 ac_cv_lib_pthreads_cma_open
=no
8685 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8686 LIBS
=$ac_check_lib_save_LIBS
8688 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8689 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8690 if test $ac_cv_lib_pthreads_cma_open = yes; then
8691 cat >>confdefs.h
<<_ACEOF
8692 #define HAVE_LIBPTHREADS 1
8695 LIBS
="-lpthreads $LIBS"
8700 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8701 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8702 if test -d /usr
/X386
/include
; then
8704 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8708 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8709 echo "${ECHO_T}$HAVE_XFREE386" >&6
8714 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8715 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8716 if test "${gdb_cv_bigtoc+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8722 *) gdb_cv_bigtoc
=-bbigtoc ;;
8725 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8726 cat >conftest.
$ac_ext <<_ACEOF
8727 #line $LINENO "configure"
8730 cat confdefs.h
>>conftest.
$ac_ext
8731 cat >>conftest.
$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8742 rm -f conftest.
$ac_objext conftest
$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try
='test -s conftest$ac_exeext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.
$ac_ext >&5
8761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8764 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8765 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8769 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8770 # used for the tests that follow. We set them back to REAL_CFLAGS and
8771 # REAL_CPPFLAGS later on.
8773 REAL_CPPFLAGS
="$CPPFLAGS"
8775 if test "${HAVE_X11}" = "yes"; then
8776 DEFS
="$C_SWITCH_X_SITE $DEFS"
8777 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8779 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8780 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8782 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8783 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8784 # but it's more convenient here to set LD_RUN_PATH
8785 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8786 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8787 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8791 if test "${opsys}" = "gnu-linux"; then
8792 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8793 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8794 cat >conftest.
$ac_ext <<_ACEOF
8795 #line $LINENO "configure"
8798 cat confdefs.h
>>conftest.
$ac_ext
8799 cat >>conftest.
$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8805 XOpenDisplay ("foo");
8810 rm -f conftest.
$ac_objext conftest
$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try
='test -s conftest$ac_exeext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 xlinux_first_failure
=no
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.
$ac_ext >&5
8827 xlinux_first_failure
=yes
8829 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8830 if test "${xlinux_first_failure}" = "yes"; then
8831 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8832 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8833 OLD_CPPFLAGS
="$CPPFLAGS"
8835 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8836 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8837 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8838 LIBS
="$LIBS -b i486-linuxaout"
8839 cat >conftest.
$ac_ext <<_ACEOF
8840 #line $LINENO "configure"
8843 cat confdefs.h
>>conftest.
$ac_ext
8844 cat >>conftest.
$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8850 XOpenDisplay ("foo");
8855 rm -f conftest.
$ac_objext conftest
$ac_exeext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8857 (eval $ac_link) 2>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try
='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 xlinux_second_failure
=no
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.
$ac_ext >&5
8872 xlinux_second_failure
=yes
8874 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8875 if test "${xlinux_second_failure}" = "yes"; then
8876 # If we get the same failure with -b, there is no use adding -b.
8877 # So take it out. This plays safe.
8878 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8879 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8880 CPPFLAGS
="$OLD_CPPFLAGS"
8882 echo "$as_me:$LINENO: result: no" >&5
8883 echo "${ECHO_T}no" >&6
8885 echo "$as_me:$LINENO: result: yes" >&5
8886 echo "${ECHO_T}yes" >&6
8889 echo "$as_me:$LINENO: result: no" >&5
8890 echo "${ECHO_T}no" >&6
8894 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8895 # header files included from there.
8896 echo "$as_me:$LINENO: checking for Xkb" >&5
8897 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8898 cat >conftest.
$ac_ext <<_ACEOF
8899 #line $LINENO "configure"
8902 cat confdefs.h
>>conftest.
$ac_ext
8903 cat >>conftest.
$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 #include <X11/Xlib.h>
8906 #include <X11/XKBlib.h>
8910 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8915 rm -f conftest.
$ac_objext conftest
$ac_exeext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8917 (eval $ac_link) 2>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try
='test -s conftest$ac_exeext'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.
$ac_ext >&5
8934 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8935 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8936 echo "${ECHO_T}$emacs_xkb" >&6
8937 if test $emacs_xkb = yes; then
8939 cat >>confdefs.h
<<\_ACEOF
8940 #define HAVE_XKBGETKEYBOARD 1
8949 for ac_func
in XrmSetDatabase XScreenResourceString \
8950 XScreenNumberOfScreen XSetWMProtocols
8952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8953 echo "$as_me:$LINENO: checking for $ac_func" >&5
8954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8955 if eval "test \"\${$as_ac_var+set}\" = set"; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 cat >conftest.
$ac_ext <<_ACEOF
8959 #line $LINENO "configure"
8962 cat confdefs.h
>>conftest.
$ac_ext
8963 cat >>conftest.
$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 /* System header to define __stub macros and hopefully few prototypes,
8966 which can conflict with char $ac_func (); below.
8967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8968 <limits.h> exists even on freestanding compilers. */
8970 # include <limits.h>
8972 # include <assert.h>
8974 /* Override any gcc2 internal prototype to avoid an error. */
8979 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8982 /* The GNU C library defines this for functions which it implements
8983 to always fail with ENOSYS. Some functions are actually named
8984 something starting with __ and the normal name is an alias. */
8985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8988 char (*f) () = $ac_func;
8997 return f != $ac_func;
9002 rm -f conftest.
$ac_objext conftest
$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try
='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 eval "$as_ac_var=yes"
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.
$ac_ext >&5
9019 eval "$as_ac_var=no"
9021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9025 if test `eval echo '${'$as_ac_var'}'` = yes; then
9026 cat >>confdefs.h
<<_ACEOF
9027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9035 if test "${window_system}" = "x11"; then
9036 echo "$as_me:$LINENO: checking X11 version 6" >&5
9037 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9038 if test "${emacs_cv_x11_version_6+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 cat >conftest.
$ac_ext <<_ACEOF
9042 #line $LINENO "configure"
9045 cat confdefs.h
>>conftest.
$ac_ext
9046 cat >>conftest.
$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 #include <X11/Xlib.h>
9052 #if XlibSpecificationRelease < 6
9060 rm -f conftest.
$ac_objext conftest
$ac_exeext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try
='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 emacs_cv_x11_version_6
=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.
$ac_ext >&5
9077 emacs_cv_x11_version_6
=no
9079 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9082 if test $emacs_cv_x11_version_6 = yes; then
9083 echo "$as_me:$LINENO: result: 6 or newer" >&5
9084 echo "${ECHO_T}6 or newer" >&6
9086 cat >>confdefs.h
<<\_ACEOF
9087 #define HAVE_X11R6 1
9091 echo "$as_me:$LINENO: result: before 6" >&5
9092 echo "${ECHO_T}before 6" >&6
9096 if test "${window_system}" = "x11"; then
9097 echo "$as_me:$LINENO: checking X11 version 5" >&5
9098 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9099 if test "${emacs_cv_x11_version_5+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 cat >conftest.
$ac_ext <<_ACEOF
9103 #line $LINENO "configure"
9106 cat confdefs.h
>>conftest.
$ac_ext
9107 cat >>conftest.
$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 #include <X11/Xlib.h>
9113 #if XlibSpecificationRelease < 5
9121 rm -f conftest.
$ac_objext conftest
$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try
='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 emacs_cv_x11_version_5
=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.
$ac_ext >&5
9138 emacs_cv_x11_version_5
=no
9140 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9143 if test $emacs_cv_x11_version_5 = yes; then
9144 echo "$as_me:$LINENO: result: 5 or newer" >&5
9145 echo "${ECHO_T}5 or newer" >&6
9148 cat >>confdefs.h
<<\_ACEOF
9149 #define HAVE_X11R5 1
9154 echo "$as_me:$LINENO: result: before 5" >&5
9155 echo "${ECHO_T}before 5" >&6
9162 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9163 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9164 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9165 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9166 { (exit 1); exit 1; }; };
9170 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9172 if test "X${with_pkg_config_prog}" != X
; then
9173 PKG_CONFIG
="${with_pkg_config_prog}"
9178 if test -z "$PKG_CONFIG"; then
9179 # Extract the first word of "pkg-config", so it can be a program name with args.
9180 set dummy pkg-config
; ac_word
=$2
9181 echo "$as_me:$LINENO: checking for $ac_word" >&5
9182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9183 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9195 test -z "$as_dir" && as_dir
=.
9196 for ac_exec_ext
in '' $ac_executable_extensions; do
9197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9198 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9209 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9211 if test -n "$PKG_CONFIG"; then
9212 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9213 echo "${ECHO_T}$PKG_CONFIG" >&6
9215 echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6
9221 if test "$PKG_CONFIG" = "no" ; then
9222 echo "*** The pkg-config script could not be found. Make sure it is"
9223 echo "*** in your path, or give the full path to pkg-config with"
9224 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9225 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9227 PKG_CONFIG_MIN_VERSION
=0.9.0
9228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9229 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9230 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9232 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9233 echo "$as_me:$LINENO: result: yes" >&5
9234 echo "${ECHO_T}yes" >&6
9237 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9238 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9239 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9240 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9241 echo "${ECHO_T}$GTK_CFLAGS" >&6
9243 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9244 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9245 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9246 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9247 echo "${ECHO_T}$GTK_LIBS" >&6
9251 ## If we have a custom action on failure, don't print errors, but
9252 ## do set a variable so people can do so.
9253 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9254 echo $GTK_PKG_ERRORS
9260 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9261 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9265 if test $succeeded = yes; then
9268 { { 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
9269 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;}
9270 { (exit 1); exit 1; }; }
9275 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9276 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9277 LIBS
="$GTK_LIBS $LIBS"
9280 cat >>confdefs.h
<<\_ACEOF
9286 if test "$with_toolkit_scroll_bars" != no
; then
9287 with_toolkit_scroll_bars
=yes
9290 HAVE_GTK_MULTIDISPLAY
=no
9292 for ac_func
in gdk_display_open
9294 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9295 echo "$as_me:$LINENO: checking for $ac_func" >&5
9296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9297 if eval "test \"\${$as_ac_var+set}\" = set"; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 cat >conftest.
$ac_ext <<_ACEOF
9301 #line $LINENO "configure"
9304 cat confdefs.h
>>conftest.
$ac_ext
9305 cat >>conftest.
$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 /* System header to define __stub macros and hopefully few prototypes,
9308 which can conflict with char $ac_func (); below.
9309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9310 <limits.h> exists even on freestanding compilers. */
9312 # include <limits.h>
9314 # include <assert.h>
9316 /* Override any gcc2 internal prototype to avoid an error. */
9321 /* We use char because int might match the return type of a gcc2
9322 builtin and then its argument prototype would still apply. */
9324 /* The GNU C library defines this for functions which it implements
9325 to always fail with ENOSYS. Some functions are actually named
9326 something starting with __ and the normal name is an alias. */
9327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9330 char (*f) () = $ac_func;
9339 return f != $ac_func;
9344 rm -f conftest.
$ac_objext conftest
$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try
='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 eval "$as_ac_var=yes"
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.
$ac_ext >&5
9361 eval "$as_ac_var=no"
9363 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9367 if test `eval echo '${'$as_ac_var'}'` = yes; then
9368 cat >>confdefs.h
<<_ACEOF
9369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9371 HAVE_GTK_MULTIDISPLAY
=yes
9375 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9377 cat >>confdefs.h
<<\_ACEOF
9378 #define HAVE_GTK_MULTIDISPLAY 1
9382 HAVE_GTK_FILE_SELECTION
=no
9384 for ac_func
in gtk_file_selection_new
9386 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9387 echo "$as_me:$LINENO: checking for $ac_func" >&5
9388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9389 if eval "test \"\${$as_ac_var+set}\" = set"; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 cat >conftest.
$ac_ext <<_ACEOF
9393 #line $LINENO "configure"
9396 cat confdefs.h
>>conftest.
$ac_ext
9397 cat >>conftest.
$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 /* System header to define __stub macros and hopefully few prototypes,
9400 which can conflict with char $ac_func (); below.
9401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9402 <limits.h> exists even on freestanding compilers. */
9404 # include <limits.h>
9406 # include <assert.h>
9408 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9416 /* The GNU C library defines this for functions which it implements
9417 to always fail with ENOSYS. Some functions are actually named
9418 something starting with __ and the normal name is an alias. */
9419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9422 char (*f) () = $ac_func;
9431 return f != $ac_func;
9436 rm -f conftest.
$ac_objext conftest
$ac_exeext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438 (eval $ac_link) 2>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try
='test -s conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 eval "$as_ac_var=yes"
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.
$ac_ext >&5
9453 eval "$as_ac_var=no"
9455 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9459 if test `eval echo '${'$as_ac_var'}'` = yes; then
9460 cat >>confdefs.h
<<_ACEOF
9461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9463 HAVE_GTK_FILE_SELECTION
=yes
9468 HAVE_GTK_FILE_CHOOSER
=no
9470 for ac_func
in gtk_file_chooser_dialog_new
9472 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9473 echo "$as_me:$LINENO: checking for $ac_func" >&5
9474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9475 if eval "test \"\${$as_ac_var+set}\" = set"; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 cat >conftest.
$ac_ext <<_ACEOF
9479 #line $LINENO "configure"
9482 cat confdefs.h
>>conftest.
$ac_ext
9483 cat >>conftest.
$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 /* System header to define __stub macros and hopefully few prototypes,
9486 which can conflict with char $ac_func (); below.
9487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9488 <limits.h> exists even on freestanding compilers. */
9490 # include <limits.h>
9492 # include <assert.h>
9494 /* Override any gcc2 internal prototype to avoid an error. */
9499 /* We use char because int might match the return type of a gcc2
9500 builtin and then its argument prototype would still apply. */
9502 /* The GNU C library defines this for functions which it implements
9503 to always fail with ENOSYS. Some functions are actually named
9504 something starting with __ and the normal name is an alias. */
9505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9508 char (*f) () = $ac_func;
9517 return f != $ac_func;
9522 rm -f conftest.
$ac_objext conftest
$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try
='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 eval "$as_ac_var=yes"
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.
$ac_ext >&5
9539 eval "$as_ac_var=no"
9541 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9545 if test `eval echo '${'$as_ac_var'}'` = yes; then
9546 cat >>confdefs.h
<<_ACEOF
9547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9549 HAVE_GTK_FILE_CHOOSER
=yes
9554 if test "$HAVE_GTK_FILE_SELECTION" = yes \
9555 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
9557 cat >>confdefs.h
<<\_ACEOF
9558 #define HAVE_GTK_FILE_BOTH 1
9563 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
9564 HAVE_GTK_AND_PTHREAD
=no
9566 for ac_header
in pthread.h
9568 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9570 echo "$as_me:$LINENO: checking for $ac_header" >&5
9571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9578 # Is the header compilable?
9579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9581 cat >conftest.
$ac_ext <<_ACEOF
9582 #line $LINENO "configure"
9585 cat confdefs.h
>>conftest.
$ac_ext
9586 cat >>conftest.
$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 $ac_includes_default
9589 #include <$ac_header>
9591 rm -f conftest.
$ac_objext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9593 (eval $ac_compile) 2>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try
='test -s conftest.$ac_objext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_header_compiler
=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.
$ac_ext >&5
9608 ac_header_compiler
=no
9610 rm -f conftest.
$ac_objext conftest.
$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9612 echo "${ECHO_T}$ac_header_compiler" >&6
9614 # Is the header present?
9615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9617 cat >conftest.
$ac_ext <<_ACEOF
9618 #line $LINENO "configure"
9621 cat confdefs.h
>>conftest.
$ac_ext
9622 cat >>conftest.
$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <$ac_header>
9626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9627 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9629 grep -v '^ *+' conftest.er1
>conftest.err
9631 cat conftest.err
>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } >/dev
/null
; then
9634 if test -s conftest.err
; then
9635 ac_cpp_err
=$ac_c_preproc_warn_flag
9642 if test -z "$ac_cpp_err"; then
9643 ac_header_preproc
=yes
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.
$ac_ext >&5
9648 ac_header_preproc
=no
9650 rm -f conftest.err conftest.
$ac_ext
9651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9652 echo "${ECHO_T}$ac_header_preproc" >&6
9654 # So? What about this header?
9655 case $ac_header_compiler:$ac_header_preproc in
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9663 ## ------------------------------------ ##
9664 ## Report this to bug-autoconf@gnu.org. ##
9665 ## ------------------------------------ ##
9668 sed "s/^/$as_me: WARNING: /" >&2
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9679 ## ------------------------------------ ##
9680 ## Report this to bug-autoconf@gnu.org. ##
9681 ## ------------------------------------ ##
9684 sed "s/^/$as_me: WARNING: /" >&2
9687 echo "$as_me:$LINENO: checking for $ac_header" >&5
9688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 eval "$as_ac_Header=$ac_header_preproc"
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9699 cat >>confdefs.h
<<_ACEOF
9700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9707 if test "$ac_cv_header_pthread_h"; then
9708 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
9709 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
9710 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_check_lib_save_LIBS
=$LIBS
9714 LIBS
="-lpthread $LIBS"
9715 cat >conftest.
$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9719 cat confdefs.h
>>conftest.
$ac_ext
9720 cat >>conftest.
$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9723 /* Override any gcc2 internal prototype to avoid an error. */
9727 /* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9729 char pthread_self ();
9738 rm -f conftest.
$ac_objext conftest
$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try
='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_lib_pthread_pthread_self
=yes
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.
$ac_ext >&5
9755 ac_cv_lib_pthread_pthread_self
=no
9757 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9758 LIBS
=$ac_check_lib_save_LIBS
9760 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
9761 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
9762 if test $ac_cv_lib_pthread_pthread_self = yes; then
9763 HAVE_GTK_AND_PTHREAD
=yes
9767 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9768 GTK_LIBS
="$GTK_LIBS -lpthread"
9770 cat >>confdefs.h
<<\_ACEOF
9771 #define HAVE_GTK_AND_PTHREAD 1
9778 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9779 if test x
"${HAVE_X11R5}" = xyes
; then
9780 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9781 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9782 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 cat >conftest.
$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9789 cat confdefs.h
>>conftest.
$ac_ext
9790 cat >>conftest.
$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 #include <X11/Intrinsic.h>
9794 #include <X11/Xaw/Simple.h>
9803 rm -f conftest.
$ac_objext conftest
$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try
='test -s conftest$ac_exeext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 emacs_cv_x11_version_5_with_xaw
=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.
$ac_ext >&5
9820 emacs_cv_x11_version_5_with_xaw
=no
9822 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9825 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9826 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9827 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9830 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9831 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9839 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9841 if test "${USE_X_TOOLKIT}" != "none"; then
9842 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9843 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9844 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 cat >conftest.
$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9851 cat confdefs.h
>>conftest.
$ac_ext
9852 cat >>conftest.
$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 #include <X11/Intrinsic.h>
9858 #if XtSpecificationRelease < 6
9866 rm -f conftest.
$ac_objext conftest
$ac_exeext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try
='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 emacs_cv_x11_toolkit_version_6
=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.
$ac_ext >&5
9883 emacs_cv_x11_toolkit_version_6
=no
9885 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9888 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9889 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9890 echo "$as_me:$LINENO: result: 6 or newer" >&5
9891 echo "${ECHO_T}6 or newer" >&6
9893 cat >>confdefs.h
<<\_ACEOF
9894 #define HAVE_X11XTR6 1
9898 echo "$as_me:$LINENO: result: before 6" >&5
9899 echo "${ECHO_T}before 6" >&6
9903 if test x
$HAVE_X11XTR6 = xyes
; then
9904 LIBS
="-lXt -lSM -lICE $LIBS"
9909 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9910 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9911 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 ac_check_lib_save_LIBS
=$LIBS
9916 cat >conftest.
$ac_ext <<_ACEOF
9917 #line $LINENO "configure"
9920 cat confdefs.h
>>conftest.
$ac_ext
9921 cat >>conftest.
$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9930 char XmuConvertStandardSelection ();
9934 XmuConvertStandardSelection ();
9939 rm -f conftest.
$ac_objext conftest
$ac_exeext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try
='test -s conftest$ac_exeext'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.
$ac_ext >&5
9956 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9959 LIBS
=$ac_check_lib_save_LIBS
9961 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9962 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9963 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9964 cat >>confdefs.h
<<_ACEOF
9965 #define HAVE_LIBXMU 1
9972 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9975 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9976 if test "${HAVE_X11}" = "yes"; then
9977 if test "${USE_X_TOOLKIT}" != "none"; then
9979 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9980 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9981 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 ac_check_lib_save_LIBS
=$LIBS
9986 cat >conftest.
$ac_ext <<_ACEOF
9987 #line $LINENO "configure"
9990 cat confdefs.h
>>conftest.
$ac_ext
9991 cat >>conftest.
$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 /* Override any gcc2 internal prototype to avoid an error. */
9998 /* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */
10000 char XShapeQueryExtension ();
10004 XShapeQueryExtension ();
10009 rm -f conftest.
$ac_objext conftest
$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try
='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.
$ac_ext >&5
10026 ac_cv_lib_Xext_XShapeQueryExtension
=no
10028 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10029 LIBS
=$ac_check_lib_save_LIBS
10031 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10032 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10033 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10034 cat >>confdefs.h
<<_ACEOF
10035 #define HAVE_LIBXEXT 1
10038 LIBS
="-lXext $LIBS"
10045 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10046 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10047 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10048 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 cat >conftest.
$ac_ext <<_ACEOF
10052 #line $LINENO "configure"
10055 cat confdefs.h
>>conftest.
$ac_ext
10056 cat >>conftest.
$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10062 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10065 Motif version prior to 2.1.
10071 rm -f conftest.
$ac_objext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073 (eval $ac_compile) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try
='test -s conftest.$ac_objext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 emacs_cv_motif_version_2_1
=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.
$ac_ext >&5
10088 emacs_cv_motif_version_2_1
=no
10090 rm -f conftest.
$ac_objext conftest.
$ac_ext
10092 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10093 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10094 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10095 if test $emacs_cv_motif_version_2_1 = yes; then
10098 cat >>confdefs.h
<<\_ACEOF
10099 #define HAVE_MOTIF_2_1 1
10102 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10103 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10104 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 ac_check_lib_save_LIBS
=$LIBS
10109 cat >conftest.
$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10113 cat confdefs.h
>>conftest.
$ac_ext
10114 cat >>conftest.
$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10117 /* Override any gcc2 internal prototype to avoid an error. */
10121 /* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10123 char XpCreateContext ();
10127 XpCreateContext ();
10132 rm -f conftest.
$ac_objext conftest
$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try
='test -s conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_lib_Xp_XpCreateContext
=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.
$ac_ext >&5
10149 ac_cv_lib_Xp_XpCreateContext
=no
10151 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10152 LIBS
=$ac_check_lib_save_LIBS
10154 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10155 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10156 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10160 if test ${HAVE_LIBXP} = yes; then
10162 cat >>confdefs.h
<<\_ACEOF
10163 #define HAVE_LIBXP 1
10168 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10169 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10170 if test "${emacs_cv_lesstif+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 # We put this in CFLAGS temporarily to precede other -I options
10174 # that might be in CFLAGS temporarily.
10175 # We put this in CPPFLAGS where it precedes the other -I options.
10176 OLD_CPPFLAGS
=$CPPFLAGS
10178 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10179 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10180 cat >conftest.
$ac_ext <<_ACEOF
10181 #line $LINENO "configure"
10184 cat confdefs.h
>>conftest.
$ac_ext
10185 cat >>conftest.
$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10196 rm -f conftest.
$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try
='test -s conftest.$ac_objext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 emacs_cv_lesstif
=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.
$ac_ext >&5
10213 emacs_cv_lesstif
=no
10215 rm -f conftest.
$ac_objext conftest.
$ac_ext
10217 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10218 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10219 if test $emacs_cv_lesstif = yes; then
10220 # Make sure this -I option remains in CPPFLAGS after it is set
10221 # back to REAL_CPPFLAGS.
10222 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10223 # have those other -I options anyway. Ultimately, having this
10224 # directory ultimately in CPPFLAGS will be enough.
10225 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10226 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10229 CPPFLAGS
=$OLD_CPPFLAGS
10234 ### Is -lXaw3d available?
10236 if test "${HAVE_X11}" = "yes"; then
10237 if test "${USE_X_TOOLKIT}" != "none"; then
10238 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10239 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10240 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 cat >conftest.
$ac_ext <<_ACEOF
10244 #line $LINENO "configure"
10247 cat confdefs.h
>>conftest.
$ac_ext
10248 cat >>conftest.
$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <X11/Xaw3d/Scrollbar.h>
10252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10253 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10255 grep -v '^ *+' conftest.er1
>conftest.err
10257 cat conftest.err
>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } >/dev
/null
; then
10260 if test -s conftest.err
; then
10261 ac_cpp_err
=$ac_c_preproc_warn_flag
10268 if test -z "$ac_cpp_err"; then
10269 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.
$ac_ext >&5
10274 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10276 rm -f conftest.err conftest.
$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10279 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10280 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10281 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10282 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10283 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 ac_check_lib_save_LIBS
=$LIBS
10287 LIBS
="-lXaw3d $LIBS"
10288 cat >conftest.
$ac_ext <<_ACEOF
10289 #line $LINENO "configure"
10292 cat confdefs.h
>>conftest.
$ac_ext
10293 cat >>conftest.
$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10296 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char XawScrollbarSetThumb ();
10306 XawScrollbarSetThumb ();
10311 rm -f conftest.
$ac_objext conftest
$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try
='test -s conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10325 echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.
$ac_ext >&5
10328 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10330 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10331 LIBS
=$ac_check_lib_save_LIBS
10333 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10334 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10335 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10342 if test "${HAVE_XAW3D}" = "yes"; then
10344 cat >>confdefs.h
<<\_ACEOF
10345 #define HAVE_XAW3D 1
10354 USE_TOOLKIT_SCROLL_BARS
=no
10355 if test "${with_toolkit_scroll_bars}" != "no"; then
10356 if test "${USE_X_TOOLKIT}" != "none"; then
10357 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10358 cat >>confdefs.h
<<\_ACEOF
10359 #define USE_TOOLKIT_SCROLL_BARS 1
10363 USE_TOOLKIT_SCROLL_BARS
=yes
10364 elif test "${HAVE_XAW3D}" = "yes"; then
10365 cat >>confdefs.h
<<\_ACEOF
10366 #define USE_TOOLKIT_SCROLL_BARS 1
10369 USE_TOOLKIT_SCROLL_BARS
=yes
10371 elif test "${HAVE_GTK}" = "yes"; then
10372 cat >>confdefs.h
<<\_ACEOF
10373 #define USE_TOOLKIT_SCROLL_BARS 1
10376 USE_TOOLKIT_SCROLL_BARS
=yes
10377 elif test "${HAVE_CARBON}" = "yes"; then
10378 cat >>confdefs.h
<<\_ACEOF
10379 #define USE_TOOLKIT_SCROLL_BARS 1
10382 USE_TOOLKIT_SCROLL_BARS
=yes
10386 cat >conftest.
$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10390 cat confdefs.h
>>conftest.
$ac_ext
10391 cat >>conftest.
$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10394 #include <X11/Xlib.h>
10395 #include <X11/Xresource.h>
10404 rm -f conftest.
$ac_objext
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try
='test -s conftest.$ac_objext'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; }; then
10418 cat >>confdefs.h
<<\_ACEOF
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.
$ac_ext >&5
10428 rm -f conftest.
$ac_objext conftest.
$ac_ext
10431 if test "${with_xim}" != "no"; then
10433 cat >>confdefs.h
<<\_ACEOF
10440 if test "${HAVE_XIM}" != "no"; then
10441 late_CFLAGS
=$CFLAGS
10442 if test "$GCC" = yes; then
10443 CFLAGS
="$CFLAGS --pedantic-errors"
10445 cat >conftest.
$ac_ext <<_ACEOF
10446 #line $LINENO "configure"
10449 cat confdefs.h
>>conftest.
$ac_ext
10450 cat >>conftest.
$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10453 #include <X11/Xlib.h>
10454 #include <X11/Xresource.h>
10463 XPointer *client_data;
10465 /* If we're not using GCC, it's probably not XFree86, and this is
10466 probably right, but we can't use something like --pedantic-errors. */
10467 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10468 char*, XIMProc, XPointer*);
10470 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10476 rm -f conftest.
$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try
='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 emacs_cv_arg6_star
=yes
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.
$ac_ext >&5
10494 rm -f conftest.
$ac_objext conftest.
$ac_ext
10496 if test "$emacs_cv_arg6_star" = yes; then
10497 cat >>confdefs.h
<<\_ACEOF
10498 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10502 cat >>confdefs.h
<<\_ACEOF
10503 #define XRegisterIMInstantiateCallback_arg6 XPointer
10507 CFLAGS
=$late_CFLAGS
10510 ### Use -lXpm if available, unless `--with-xpm=no'.
10512 if test "${HAVE_X11}" = "yes"; then
10513 if test "${with_xpm}" != "no"; then
10514 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10515 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10516 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10517 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10521 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10523 # Is the header compilable?
10524 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10525 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10526 cat >conftest.
$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10530 cat confdefs.h
>>conftest.
$ac_ext
10531 cat >>conftest.
$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 #include <X11/xpm.h>
10536 rm -f conftest.
$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try
='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_header_compiler
=yes
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.
$ac_ext >&5
10553 ac_header_compiler
=no
10555 rm -f conftest.
$ac_objext conftest.
$ac_ext
10556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10557 echo "${ECHO_T}$ac_header_compiler" >&6
10559 # Is the header present?
10560 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10561 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10562 cat >conftest.
$ac_ext <<_ACEOF
10563 #line $LINENO "configure"
10566 cat confdefs.h
>>conftest.
$ac_ext
10567 cat >>conftest.
$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 #include <X11/xpm.h>
10571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10572 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10574 grep -v '^ *+' conftest.er1
>conftest.err
10576 cat conftest.err
>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } >/dev
/null
; then
10579 if test -s conftest.err
; then
10580 ac_cpp_err
=$ac_c_preproc_warn_flag
10587 if test -z "$ac_cpp_err"; then
10588 ac_header_preproc
=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.
$ac_ext >&5
10593 ac_header_preproc
=no
10595 rm -f conftest.err conftest.
$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10597 echo "${ECHO_T}$ac_header_preproc" >&6
10599 # So? What about this header?
10600 case $ac_header_compiler:$ac_header_preproc in
10602 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10603 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10605 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10608 ## ------------------------------------ ##
10609 ## Report this to bug-autoconf@gnu.org. ##
10610 ## ------------------------------------ ##
10613 sed "s/^/$as_me: WARNING: /" >&2
10616 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10617 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10619 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10621 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10624 ## ------------------------------------ ##
10625 ## Report this to bug-autoconf@gnu.org. ##
10626 ## ------------------------------------ ##
10629 sed "s/^/$as_me: WARNING: /" >&2
10632 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10633 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10634 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10639 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10640 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10643 if test $ac_cv_header_X11_xpm_h = yes; then
10644 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10645 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10646 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 ac_check_lib_save_LIBS
=$LIBS
10650 LIBS
="-lXpm -lX11 $LIBS"
10651 cat >conftest.
$ac_ext <<_ACEOF
10652 #line $LINENO "configure"
10655 cat confdefs.h
>>conftest.
$ac_ext
10656 cat >>conftest.
$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10659 /* Override any gcc2 internal prototype to avoid an error. */
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10665 char XpmReadFileToPixmap ();
10669 XpmReadFileToPixmap ();
10674 rm -f conftest.
$ac_objext conftest
$ac_exeext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try
='test -s conftest$ac_exeext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.
$ac_ext >&5
10691 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10693 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10694 LIBS
=$ac_check_lib_save_LIBS
10696 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10697 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10698 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10705 if test "${HAVE_XPM}" = "yes"; then
10706 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10707 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10708 cat >conftest.
$ac_ext <<_ACEOF
10709 #line $LINENO "configure"
10712 cat confdefs.h
>>conftest.
$ac_ext
10713 cat >>conftest.
$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #include "X11/xpm.h"
10716 #ifndef XpmReturnAllocPixels
10717 no_return_alloc_pixels
10721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10722 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
10730 if test "${HAVE_XPM}" = "yes"; then
10731 echo "$as_me:$LINENO: result: yes" >&5
10732 echo "${ECHO_T}yes" >&6
10734 echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6
10740 if test "${HAVE_XPM}" = "yes"; then
10742 cat >>confdefs.h
<<\_ACEOF
10749 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10751 if test "${HAVE_X11}" = "yes"; then
10752 if test "${with_jpeg}" != "no"; then
10753 if test "${ac_cv_header_jerror_h+set}" = set; then
10754 echo "$as_me:$LINENO: checking for jerror.h" >&5
10755 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10756 if test "${ac_cv_header_jerror_h+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10760 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10762 # Is the header compilable?
10763 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10764 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10765 cat >conftest.
$ac_ext <<_ACEOF
10766 #line $LINENO "configure"
10769 cat confdefs.h
>>conftest.
$ac_ext
10770 cat >>conftest.
$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 $ac_includes_default
10773 #include <jerror.h>
10775 rm -f conftest.
$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try
='test -s conftest.$ac_objext'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 ac_header_compiler
=yes
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.
$ac_ext >&5
10792 ac_header_compiler
=no
10794 rm -f conftest.
$ac_objext conftest.
$ac_ext
10795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10796 echo "${ECHO_T}$ac_header_compiler" >&6
10798 # Is the header present?
10799 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10800 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10801 cat >conftest.
$ac_ext <<_ACEOF
10802 #line $LINENO "configure"
10805 cat confdefs.h
>>conftest.
$ac_ext
10806 cat >>conftest.
$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 #include <jerror.h>
10810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10811 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10813 grep -v '^ *+' conftest.er1
>conftest.err
10815 cat conftest.err
>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } >/dev
/null
; then
10818 if test -s conftest.err
; then
10819 ac_cpp_err
=$ac_c_preproc_warn_flag
10826 if test -z "$ac_cpp_err"; then
10827 ac_header_preproc
=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.
$ac_ext >&5
10832 ac_header_preproc
=no
10834 rm -f conftest.err conftest.
$ac_ext
10835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10836 echo "${ECHO_T}$ac_header_preproc" >&6
10838 # So? What about this header?
10839 case $ac_header_compiler:$ac_header_preproc in
10841 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10842 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10843 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10844 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10847 ## ------------------------------------ ##
10848 ## Report this to bug-autoconf@gnu.org. ##
10849 ## ------------------------------------ ##
10852 sed "s/^/$as_me: WARNING: /" >&2
10855 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10856 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
10858 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10860 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10863 ## ------------------------------------ ##
10864 ## Report this to bug-autoconf@gnu.org. ##
10865 ## ------------------------------------ ##
10868 sed "s/^/$as_me: WARNING: /" >&2
10871 echo "$as_me:$LINENO: checking for jerror.h" >&5
10872 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10873 if test "${ac_cv_header_jerror_h+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 ac_cv_header_jerror_h
=$ac_header_preproc
10878 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10879 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10882 if test $ac_cv_header_jerror_h = yes; then
10883 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
10884 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
10885 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 ac_check_lib_save_LIBS
=$LIBS
10889 LIBS
="-ljpeg $LIBS"
10890 cat >conftest.
$ac_ext <<_ACEOF
10891 #line $LINENO "configure"
10894 cat confdefs.h
>>conftest.
$ac_ext
10895 cat >>conftest.
$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10898 /* Override any gcc2 internal prototype to avoid an error. */
10902 /* We use char because int might match the return type of a gcc2
10903 builtin and then its argument prototype would still apply. */
10904 char jpeg_destroy_compress ();
10908 jpeg_destroy_compress ();
10913 rm -f conftest.
$ac_objext conftest
$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915 (eval $ac_link) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try
='test -s conftest$ac_exeext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.
$ac_ext >&5
10930 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10932 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10933 LIBS
=$ac_check_lib_save_LIBS
10935 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10936 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10937 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10947 if test "${HAVE_JPEG}" = "yes"; then
10948 cat >>confdefs.h
<<\_ACEOF
10949 #define HAVE_JPEG 1
10952 cat >conftest.
$ac_ext <<_ACEOF
10953 #line $LINENO "configure"
10956 cat confdefs.h
>>conftest.
$ac_ext
10957 cat >>conftest.
$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 #include <jpeglib.h>
10960 version=JPEG_LIB_VERSION
10963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10964 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
10965 cat >>confdefs.h
<<\_ACEOF
10966 #define HAVE_JPEG 1
10970 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10971 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10979 ### Use -lpng if available, unless `--with-png=no'.
10981 if test "${HAVE_X11}" = "yes"; then
10982 if test "${with_png}" != "no"; then
10983 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10984 # in /usr/include/libpng.
10987 for ac_header
in png.h libpng
/png.h
10989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10991 echo "$as_me:$LINENO: checking for $ac_header" >&5
10992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10999 # Is the header compilable?
11000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11002 cat >conftest.
$ac_ext <<_ACEOF
11003 #line $LINENO "configure"
11006 cat confdefs.h
>>conftest.
$ac_ext
11007 cat >>conftest.
$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 $ac_includes_default
11010 #include <$ac_header>
11012 rm -f conftest.
$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try
='test -s conftest.$ac_objext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 ac_header_compiler
=yes
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.
$ac_ext >&5
11029 ac_header_compiler
=no
11031 rm -f conftest.
$ac_objext conftest.
$ac_ext
11032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11033 echo "${ECHO_T}$ac_header_compiler" >&6
11035 # Is the header present?
11036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11038 cat >conftest.
$ac_ext <<_ACEOF
11039 #line $LINENO "configure"
11042 cat confdefs.h
>>conftest.
$ac_ext
11043 cat >>conftest.
$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 #include <$ac_header>
11047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11048 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11050 grep -v '^ *+' conftest.er1
>conftest.err
11052 cat conftest.err
>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } >/dev
/null
; then
11055 if test -s conftest.err
; then
11056 ac_cpp_err
=$ac_c_preproc_warn_flag
11063 if test -z "$ac_cpp_err"; then
11064 ac_header_preproc
=yes
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.
$ac_ext >&5
11069 ac_header_preproc
=no
11071 rm -f conftest.err conftest.
$ac_ext
11072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11073 echo "${ECHO_T}$ac_header_preproc" >&6
11075 # So? What about this header?
11076 case $ac_header_compiler:$ac_header_preproc in
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11084 ## ------------------------------------ ##
11085 ## Report this to bug-autoconf@gnu.org. ##
11086 ## ------------------------------------ ##
11089 sed "s/^/$as_me: WARNING: /" >&2
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11100 ## ------------------------------------ ##
11101 ## Report this to bug-autoconf@gnu.org. ##
11102 ## ------------------------------------ ##
11105 sed "s/^/$as_me: WARNING: /" >&2
11108 echo "$as_me:$LINENO: checking for $ac_header" >&5
11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 eval "$as_ac_Header=$ac_header_preproc"
11115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120 cat >>confdefs.h
<<_ACEOF
11121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11129 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11130 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11131 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 ac_check_lib_save_LIBS
=$LIBS
11135 LIBS
="-lpng -lz -lm $LIBS"
11136 cat >conftest.
$ac_ext <<_ACEOF
11137 #line $LINENO "configure"
11140 cat confdefs.h
>>conftest.
$ac_ext
11141 cat >>conftest.
$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11144 /* Override any gcc2 internal prototype to avoid an error. */
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11150 char png_get_channels ();
11154 png_get_channels ();
11159 rm -f conftest.
$ac_objext conftest
$ac_exeext
11160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161 (eval $ac_link) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try
='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_lib_png_png_get_channels
=yes
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.
$ac_ext >&5
11176 ac_cv_lib_png_png_get_channels
=no
11178 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11179 LIBS
=$ac_check_lib_save_LIBS
11181 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11182 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11183 if test $ac_cv_lib_png_png_get_channels = yes; then
11190 if test "${HAVE_PNG}" = "yes"; then
11192 cat >>confdefs.h
<<\_ACEOF
11199 ### Use -ltiff if available, unless `--with-tiff=no'.
11201 if test "${HAVE_X11}" = "yes"; then
11202 if test "${with_tiff}" != "no"; then
11203 if test "${ac_cv_header_tiffio_h+set}" = set; then
11204 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11205 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11206 if test "${ac_cv_header_tiffio_h+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11210 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11212 # Is the header compilable?
11213 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11214 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11215 cat >conftest.
$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11219 cat confdefs.h
>>conftest.
$ac_ext
11220 cat >>conftest.
$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 $ac_includes_default
11223 #include <tiffio.h>
11225 rm -f conftest.
$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try
='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_header_compiler
=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.
$ac_ext >&5
11242 ac_header_compiler
=no
11244 rm -f conftest.
$ac_objext conftest.
$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11246 echo "${ECHO_T}$ac_header_compiler" >&6
11248 # Is the header present?
11249 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11250 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11251 cat >conftest.
$ac_ext <<_ACEOF
11252 #line $LINENO "configure"
11255 cat confdefs.h
>>conftest.
$ac_ext
11256 cat >>conftest.
$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 #include <tiffio.h>
11260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11261 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11263 grep -v '^ *+' conftest.er1
>conftest.err
11265 cat conftest.err
>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } >/dev
/null
; then
11268 if test -s conftest.err
; then
11269 ac_cpp_err
=$ac_c_preproc_warn_flag
11276 if test -z "$ac_cpp_err"; then
11277 ac_header_preproc
=yes
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.
$ac_ext >&5
11282 ac_header_preproc
=no
11284 rm -f conftest.err conftest.
$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6
11288 # So? What about this header?
11289 case $ac_header_compiler:$ac_header_preproc in
11291 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11294 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11297 ## ------------------------------------ ##
11298 ## Report this to bug-autoconf@gnu.org. ##
11299 ## ------------------------------------ ##
11302 sed "s/^/$as_me: WARNING: /" >&2
11305 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11306 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11308 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11313 ## ------------------------------------ ##
11314 ## Report this to bug-autoconf@gnu.org. ##
11315 ## ------------------------------------ ##
11318 sed "s/^/$as_me: WARNING: /" >&2
11321 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11322 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11323 if test "${ac_cv_header_tiffio_h+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 ac_cv_header_tiffio_h
=$ac_header_preproc
11328 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11329 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11332 if test $ac_cv_header_tiffio_h = yes; then
11334 # At least one tiff package requires the jpeg library.
11335 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11336 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11337 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11338 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 ac_check_lib_save_LIBS
=$LIBS
11342 LIBS
="-ltiff $tifflibs $LIBS"
11343 cat >conftest.
$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11347 cat confdefs.h
>>conftest.
$ac_ext
11348 cat >>conftest.
$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11351 /* Override any gcc2 internal prototype to avoid an error. */
11355 /* We use char because int might match the return type of a gcc2
11356 builtin and then its argument prototype would still apply. */
11357 char TIFFGetVersion ();
11366 rm -f conftest.
$ac_objext conftest
$ac_exeext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368 (eval $ac_link) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try
='test -s conftest$ac_exeext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_cv_lib_tiff_TIFFGetVersion
=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.
$ac_ext >&5
11383 ac_cv_lib_tiff_TIFFGetVersion
=no
11385 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11386 LIBS
=$ac_check_lib_save_LIBS
11388 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11389 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11390 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11399 if test "${HAVE_TIFF}" = "yes"; then
11401 cat >>confdefs.h
<<\_ACEOF
11402 #define HAVE_TIFF 1
11408 ### Use -lgif if available, unless `--with-gif=no'.
11410 if test "${HAVE_X11}" = "yes"; then
11411 if test "${with_gif}" != "no"; then
11412 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11413 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11414 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11415 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11419 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11421 # Is the header compilable?
11422 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11423 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11424 cat >conftest.
$ac_ext <<_ACEOF
11425 #line $LINENO "configure"
11428 cat confdefs.h
>>conftest.
$ac_ext
11429 cat >>conftest.
$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 $ac_includes_default
11432 #include <gif_lib.h>
11434 rm -f conftest.
$ac_objext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11436 (eval $ac_compile) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try
='test -s conftest.$ac_objext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_header_compiler
=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.
$ac_ext >&5
11451 ac_header_compiler
=no
11453 rm -f conftest.
$ac_objext conftest.
$ac_ext
11454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11455 echo "${ECHO_T}$ac_header_compiler" >&6
11457 # Is the header present?
11458 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11459 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11460 cat >conftest.
$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11464 cat confdefs.h
>>conftest.
$ac_ext
11465 cat >>conftest.
$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 #include <gif_lib.h>
11469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11470 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11472 grep -v '^ *+' conftest.er1
>conftest.err
11474 cat conftest.err
>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } >/dev
/null
; then
11477 if test -s conftest.err
; then
11478 ac_cpp_err
=$ac_c_preproc_warn_flag
11485 if test -z "$ac_cpp_err"; then
11486 ac_header_preproc
=yes
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.
$ac_ext >&5
11491 ac_header_preproc
=no
11493 rm -f conftest.err conftest.
$ac_ext
11494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11495 echo "${ECHO_T}$ac_header_preproc" >&6
11497 # So? What about this header?
11498 case $ac_header_compiler:$ac_header_preproc in
11500 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11501 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11503 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11506 ## ------------------------------------ ##
11507 ## Report this to bug-autoconf@gnu.org. ##
11508 ## ------------------------------------ ##
11511 sed "s/^/$as_me: WARNING: /" >&2
11514 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11515 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11517 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11519 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11522 ## ------------------------------------ ##
11523 ## Report this to bug-autoconf@gnu.org. ##
11524 ## ------------------------------------ ##
11527 sed "s/^/$as_me: WARNING: /" >&2
11530 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11531 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11532 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 ac_cv_header_gif_lib_h
=$ac_header_preproc
11537 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11538 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11541 if test $ac_cv_header_gif_lib_h = yes; then
11542 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11543 # Earlier versions can crash Emacs.
11544 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11545 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11546 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 ac_check_lib_save_LIBS
=$LIBS
11550 LIBS
="-lungif $LIBS"
11551 cat >conftest.
$ac_ext <<_ACEOF
11552 #line $LINENO "configure"
11555 cat confdefs.h
>>conftest.
$ac_ext
11556 cat >>conftest.
$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11559 /* Override any gcc2 internal prototype to avoid an error. */
11563 /* We use char because int might match the return type of a gcc2
11564 builtin and then its argument prototype would still apply. */
11565 char EGifPutExtensionLast ();
11569 EGifPutExtensionLast ();
11574 rm -f conftest.
$ac_objext conftest
$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try
='test -s conftest$ac_exeext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.
$ac_ext >&5
11591 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11593 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11594 LIBS
=$ac_check_lib_save_LIBS
11596 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11597 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11598 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11607 if test "${HAVE_GIF}" = "yes"; then
11609 cat >>confdefs.h
<<\_ACEOF
11616 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11617 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
11618 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
11619 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
11623 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
11625 # Is the header compilable?
11626 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
11627 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
11628 cat >conftest.
$ac_ext <<_ACEOF
11629 #line $LINENO "configure"
11632 cat confdefs.h
>>conftest.
$ac_ext
11633 cat >>conftest.
$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 $ac_includes_default
11636 #include <malloc/malloc.h>
11638 rm -f conftest.
$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try
='test -s conftest.$ac_objext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_header_compiler
=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.
$ac_ext >&5
11655 ac_header_compiler
=no
11657 rm -f conftest.
$ac_objext conftest.
$ac_ext
11658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11659 echo "${ECHO_T}$ac_header_compiler" >&6
11661 # Is the header present?
11662 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
11663 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
11664 cat >conftest.
$ac_ext <<_ACEOF
11665 #line $LINENO "configure"
11668 cat confdefs.h
>>conftest.
$ac_ext
11669 cat >>conftest.
$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <malloc/malloc.h>
11673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11674 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11676 grep -v '^ *+' conftest.er1
>conftest.err
11678 cat conftest.err
>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } >/dev
/null
; then
11681 if test -s conftest.err
; then
11682 ac_cpp_err
=$ac_c_preproc_warn_flag
11689 if test -z "$ac_cpp_err"; then
11690 ac_header_preproc
=yes
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.
$ac_ext >&5
11695 ac_header_preproc
=no
11697 rm -f conftest.err conftest.
$ac_ext
11698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc in
11704 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
11707 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
11710 ## ------------------------------------ ##
11711 ## Report this to bug-autoconf@gnu.org. ##
11712 ## ------------------------------------ ##
11715 sed "s/^/$as_me: WARNING: /" >&2
11718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
11719 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
11721 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
11723 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
11726 ## ------------------------------------ ##
11727 ## Report this to bug-autoconf@gnu.org. ##
11728 ## ------------------------------------ ##
11731 sed "s/^/$as_me: WARNING: /" >&2
11734 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
11735 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
11736 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
11741 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
11742 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
11745 if test $ac_cv_header_malloc_malloc_h = yes; then
11747 cat >>confdefs.h
<<\_ACEOF
11748 #define HAVE_MALLOC_MALLOC_H 1
11755 ### Use Mac OS X Carbon API to implement GUI.
11756 if test "${HAVE_CARBON}" = "yes"; then
11758 cat >>confdefs.h
<<\_ACEOF
11759 #define HAVE_CARBON 1
11763 ## Specify the install directory
11765 if test "${carbon_appdir_x}" != ""; then
11766 case ${carbon_appdir_x} in
11767 y | ye |
yes) carbon_appdir
=/Applications
;;
11768 * ) carbon_appdir
=${carbon_appdir_x} ;;
11771 # We also have mouse menus.
11774 tmp_CFLAGS
="$CFLAGS"
11775 CFLAGS
="$CFLAGS -framework Carbon"
11776 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
11777 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
11778 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 cat >conftest.
$ac_ext <<_ACEOF
11782 #line $LINENO "configure"
11785 cat confdefs.h
>>conftest.
$ac_ext
11786 cat >>conftest.
$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11788 /* System header to define __stub macros and hopefully few prototypes,
11789 which can conflict with char CancelMenuTracking (); below.
11790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11791 <limits.h> exists even on freestanding compilers. */
11793 # include <limits.h>
11795 # include <assert.h>
11797 /* Override any gcc2 internal prototype to avoid an error. */
11802 /* We use char because int might match the return type of a gcc2
11803 builtin and then its argument prototype would still apply. */
11804 char CancelMenuTracking ();
11805 /* The GNU C library defines this for functions which it implements
11806 to always fail with ENOSYS. Some functions are actually named
11807 something starting with __ and the normal name is an alias. */
11808 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
11811 char (*f) () = CancelMenuTracking;
11820 return f != CancelMenuTracking;
11825 rm -f conftest.
$ac_objext conftest
$ac_exeext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11827 (eval $ac_link) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } &&
11831 { ac_try
='test -s conftest$ac_exeext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_func_CancelMenuTracking
=yes
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.
$ac_ext >&5
11842 ac_cv_func_CancelMenuTracking
=no
11844 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11846 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
11847 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
11848 if test $ac_cv_func_CancelMenuTracking = yes; then
11854 if test "$have_cmt" = yes; then
11856 cat >>confdefs.h
<<\_ACEOF
11857 #define HAVE_CANCELMENUTRACKING 1
11861 CFLAGS
="$tmp_CFLAGS"
11864 ### Use session management (-lSM -lICE) if available
11866 if test "${HAVE_X11}" = "yes"; then
11867 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11868 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11869 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11870 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11874 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11876 # Is the header compilable?
11877 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
11878 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
11879 cat >conftest.
$ac_ext <<_ACEOF
11880 #line $LINENO "configure"
11883 cat confdefs.h
>>conftest.
$ac_ext
11884 cat >>conftest.
$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 #include <X11/SM/SMlib.h>
11889 rm -f conftest.
$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try
='test -s conftest.$ac_objext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_header_compiler
=yes
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.
$ac_ext >&5
11906 ac_header_compiler
=no
11908 rm -f conftest.
$ac_objext conftest.
$ac_ext
11909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11910 echo "${ECHO_T}$ac_header_compiler" >&6
11912 # Is the header present?
11913 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
11914 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
11915 cat >conftest.
$ac_ext <<_ACEOF
11916 #line $LINENO "configure"
11919 cat confdefs.h
>>conftest.
$ac_ext
11920 cat >>conftest.
$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 #include <X11/SM/SMlib.h>
11924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11927 grep -v '^ *+' conftest.er1
>conftest.err
11929 cat conftest.err
>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } >/dev
/null
; then
11932 if test -s conftest.err
; then
11933 ac_cpp_err
=$ac_c_preproc_warn_flag
11940 if test -z "$ac_cpp_err"; then
11941 ac_header_preproc
=yes
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.
$ac_ext >&5
11946 ac_header_preproc
=no
11948 rm -f conftest.err conftest.
$ac_ext
11949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950 echo "${ECHO_T}$ac_header_preproc" >&6
11952 # So? What about this header?
11953 case $ac_header_compiler:$ac_header_preproc in
11955 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11956 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11958 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11961 ## ------------------------------------ ##
11962 ## Report this to bug-autoconf@gnu.org. ##
11963 ## ------------------------------------ ##
11966 sed "s/^/$as_me: WARNING: /" >&2
11969 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
11970 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
11972 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11974 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11977 ## ------------------------------------ ##
11978 ## Report this to bug-autoconf@gnu.org. ##
11979 ## ------------------------------------ ##
11982 sed "s/^/$as_me: WARNING: /" >&2
11985 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11986 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11987 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
11992 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11993 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11996 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
11997 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
11998 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
11999 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 ac_check_lib_save_LIBS
=$LIBS
12003 LIBS
="-lSM -lICE $LIBS"
12004 cat >conftest.
$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12008 cat confdefs.h
>>conftest.
$ac_ext
12009 cat >>conftest.
$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12012 /* Override any gcc2 internal prototype to avoid an error. */
12016 /* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12018 char SmcOpenConnection ();
12022 SmcOpenConnection ();
12027 rm -f conftest.
$ac_objext conftest
$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try
='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_lib_SM_SmcOpenConnection
=yes
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.
$ac_ext >&5
12044 ac_cv_lib_SM_SmcOpenConnection
=no
12046 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12047 LIBS
=$ac_check_lib_save_LIBS
12049 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12050 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12051 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12059 if test "${HAVE_X_SM}" = "yes"; then
12061 cat >>confdefs.h
<<\_ACEOF
12062 #define HAVE_X_SM 1
12067 *) LIBS
="-lSM -lICE $LIBS" ;;
12072 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12073 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12074 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12075 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 cat >conftest.
$ac_ext <<_ACEOF
12079 #line $LINENO "configure"
12082 cat confdefs.h
>>conftest.
$ac_ext
12083 cat >>conftest.
$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12094 rm -f conftest.
$ac_objext conftest
$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try
='test -s conftest$ac_exeext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 emacs_cv_netdb_declares_h_errno
=yes
12108 echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.
$ac_ext >&5
12111 emacs_cv_netdb_declares_h_errno
=no
12113 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12115 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12116 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12117 if test $emacs_cv_netdb_declares_h_errno = yes; then
12119 cat >>confdefs.h
<<\_ACEOF
12120 #define HAVE_H_ERRNO 1
12125 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12126 # for constant arguments. Useless!
12127 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12128 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12129 if test "${ac_cv_working_alloca_h+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 cat >conftest.
$ac_ext <<_ACEOF
12133 #line $LINENO "configure"
12136 cat confdefs.h
>>conftest.
$ac_ext
12137 cat >>conftest.
$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 #include <alloca.h>
12143 char *p = (char *) alloca (2 * sizeof (int));
12148 rm -f conftest.
$ac_objext conftest
$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150 (eval $ac_link) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try
='test -s conftest$ac_exeext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_cv_working_alloca_h
=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.
$ac_ext >&5
12165 ac_cv_working_alloca_h
=no
12167 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12169 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12170 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12171 if test $ac_cv_working_alloca_h = yes; then
12173 cat >>confdefs.h
<<\_ACEOF
12174 #define HAVE_ALLOCA_H 1
12179 echo "$as_me:$LINENO: checking for alloca" >&5
12180 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12181 if test "${ac_cv_func_alloca_works+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 cat >conftest.
$ac_ext <<_ACEOF
12185 #line $LINENO "configure"
12188 cat confdefs.h
>>conftest.
$ac_ext
12189 cat >>conftest.
$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12192 # define alloca __builtin_alloca
12195 # include <malloc.h>
12196 # define alloca _alloca
12199 # include <alloca.h>
12204 # ifndef alloca /* predefined by HP cc +Olibcalls */
12215 char *p = (char *) alloca (1);
12220 rm -f conftest.
$ac_objext conftest
$ac_exeext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222 (eval $ac_link) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try
='test -s conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_func_alloca_works
=yes
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.
$ac_ext >&5
12237 ac_cv_func_alloca_works
=no
12239 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12241 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12242 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12244 if test $ac_cv_func_alloca_works = yes; then
12246 cat >>confdefs.h
<<\_ACEOF
12247 #define HAVE_ALLOCA 1
12251 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12252 # that cause trouble. Some versions do not even contain alloca or
12253 # contain a buggy version. If you still want to use their alloca,
12254 # use ar to extract alloca.o from them instead of compiling alloca.c.
12256 ALLOCA
=alloca.
$ac_objext
12258 cat >>confdefs.h
<<\_ACEOF
12263 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12264 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12265 if test "${ac_cv_os_cray+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 cat >conftest.
$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12272 cat confdefs.h
>>conftest.
$ac_ext
12273 cat >>conftest.
$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 #if defined(CRAY) && ! defined(CRAY2)
12282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12283 $EGREP "webecray" >/dev
/null
2>&1; then
12291 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12292 echo "${ECHO_T}$ac_cv_os_cray" >&6
12293 if test $ac_cv_os_cray = yes; then
12294 for ac_func
in _getb67 GETB67 getb67
; do
12295 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12296 echo "$as_me:$LINENO: checking for $ac_func" >&5
12297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12298 if eval "test \"\${$as_ac_var+set}\" = set"; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 cat >conftest.
$ac_ext <<_ACEOF
12302 #line $LINENO "configure"
12305 cat confdefs.h
>>conftest.
$ac_ext
12306 cat >>conftest.
$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 /* System header to define __stub macros and hopefully few prototypes,
12309 which can conflict with char $ac_func (); below.
12310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12311 <limits.h> exists even on freestanding compilers. */
12313 # include <limits.h>
12315 # include <assert.h>
12317 /* Override any gcc2 internal prototype to avoid an error. */
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12325 /* The GNU C library defines this for functions which it implements
12326 to always fail with ENOSYS. Some functions are actually named
12327 something starting with __ and the normal name is an alias. */
12328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12331 char (*f) () = $ac_func;
12340 return f != $ac_func;
12345 rm -f conftest.
$ac_objext conftest
$ac_exeext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347 (eval $ac_link) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try
='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 eval "$as_ac_var=yes"
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.
$ac_ext >&5
12362 eval "$as_ac_var=no"
12364 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12368 if test `eval echo '${'$as_ac_var'}'` = yes; then
12370 cat >>confdefs.h
<<_ACEOF
12371 #define CRAY_STACKSEG_END $ac_func
12380 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12381 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12382 if test "${ac_cv_c_stack_direction+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 if test "$cross_compiling" = yes; then
12386 ac_cv_c_stack_direction
=0
12388 cat >conftest.
$ac_ext <<_ACEOF
12389 #line $LINENO "configure"
12392 cat confdefs.h
>>conftest.
$ac_ext
12393 cat >>conftest.
$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 find_stack_direction ()
12398 static char *addr = 0;
12403 return find_stack_direction ();
12406 return (&dummy > addr) ? 1 : -1;
12412 exit (find_stack_direction () < 0);
12415 rm -f conftest
$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 ac_cv_c_stack_direction
=1
12428 echo "$as_me: program exited with status $ac_status" >&5
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.
$ac_ext >&5
12432 ( exit $ac_status )
12433 ac_cv_c_stack_direction
=-1
12435 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12438 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12439 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12441 cat >>confdefs.h
<<_ACEOF
12442 #define STACK_DIRECTION $ac_cv_c_stack_direction
12449 # fmod, logb, and frexp are found in -lm on most systems.
12450 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12452 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12453 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12454 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 ac_check_lib_save_LIBS
=$LIBS
12459 cat >conftest.
$ac_ext <<_ACEOF
12460 #line $LINENO "configure"
12463 cat confdefs.h
>>conftest.
$ac_ext
12464 cat >>conftest.
$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 /* Override any gcc2 internal prototype to avoid an error. */
12471 /* We use char because int might match the return type of a gcc2
12472 builtin and then its argument prototype would still apply. */
12482 rm -f conftest.
$ac_objext conftest
$ac_exeext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484 (eval $ac_link) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try
='test -s conftest$ac_exeext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_lib_m_sqrt
=yes
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.
$ac_ext >&5
12499 ac_cv_lib_m_sqrt
=no
12501 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12502 LIBS
=$ac_check_lib_save_LIBS
12504 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12505 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12506 if test $ac_cv_lib_m_sqrt = yes; then
12507 cat >>confdefs.h
<<_ACEOF
12508 #define HAVE_LIBM 1
12516 # Check for mail-locking functions in a "mail" library. Probably this should
12517 # have the same check as for liblockfile below.
12519 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12520 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12521 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 ac_check_lib_save_LIBS
=$LIBS
12525 LIBS
="-lmail $LIBS"
12526 cat >conftest.
$ac_ext <<_ACEOF
12527 #line $LINENO "configure"
12530 cat confdefs.h
>>conftest.
$ac_ext
12531 cat >>conftest.
$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12549 rm -f conftest.
$ac_objext conftest
$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551 (eval $ac_link) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try
='test -s conftest$ac_exeext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_lib_mail_maillock
=yes
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.
$ac_ext >&5
12566 ac_cv_lib_mail_maillock
=no
12568 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12569 LIBS
=$ac_check_lib_save_LIBS
12571 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12572 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12573 if test $ac_cv_lib_mail_maillock = yes; then
12574 cat >>confdefs.h
<<_ACEOF
12575 #define HAVE_LIBMAIL 1
12578 LIBS
="-lmail $LIBS"
12583 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12584 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12585 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 ac_check_lib_save_LIBS
=$LIBS
12589 LIBS
="-llockfile $LIBS"
12590 cat >conftest.
$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12594 cat confdefs.h
>>conftest.
$ac_ext
12595 cat >>conftest.
$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 /* Override any gcc2 internal prototype to avoid an error. */
12602 /* We use char because int might match the return type of a gcc2
12603 builtin and then its argument prototype would still apply. */
12613 rm -f conftest.
$ac_objext conftest
$ac_exeext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12615 (eval $ac_link) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try
='test -s 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_lib_lockfile_maillock
=yes
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.
$ac_ext >&5
12630 ac_cv_lib_lockfile_maillock
=no
12632 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12633 LIBS
=$ac_check_lib_save_LIBS
12635 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12636 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12637 if test $ac_cv_lib_lockfile_maillock = yes; then
12638 cat >>confdefs.h
<<_ACEOF
12639 #define HAVE_LIBLOCKFILE 1
12642 LIBS
="-llockfile $LIBS"
12646 # If we have the shared liblockfile, assume we must use it for mail
12647 # locking (e.g. Debian). If we couldn't link against liblockfile
12648 # (no liblockfile.a installed), ensure that we don't need to.
12649 if test "$ac_cv_lib_lockfile_maillock" = no
; then
12650 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12651 set dummy liblockfile.so
; ac_word
=$2
12652 echo "$as_me:$LINENO: checking for $ac_word" >&5
12653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12654 if test "${ac_cv_prog_liblockfile+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 if test -n "$liblockfile"; then
12658 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12661 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12662 for as_dir
in $as_dummy
12665 test -z "$as_dir" && as_dir
=.
12666 for ac_exec_ext
in '' $ac_executable_extensions; do
12667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12668 ac_cv_prog_liblockfile
="yes"
12669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12678 liblockfile
=$ac_cv_prog_liblockfile
12679 if test -n "$liblockfile"; then
12680 echo "$as_me:$LINENO: result: $liblockfile" >&5
12681 echo "${ECHO_T}$liblockfile" >&6
12683 echo "$as_me:$LINENO: result: no" >&5
12684 echo "${ECHO_T}no" >&6
12687 if test $ac_cv_prog_liblockfile = yes; then
12688 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12689 This probably means that movemail could lose mail.
12690 There may be a \`development' package to install containing liblockfile." >&5
12691 echo "$as_me: error: Shared liblockfile found but can't link against it.
12692 This probably means that movemail could lose mail.
12693 There may be a \`development' package to install containing liblockfile." >&2;}
12694 { (exit 1); exit 1; }; }
12699 for ac_func
in touchlock
12701 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12702 echo "$as_me:$LINENO: checking for $ac_func" >&5
12703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12704 if eval "test \"\${$as_ac_var+set}\" = set"; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 cat >conftest.
$ac_ext <<_ACEOF
12708 #line $LINENO "configure"
12711 cat confdefs.h
>>conftest.
$ac_ext
12712 cat >>conftest.
$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 /* System header to define __stub macros and hopefully few prototypes,
12715 which can conflict with char $ac_func (); below.
12716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12717 <limits.h> exists even on freestanding compilers. */
12719 # include <limits.h>
12721 # include <assert.h>
12723 /* Override any gcc2 internal prototype to avoid an error. */
12728 /* We use char because int might match the return type of a gcc2
12729 builtin and then its argument prototype would still apply. */
12731 /* The GNU C library defines this for functions which it implements
12732 to always fail with ENOSYS. Some functions are actually named
12733 something starting with __ and the normal name is an alias. */
12734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12737 char (*f) () = $ac_func;
12746 return f != $ac_func;
12751 rm -f conftest.
$ac_objext conftest
$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753 (eval $ac_link) 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try
='test -s conftest$ac_exeext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 eval "$as_ac_var=yes"
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.
$ac_ext >&5
12768 eval "$as_ac_var=no"
12770 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12774 if test `eval echo '${'$as_ac_var'}'` = yes; then
12775 cat >>confdefs.h
<<_ACEOF
12776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12783 for ac_header
in maillock.h
12785 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787 echo "$as_me:$LINENO: checking for $ac_header" >&5
12788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12795 # Is the header compilable?
12796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12798 cat >conftest.
$ac_ext <<_ACEOF
12799 #line $LINENO "configure"
12802 cat confdefs.h
>>conftest.
$ac_ext
12803 cat >>conftest.
$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 $ac_includes_default
12806 #include <$ac_header>
12808 rm -f conftest.
$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try
='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_header_compiler
=yes
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.
$ac_ext >&5
12825 ac_header_compiler
=no
12827 rm -f conftest.
$ac_objext conftest.
$ac_ext
12828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6
12831 # Is the header present?
12832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12834 cat >conftest.
$ac_ext <<_ACEOF
12835 #line $LINENO "configure"
12838 cat confdefs.h
>>conftest.
$ac_ext
12839 cat >>conftest.
$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <$ac_header>
12843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12846 grep -v '^ *+' conftest.er1
>conftest.err
12848 cat conftest.err
>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } >/dev
/null
; then
12851 if test -s conftest.err
; then
12852 ac_cpp_err
=$ac_c_preproc_warn_flag
12859 if test -z "$ac_cpp_err"; then
12860 ac_header_preproc
=yes
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.
$ac_ext >&5
12865 ac_header_preproc
=no
12867 rm -f conftest.err conftest.
$ac_ext
12868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12869 echo "${ECHO_T}$ac_header_preproc" >&6
12871 # So? What about this header?
12872 case $ac_header_compiler:$ac_header_preproc in
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880 ## ------------------------------------ ##
12881 ## Report this to bug-autoconf@gnu.org. ##
12882 ## ------------------------------------ ##
12885 sed "s/^/$as_me: WARNING: /" >&2
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12896 ## ------------------------------------ ##
12897 ## Report this to bug-autoconf@gnu.org. ##
12898 ## ------------------------------------ ##
12901 sed "s/^/$as_me: WARNING: /" >&2
12904 echo "$as_me:$LINENO: checking for $ac_header" >&5
12905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 eval "$as_ac_Header=$ac_header_preproc"
12911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12916 cat >>confdefs.h
<<_ACEOF
12917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12992 for ac_func
in gethostname getdomainname dup2 \
12993 rename closedir mkdir
rmdir sysinfo getrusage \
12994 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
12995 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
12996 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12997 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
12998 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12999 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13000 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13002 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13003 echo "$as_me:$LINENO: checking for $ac_func" >&5
13004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13005 if eval "test \"\${$as_ac_var+set}\" = set"; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 cat >conftest.
$ac_ext <<_ACEOF
13009 #line $LINENO "configure"
13012 cat confdefs.h
>>conftest.
$ac_ext
13013 cat >>conftest.
$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 /* System header to define __stub macros and hopefully few prototypes,
13016 which can conflict with char $ac_func (); below.
13017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13018 <limits.h> exists even on freestanding compilers. */
13020 # include <limits.h>
13022 # include <assert.h>
13024 /* Override any gcc2 internal prototype to avoid an error. */
13029 /* We use char because int might match the return type of a gcc2
13030 builtin and then its argument prototype would still apply. */
13032 /* The GNU C library defines this for functions which it implements
13033 to always fail with ENOSYS. Some functions are actually named
13034 something starting with __ and the normal name is an alias. */
13035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13038 char (*f) () = $ac_func;
13047 return f != $ac_func;
13052 rm -f conftest.
$ac_objext conftest
$ac_exeext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13054 (eval $ac_link) 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try
='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 eval "$as_ac_var=yes"
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.
$ac_ext >&5
13069 eval "$as_ac_var=no"
13071 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13075 if test `eval echo '${'$as_ac_var'}'` = yes; then
13076 cat >>confdefs.h
<<_ACEOF
13077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13085 for ac_header
in sys
/un.h
13087 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13089 echo "$as_me:$LINENO: checking for $ac_header" >&5
13090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13097 # Is the header compilable?
13098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13100 cat >conftest.
$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13104 cat confdefs.h
>>conftest.
$ac_ext
13105 cat >>conftest.
$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 $ac_includes_default
13108 #include <$ac_header>
13110 rm -f conftest.
$ac_objext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try
='test -s conftest.$ac_objext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_header_compiler
=yes
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.
$ac_ext >&5
13127 ac_header_compiler
=no
13129 rm -f conftest.
$ac_objext conftest.
$ac_ext
13130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13131 echo "${ECHO_T}$ac_header_compiler" >&6
13133 # Is the header present?
13134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13136 cat >conftest.
$ac_ext <<_ACEOF
13137 #line $LINENO "configure"
13140 cat confdefs.h
>>conftest.
$ac_ext
13141 cat >>conftest.
$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 #include <$ac_header>
13145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13146 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13148 grep -v '^ *+' conftest.er1
>conftest.err
13150 cat conftest.err
>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } >/dev
/null
; then
13153 if test -s conftest.err
; then
13154 ac_cpp_err
=$ac_c_preproc_warn_flag
13161 if test -z "$ac_cpp_err"; then
13162 ac_header_preproc
=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.
$ac_ext >&5
13167 ac_header_preproc
=no
13169 rm -f conftest.err conftest.
$ac_ext
13170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13171 echo "${ECHO_T}$ac_header_preproc" >&6
13173 # So? What about this header?
13174 case $ac_header_compiler:$ac_header_preproc in
13176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13182 ## ------------------------------------ ##
13183 ## Report this to bug-autoconf@gnu.org. ##
13184 ## ------------------------------------ ##
13187 sed "s/^/$as_me: WARNING: /" >&2
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13198 ## ------------------------------------ ##
13199 ## Report this to bug-autoconf@gnu.org. ##
13200 ## ------------------------------------ ##
13203 sed "s/^/$as_me: WARNING: /" >&2
13206 echo "$as_me:$LINENO: checking for $ac_header" >&5
13207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 eval "$as_ac_Header=$ac_header_preproc"
13213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13218 cat >>confdefs.h
<<_ACEOF
13219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13229 for ac_header
in sys
/time.h unistd.h
13231 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13233 echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13241 # Is the header compilable?
13242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13244 cat >conftest.
$ac_ext <<_ACEOF
13245 #line $LINENO "configure"
13248 cat confdefs.h
>>conftest.
$ac_ext
13249 cat >>conftest.
$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 $ac_includes_default
13252 #include <$ac_header>
13254 rm -f conftest.
$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try
='test -s conftest.$ac_objext'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 ac_header_compiler
=yes
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 ac_header_compiler
=no
13273 rm -f conftest.
$ac_objext conftest.
$ac_ext
13274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13275 echo "${ECHO_T}$ac_header_compiler" >&6
13277 # Is the header present?
13278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13280 cat >conftest.
$ac_ext <<_ACEOF
13281 #line $LINENO "configure"
13284 cat confdefs.h
>>conftest.
$ac_ext
13285 cat >>conftest.
$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <$ac_header>
13289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13290 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13292 grep -v '^ *+' conftest.er1
>conftest.err
13294 cat conftest.err
>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev
/null
; then
13297 if test -s conftest.err
; then
13298 ac_cpp_err
=$ac_c_preproc_warn_flag
13305 if test -z "$ac_cpp_err"; then
13306 ac_header_preproc
=yes
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.
$ac_ext >&5
13311 ac_header_preproc
=no
13313 rm -f conftest.err conftest.
$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13315 echo "${ECHO_T}$ac_header_preproc" >&6
13317 # So? What about this header?
13318 case $ac_header_compiler:$ac_header_preproc in
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13326 ## ------------------------------------ ##
13327 ## Report this to bug-autoconf@gnu.org. ##
13328 ## ------------------------------------ ##
13331 sed "s/^/$as_me: WARNING: /" >&2
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13342 ## ------------------------------------ ##
13343 ## Report this to bug-autoconf@gnu.org. ##
13344 ## ------------------------------------ ##
13347 sed "s/^/$as_me: WARNING: /" >&2
13350 echo "$as_me:$LINENO: checking for $ac_header" >&5
13351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 eval "$as_ac_Header=$ac_header_preproc"
13357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13362 cat >>confdefs.h
<<_ACEOF
13363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13371 for ac_func
in alarm
13373 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13374 echo "$as_me:$LINENO: checking for $ac_func" >&5
13375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13376 if eval "test \"\${$as_ac_var+set}\" = set"; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 cat >conftest.
$ac_ext <<_ACEOF
13380 #line $LINENO "configure"
13383 cat confdefs.h
>>conftest.
$ac_ext
13384 cat >>conftest.
$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386 /* System header to define __stub macros and hopefully few prototypes,
13387 which can conflict with char $ac_func (); below.
13388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13389 <limits.h> exists even on freestanding compilers. */
13391 # include <limits.h>
13393 # include <assert.h>
13395 /* Override any gcc2 internal prototype to avoid an error. */
13400 /* We use char because int might match the return type of a gcc2
13401 builtin and then its argument prototype would still apply. */
13403 /* The GNU C library defines this for functions which it implements
13404 to always fail with ENOSYS. Some functions are actually named
13405 something starting with __ and the normal name is an alias. */
13406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13409 char (*f) () = $ac_func;
13418 return f != $ac_func;
13423 rm -f conftest.
$ac_objext conftest
$ac_exeext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try
='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 eval "$as_ac_var=yes"
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.
$ac_ext >&5
13440 eval "$as_ac_var=no"
13442 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13446 if test `eval echo '${'$as_ac_var'}'` = yes; then
13447 cat >>confdefs.h
<<_ACEOF
13448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13454 echo "$as_me:$LINENO: checking for working mktime" >&5
13455 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13456 if test "${ac_cv_func_working_mktime+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 if test "$cross_compiling" = yes; then
13460 ac_cv_func_working_mktime
=no
13462 cat >conftest.
$ac_ext <<_ACEOF
13463 #line $LINENO "configure"
13466 cat confdefs.h
>>conftest.
$ac_ext
13467 cat >>conftest.
$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 /* Test program from Paul Eggert and Tony Leneis. */
13470 #if TIME_WITH_SYS_TIME
13471 # include <sys/time.h>
13474 # if HAVE_SYS_TIME_H
13475 # include <sys/time.h>
13482 # include <unistd.h>
13486 # define alarm(X) /* empty */
13489 /* Work around redefinition to rpl_putenv by other config tests. */
13492 static time_t time_t_max;
13494 /* Values we'll use to set the TZ environment variable. */
13495 static const char *const tz_strings[] = {
13496 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
13497 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13499 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13501 /* Fail if mktime fails to convert a date in the spring-forward gap.
13502 Based on a problem report from Andreas Jaeger. */
13504 spring_forward_gap ()
13506 /* glibc (up to about 1998-10-07) failed this test. */
13509 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13510 instead of "TZ=America/Vancouver" in order to detect the bug even
13511 on systems that don't support the Olson extension, or don't have the
13512 full zoneinfo tables installed. */
13513 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13522 if (mktime (&tm) == (time_t)-1)
13531 if ((lt = localtime (&now)) && mktime (lt) != now)
13533 now = time_t_max - now;
13534 if ((lt = localtime (&now)) && mktime (lt) != now)
13541 /* Based on code from Ariel Faigon. */
13551 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13561 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13562 now = mktime (&tm);
13563 if (now != (time_t) -1)
13565 struct tm *lt = localtime (&now);
13567 && lt->tm_year == tm.tm_year
13568 && lt->tm_mon == tm.tm_mon
13569 && lt->tm_mday == tm.tm_mday
13570 && lt->tm_hour == tm.tm_hour
13571 && lt->tm_min == tm.tm_min
13572 && lt->tm_sec == tm.tm_sec
13573 && lt->tm_yday == tm.tm_yday
13574 && lt->tm_wday == tm.tm_wday
13575 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13576 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13587 /* This test makes some buggy mktime implementations loop.
13588 Give up after 60 seconds; a mktime slower than that
13589 isn't worth using anyway. */
13592 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13595 delta = time_t_max / 997; /* a suitable prime number */
13596 for (i = 0; i < N_STRINGS; i++)
13599 putenv (tz_strings[i]);
13601 for (t = 0; t <= time_t_max - delta; t += delta)
13603 mktime_test ((time_t) 60 * 60);
13604 mktime_test ((time_t) 60 * 60 * 24);
13606 for (j = 1; 0 < j; j *= 2)
13608 bigtime_test (j - 1);
13611 spring_forward_gap ();
13615 rm -f conftest
$ac_exeext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13617 (eval $ac_link) 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_func_working_mktime
=yes
13628 echo "$as_me: program exited with status $ac_status" >&5
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.
$ac_ext >&5
13632 ( exit $ac_status )
13633 ac_cv_func_working_mktime
=no
13635 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13639 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13640 if test $ac_cv_func_working_mktime = no
; then
13641 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
13644 if test "$ac_cv_func_working_mktime" = no
; then
13646 cat >>confdefs.h
<<\_ACEOF
13647 #define BROKEN_MKTIME 1
13652 ac_have_func
=no
# yes means we've found a way to get the load average.
13654 # Make sure getloadavg.c is where it belongs, at configure-time.
13655 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13656 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13657 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13658 { (exit 1); exit 1; }; }
13662 # Check for getloadavg, but be sure not to touch the cache variable.
13663 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13664 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13665 if test "${ac_cv_func_getloadavg+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 cat >conftest.
$ac_ext <<_ACEOF
13669 #line $LINENO "configure"
13672 cat confdefs.h
>>conftest.
$ac_ext
13673 cat >>conftest.
$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 /* System header to define __stub macros and hopefully few prototypes,
13676 which can conflict with char getloadavg (); below.
13677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13678 <limits.h> exists even on freestanding compilers. */
13680 # include <limits.h>
13682 # include <assert.h>
13684 /* Override any gcc2 internal prototype to avoid an error. */
13689 /* We use char because int might match the return type of a gcc2
13690 builtin and then its argument prototype would still apply. */
13691 char getloadavg ();
13692 /* The GNU C library defines this for functions which it implements
13693 to always fail with ENOSYS. Some functions are actually named
13694 something starting with __ and the normal name is an alias. */
13695 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
13698 char (*f) () = getloadavg;
13707 return f != getloadavg;
13712 rm -f conftest.
$ac_objext conftest
$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try
='test -s conftest$ac_exeext'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_func_getloadavg
=yes
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.
$ac_ext >&5
13729 ac_cv_func_getloadavg
=no
13731 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13733 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
13734 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
13735 if test $ac_cv_func_getloadavg = yes; then
13740 ) && ac_have_func
=yes
13742 # On HPUX9, an unprivileged user can get load averages through this function.
13744 for ac_func
in pstat_getdynamic
13746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13747 echo "$as_me:$LINENO: checking for $ac_func" >&5
13748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13749 if eval "test \"\${$as_ac_var+set}\" = set"; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.
$ac_ext <<_ACEOF
13753 #line $LINENO "configure"
13756 cat confdefs.h
>>conftest.
$ac_ext
13757 cat >>conftest.
$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 /* System header to define __stub macros and hopefully few prototypes,
13760 which can conflict with char $ac_func (); below.
13761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13762 <limits.h> exists even on freestanding compilers. */
13764 # include <limits.h>
13766 # include <assert.h>
13768 /* Override any gcc2 internal prototype to avoid an error. */
13773 /* We use char because int might match the return type of a gcc2
13774 builtin and then its argument prototype would still apply. */
13776 /* The GNU C library defines this for functions which it implements
13777 to always fail with ENOSYS. Some functions are actually named
13778 something starting with __ and the normal name is an alias. */
13779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13782 char (*f) () = $ac_func;
13791 return f != $ac_func;
13796 rm -f conftest.
$ac_objext conftest
$ac_exeext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13798 (eval $ac_link) 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try
='test -s conftest$ac_exeext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 eval "$as_ac_var=yes"
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.
$ac_ext >&5
13813 eval "$as_ac_var=no"
13815 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13819 if test `eval echo '${'$as_ac_var'}'` = yes; then
13820 cat >>confdefs.h
<<_ACEOF
13821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13828 # Solaris has libkstat which does not require root.
13830 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
13831 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
13832 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 ac_check_lib_save_LIBS
=$LIBS
13836 LIBS
="-lkstat $LIBS"
13837 cat >conftest.
$ac_ext <<_ACEOF
13838 #line $LINENO "configure"
13841 cat confdefs.h
>>conftest.
$ac_ext
13842 cat >>conftest.
$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13845 /* Override any gcc2 internal prototype to avoid an error. */
13849 /* We use char because int might match the return type of a gcc2
13850 builtin and then its argument prototype would still apply. */
13851 char kstat_open ();
13860 rm -f conftest.
$ac_objext conftest
$ac_exeext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862 (eval $ac_link) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try
='test -s conftest$ac_exeext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_lib_kstat_kstat_open
=yes
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.
$ac_ext >&5
13877 ac_cv_lib_kstat_kstat_open
=no
13879 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13880 LIBS
=$ac_check_lib_save_LIBS
13882 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
13883 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
13884 if test $ac_cv_lib_kstat_kstat_open = yes; then
13885 cat >>confdefs.h
<<_ACEOF
13886 #define HAVE_LIBKSTAT 1
13889 LIBS
="-lkstat $LIBS"
13893 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
13895 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13896 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13897 # to get the right answer into the cache.
13898 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13899 if test $ac_have_func = no
; then
13900 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
13901 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
13902 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 ac_check_lib_save_LIBS
=$LIBS
13907 cat >conftest.
$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13911 cat confdefs.h
>>conftest.
$ac_ext
13912 cat >>conftest.
$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13915 /* Override any gcc2 internal prototype to avoid an error. */
13919 /* We use char because int might match the return type of a gcc2
13920 builtin and then its argument prototype would still apply. */
13930 rm -f conftest.
$ac_objext conftest
$ac_exeext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try
='test -s conftest$ac_exeext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 ac_cv_lib_elf_elf_begin
=yes
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.
$ac_ext >&5
13947 ac_cv_lib_elf_elf_begin
=no
13949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13950 LIBS
=$ac_check_lib_save_LIBS
13952 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
13953 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
13954 if test $ac_cv_lib_elf_elf_begin = yes; then
13959 if test $ac_have_func = no
; then
13960 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
13961 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
13962 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13965 ac_check_lib_save_LIBS
=$LIBS
13967 cat >conftest.
$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13971 cat confdefs.h
>>conftest.
$ac_ext
13972 cat >>conftest.
$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13975 /* Override any gcc2 internal prototype to avoid an error. */
13979 /* We use char because int might match the return type of a gcc2
13980 builtin and then its argument prototype would still apply. */
13990 rm -f conftest.
$ac_objext conftest
$ac_exeext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13992 (eval $ac_link) 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try
='test -s conftest$ac_exeext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002 ac_cv_lib_kvm_kvm_open
=yes
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.
$ac_ext >&5
14007 ac_cv_lib_kvm_kvm_open
=no
14009 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14010 LIBS
=$ac_check_lib_save_LIBS
14012 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14013 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14014 if test $ac_cv_lib_kvm_kvm_open = yes; then
14018 # Check for the 4.4BSD definition of getloadavg.
14019 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14020 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14021 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 ac_check_lib_save_LIBS
=$LIBS
14025 LIBS
="-lutil $LIBS"
14026 cat >conftest.
$ac_ext <<_ACEOF
14027 #line $LINENO "configure"
14030 cat confdefs.h
>>conftest.
$ac_ext
14031 cat >>conftest.
$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14034 /* Override any gcc2 internal prototype to avoid an error. */
14038 /* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14040 char getloadavg ();
14049 rm -f conftest.
$ac_objext conftest
$ac_exeext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14051 (eval $ac_link) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try
='test -s conftest$ac_exeext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_lib_util_getloadavg
=yes
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.
$ac_ext >&5
14066 ac_cv_lib_util_getloadavg
=no
14068 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14069 LIBS
=$ac_check_lib_save_LIBS
14071 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14072 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14073 if test $ac_cv_lib_util_getloadavg = yes; then
14074 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14079 if test $ac_have_func = no
; then
14080 # There is a commonly available library for RS/6000 AIX.
14081 # Since it is not a standard part of AIX, it might be installed locally.
14082 ac_getloadavg_LIBS
=$LIBS
14083 LIBS
="-L/usr/local/lib $LIBS"
14084 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14085 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14086 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 ac_check_lib_save_LIBS
=$LIBS
14090 LIBS
="-lgetloadavg $LIBS"
14091 cat >conftest.
$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14095 cat confdefs.h
>>conftest.
$ac_ext
14096 cat >>conftest.
$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14099 /* Override any gcc2 internal prototype to avoid an error. */
14103 /* We use char because int might match the return type of a gcc2
14104 builtin and then its argument prototype would still apply. */
14105 char getloadavg ();
14114 rm -f conftest.
$ac_objext conftest
$ac_exeext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116 (eval $ac_link) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try
='test -s conftest$ac_exeext'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_cv_lib_getloadavg_getloadavg
=yes
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.
$ac_ext >&5
14131 ac_cv_lib_getloadavg_getloadavg
=no
14133 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14134 LIBS
=$ac_check_lib_save_LIBS
14136 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14137 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14138 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14139 LIBS
="-lgetloadavg $LIBS"
14141 LIBS
=$ac_getloadavg_LIBS
14146 # Make sure it is really in the library, if we think we found it,
14147 # otherwise set up the replacement function.
14149 for ac_func
in getloadavg
14151 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14152 echo "$as_me:$LINENO: checking for $ac_func" >&5
14153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14154 if eval "test \"\${$as_ac_var+set}\" = set"; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 cat >conftest.
$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14161 cat confdefs.h
>>conftest.
$ac_ext
14162 cat >>conftest.
$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 /* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char $ac_func (); below.
14166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14167 <limits.h> exists even on freestanding compilers. */
14169 # include <limits.h>
14171 # include <assert.h>
14173 /* Override any gcc2 internal prototype to avoid an error. */
14178 /* We use char because int might match the return type of a gcc2
14179 builtin and then its argument prototype would still apply. */
14181 /* The GNU C library defines this for functions which it implements
14182 to always fail with ENOSYS. Some functions are actually named
14183 something starting with __ and the normal name is an alias. */
14184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14187 char (*f) () = $ac_func;
14196 return f != $ac_func;
14201 rm -f conftest.
$ac_objext conftest
$ac_exeext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try
='test -s conftest$ac_exeext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 eval "$as_ac_var=yes"
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.
$ac_ext >&5
14218 eval "$as_ac_var=no"
14220 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14224 if test `eval echo '${'$as_ac_var'}'` = yes; then
14225 cat >>confdefs.h
<<_ACEOF
14226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14230 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
14232 cat >>confdefs.h
<<\_ACEOF
14233 #define C_GETLOADAVG 1
14236 # Figure out what our getloadavg.c needs.
14238 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14239 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14240 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14241 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14245 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14247 # Is the header compilable?
14248 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14249 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14250 cat >conftest.
$ac_ext <<_ACEOF
14251 #line $LINENO "configure"
14254 cat confdefs.h
>>conftest.
$ac_ext
14255 cat >>conftest.
$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 $ac_includes_default
14258 #include <sys/dg_sys_info.h>
14260 rm -f conftest.
$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262 (eval $ac_compile) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try
='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_header_compiler
=yes
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.
$ac_ext >&5
14277 ac_header_compiler
=no
14279 rm -f conftest.
$ac_objext conftest.
$ac_ext
14280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281 echo "${ECHO_T}$ac_header_compiler" >&6
14283 # Is the header present?
14284 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14285 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14286 cat >conftest.
$ac_ext <<_ACEOF
14287 #line $LINENO "configure"
14290 cat confdefs.h
>>conftest.
$ac_ext
14291 cat >>conftest.
$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 #include <sys/dg_sys_info.h>
14295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14296 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14298 grep -v '^ *+' conftest.er1
>conftest.err
14300 cat conftest.err
>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } >/dev
/null
; then
14303 if test -s conftest.err
; then
14304 ac_cpp_err
=$ac_c_preproc_warn_flag
14311 if test -z "$ac_cpp_err"; then
14312 ac_header_preproc
=yes
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.
$ac_ext >&5
14317 ac_header_preproc
=no
14319 rm -f conftest.err conftest.
$ac_ext
14320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14321 echo "${ECHO_T}$ac_header_preproc" >&6
14323 # So? What about this header?
14324 case $ac_header_compiler:$ac_header_preproc in
14326 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14327 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14332 ## ------------------------------------ ##
14333 ## Report this to bug-autoconf@gnu.org. ##
14334 ## ------------------------------------ ##
14337 sed "s/^/$as_me: WARNING: /" >&2
14340 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14341 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14343 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14345 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14348 ## ------------------------------------ ##
14349 ## Report this to bug-autoconf@gnu.org. ##
14350 ## ------------------------------------ ##
14353 sed "s/^/$as_me: WARNING: /" >&2
14356 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14357 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14358 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14363 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14364 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14367 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14370 cat >>confdefs.h
<<\_ACEOF
14375 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14376 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14377 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 ac_check_lib_save_LIBS
=$LIBS
14382 cat >conftest.
$ac_ext <<_ACEOF
14383 #line $LINENO "configure"
14386 cat confdefs.h
>>conftest.
$ac_ext
14387 cat >>conftest.
$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14390 /* Override any gcc2 internal prototype to avoid an error. */
14394 /* We use char because int might match the return type of a gcc2
14395 builtin and then its argument prototype would still apply. */
14396 char dg_sys_info ();
14405 rm -f conftest.
$ac_objext conftest
$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407 (eval $ac_link) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try
='test -s conftest$ac_exeext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_cv_lib_dgc_dg_sys_info
=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.
$ac_ext >&5
14422 ac_cv_lib_dgc_dg_sys_info
=no
14424 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14425 LIBS
=$ac_check_lib_save_LIBS
14427 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14428 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14429 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14430 cat >>confdefs.h
<<_ACEOF
14431 #define HAVE_LIBDGC 1
14442 if test "${ac_cv_header_locale_h+set}" = set; then
14443 echo "$as_me:$LINENO: checking for locale.h" >&5
14444 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14445 if test "${ac_cv_header_locale_h+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14449 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14451 # Is the header compilable?
14452 echo "$as_me:$LINENO: checking locale.h usability" >&5
14453 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14454 cat >conftest.
$ac_ext <<_ACEOF
14455 #line $LINENO "configure"
14458 cat confdefs.h
>>conftest.
$ac_ext
14459 cat >>conftest.
$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14462 #include <locale.h>
14464 rm -f conftest.
$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try
='test -s conftest.$ac_objext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_header_compiler
=yes
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.
$ac_ext >&5
14481 ac_header_compiler
=no
14483 rm -f conftest.
$ac_objext conftest.
$ac_ext
14484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485 echo "${ECHO_T}$ac_header_compiler" >&6
14487 # Is the header present?
14488 echo "$as_me:$LINENO: checking locale.h presence" >&5
14489 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14494 cat confdefs.h
>>conftest.
$ac_ext
14495 cat >>conftest.
$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <locale.h>
14499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14500 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14502 grep -v '^ *+' conftest.er1
>conftest.err
14504 cat conftest.err
>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } >/dev
/null
; then
14507 if test -s conftest.err
; then
14508 ac_cpp_err
=$ac_c_preproc_warn_flag
14515 if test -z "$ac_cpp_err"; then
14516 ac_header_preproc
=yes
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.
$ac_ext >&5
14521 ac_header_preproc
=no
14523 rm -f conftest.err conftest.
$ac_ext
14524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14525 echo "${ECHO_T}$ac_header_preproc" >&6
14527 # So? What about this header?
14528 case $ac_header_compiler:$ac_header_preproc in
14530 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14531 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14533 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14536 ## ------------------------------------ ##
14537 ## Report this to bug-autoconf@gnu.org. ##
14538 ## ------------------------------------ ##
14541 sed "s/^/$as_me: WARNING: /" >&2
14544 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
14545 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
14547 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14549 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14552 ## ------------------------------------ ##
14553 ## Report this to bug-autoconf@gnu.org. ##
14554 ## ------------------------------------ ##
14557 sed "s/^/$as_me: WARNING: /" >&2
14560 echo "$as_me:$LINENO: checking for locale.h" >&5
14561 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14562 if test "${ac_cv_header_locale_h+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 ac_cv_header_locale_h
=$ac_header_preproc
14567 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14568 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14574 for ac_func
in setlocale
14576 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14577 echo "$as_me:$LINENO: checking for $ac_func" >&5
14578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14579 if eval "test \"\${$as_ac_var+set}\" = set"; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 cat >conftest.
$ac_ext <<_ACEOF
14583 #line $LINENO "configure"
14586 cat confdefs.h
>>conftest.
$ac_ext
14587 cat >>conftest.
$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 /* System header to define __stub macros and hopefully few prototypes,
14590 which can conflict with char $ac_func (); below.
14591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14592 <limits.h> exists even on freestanding compilers. */
14594 # include <limits.h>
14596 # include <assert.h>
14598 /* Override any gcc2 internal prototype to avoid an error. */
14603 /* We use char because int might match the return type of a gcc2
14604 builtin and then its argument prototype would still apply. */
14606 /* The GNU C library defines this for functions which it implements
14607 to always fail with ENOSYS. Some functions are actually named
14608 something starting with __ and the normal name is an alias. */
14609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14612 char (*f) () = $ac_func;
14621 return f != $ac_func;
14626 rm -f conftest.
$ac_objext conftest
$ac_exeext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14628 (eval $ac_link) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try
='test -s conftest$ac_exeext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 eval "$as_ac_var=yes"
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.
$ac_ext >&5
14643 eval "$as_ac_var=no"
14645 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14649 if test `eval echo '${'$as_ac_var'}'` = yes; then
14650 cat >>confdefs.h
<<_ACEOF
14651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14658 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14659 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14660 # Irix 4.0.5F has the header but not the library.
14661 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
14664 cat >>confdefs.h
<<\_ACEOF
14670 if test $ac_have_func = no
; then
14671 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14672 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14673 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14674 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14678 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14680 # Is the header compilable?
14681 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
14682 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
14683 cat >conftest.
$ac_ext <<_ACEOF
14684 #line $LINENO "configure"
14687 cat confdefs.h
>>conftest.
$ac_ext
14688 cat >>conftest.
$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 $ac_includes_default
14691 #include <inq_stats/cpustats.h>
14693 rm -f conftest.
$ac_objext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695 (eval $ac_compile) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try
='test -s conftest.$ac_objext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_header_compiler
=yes
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.
$ac_ext >&5
14710 ac_header_compiler
=no
14712 rm -f conftest.
$ac_objext conftest.
$ac_ext
14713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6
14716 # Is the header present?
14717 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
14718 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
14719 cat >conftest.
$ac_ext <<_ACEOF
14720 #line $LINENO "configure"
14723 cat confdefs.h
>>conftest.
$ac_ext
14724 cat >>conftest.
$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include <inq_stats/cpustats.h>
14728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14731 grep -v '^ *+' conftest.er1
>conftest.err
14733 cat conftest.err
>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev
/null
; then
14736 if test -s conftest.err
; then
14737 ac_cpp_err
=$ac_c_preproc_warn_flag
14744 if test -z "$ac_cpp_err"; then
14745 ac_header_preproc
=yes
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.
$ac_ext >&5
14750 ac_header_preproc
=no
14752 rm -f conftest.err conftest.
$ac_ext
14753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14754 echo "${ECHO_T}$ac_header_preproc" >&6
14756 # So? What about this header?
14757 case $ac_header_compiler:$ac_header_preproc in
14759 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14760 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14762 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14765 ## ------------------------------------ ##
14766 ## Report this to bug-autoconf@gnu.org. ##
14767 ## ------------------------------------ ##
14770 sed "s/^/$as_me: WARNING: /" >&2
14773 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
14774 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
14776 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14778 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14781 ## ------------------------------------ ##
14782 ## Report this to bug-autoconf@gnu.org. ##
14783 ## ------------------------------------ ##
14786 sed "s/^/$as_me: WARNING: /" >&2
14789 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14790 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14791 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
14796 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14800 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
14803 cat >>confdefs.h
<<\_ACEOF
14808 cat >>confdefs.h
<<\_ACEOF
14817 if test $ac_have_func = no
; then
14818 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14819 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
14820 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
14821 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
14825 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
14827 # Is the header compilable?
14828 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
14829 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
14830 cat >conftest.
$ac_ext <<_ACEOF
14831 #line $LINENO "configure"
14834 cat confdefs.h
>>conftest.
$ac_ext
14835 cat >>conftest.
$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 $ac_includes_default
14838 #include <sys/cpustats.h>
14840 rm -f conftest.
$ac_objext
14841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14842 (eval $ac_compile) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
14846 { ac_try
='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_header_compiler
=yes
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.
$ac_ext >&5
14857 ac_header_compiler
=no
14859 rm -f conftest.
$ac_objext conftest.
$ac_ext
14860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14861 echo "${ECHO_T}$ac_header_compiler" >&6
14863 # Is the header present?
14864 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
14865 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
14866 cat >conftest.
$ac_ext <<_ACEOF
14867 #line $LINENO "configure"
14870 cat confdefs.h
>>conftest.
$ac_ext
14871 cat >>conftest.
$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <sys/cpustats.h>
14875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14876 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14878 grep -v '^ *+' conftest.er1
>conftest.err
14880 cat conftest.err
>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } >/dev
/null
; then
14883 if test -s conftest.err
; then
14884 ac_cpp_err
=$ac_c_preproc_warn_flag
14891 if test -z "$ac_cpp_err"; then
14892 ac_header_preproc
=yes
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.
$ac_ext >&5
14897 ac_header_preproc
=no
14899 rm -f conftest.err conftest.
$ac_ext
14900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14901 echo "${ECHO_T}$ac_header_preproc" >&6
14903 # So? What about this header?
14904 case $ac_header_compiler:$ac_header_preproc in
14906 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14907 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
14909 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
14912 ## ------------------------------------ ##
14913 ## Report this to bug-autoconf@gnu.org. ##
14914 ## ------------------------------------ ##
14917 sed "s/^/$as_me: WARNING: /" >&2
14920 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
14921 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
14923 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
14928 ## ------------------------------------ ##
14929 ## Report this to bug-autoconf@gnu.org. ##
14930 ## ------------------------------------ ##
14933 sed "s/^/$as_me: WARNING: /" >&2
14936 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
14937 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
14938 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
14943 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
14944 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
14947 if test $ac_cv_header_sys_cpustats_h = yes; then
14948 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
14957 if test $ac_have_func = no
; then
14959 for ac_header
in mach
/mach.h
14961 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14963 echo "$as_me:$LINENO: checking for $ac_header" >&5
14964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14971 # Is the header compilable?
14972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14974 cat >conftest.
$ac_ext <<_ACEOF
14975 #line $LINENO "configure"
14978 cat confdefs.h
>>conftest.
$ac_ext
14979 cat >>conftest.
$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 $ac_includes_default
14982 #include <$ac_header>
14984 rm -f conftest.
$ac_objext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14986 (eval $ac_compile) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try
='test -s conftest.$ac_objext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_header_compiler
=yes
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.
$ac_ext >&5
15001 ac_header_compiler
=no
15003 rm -f conftest.
$ac_objext conftest.
$ac_ext
15004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6
15007 # Is the header present?
15008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15010 cat >conftest.
$ac_ext <<_ACEOF
15011 #line $LINENO "configure"
15014 cat confdefs.h
>>conftest.
$ac_ext
15015 cat >>conftest.
$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 #include <$ac_header>
15019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15020 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15022 grep -v '^ *+' conftest.er1
>conftest.err
15024 cat conftest.err
>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } >/dev
/null
; then
15027 if test -s conftest.err
; then
15028 ac_cpp_err
=$ac_c_preproc_warn_flag
15035 if test -z "$ac_cpp_err"; then
15036 ac_header_preproc
=yes
15038 echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.
$ac_ext >&5
15041 ac_header_preproc
=no
15043 rm -f conftest.err conftest.
$ac_ext
15044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15045 echo "${ECHO_T}$ac_header_preproc" >&6
15047 # So? What about this header?
15048 case $ac_header_compiler:$ac_header_preproc in
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15056 ## ------------------------------------ ##
15057 ## Report this to bug-autoconf@gnu.org. ##
15058 ## ------------------------------------ ##
15061 sed "s/^/$as_me: WARNING: /" >&2
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15072 ## ------------------------------------ ##
15073 ## Report this to bug-autoconf@gnu.org. ##
15074 ## ------------------------------------ ##
15077 sed "s/^/$as_me: WARNING: /" >&2
15080 echo "$as_me:$LINENO: checking for $ac_header" >&5
15081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 eval "$as_ac_Header=$ac_header_preproc"
15087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092 cat >>confdefs.h
<<_ACEOF
15093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15103 for ac_header
in nlist.h
15105 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15107 echo "$as_me:$LINENO: checking for $ac_header" >&5
15108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15115 # Is the header compilable?
15116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15118 cat >conftest.
$ac_ext <<_ACEOF
15119 #line $LINENO "configure"
15122 cat confdefs.h
>>conftest.
$ac_ext
15123 cat >>conftest.
$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 $ac_includes_default
15126 #include <$ac_header>
15128 rm -f conftest.
$ac_objext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try
='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 ac_header_compiler
=yes
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.
$ac_ext >&5
15145 ac_header_compiler
=no
15147 rm -f conftest.
$ac_objext conftest.
$ac_ext
15148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149 echo "${ECHO_T}$ac_header_compiler" >&6
15151 # Is the header present?
15152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15154 cat >conftest.
$ac_ext <<_ACEOF
15155 #line $LINENO "configure"
15158 cat confdefs.h
>>conftest.
$ac_ext
15159 cat >>conftest.
$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 #include <$ac_header>
15163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15166 grep -v '^ *+' conftest.er1
>conftest.err
15168 cat conftest.err
>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } >/dev
/null
; then
15171 if test -s conftest.err
; then
15172 ac_cpp_err
=$ac_c_preproc_warn_flag
15179 if test -z "$ac_cpp_err"; then
15180 ac_header_preproc
=yes
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.
$ac_ext >&5
15185 ac_header_preproc
=no
15187 rm -f conftest.err conftest.
$ac_ext
15188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15189 echo "${ECHO_T}$ac_header_preproc" >&6
15191 # So? What about this header?
15192 case $ac_header_compiler:$ac_header_preproc in
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15200 ## ------------------------------------ ##
15201 ## Report this to bug-autoconf@gnu.org. ##
15202 ## ------------------------------------ ##
15205 sed "s/^/$as_me: WARNING: /" >&2
15208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15216 ## ------------------------------------ ##
15217 ## Report this to bug-autoconf@gnu.org. ##
15218 ## ------------------------------------ ##
15221 sed "s/^/$as_me: WARNING: /" >&2
15224 echo "$as_me:$LINENO: checking for $ac_header" >&5
15225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 eval "$as_ac_Header=$ac_header_preproc"
15231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15236 cat >>confdefs.h
<<_ACEOF
15237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15239 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15240 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15241 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 cat >conftest.
$ac_ext <<_ACEOF
15245 #line $LINENO "configure"
15248 cat confdefs.h
>>conftest.
$ac_ext
15249 cat >>conftest.
$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15256 static struct nlist ac_aggr;
15257 if (ac_aggr.n_un.n_name)
15263 rm -f conftest.
$ac_objext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265 (eval $ac_compile) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try
='test -s conftest.$ac_objext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_cv_member_struct_nlist_n_un_n_name
=yes
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.
$ac_ext >&5
15280 cat >conftest.
$ac_ext <<_ACEOF
15281 #line $LINENO "configure"
15284 cat confdefs.h
>>conftest.
$ac_ext
15285 cat >>conftest.
$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15292 static struct nlist ac_aggr;
15293 if (sizeof ac_aggr.n_un.n_name)
15299 rm -f conftest.
$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try
='test -s conftest.$ac_objext'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_cv_member_struct_nlist_n_un_n_name
=yes
15313 echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.
$ac_ext >&5
15316 ac_cv_member_struct_nlist_n_un_n_name
=no
15318 rm -f conftest.
$ac_objext conftest.
$ac_ext
15320 rm -f conftest.
$ac_objext conftest.
$ac_ext
15322 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15323 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15324 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15326 cat >>confdefs.h
<<_ACEOF
15327 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15331 cat >>confdefs.h
<<\_ACEOF
15332 #define NLIST_NAME_UNION 1
15346 # Some definitions of getloadavg require that the program be installed setgid.
15347 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15348 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15349 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 cat >conftest.
$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15356 cat confdefs.h
>>conftest.
$ac_ext
15357 cat >>conftest.
$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15360 #ifdef LDAV_PRIVILEGED
15361 Yowza Am I SETGID yet
15364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15365 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
15366 ac_cv_func_getloadavg_setgid
=yes
15368 ac_cv_func_getloadavg_setgid
=no
15373 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15374 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15375 if test $ac_cv_func_getloadavg_setgid = yes; then
15378 cat >>confdefs.h
<<\_ACEOF
15379 #define GETLOADAVG_PRIVILEGED 1
15386 if test $ac_cv_func_getloadavg_setgid = yes; then
15387 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15388 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15389 if test "${ac_cv_group_kmem+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15393 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
15394 # If we got an error (system does not support symlinks), try without -L.
15395 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
15396 ac_cv_group_kmem
=`echo $ac_ls_output \
15397 | sed -ne 's/[ ][ ]*/ /g;
15398 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15402 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15403 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15404 KMEM_GROUP
=$ac_cv_group_kmem
15406 if test "x$ac_save_LIBS" = x
; then
15407 GETLOADAVG_LIBS
=$LIBS
15409 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15415 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15416 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15417 if test "${ac_cv_sys_largefile_source+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 ac_cv_sys_largefile_source
=no
15422 cat >conftest.
$ac_ext <<_ACEOF
15423 #line $LINENO "configure"
15426 cat confdefs.h
>>conftest.
$ac_ext
15427 cat >>conftest.
$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15438 rm -f conftest.
$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try
='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.
$ac_ext >&5
15456 rm -f conftest.
$ac_objext conftest.
$ac_ext
15457 cat >conftest.
$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15461 cat confdefs.h
>>conftest.
$ac_ext
15462 cat >>conftest.
$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #define _LARGEFILE_SOURCE 1
15474 rm -f conftest.
$ac_objext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15476 (eval $ac_compile) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try
='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_cv_sys_largefile_source
=1; break
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.
$ac_ext >&5
15492 rm -f conftest.
$ac_objext conftest.
$ac_ext
15496 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15497 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15498 if test "$ac_cv_sys_largefile_source" != no
; then
15500 cat >>confdefs.h
<<_ACEOF
15501 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15507 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15508 # in glibc 2.1.3, but that breaks too many other things.
15509 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15510 echo "$as_me:$LINENO: checking for fseeko" >&5
15511 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15512 if test "${ac_cv_func_fseeko+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 cat >conftest.
$ac_ext <<_ACEOF
15516 #line $LINENO "configure"
15519 cat confdefs.h
>>conftest.
$ac_ext
15520 cat >>conftest.
$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15526 return fseeko && fseeko (stdin, 0, 0);
15531 rm -f conftest.
$ac_objext conftest
$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try
='test -s conftest$ac_exeext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_cv_func_fseeko
=yes
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.
$ac_ext >&5
15548 ac_cv_func_fseeko
=no
15550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15552 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15553 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15554 if test $ac_cv_func_fseeko = yes; then
15556 cat >>confdefs.h
<<\_ACEOF
15557 #define HAVE_FSEEKO 1
15563 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15564 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
15565 if test "${ac_cv_func_getpgrp_void+set}" = set; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 # Use it with a single arg.
15569 cat >conftest.
$ac_ext <<_ACEOF
15570 #line $LINENO "configure"
15573 cat confdefs.h
>>conftest.
$ac_ext
15574 cat >>conftest.
$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 $ac_includes_default
15585 rm -f conftest.
$ac_objext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try
='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_func_getpgrp_void
=no
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.
$ac_ext >&5
15602 ac_cv_func_getpgrp_void
=yes
15604 rm -f conftest.
$ac_objext conftest.
$ac_ext
15607 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15608 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
15609 if test $ac_cv_func_getpgrp_void = yes; then
15611 cat >>confdefs.h
<<\_ACEOF
15612 #define GETPGRP_VOID 1
15619 for ac_func
in strftime
15621 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15622 echo "$as_me:$LINENO: checking for $ac_func" >&5
15623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15624 if eval "test \"\${$as_ac_var+set}\" = set"; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 cat >conftest.
$ac_ext <<_ACEOF
15628 #line $LINENO "configure"
15631 cat confdefs.h
>>conftest.
$ac_ext
15632 cat >>conftest.
$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func (); below.
15636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15637 <limits.h> exists even on freestanding compilers. */
15639 # include <limits.h>
15641 # include <assert.h>
15643 /* Override any gcc2 internal prototype to avoid an error. */
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15651 /* The GNU C library defines this for functions which it implements
15652 to always fail with ENOSYS. Some functions are actually named
15653 something starting with __ and the normal name is an alias. */
15654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15657 char (*f) () = $ac_func;
15666 return f != $ac_func;
15671 rm -f conftest.
$ac_objext conftest
$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try
='test -s conftest$ac_exeext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 eval "$as_ac_var=yes"
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.
$ac_ext >&5
15688 eval "$as_ac_var=no"
15690 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15694 if test `eval echo '${'$as_ac_var'}'` = yes; then
15695 cat >>confdefs.h
<<_ACEOF
15696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15700 # strftime is in -lintl on SCO UNIX.
15701 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15702 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15703 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 ac_check_lib_save_LIBS
=$LIBS
15707 LIBS
="-lintl $LIBS"
15708 cat >conftest.
$ac_ext <<_ACEOF
15709 #line $LINENO "configure"
15712 cat confdefs.h
>>conftest.
$ac_ext
15713 cat >>conftest.
$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15716 /* Override any gcc2 internal prototype to avoid an error. */
15720 /* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15731 rm -f conftest.
$ac_objext conftest
$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try
='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_cv_lib_intl_strftime
=yes
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.
$ac_ext >&5
15748 ac_cv_lib_intl_strftime
=no
15750 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15751 LIBS
=$ac_check_lib_save_LIBS
15753 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15754 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15755 if test $ac_cv_lib_intl_strftime = yes; then
15756 cat >>confdefs.h
<<\_ACEOF
15757 #define HAVE_STRFTIME 1
15760 LIBS
="-lintl $LIBS"
15769 for ac_func
in grantpt
15771 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15772 echo "$as_me:$LINENO: checking for $ac_func" >&5
15773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15774 if eval "test \"\${$as_ac_var+set}\" = set"; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 cat >conftest.
$ac_ext <<_ACEOF
15778 #line $LINENO "configure"
15781 cat confdefs.h
>>conftest.
$ac_ext
15782 cat >>conftest.
$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 /* System header to define __stub macros and hopefully few prototypes,
15785 which can conflict with char $ac_func (); below.
15786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15787 <limits.h> exists even on freestanding compilers. */
15789 # include <limits.h>
15791 # include <assert.h>
15793 /* Override any gcc2 internal prototype to avoid an error. */
15798 /* We use char because int might match the return type of a gcc2
15799 builtin and then its argument prototype would still apply. */
15801 /* The GNU C library defines this for functions which it implements
15802 to always fail with ENOSYS. Some functions are actually named
15803 something starting with __ and the normal name is an alias. */
15804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15807 char (*f) () = $ac_func;
15816 return f != $ac_func;
15821 rm -f conftest.
$ac_objext conftest
$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try
='test -s conftest$ac_exeext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 eval "$as_ac_var=yes"
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.
$ac_ext >&5
15838 eval "$as_ac_var=no"
15840 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15844 if test `eval echo '${'$as_ac_var'}'` = yes; then
15845 cat >>confdefs.h
<<_ACEOF
15846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15853 # PTY-related GNU extensions.
15855 for ac_func
in getpt
15857 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15858 echo "$as_me:$LINENO: checking for $ac_func" >&5
15859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15860 if eval "test \"\${$as_ac_var+set}\" = set"; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15863 cat >conftest.
$ac_ext <<_ACEOF
15864 #line $LINENO "configure"
15867 cat confdefs.h
>>conftest.
$ac_ext
15868 cat >>conftest.
$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 /* System header to define __stub macros and hopefully few prototypes,
15871 which can conflict with char $ac_func (); below.
15872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15873 <limits.h> exists even on freestanding compilers. */
15875 # include <limits.h>
15877 # include <assert.h>
15879 /* Override any gcc2 internal prototype to avoid an error. */
15884 /* We use char because int might match the return type of a gcc2
15885 builtin and then its argument prototype would still apply. */
15887 /* The GNU C library defines this for functions which it implements
15888 to always fail with ENOSYS. Some functions are actually named
15889 something starting with __ and the normal name is an alias. */
15890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15893 char (*f) () = $ac_func;
15902 return f != $ac_func;
15907 rm -f conftest.
$ac_objext conftest
$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try
='test -s conftest$ac_exeext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 eval "$as_ac_var=yes"
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.
$ac_ext >&5
15924 eval "$as_ac_var=no"
15926 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15930 if test `eval echo '${'$as_ac_var'}'` = yes; then
15931 cat >>confdefs.h
<<_ACEOF
15932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15939 # Check this now, so that we will NOT find the above functions in ncurses.
15940 # That is because we have not set up to link ncurses in lib-src.
15941 # It's better to believe a function is not available
15942 # than to expect to find it in ncurses.
15944 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
15945 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
15946 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
15947 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 ac_check_lib_save_LIBS
=$LIBS
15950 LIBS
="-lncurses $LIBS"
15951 cat >conftest.
$ac_ext <<_ACEOF
15952 #line $LINENO "configure"
15955 cat confdefs.h
>>conftest.
$ac_ext
15956 cat >>conftest.
$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15959 /* Override any gcc2 internal prototype to avoid an error. */
15963 /* We use char because int might match the return type of a gcc2
15964 builtin and then its argument prototype would still apply. */
15974 rm -f conftest.
$ac_objext conftest
$ac_exeext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15976 (eval $ac_link) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } &&
15980 { ac_try
='test -s conftest$ac_exeext'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 ac_cv_lib_ncurses_tparm
=yes
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.
$ac_ext >&5
15991 ac_cv_lib_ncurses_tparm
=no
15993 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15994 LIBS
=$ac_check_lib_save_LIBS
15996 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
15997 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
15998 if test $ac_cv_lib_ncurses_tparm = yes; then
15999 cat >>confdefs.h
<<_ACEOF
16000 #define HAVE_LIBNCURSES 1
16003 LIBS
="-lncurses $LIBS"
16008 # Do we need the Hesiod library to provide the support routines?
16009 if test "$with_hesiod" = yes ; then
16010 # Don't set $LIBS here -- see comments above.
16012 echo "$as_me:$LINENO: checking for res_send" >&5
16013 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16014 if test "${ac_cv_func_res_send+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 cat >conftest.
$ac_ext <<_ACEOF
16018 #line $LINENO "configure"
16021 cat confdefs.h
>>conftest.
$ac_ext
16022 cat >>conftest.
$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 /* System header to define __stub macros and hopefully few prototypes,
16025 which can conflict with char res_send (); below.
16026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16027 <limits.h> exists even on freestanding compilers. */
16029 # include <limits.h>
16031 # include <assert.h>
16033 /* Override any gcc2 internal prototype to avoid an error. */
16038 /* We use char because int might match the return type of a gcc2
16039 builtin and then its argument prototype would still apply. */
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined (__stub_res_send) || defined (__stub___res_send)
16047 char (*f) () = res_send;
16056 return f != res_send;
16061 rm -f conftest.
$ac_objext conftest
$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try
='test -s conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_cv_func_res_send
=yes
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.
$ac_ext >&5
16078 ac_cv_func_res_send
=no
16080 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16082 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16083 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16084 if test $ac_cv_func_res_send = yes; then
16087 echo "$as_me:$LINENO: checking for __res_send" >&5
16088 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16089 if test "${ac_cv_func___res_send+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 cat >conftest.
$ac_ext <<_ACEOF
16093 #line $LINENO "configure"
16096 cat confdefs.h
>>conftest.
$ac_ext
16097 cat >>conftest.
$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char __res_send (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16104 # include <limits.h>
16106 # include <assert.h>
16108 /* Override any gcc2 internal prototype to avoid an error. */
16113 /* We use char because int might match the return type of a gcc2
16114 builtin and then its argument prototype would still apply. */
16115 char __res_send ();
16116 /* The GNU C library defines this for functions which it implements
16117 to always fail with ENOSYS. Some functions are actually named
16118 something starting with __ and the normal name is an alias. */
16119 #if defined (__stub___res_send) || defined (__stub_____res_send)
16122 char (*f) () = __res_send;
16131 return f != __res_send;
16136 rm -f conftest.
$ac_objext conftest
$ac_exeext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138 (eval $ac_link) 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
16142 { ac_try
='test -s conftest$ac_exeext'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 ac_cv_func___res_send
=yes
16150 echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.
$ac_ext >&5
16153 ac_cv_func___res_send
=no
16155 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16157 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16158 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16159 if test $ac_cv_func___res_send = yes; then
16162 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16163 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16164 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 ac_check_lib_save_LIBS
=$LIBS
16168 LIBS
="-lresolv $LIBS"
16169 cat >conftest.
$ac_ext <<_ACEOF
16170 #line $LINENO "configure"
16173 cat confdefs.h
>>conftest.
$ac_ext
16174 cat >>conftest.
$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16177 /* Override any gcc2 internal prototype to avoid an error. */
16181 /* We use char because int might match the return type of a gcc2
16182 builtin and then its argument prototype would still apply. */
16192 rm -f conftest.
$ac_objext conftest
$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try
='test -s conftest$ac_exeext'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 ac_cv_lib_resolv_res_send
=yes
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.
$ac_ext >&5
16209 ac_cv_lib_resolv_res_send
=no
16211 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16212 LIBS
=$ac_check_lib_save_LIBS
16214 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16215 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16216 if test $ac_cv_lib_resolv_res_send = yes; then
16219 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16220 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16221 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 ac_check_lib_save_LIBS
=$LIBS
16225 LIBS
="-lresolv $LIBS"
16226 cat >conftest.
$ac_ext <<_ACEOF
16227 #line $LINENO "configure"
16230 cat confdefs.h
>>conftest.
$ac_ext
16231 cat >>conftest.
$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16234 /* Override any gcc2 internal prototype to avoid an error. */
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16240 char __res_send ();
16249 rm -f conftest.
$ac_objext conftest
$ac_exeext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16251 (eval $ac_link) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try
='test -s conftest$ac_exeext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_cv_lib_resolv___res_send
=yes
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.
$ac_ext >&5
16266 ac_cv_lib_resolv___res_send
=no
16268 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16269 LIBS
=$ac_check_lib_save_LIBS
16271 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16272 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16273 if test $ac_cv_lib_resolv___res_send = yes; then
16283 if test "$resolv" = yes ; then
16286 cat >>confdefs.h
<<\_ACEOF
16287 #define HAVE_LIBRESOLV 1
16293 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16294 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16295 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 cat >conftest.
$ac_ext <<_ACEOF
16299 #line $LINENO "configure"
16302 cat confdefs.h
>>conftest.
$ac_ext
16303 cat >>conftest.
$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 /* System header to define __stub macros and hopefully few prototypes,
16306 which can conflict with char hes_getmailhost (); below.
16307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16308 <limits.h> exists even on freestanding compilers. */
16310 # include <limits.h>
16312 # include <assert.h>
16314 /* Override any gcc2 internal prototype to avoid an error. */
16319 /* We use char because int might match the return type of a gcc2
16320 builtin and then its argument prototype would still apply. */
16321 char hes_getmailhost ();
16322 /* The GNU C library defines this for functions which it implements
16323 to always fail with ENOSYS. Some functions are actually named
16324 something starting with __ and the normal name is an alias. */
16325 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
16328 char (*f) () = hes_getmailhost;
16337 return f != hes_getmailhost;
16342 rm -f conftest.
$ac_objext conftest
$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try
='test -s conftest$ac_exeext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_cv_func_hes_getmailhost
=yes
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.
$ac_ext >&5
16359 ac_cv_func_hes_getmailhost
=no
16361 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16363 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
16364 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
16365 if test $ac_cv_func_hes_getmailhost = yes; then
16368 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
16369 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
16370 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 ac_check_lib_save_LIBS
=$LIBS
16374 LIBS
="-lhesiod $RESOLVLIB $LIBS"
16375 cat >conftest.
$ac_ext <<_ACEOF
16376 #line $LINENO "configure"
16379 cat confdefs.h
>>conftest.
$ac_ext
16380 cat >>conftest.
$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16383 /* Override any gcc2 internal prototype to avoid an error. */
16387 /* We use char because int might match the return type of a gcc2
16388 builtin and then its argument prototype would still apply. */
16389 char hes_getmailhost ();
16393 hes_getmailhost ();
16398 rm -f conftest.
$ac_objext conftest
$ac_exeext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400 (eval $ac_link) 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try
='test -s conftest$ac_exeext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_cv_lib_hesiod_hes_getmailhost
=yes
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.
$ac_ext >&5
16415 ac_cv_lib_hesiod_hes_getmailhost
=no
16417 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16418 LIBS
=$ac_check_lib_save_LIBS
16420 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16421 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
16422 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
16424 cat >>confdefs.h
<<\_ACEOF
16425 #define HAVE_LIBHESIOD 1
16436 # These tell us which Kerberos-related libraries to use.
16437 if test "${with_kerberos+set}" = set; then
16439 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
16440 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
16441 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 ac_check_lib_save_LIBS
=$LIBS
16445 LIBS
="-lcom_err $LIBS"
16446 cat >conftest.
$ac_ext <<_ACEOF
16447 #line $LINENO "configure"
16450 cat confdefs.h
>>conftest.
$ac_ext
16451 cat >>conftest.
$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16454 /* Override any gcc2 internal prototype to avoid an error. */
16458 /* We use char because int might match the return type of a gcc2
16459 builtin and then its argument prototype would still apply. */
16469 rm -f conftest.
$ac_objext conftest
$ac_exeext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16471 (eval $ac_link) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try
='test -s conftest$ac_exeext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_cv_lib_com_err_com_err
=yes
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.
$ac_ext >&5
16486 ac_cv_lib_com_err_com_err
=no
16488 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16489 LIBS
=$ac_check_lib_save_LIBS
16491 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
16492 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
16493 if test $ac_cv_lib_com_err_com_err = yes; then
16494 cat >>confdefs.h
<<_ACEOF
16495 #define HAVE_LIBCOM_ERR 1
16498 LIBS
="-lcom_err $LIBS"
16503 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16504 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
16505 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 ac_check_lib_save_LIBS
=$LIBS
16509 LIBS
="-lk5crypto $LIBS"
16510 cat >conftest.
$ac_ext <<_ACEOF
16511 #line $LINENO "configure"
16514 cat confdefs.h
>>conftest.
$ac_ext
16515 cat >>conftest.
$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16518 /* Override any gcc2 internal prototype to avoid an error. */
16522 /* We use char because int might match the return type of a gcc2
16523 builtin and then its argument prototype would still apply. */
16524 char mit_des_cbc_encrypt ();
16528 mit_des_cbc_encrypt ();
16533 rm -f conftest.
$ac_objext conftest
$ac_exeext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535 (eval $ac_link) 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } &&
16539 { ac_try
='test -s conftest$ac_exeext'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.
$ac_ext >&5
16550 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
16552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16553 LIBS
=$ac_check_lib_save_LIBS
16555 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16556 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
16557 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
16558 cat >>confdefs.h
<<_ACEOF
16559 #define HAVE_LIBK5CRYPTO 1
16562 LIBS
="-lk5crypto $LIBS"
16567 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16568 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
16569 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 ac_check_lib_save_LIBS
=$LIBS
16573 LIBS
="-lcrypto $LIBS"
16574 cat >conftest.
$ac_ext <<_ACEOF
16575 #line $LINENO "configure"
16578 cat confdefs.h
>>conftest.
$ac_ext
16579 cat >>conftest.
$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16582 /* Override any gcc2 internal prototype to avoid an error. */
16586 /* We use char because int might match the return type of a gcc2
16587 builtin and then its argument prototype would still apply. */
16588 char mit_des_cbc_encrypt ();
16592 mit_des_cbc_encrypt ();
16597 rm -f conftest.
$ac_objext conftest
$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try
='test -s conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.
$ac_ext >&5
16614 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
16616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16617 LIBS
=$ac_check_lib_save_LIBS
16619 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16620 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
16621 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
16622 cat >>confdefs.h
<<_ACEOF
16623 #define HAVE_LIBCRYPTO 1
16626 LIBS
="-lcrypto $LIBS"
16631 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
16632 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
16633 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 ac_check_lib_save_LIBS
=$LIBS
16637 LIBS
="-lkrb5 $LIBS"
16638 cat >conftest.
$ac_ext <<_ACEOF
16639 #line $LINENO "configure"
16642 cat confdefs.h
>>conftest.
$ac_ext
16643 cat >>conftest.
$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16646 /* Override any gcc2 internal prototype to avoid an error. */
16650 /* We use char because int might match the return type of a gcc2
16651 builtin and then its argument prototype would still apply. */
16652 char krb5_init_context ();
16656 krb5_init_context ();
16661 rm -f conftest.
$ac_objext conftest
$ac_exeext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16663 (eval $ac_link) 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try
='test -s conftest$ac_exeext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_lib_krb5_krb5_init_context
=yes
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.
$ac_ext >&5
16678 ac_cv_lib_krb5_krb5_init_context
=no
16680 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16681 LIBS
=$ac_check_lib_save_LIBS
16683 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16684 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
16685 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
16686 cat >>confdefs.h
<<_ACEOF
16687 #define HAVE_LIBKRB5 1
16690 LIBS
="-lkrb5 $LIBS"
16694 if test "${with_kerberos5+set}" != set; then
16696 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
16697 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
16698 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 ac_check_lib_save_LIBS
=$LIBS
16702 LIBS
="-ldes425 $LIBS"
16703 cat >conftest.
$ac_ext <<_ACEOF
16704 #line $LINENO "configure"
16707 cat confdefs.h
>>conftest.
$ac_ext
16708 cat >>conftest.
$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16711 /* Override any gcc2 internal prototype to avoid an error. */
16715 /* We use char because int might match the return type of a gcc2
16716 builtin and then its argument prototype would still apply. */
16717 char des_cbc_encrypt ();
16721 des_cbc_encrypt ();
16726 rm -f conftest.
$ac_objext conftest
$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try
='test -s conftest$ac_exeext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_cv_lib_des425_des_cbc_encrypt
=yes
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.
$ac_ext >&5
16743 ac_cv_lib_des425_des_cbc_encrypt
=no
16745 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16746 LIBS
=$ac_check_lib_save_LIBS
16748 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16749 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
16750 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
16751 cat >>confdefs.h
<<_ACEOF
16752 #define HAVE_LIBDES425 1
16755 LIBS
="-ldes425 $LIBS"
16759 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16760 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
16761 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 ac_check_lib_save_LIBS
=$LIBS
16766 cat >conftest.
$ac_ext <<_ACEOF
16767 #line $LINENO "configure"
16770 cat confdefs.h
>>conftest.
$ac_ext
16771 cat >>conftest.
$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16774 /* Override any gcc2 internal prototype to avoid an error. */
16778 /* We use char because int might match the return type of a gcc2
16779 builtin and then its argument prototype would still apply. */
16780 char des_cbc_encrypt ();
16784 des_cbc_encrypt ();
16789 rm -f conftest.
$ac_objext conftest
$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791 (eval $ac_link) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try
='test -s conftest$ac_exeext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_cv_lib_des_des_cbc_encrypt
=yes
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.
$ac_ext >&5
16806 ac_cv_lib_des_des_cbc_encrypt
=no
16808 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16809 LIBS
=$ac_check_lib_save_LIBS
16811 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16812 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
16813 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16814 cat >>confdefs.h
<<_ACEOF
16815 #define HAVE_LIBDES 1
16825 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
16826 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
16827 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 ac_check_lib_save_LIBS
=$LIBS
16831 LIBS
="-lkrb4 $LIBS"
16832 cat >conftest.
$ac_ext <<_ACEOF
16833 #line $LINENO "configure"
16836 cat confdefs.h
>>conftest.
$ac_ext
16837 cat >>conftest.
$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16840 /* Override any gcc2 internal prototype to avoid an error. */
16844 /* We use char because int might match the return type of a gcc2
16845 builtin and then its argument prototype would still apply. */
16846 char krb_get_cred ();
16855 rm -f conftest.
$ac_objext conftest
$ac_exeext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857 (eval $ac_link) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try
='test -s conftest$ac_exeext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_lib_krb4_krb_get_cred
=yes
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.
$ac_ext >&5
16872 ac_cv_lib_krb4_krb_get_cred
=no
16874 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16875 LIBS
=$ac_check_lib_save_LIBS
16877 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16878 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
16879 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
16880 cat >>confdefs.h
<<_ACEOF
16881 #define HAVE_LIBKRB4 1
16884 LIBS
="-lkrb4 $LIBS"
16888 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
16889 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
16890 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 ac_check_lib_save_LIBS
=$LIBS
16895 cat >conftest.
$ac_ext <<_ACEOF
16896 #line $LINENO "configure"
16899 cat confdefs.h
>>conftest.
$ac_ext
16900 cat >>conftest.
$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16903 /* Override any gcc2 internal prototype to avoid an error. */
16907 /* We use char because int might match the return type of a gcc2
16908 builtin and then its argument prototype would still apply. */
16909 char krb_get_cred ();
16918 rm -f conftest.
$ac_objext conftest
$ac_exeext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920 (eval $ac_link) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try
='test -s conftest$ac_exeext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_lib_krb_krb_get_cred
=yes
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.
$ac_ext >&5
16935 ac_cv_lib_krb_krb_get_cred
=no
16937 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16938 LIBS
=$ac_check_lib_save_LIBS
16940 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
16941 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
16942 if test $ac_cv_lib_krb_krb_get_cred = yes; then
16943 cat >>confdefs.h
<<_ACEOF
16944 #define HAVE_LIBKRB 1
16955 if test "${with_kerberos5+set}" = set; then
16957 for ac_header
in krb5.h
16959 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo "$as_me:$LINENO: checking for $ac_header" >&5
16962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16969 # Is the header compilable?
16970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16972 cat >conftest.
$ac_ext <<_ACEOF
16973 #line $LINENO "configure"
16976 cat confdefs.h
>>conftest.
$ac_ext
16977 cat >>conftest.
$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 $ac_includes_default
16980 #include <$ac_header>
16982 rm -f conftest.
$ac_objext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984 (eval $ac_compile) 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try
='test -s conftest.$ac_objext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_header_compiler
=yes
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.
$ac_ext >&5
16999 ac_header_compiler
=no
17001 rm -f conftest.
$ac_objext conftest.
$ac_ext
17002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17003 echo "${ECHO_T}$ac_header_compiler" >&6
17005 # Is the header present?
17006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17008 cat >conftest.
$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17012 cat confdefs.h
>>conftest.
$ac_ext
17013 cat >>conftest.
$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 #include <$ac_header>
17017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17018 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17020 grep -v '^ *+' conftest.er1
>conftest.err
17022 cat conftest.err
>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } >/dev
/null
; then
17025 if test -s conftest.err
; then
17026 ac_cpp_err
=$ac_c_preproc_warn_flag
17033 if test -z "$ac_cpp_err"; then
17034 ac_header_preproc
=yes
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.
$ac_ext >&5
17039 ac_header_preproc
=no
17041 rm -f conftest.err conftest.
$ac_ext
17042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17043 echo "${ECHO_T}$ac_header_preproc" >&6
17045 # So? What about this header?
17046 case $ac_header_compiler:$ac_header_preproc in
17048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17054 ## ------------------------------------ ##
17055 ## Report this to bug-autoconf@gnu.org. ##
17056 ## ------------------------------------ ##
17059 sed "s/^/$as_me: WARNING: /" >&2
17062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17070 ## ------------------------------------ ##
17071 ## Report this to bug-autoconf@gnu.org. ##
17072 ## ------------------------------------ ##
17075 sed "s/^/$as_me: WARNING: /" >&2
17078 echo "$as_me:$LINENO: checking for $ac_header" >&5
17079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 eval "$as_ac_Header=$ac_header_preproc"
17085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17090 cat >>confdefs.h
<<_ACEOF
17091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17100 for ac_header
in des.h
17102 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17104 echo "$as_me:$LINENO: checking for $ac_header" >&5
17105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17112 # Is the header compilable?
17113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17115 cat >conftest.
$ac_ext <<_ACEOF
17116 #line $LINENO "configure"
17119 cat confdefs.h
>>conftest.
$ac_ext
17120 cat >>conftest.
$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 $ac_includes_default
17123 #include <$ac_header>
17125 rm -f conftest.
$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
17131 { ac_try
='test -s conftest.$ac_objext'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; }; then
17137 ac_header_compiler
=yes
17139 echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.
$ac_ext >&5
17142 ac_header_compiler
=no
17144 rm -f conftest.
$ac_objext conftest.
$ac_ext
17145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17146 echo "${ECHO_T}$ac_header_compiler" >&6
17148 # Is the header present?
17149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17151 cat >conftest.
$ac_ext <<_ACEOF
17152 #line $LINENO "configure"
17155 cat confdefs.h
>>conftest.
$ac_ext
17156 cat >>conftest.
$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 #include <$ac_header>
17160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17161 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17163 grep -v '^ *+' conftest.er1
>conftest.err
17165 cat conftest.err
>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } >/dev
/null
; then
17168 if test -s conftest.err
; then
17169 ac_cpp_err
=$ac_c_preproc_warn_flag
17176 if test -z "$ac_cpp_err"; then
17177 ac_header_preproc
=yes
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.
$ac_ext >&5
17182 ac_header_preproc
=no
17184 rm -f conftest.err conftest.
$ac_ext
17185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17186 echo "${ECHO_T}$ac_header_preproc" >&6
17188 # So? What about this header?
17189 case $ac_header_compiler:$ac_header_preproc in
17191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17197 ## ------------------------------------ ##
17198 ## Report this to bug-autoconf@gnu.org. ##
17199 ## ------------------------------------ ##
17202 sed "s/^/$as_me: WARNING: /" >&2
17205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17213 ## ------------------------------------ ##
17214 ## Report this to bug-autoconf@gnu.org. ##
17215 ## ------------------------------------ ##
17218 sed "s/^/$as_me: WARNING: /" >&2
17221 echo "$as_me:$LINENO: checking for $ac_header" >&5
17222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 eval "$as_ac_Header=$ac_header_preproc"
17228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17233 cat >>confdefs.h
<<_ACEOF
17234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17239 for ac_header
in kerberosIV
/des.h
17241 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17243 echo "$as_me:$LINENO: checking for $ac_header" >&5
17244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17251 # Is the header compilable?
17252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17254 cat >conftest.
$ac_ext <<_ACEOF
17255 #line $LINENO "configure"
17258 cat confdefs.h
>>conftest.
$ac_ext
17259 cat >>conftest.
$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 $ac_includes_default
17262 #include <$ac_header>
17264 rm -f conftest.
$ac_objext
17265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17266 (eval $ac_compile) 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try
='test -s conftest.$ac_objext'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_header_compiler
=yes
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.
$ac_ext >&5
17281 ac_header_compiler
=no
17283 rm -f conftest.
$ac_objext conftest.
$ac_ext
17284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17285 echo "${ECHO_T}$ac_header_compiler" >&6
17287 # Is the header present?
17288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17290 cat >conftest.
$ac_ext <<_ACEOF
17291 #line $LINENO "configure"
17294 cat confdefs.h
>>conftest.
$ac_ext
17295 cat >>conftest.
$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 #include <$ac_header>
17299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17302 grep -v '^ *+' conftest.er1
>conftest.err
17304 cat conftest.err
>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } >/dev
/null
; then
17307 if test -s conftest.err
; then
17308 ac_cpp_err
=$ac_c_preproc_warn_flag
17315 if test -z "$ac_cpp_err"; then
17316 ac_header_preproc
=yes
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.
$ac_ext >&5
17321 ac_header_preproc
=no
17323 rm -f conftest.err conftest.
$ac_ext
17324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17325 echo "${ECHO_T}$ac_header_preproc" >&6
17327 # So? What about this header?
17328 case $ac_header_compiler:$ac_header_preproc in
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17336 ## ------------------------------------ ##
17337 ## Report this to bug-autoconf@gnu.org. ##
17338 ## ------------------------------------ ##
17341 sed "s/^/$as_me: WARNING: /" >&2
17344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17352 ## ------------------------------------ ##
17353 ## Report this to bug-autoconf@gnu.org. ##
17354 ## ------------------------------------ ##
17357 sed "s/^/$as_me: WARNING: /" >&2
17360 echo "$as_me:$LINENO: checking for $ac_header" >&5
17361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 eval "$as_ac_Header=$ac_header_preproc"
17367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17372 cat >>confdefs.h
<<_ACEOF
17373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17378 for ac_header
in kerberos
/des.h
17380 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo "$as_me:$LINENO: checking for $ac_header" >&5
17383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17390 # Is the header compilable?
17391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17393 cat >conftest.
$ac_ext <<_ACEOF
17394 #line $LINENO "configure"
17397 cat confdefs.h
>>conftest.
$ac_ext
17398 cat >>conftest.
$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 $ac_includes_default
17401 #include <$ac_header>
17403 rm -f conftest.
$ac_objext
17404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17405 (eval $ac_compile) 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try
='test -s conftest.$ac_objext'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_header_compiler
=yes
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.
$ac_ext >&5
17420 ac_header_compiler
=no
17422 rm -f conftest.
$ac_objext conftest.
$ac_ext
17423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17424 echo "${ECHO_T}$ac_header_compiler" >&6
17426 # Is the header present?
17427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17429 cat >conftest.
$ac_ext <<_ACEOF
17430 #line $LINENO "configure"
17433 cat confdefs.h
>>conftest.
$ac_ext
17434 cat >>conftest.
$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 #include <$ac_header>
17438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17439 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17441 grep -v '^ *+' conftest.er1
>conftest.err
17443 cat conftest.err
>&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } >/dev
/null
; then
17446 if test -s conftest.err
; then
17447 ac_cpp_err
=$ac_c_preproc_warn_flag
17454 if test -z "$ac_cpp_err"; then
17455 ac_header_preproc
=yes
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.
$ac_ext >&5
17460 ac_header_preproc
=no
17462 rm -f conftest.err conftest.
$ac_ext
17463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17464 echo "${ECHO_T}$ac_header_preproc" >&6
17466 # So? What about this header?
17467 case $ac_header_compiler:$ac_header_preproc in
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17475 ## ------------------------------------ ##
17476 ## Report this to bug-autoconf@gnu.org. ##
17477 ## ------------------------------------ ##
17480 sed "s/^/$as_me: WARNING: /" >&2
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17491 ## ------------------------------------ ##
17492 ## Report this to bug-autoconf@gnu.org. ##
17493 ## ------------------------------------ ##
17496 sed "s/^/$as_me: WARNING: /" >&2
17499 echo "$as_me:$LINENO: checking for $ac_header" >&5
17500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 eval "$as_ac_Header=$ac_header_preproc"
17506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17511 cat >>confdefs.h
<<_ACEOF
17512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17528 for ac_header
in krb.h
17530 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17532 echo "$as_me:$LINENO: checking for $ac_header" >&5
17533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17540 # Is the header compilable?
17541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17543 cat >conftest.
$ac_ext <<_ACEOF
17544 #line $LINENO "configure"
17547 cat confdefs.h
>>conftest.
$ac_ext
17548 cat >>conftest.
$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 $ac_includes_default
17551 #include <$ac_header>
17553 rm -f conftest.
$ac_objext
17554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555 (eval $ac_compile) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try
='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_header_compiler
=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.
$ac_ext >&5
17570 ac_header_compiler
=no
17572 rm -f conftest.
$ac_objext conftest.
$ac_ext
17573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17574 echo "${ECHO_T}$ac_header_compiler" >&6
17576 # Is the header present?
17577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17579 cat >conftest.
$ac_ext <<_ACEOF
17580 #line $LINENO "configure"
17583 cat confdefs.h
>>conftest.
$ac_ext
17584 cat >>conftest.
$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 #include <$ac_header>
17588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17589 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17591 grep -v '^ *+' conftest.er1
>conftest.err
17593 cat conftest.err
>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } >/dev
/null
; then
17596 if test -s conftest.err
; then
17597 ac_cpp_err
=$ac_c_preproc_warn_flag
17604 if test -z "$ac_cpp_err"; then
17605 ac_header_preproc
=yes
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.
$ac_ext >&5
17610 ac_header_preproc
=no
17612 rm -f conftest.err conftest.
$ac_ext
17613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17614 echo "${ECHO_T}$ac_header_preproc" >&6
17616 # So? What about this header?
17617 case $ac_header_compiler:$ac_header_preproc in
17619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17625 ## ------------------------------------ ##
17626 ## Report this to bug-autoconf@gnu.org. ##
17627 ## ------------------------------------ ##
17630 sed "s/^/$as_me: WARNING: /" >&2
17633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17641 ## ------------------------------------ ##
17642 ## Report this to bug-autoconf@gnu.org. ##
17643 ## ------------------------------------ ##
17646 sed "s/^/$as_me: WARNING: /" >&2
17649 echo "$as_me:$LINENO: checking for $ac_header" >&5
17650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 eval "$as_ac_Header=$ac_header_preproc"
17656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17661 cat >>confdefs.h
<<_ACEOF
17662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17667 for ac_header
in kerberosIV
/krb.h
17669 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17671 echo "$as_me:$LINENO: checking for $ac_header" >&5
17672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17679 # Is the header compilable?
17680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17682 cat >conftest.
$ac_ext <<_ACEOF
17683 #line $LINENO "configure"
17686 cat confdefs.h
>>conftest.
$ac_ext
17687 cat >>conftest.
$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 #include <$ac_header>
17692 rm -f conftest.
$ac_objext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17694 (eval $ac_compile) 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
17698 { ac_try
='test -s conftest.$ac_objext'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 ac_header_compiler
=yes
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.
$ac_ext >&5
17709 ac_header_compiler
=no
17711 rm -f conftest.
$ac_objext conftest.
$ac_ext
17712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17713 echo "${ECHO_T}$ac_header_compiler" >&6
17715 # Is the header present?
17716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17718 cat >conftest.
$ac_ext <<_ACEOF
17719 #line $LINENO "configure"
17722 cat confdefs.h
>>conftest.
$ac_ext
17723 cat >>conftest.
$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17725 #include <$ac_header>
17727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17730 grep -v '^ *+' conftest.er1
>conftest.err
17732 cat conftest.err
>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } >/dev
/null
; then
17735 if test -s conftest.err
; then
17736 ac_cpp_err
=$ac_c_preproc_warn_flag
17743 if test -z "$ac_cpp_err"; then
17744 ac_header_preproc
=yes
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.
$ac_ext >&5
17749 ac_header_preproc
=no
17751 rm -f conftest.err conftest.
$ac_ext
17752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17753 echo "${ECHO_T}$ac_header_preproc" >&6
17755 # So? What about this header?
17756 case $ac_header_compiler:$ac_header_preproc in
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17764 ## ------------------------------------ ##
17765 ## Report this to bug-autoconf@gnu.org. ##
17766 ## ------------------------------------ ##
17769 sed "s/^/$as_me: WARNING: /" >&2
17772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17780 ## ------------------------------------ ##
17781 ## Report this to bug-autoconf@gnu.org. ##
17782 ## ------------------------------------ ##
17785 sed "s/^/$as_me: WARNING: /" >&2
17788 echo "$as_me:$LINENO: checking for $ac_header" >&5
17789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 eval "$as_ac_Header=$ac_header_preproc"
17795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17800 cat >>confdefs.h
<<_ACEOF
17801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17806 for ac_header
in kerberos
/krb.h
17808 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17810 echo "$as_me:$LINENO: checking for $ac_header" >&5
17811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17818 # Is the header compilable?
17819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17821 cat >conftest.
$ac_ext <<_ACEOF
17822 #line $LINENO "configure"
17825 cat confdefs.h
>>conftest.
$ac_ext
17826 cat >>conftest.
$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 $ac_includes_default
17829 #include <$ac_header>
17831 rm -f conftest.
$ac_objext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try
='test -s conftest.$ac_objext'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_header_compiler
=yes
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.
$ac_ext >&5
17848 ac_header_compiler
=no
17850 rm -f conftest.
$ac_objext conftest.
$ac_ext
17851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17852 echo "${ECHO_T}$ac_header_compiler" >&6
17854 # Is the header present?
17855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17857 cat >conftest.
$ac_ext <<_ACEOF
17858 #line $LINENO "configure"
17861 cat confdefs.h
>>conftest.
$ac_ext
17862 cat >>conftest.
$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 #include <$ac_header>
17866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17867 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17869 grep -v '^ *+' conftest.er1
>conftest.err
17871 cat conftest.err
>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } >/dev
/null
; then
17874 if test -s conftest.err
; then
17875 ac_cpp_err
=$ac_c_preproc_warn_flag
17882 if test -z "$ac_cpp_err"; then
17883 ac_header_preproc
=yes
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.
$ac_ext >&5
17888 ac_header_preproc
=no
17890 rm -f conftest.err conftest.
$ac_ext
17891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17892 echo "${ECHO_T}$ac_header_preproc" >&6
17894 # So? What about this header?
17895 case $ac_header_compiler:$ac_header_preproc in
17897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17903 ## ------------------------------------ ##
17904 ## Report this to bug-autoconf@gnu.org. ##
17905 ## ------------------------------------ ##
17908 sed "s/^/$as_me: WARNING: /" >&2
17911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17919 ## ------------------------------------ ##
17920 ## Report this to bug-autoconf@gnu.org. ##
17921 ## ------------------------------------ ##
17924 sed "s/^/$as_me: WARNING: /" >&2
17927 echo "$as_me:$LINENO: checking for $ac_header" >&5
17928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 eval "$as_ac_Header=$ac_header_preproc"
17934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17939 cat >>confdefs.h
<<_ACEOF
17940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17957 for ac_header
in com_err.h
17959 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17961 echo "$as_me:$LINENO: checking for $ac_header" >&5
17962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17969 # Is the header compilable?
17970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17972 cat >conftest.
$ac_ext <<_ACEOF
17973 #line $LINENO "configure"
17976 cat confdefs.h
>>conftest.
$ac_ext
17977 cat >>conftest.
$ac_ext <<_ACEOF
17978 /* end confdefs.h. */
17979 $ac_includes_default
17980 #include <$ac_header>
17982 rm -f conftest.
$ac_objext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984 (eval $ac_compile) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try
='test -s conftest.$ac_objext'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994 ac_header_compiler
=yes
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.
$ac_ext >&5
17999 ac_header_compiler
=no
18001 rm -f conftest.
$ac_objext conftest.
$ac_ext
18002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18003 echo "${ECHO_T}$ac_header_compiler" >&6
18005 # Is the header present?
18006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18008 cat >conftest.
$ac_ext <<_ACEOF
18009 #line $LINENO "configure"
18012 cat confdefs.h
>>conftest.
$ac_ext
18013 cat >>conftest.
$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18015 #include <$ac_header>
18017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18018 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18020 grep -v '^ *+' conftest.er1
>conftest.err
18022 cat conftest.err
>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } >/dev
/null
; then
18025 if test -s conftest.err
; then
18026 ac_cpp_err
=$ac_c_preproc_warn_flag
18033 if test -z "$ac_cpp_err"; then
18034 ac_header_preproc
=yes
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.
$ac_ext >&5
18039 ac_header_preproc
=no
18041 rm -f conftest.err conftest.
$ac_ext
18042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18043 echo "${ECHO_T}$ac_header_preproc" >&6
18045 # So? What about this header?
18046 case $ac_header_compiler:$ac_header_preproc in
18048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18054 ## ------------------------------------ ##
18055 ## Report this to bug-autoconf@gnu.org. ##
18056 ## ------------------------------------ ##
18059 sed "s/^/$as_me: WARNING: /" >&2
18062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18070 ## ------------------------------------ ##
18071 ## Report this to bug-autoconf@gnu.org. ##
18072 ## ------------------------------------ ##
18075 sed "s/^/$as_me: WARNING: /" >&2
18078 echo "$as_me:$LINENO: checking for $ac_header" >&5
18079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 eval "$as_ac_Header=$ac_header_preproc"
18085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18090 cat >>confdefs.h
<<_ACEOF
18091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18100 # Solaris requires -lintl if you want strerror (which calls dgettext)
18101 # to return localized messages.
18103 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18104 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18105 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 ac_check_lib_save_LIBS
=$LIBS
18109 LIBS
="-lintl $LIBS"
18110 cat >conftest.
$ac_ext <<_ACEOF
18111 #line $LINENO "configure"
18114 cat confdefs.h
>>conftest.
$ac_ext
18115 cat >>conftest.
$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18118 /* Override any gcc2 internal prototype to avoid an error. */
18122 /* We use char because int might match the return type of a gcc2
18123 builtin and then its argument prototype would still apply. */
18133 rm -f conftest.
$ac_objext conftest
$ac_exeext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try
='test -s conftest$ac_exeext'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_cv_lib_intl_dgettext
=yes
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.
$ac_ext >&5
18150 ac_cv_lib_intl_dgettext
=no
18152 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18153 LIBS
=$ac_check_lib_save_LIBS
18155 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
18156 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
18157 if test $ac_cv_lib_intl_dgettext = yes; then
18158 cat >>confdefs.h
<<_ACEOF
18159 #define HAVE_LIBINTL 1
18162 LIBS
="-lintl $LIBS"
18167 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
18168 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
18169 if test "${emacs_cv_localtime_cache+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18172 if test x
$ac_cv_func_tzset = xyes
; then
18173 if test "$cross_compiling" = yes; then
18174 # If we have tzset, assume the worst when cross-compiling.
18175 emacs_cv_localtime_cache
=yes
18177 cat >conftest.
$ac_ext <<_ACEOF
18178 #line $LINENO "configure"
18181 cat confdefs.h
>>conftest.
$ac_ext
18182 cat >>conftest.
$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18185 extern char **environ;
18189 for (to = from = environ; (*to = *from); from++)
18190 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
18193 char TZ_GMT0[] = "TZ=GMT0";
18194 char TZ_PST8[] = "TZ=PST8";
18197 time_t now = time ((time_t *) 0);
18198 int hour_GMT0, hour_unset;
18199 if (putenv (TZ_GMT0) != 0)
18201 hour_GMT0 = localtime (&now)->tm_hour;
18203 hour_unset = localtime (&now)->tm_hour;
18204 if (putenv (TZ_PST8) != 0)
18206 if (localtime (&now)->tm_hour == hour_GMT0)
18209 if (localtime (&now)->tm_hour != hour_unset)
18214 rm -f conftest
$ac_exeext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216 (eval $ac_link) 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225 emacs_cv_localtime_cache
=no
18227 echo "$as_me: program exited with status $ac_status" >&5
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.
$ac_ext >&5
18231 ( exit $ac_status )
18232 emacs_cv_localtime_cache
=yes
18234 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18237 # If we lack tzset, report that localtime does not cache TZ,
18238 # since we can't invalidate the cache if we don't have tzset.
18239 emacs_cv_localtime_cache
=no
18242 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
18243 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
18244 if test $emacs_cv_localtime_cache = yes; then
18246 cat >>confdefs.h
<<\_ACEOF
18247 #define LOCALTIME_CACHE 1
18252 if test "x$HAVE_TIMEVAL" = xyes
; then
18254 for ac_func
in gettimeofday
18256 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18257 echo "$as_me:$LINENO: checking for $ac_func" >&5
18258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18259 if eval "test \"\${$as_ac_var+set}\" = set"; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18262 cat >conftest.
$ac_ext <<_ACEOF
18263 #line $LINENO "configure"
18266 cat confdefs.h
>>conftest.
$ac_ext
18267 cat >>conftest.
$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 /* System header to define __stub macros and hopefully few prototypes,
18270 which can conflict with char $ac_func (); below.
18271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18272 <limits.h> exists even on freestanding compilers. */
18274 # include <limits.h>
18276 # include <assert.h>
18278 /* Override any gcc2 internal prototype to avoid an error. */
18283 /* We use char because int might match the return type of a gcc2
18284 builtin and then its argument prototype would still apply. */
18286 /* The GNU C library defines this for functions which it implements
18287 to always fail with ENOSYS. Some functions are actually named
18288 something starting with __ and the normal name is an alias. */
18289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18292 char (*f) () = $ac_func;
18301 return f != $ac_func;
18306 rm -f conftest.
$ac_objext conftest
$ac_exeext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18308 (eval $ac_link) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try
='test -s conftest$ac_exeext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 eval "$as_ac_var=yes"
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.
$ac_ext >&5
18323 eval "$as_ac_var=no"
18325 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18329 if test `eval echo '${'$as_ac_var'}'` = yes; then
18330 cat >>confdefs.h
<<_ACEOF
18331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18337 if test $ac_cv_func_gettimeofday = yes; then
18338 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
18339 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
18340 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 cat >conftest.
$ac_ext <<_ACEOF
18344 #line $LINENO "configure"
18347 cat confdefs.h
>>conftest.
$ac_ext
18348 cat >>conftest.
$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18351 #ifdef TIME_WITH_SYS_TIME
18352 #include <sys/time.h>
18355 #ifdef HAVE_SYS_TIME_H
18356 #include <sys/time.h>
18364 struct timeval time;
18365 gettimeofday (&time, 0);
18370 rm -f conftest.
$ac_objext
18371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372 (eval $ac_compile) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try
='test -s conftest.$ac_objext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 emacs_cv_gettimeofday_two_arguments
=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.
$ac_ext >&5
18387 emacs_cv_gettimeofday_two_arguments
=no
18389 rm -f conftest.
$ac_objext conftest.
$ac_ext
18391 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
18392 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
18393 if test $emacs_cv_gettimeofday_two_arguments = no
; then
18395 cat >>confdefs.h
<<\_ACEOF
18396 #define GETTIMEOFDAY_ONE_ARGUMENT 1
18403 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18404 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18405 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
18406 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 cat >conftest.
$ac_ext <<_ACEOF
18410 #line $LINENO "configure"
18413 cat confdefs.h
>>conftest.
$ac_ext
18414 cat >>conftest.
$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18416 #include <sys/types.h>
18417 #include <$ac_cv_struct_tm>
18423 static struct tm ac_aggr;
18424 if (ac_aggr.tm_zone)
18430 rm -f conftest.
$ac_objext
18431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18432 (eval $ac_compile) 2>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try
='test -s conftest.$ac_objext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_member_struct_tm_tm_zone
=yes
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.
$ac_ext >&5
18447 cat >conftest.
$ac_ext <<_ACEOF
18448 #line $LINENO "configure"
18451 cat confdefs.h
>>conftest.
$ac_ext
18452 cat >>conftest.
$ac_ext <<_ACEOF
18453 /* end confdefs.h. */
18454 #include <sys/types.h>
18455 #include <$ac_cv_struct_tm>
18461 static struct tm ac_aggr;
18462 if (sizeof ac_aggr.tm_zone)
18468 rm -f conftest.
$ac_objext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470 (eval $ac_compile) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try
='test -s conftest.$ac_objext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_member_struct_tm_tm_zone
=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.
$ac_ext >&5
18485 ac_cv_member_struct_tm_tm_zone
=no
18487 rm -f conftest.
$ac_objext conftest.
$ac_ext
18489 rm -f conftest.
$ac_objext conftest.
$ac_ext
18491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18492 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
18493 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18495 cat >>confdefs.h
<<_ACEOF
18496 #define HAVE_STRUCT_TM_TM_ZONE 1
18502 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18504 cat >>confdefs.h
<<\_ACEOF
18505 #define HAVE_TM_ZONE 1
18509 echo "$as_me:$LINENO: checking for tzname" >&5
18510 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18511 if test "${ac_cv_var_tzname+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 cat >conftest.
$ac_ext <<_ACEOF
18515 #line $LINENO "configure"
18518 cat confdefs.h
>>conftest.
$ac_ext
18519 cat >>conftest.
$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18522 #ifndef tzname /* For SGI. */
18523 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
18534 rm -f conftest.
$ac_objext conftest
$ac_exeext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18536 (eval $ac_link) 2>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try
='test -s conftest$ac_exeext'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_var_tzname
=yes
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.
$ac_ext >&5
18551 ac_cv_var_tzname
=no
18553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18555 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18556 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18557 if test $ac_cv_var_tzname = yes; then
18559 cat >>confdefs.h
<<\_ACEOF
18560 #define HAVE_TZNAME 1
18567 if test "$ac_cv_func_gettimeofday" = yes; then
18568 echo "$as_me:$LINENO: checking for struct timezone" >&5
18569 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
18570 if test "${emacs_cv_struct_timezone+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 cat >conftest.
$ac_ext <<_ACEOF
18574 #line $LINENO "configure"
18577 cat confdefs.h
>>conftest.
$ac_ext
18578 cat >>conftest.
$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18580 #include <sys/time.h>
18584 struct timezone tz;
18589 rm -f conftest.
$ac_objext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18591 (eval $ac_compile) 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try
='test -s conftest.$ac_objext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 if test "$cross_compiling" = yes; then
18602 emacs_cv_struct_timezone
=yes
18604 cat >conftest.
$ac_ext <<_ACEOF
18605 #line $LINENO "configure"
18608 cat confdefs.h
>>conftest.
$ac_ext
18609 cat >>conftest.
$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18612 #ifdef TIME_WITH_SYS_TIME
18613 #include <sys/time.h>
18616 #ifdef HAVE_SYS_TIME_H
18617 #include <sys/time.h>
18623 struct timeval time;
18624 struct timezone dummy;
18625 exit (gettimeofday (&time, &dummy));
18628 rm -f conftest
$ac_exeext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18630 (eval $ac_link) 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 emacs_cv_struct_timezone
=yes
18641 echo "$as_me: program exited with status $ac_status" >&5
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.
$ac_ext >&5
18645 ( exit $ac_status )
18646 emacs_cv_struct_timezone
=no
18648 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18651 echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.
$ac_ext >&5
18654 emacs_cv_struct_timezone
=no
18656 rm -f conftest.
$ac_objext conftest.
$ac_ext
18658 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
18659 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
18663 echo "$as_me:$LINENO: checking for socket" >&5
18664 echo $ECHO_N "checking for socket... $ECHO_C" >&6
18665 if test "${ac_cv_func_socket+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 cat >conftest.
$ac_ext <<_ACEOF
18669 #line $LINENO "configure"
18672 cat confdefs.h
>>conftest.
$ac_ext
18673 cat >>conftest.
$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 /* System header to define __stub macros and hopefully few prototypes,
18676 which can conflict with char socket (); below.
18677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18678 <limits.h> exists even on freestanding compilers. */
18680 # include <limits.h>
18682 # include <assert.h>
18684 /* Override any gcc2 internal prototype to avoid an error. */
18689 /* We use char because int might match the return type of a gcc2
18690 builtin and then its argument prototype would still apply. */
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined (__stub_socket) || defined (__stub___socket)
18698 char (*f) () = socket;
18707 return f != socket;
18712 rm -f conftest.
$ac_objext conftest
$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try
='test -s conftest$ac_exeext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 ac_cv_func_socket
=yes
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.
$ac_ext >&5
18729 ac_cv_func_socket
=no
18731 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18733 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18734 echo "${ECHO_T}$ac_cv_func_socket" >&6
18735 if test $ac_cv_func_socket = yes; then
18741 if test $ok_so_far = yes; then
18742 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18743 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
18744 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
18745 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
18749 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
18751 # Is the header compilable?
18752 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
18753 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
18754 cat >conftest.
$ac_ext <<_ACEOF
18755 #line $LINENO "configure"
18758 cat confdefs.h
>>conftest.
$ac_ext
18759 cat >>conftest.
$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761 $ac_includes_default
18762 #include <netinet/in.h>
18764 rm -f conftest.
$ac_objext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18766 (eval $ac_compile) 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
18770 { ac_try
='test -s conftest.$ac_objext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_header_compiler
=yes
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.
$ac_ext >&5
18781 ac_header_compiler
=no
18783 rm -f conftest.
$ac_objext conftest.
$ac_ext
18784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18785 echo "${ECHO_T}$ac_header_compiler" >&6
18787 # Is the header present?
18788 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
18789 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
18790 cat >conftest.
$ac_ext <<_ACEOF
18791 #line $LINENO "configure"
18794 cat confdefs.h
>>conftest.
$ac_ext
18795 cat >>conftest.
$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 #include <netinet/in.h>
18799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18800 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18802 grep -v '^ *+' conftest.er1
>conftest.err
18804 cat conftest.err
>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } >/dev
/null
; then
18807 if test -s conftest.err
; then
18808 ac_cpp_err
=$ac_c_preproc_warn_flag
18815 if test -z "$ac_cpp_err"; then
18816 ac_header_preproc
=yes
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.
$ac_ext >&5
18821 ac_header_preproc
=no
18823 rm -f conftest.err conftest.
$ac_ext
18824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18825 echo "${ECHO_T}$ac_header_preproc" >&6
18827 # So? What about this header?
18828 case $ac_header_compiler:$ac_header_preproc in
18830 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
18831 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18832 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
18833 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
18836 ## ------------------------------------ ##
18837 ## Report this to bug-autoconf@gnu.org. ##
18838 ## ------------------------------------ ##
18841 sed "s/^/$as_me: WARNING: /" >&2
18844 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
18845 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
18846 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
18847 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
18849 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
18852 ## ------------------------------------ ##
18853 ## Report this to bug-autoconf@gnu.org. ##
18854 ## ------------------------------------ ##
18857 sed "s/^/$as_me: WARNING: /" >&2
18860 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
18861 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
18862 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 ac_cv_header_netinet_in_h
=$ac_header_preproc
18867 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
18868 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
18871 if test $ac_cv_header_netinet_in_h = yes; then
18879 if test $ok_so_far = yes; then
18880 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18881 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18882 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
18883 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
18887 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
18889 # Is the header compilable?
18890 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
18891 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
18892 cat >conftest.
$ac_ext <<_ACEOF
18893 #line $LINENO "configure"
18896 cat confdefs.h
>>conftest.
$ac_ext
18897 cat >>conftest.
$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 $ac_includes_default
18900 #include <arpa/inet.h>
18902 rm -f conftest.
$ac_objext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18904 (eval $ac_compile) 2>&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } &&
18908 { ac_try
='test -s conftest.$ac_objext'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_header_compiler
=yes
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.
$ac_ext >&5
18919 ac_header_compiler
=no
18921 rm -f conftest.
$ac_objext conftest.
$ac_ext
18922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18923 echo "${ECHO_T}$ac_header_compiler" >&6
18925 # Is the header present?
18926 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
18927 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
18928 cat >conftest.
$ac_ext <<_ACEOF
18929 #line $LINENO "configure"
18932 cat confdefs.h
>>conftest.
$ac_ext
18933 cat >>conftest.
$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <arpa/inet.h>
18937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18940 grep -v '^ *+' conftest.er1
>conftest.err
18942 cat conftest.err
>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } >/dev
/null
; then
18945 if test -s conftest.err
; then
18946 ac_cpp_err
=$ac_c_preproc_warn_flag
18953 if test -z "$ac_cpp_err"; then
18954 ac_header_preproc
=yes
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.
$ac_ext >&5
18959 ac_header_preproc
=no
18961 rm -f conftest.err conftest.
$ac_ext
18962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18963 echo "${ECHO_T}$ac_header_preproc" >&6
18965 # So? What about this header?
18966 case $ac_header_compiler:$ac_header_preproc in
18968 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
18969 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18970 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
18971 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
18974 ## ------------------------------------ ##
18975 ## Report this to bug-autoconf@gnu.org. ##
18976 ## ------------------------------------ ##
18979 sed "s/^/$as_me: WARNING: /" >&2
18982 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
18983 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
18984 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
18985 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
18986 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
18987 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
18990 ## ------------------------------------ ##
18991 ## Report this to bug-autoconf@gnu.org. ##
18992 ## ------------------------------------ ##
18995 sed "s/^/$as_me: WARNING: /" >&2
18998 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18999 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19000 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 ac_cv_header_arpa_inet_h
=$ac_header_preproc
19005 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19006 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19009 if test $ac_cv_header_arpa_inet_h = yes; then
19017 if test $ok_so_far = yes; then
19019 cat >>confdefs.h
<<\_ACEOF
19020 #define HAVE_INET_SOCKETS 1
19026 for ac_header
in sys
/ioctl.h
19028 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030 echo "$as_me:$LINENO: checking for $ac_header" >&5
19031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19038 # Is the header compilable?
19039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19041 cat >conftest.
$ac_ext <<_ACEOF
19042 #line $LINENO "configure"
19045 cat confdefs.h
>>conftest.
$ac_ext
19046 cat >>conftest.
$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 $ac_includes_default
19049 #include <$ac_header>
19051 rm -f conftest.
$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } &&
19057 { ac_try
='test -s conftest.$ac_objext'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19063 ac_header_compiler
=yes
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.
$ac_ext >&5
19068 ac_header_compiler
=no
19070 rm -f conftest.
$ac_objext conftest.
$ac_ext
19071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19072 echo "${ECHO_T}$ac_header_compiler" >&6
19074 # Is the header present?
19075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19077 cat >conftest.
$ac_ext <<_ACEOF
19078 #line $LINENO "configure"
19081 cat confdefs.h
>>conftest.
$ac_ext
19082 cat >>conftest.
$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 #include <$ac_header>
19086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19087 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19089 grep -v '^ *+' conftest.er1
>conftest.err
19091 cat conftest.err
>&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } >/dev
/null
; then
19094 if test -s conftest.err
; then
19095 ac_cpp_err
=$ac_c_preproc_warn_flag
19102 if test -z "$ac_cpp_err"; then
19103 ac_header_preproc
=yes
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.
$ac_ext >&5
19108 ac_header_preproc
=no
19110 rm -f conftest.err conftest.
$ac_ext
19111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19112 echo "${ECHO_T}$ac_header_preproc" >&6
19114 # So? What about this header?
19115 case $ac_header_compiler:$ac_header_preproc in
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19123 ## ------------------------------------ ##
19124 ## Report this to bug-autoconf@gnu.org. ##
19125 ## ------------------------------------ ##
19128 sed "s/^/$as_me: WARNING: /" >&2
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19139 ## ------------------------------------ ##
19140 ## Report this to bug-autoconf@gnu.org. ##
19141 ## ------------------------------------ ##
19144 sed "s/^/$as_me: WARNING: /" >&2
19147 echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 eval "$as_ac_Header=$ac_header_preproc"
19154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19159 cat >>confdefs.h
<<_ACEOF
19160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19168 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
19170 cat >>confdefs.h
<<\_ACEOF
19171 #define HAVE_AIX_SMT_EXP 1
19176 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
19177 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
19178 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
19179 echo "$as_me:$LINENO: result: yes" >&5
19180 echo "${ECHO_T}yes" >&6
19182 cat >>confdefs.h
<<\_ACEOF
19183 #define HAVE_DEV_PTMX 1
19187 echo "$as_me:$LINENO: result: no" >&5
19188 echo "${ECHO_T}no" >&6
19191 echo "$as_me:$LINENO: checking for pid_t" >&5
19192 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19193 if test "${ac_cv_type_pid_t+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 cat >conftest.
$ac_ext <<_ACEOF
19197 #line $LINENO "configure"
19200 cat confdefs.h
>>conftest.
$ac_ext
19201 cat >>conftest.
$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19203 $ac_includes_default
19209 if (sizeof (pid_t))
19215 rm -f conftest.
$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try
='test -s conftest.$ac_objext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_type_pid_t
=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.
$ac_ext >&5
19232 ac_cv_type_pid_t
=no
19234 rm -f conftest.
$ac_objext conftest.
$ac_ext
19236 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19237 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19238 if test $ac_cv_type_pid_t = yes; then
19242 cat >>confdefs.h
<<_ACEOF
19250 for ac_header
in unistd.h vfork.h
19252 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19254 echo "$as_me:$LINENO: checking for $ac_header" >&5
19255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19262 # Is the header compilable?
19263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19265 cat >conftest.
$ac_ext <<_ACEOF
19266 #line $LINENO "configure"
19269 cat confdefs.h
>>conftest.
$ac_ext
19270 cat >>conftest.
$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 $ac_includes_default
19273 #include <$ac_header>
19275 rm -f conftest.
$ac_objext
19276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19277 (eval $ac_compile) 2>&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
19281 { ac_try
='test -s conftest.$ac_objext'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 ac_header_compiler
=yes
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.
$ac_ext >&5
19292 ac_header_compiler
=no
19294 rm -f conftest.
$ac_objext conftest.
$ac_ext
19295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19296 echo "${ECHO_T}$ac_header_compiler" >&6
19298 # Is the header present?
19299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19301 cat >conftest.
$ac_ext <<_ACEOF
19302 #line $LINENO "configure"
19305 cat confdefs.h
>>conftest.
$ac_ext
19306 cat >>conftest.
$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 #include <$ac_header>
19310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19311 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19313 grep -v '^ *+' conftest.er1
>conftest.err
19315 cat conftest.err
>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } >/dev
/null
; then
19318 if test -s conftest.err
; then
19319 ac_cpp_err
=$ac_c_preproc_warn_flag
19326 if test -z "$ac_cpp_err"; then
19327 ac_header_preproc
=yes
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.
$ac_ext >&5
19332 ac_header_preproc
=no
19334 rm -f conftest.err conftest.
$ac_ext
19335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19336 echo "${ECHO_T}$ac_header_preproc" >&6
19338 # So? What about this header?
19339 case $ac_header_compiler:$ac_header_preproc in
19341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19347 ## ------------------------------------ ##
19348 ## Report this to bug-autoconf@gnu.org. ##
19349 ## ------------------------------------ ##
19352 sed "s/^/$as_me: WARNING: /" >&2
19355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19363 ## ------------------------------------ ##
19364 ## Report this to bug-autoconf@gnu.org. ##
19365 ## ------------------------------------ ##
19368 sed "s/^/$as_me: WARNING: /" >&2
19371 echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 eval "$as_ac_Header=$ac_header_preproc"
19378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19383 cat >>confdefs.h
<<_ACEOF
19384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19393 for ac_func
in fork vfork
19395 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19396 echo "$as_me:$LINENO: checking for $ac_func" >&5
19397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19398 if eval "test \"\${$as_ac_var+set}\" = set"; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 cat >conftest.
$ac_ext <<_ACEOF
19402 #line $LINENO "configure"
19405 cat confdefs.h
>>conftest.
$ac_ext
19406 cat >>conftest.
$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 /* System header to define __stub macros and hopefully few prototypes,
19409 which can conflict with char $ac_func (); below.
19410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19411 <limits.h> exists even on freestanding compilers. */
19413 # include <limits.h>
19415 # include <assert.h>
19417 /* Override any gcc2 internal prototype to avoid an error. */
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19425 /* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
19428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19431 char (*f) () = $ac_func;
19440 return f != $ac_func;
19445 rm -f conftest.
$ac_objext conftest
$ac_exeext
19446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19447 (eval $ac_link) 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
19451 { ac_try
='test -s conftest$ac_exeext'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19457 eval "$as_ac_var=yes"
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.
$ac_ext >&5
19462 eval "$as_ac_var=no"
19464 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19468 if test `eval echo '${'$as_ac_var'}'` = yes; then
19469 cat >>confdefs.h
<<_ACEOF
19470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19476 if test "x$ac_cv_func_fork" = xyes
; then
19477 echo "$as_me:$LINENO: checking for working fork" >&5
19478 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19479 if test "${ac_cv_func_fork_works+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 if test "$cross_compiling" = yes; then
19483 ac_cv_func_fork_works
=cross
19485 cat >conftest.
$ac_ext <<_ACEOF
19486 /* By Ruediger Kuhlmann. */
19487 #include <sys/types.h>
19489 # include <unistd.h>
19491 /* Some systems only have a dummy stub for fork() */
19499 rm -f conftest
$ac_exeext
19500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501 (eval $ac_link) 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_func_fork_works
=yes
19512 echo "$as_me: program exited with status $ac_status" >&5
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.
$ac_ext >&5
19516 ( exit $ac_status )
19517 ac_cv_func_fork_works
=no
19519 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19522 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19523 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19526 ac_cv_func_fork_works
=$ac_cv_func_fork
19528 if test "x$ac_cv_func_fork_works" = xcross
; then
19530 *-*-amigaos* |
*-*-msdosdjgpp*)
19531 # Override, as these systems have only a dummy fork() stub
19532 ac_cv_func_fork_works
=no
19535 ac_cv_func_fork_works
=yes
19538 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19539 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19541 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19542 if test "x$ac_cv_func_vfork" = xyes
; then
19543 echo "$as_me:$LINENO: checking for working vfork" >&5
19544 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19545 if test "${ac_cv_func_vfork_works+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 if test "$cross_compiling" = yes; then
19549 ac_cv_func_vfork_works
=cross
19551 cat >conftest.
$ac_ext <<_ACEOF
19552 #line $LINENO "configure"
19555 cat confdefs.h
>>conftest.
$ac_ext
19556 cat >>conftest.
$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558 /* Thanks to Paul Eggert for this test. */
19560 #include <stdlib.h>
19561 #include <sys/types.h>
19562 #include <sys/stat.h>
19563 #include <sys/wait.h>
19565 # include <unistd.h>
19568 # include <vfork.h>
19570 /* On some sparc systems, changes by the child to local and incoming
19571 argument registers are propagated back to the parent. The compiler
19572 is told about this with #include <vfork.h>, but some compilers
19573 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19574 static variable whose address is put into a register that is
19575 clobbered by the vfork. */
19578 sparc_address_test (int arg)
19580 sparc_address_test (arg) int arg;
19583 static pid_t child;
19601 pid_t parent = getpid ();
19604 sparc_address_test (0);
19609 /* Here is another test for sparc vfork register problems. This
19610 test uses lots of local variables, at least as many local
19611 variables as main has allocated so far including compiler
19612 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19613 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19614 reuse the register of parent for one of the local variables,
19615 since it will think that parent can't possibly be used any more
19616 in this routine. Assigning to the local variable will thus
19617 munge parent in the parent process. */
19619 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19620 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19621 /* Convince the compiler that p..p7 are live; otherwise, it might
19622 use the same hardware register for all 8 local variables. */
19623 if (p != p1 || p != p2 || p != p3 || p != p4
19624 || p != p5 || p != p6 || p != p7)
19627 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19628 from child file descriptors. If the child closes a descriptor
19629 before it execs or exits, this munges the parent's descriptor
19630 as well. Test for this by closing stdout in the child. */
19631 _exit(close(fileno(stdout)) != 0);
19636 while (wait(&status) != child)
19639 /* Was there some problem with vforking? */
19642 /* Did the child fail? (This shouldn't happen.) */
19645 /* Did the vfork/compiler bug occur? */
19646 || parent != getpid()
19648 /* Did the file descriptor bug occur? */
19649 || fstat(fileno(stdout), &st) != 0
19654 rm -f conftest
$ac_exeext
19655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19656 (eval $ac_link) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_cv_func_vfork_works
=yes
19667 echo "$as_me: program exited with status $ac_status" >&5
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.
$ac_ext >&5
19671 ( exit $ac_status )
19672 ac_cv_func_vfork_works
=no
19674 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19677 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19678 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19681 if test "x$ac_cv_func_fork_works" = xcross
; then
19682 ac_cv_func_vfork_works
=ac_cv_func_vfork
19683 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19684 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19687 if test "x$ac_cv_func_vfork_works" = xyes
; then
19689 cat >>confdefs.h
<<\_ACEOF
19690 #define HAVE_WORKING_VFORK 1
19695 cat >>confdefs.h
<<\_ACEOF
19700 if test "x$ac_cv_func_fork_works" = xyes
; then
19702 cat >>confdefs.h
<<\_ACEOF
19703 #define HAVE_WORKING_FORK 1
19709 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
19710 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
19711 if test "${emacs_cv_langinfo_codeset+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 cat >conftest.
$ac_ext <<_ACEOF
19715 #line $LINENO "configure"
19718 cat confdefs.h
>>conftest.
$ac_ext
19719 cat >>conftest.
$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <langinfo.h>
19725 char* cs = nl_langinfo(CODESET);
19730 rm -f conftest.
$ac_objext conftest
$ac_exeext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19732 (eval $ac_link) 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
19736 { ac_try
='test -s conftest$ac_exeext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 emacs_cv_langinfo_codeset
=yes
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.
$ac_ext >&5
19747 emacs_cv_langinfo_codeset
=no
19749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19752 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
19753 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
19754 if test $emacs_cv_langinfo_codeset = yes; then
19756 cat >>confdefs.h
<<\_ACEOF
19757 #define HAVE_LANGINFO_CODESET 1
19762 echo "$as_me:$LINENO: checking for size_t" >&5
19763 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19764 if test "${ac_cv_type_size_t+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 cat >conftest.
$ac_ext <<_ACEOF
19768 #line $LINENO "configure"
19771 cat confdefs.h
>>conftest.
$ac_ext
19772 cat >>conftest.
$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 $ac_includes_default
19780 if (sizeof (size_t))
19786 rm -f conftest.
$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
19792 { ac_try
='test -s conftest.$ac_objext'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; }; then
19798 ac_cv_type_size_t
=yes
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.
$ac_ext >&5
19803 ac_cv_type_size_t
=no
19805 rm -f conftest.
$ac_objext conftest.
$ac_ext
19807 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19808 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19809 if test $ac_cv_type_size_t = yes; then
19811 cat >>confdefs.h
<<_ACEOF
19812 #define HAVE_SIZE_T 1
19819 echo "$as_me:$LINENO: checking for mbstate_t" >&5
19820 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
19821 if test "${ac_cv_type_mbstate_t+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 cat >conftest.
$ac_ext <<_ACEOF
19825 #line $LINENO "configure"
19828 cat confdefs.h
>>conftest.
$ac_ext
19829 cat >>conftest.
$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 $ac_includes_default
19832 # include <wchar.h>
19836 mbstate_t x; return sizeof x;
19841 rm -f conftest.
$ac_objext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19843 (eval $ac_compile) 2>&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try
='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_type_mbstate_t
=yes
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.
$ac_ext >&5
19858 ac_cv_type_mbstate_t
=no
19860 rm -f conftest.
$ac_objext conftest.
$ac_ext
19862 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
19863 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
19864 if test $ac_cv_type_mbstate_t = yes; then
19866 cat >>confdefs.h
<<\_ACEOF
19867 #define HAVE_MBSTATE_T 1
19872 cat >>confdefs.h
<<\_ACEOF
19873 #define mbstate_t int
19878 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
19879 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
19880 if test "${emacs_cv_c_restrict+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 cat >conftest.
$ac_ext <<_ACEOF
19884 #line $LINENO "configure"
19887 cat confdefs.h
>>conftest.
$ac_ext
19888 cat >>conftest.
$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 void fred (int *restrict x);
19899 rm -f conftest.
$ac_objext
19900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
19905 { ac_try
='test -s conftest.$ac_objext'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
19911 emacs_cv_c_restrict
=yes
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.
$ac_ext >&5
19916 cat >conftest.
$ac_ext <<_ACEOF
19917 #line $LINENO "configure"
19920 cat confdefs.h
>>conftest.
$ac_ext
19921 cat >>conftest.
$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 void fred (int *__restrict x);
19932 rm -f conftest.
$ac_objext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19934 (eval $ac_compile) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try
='test -s conftest.$ac_objext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 emacs_cv_c_restrict
=__restrict
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.
$ac_ext >&5
19949 emacs_cv_c_restrict
=no
19951 rm -f conftest.
$ac_objext conftest.
$ac_ext
19953 rm -f conftest.
$ac_objext conftest.
$ac_ext
19955 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
19956 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
19957 case "$emacs_cv_c_restrict" in
19958 yes) emacs_restrict
=restrict
;;
19959 no
) emacs_restrict
="";;
19960 *) emacs_restrict
="$emacs_cv_c_restrict";;
19962 if test "$emacs_restrict" != __restrict
; then
19964 cat >>confdefs.h
<<_ACEOF
19965 #define __restrict $emacs_restrict
19970 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
19971 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
19972 if test "${emacs_cv_c_restrict_arr+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 cat >conftest.
$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19979 cat confdefs.h
>>conftest.
$ac_ext
19980 cat >>conftest.
$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 void fred (int x[__restrict]);
19991 rm -f conftest.
$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try
='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 emacs_cv_c_restrict_arr
=yes
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.
$ac_ext >&5
20008 emacs_cv_c_restrict_arr
=no
20010 rm -f conftest.
$ac_objext conftest.
$ac_ext
20012 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
20013 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
20014 if test "$emacs_cv_c_restrict_arr" = yes; then
20016 cat >>confdefs.h
<<\_ACEOF
20017 #define __restrict_arr __restrict
20024 # Set up the CFLAGS for real compilation, so we can substitute it.
20025 CFLAGS
="$REAL_CFLAGS"
20026 CPPFLAGS
="$REAL_CPPFLAGS"
20028 #### Find out which version of Emacs this is.
20029 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
20030 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
20031 if test x
"${version}" = x
; then
20032 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
20033 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
20034 { (exit 1); exit 1; }; }
20037 ### Specify what sort of things we'll be editing into Makefile and config.h.
20038 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20074 cat >>confdefs.h
<<_ACEOF
20075 #define EMACS_CONFIGURATION "${canonical}"
20079 cat >>confdefs.h
<<_ACEOF
20080 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20084 cat >>confdefs.h
<<_ACEOF
20085 #define config_machfile "${machfile}"
20089 cat >>confdefs.h
<<_ACEOF
20090 #define config_opsysfile "${opsysfile}"
20094 cat >>confdefs.h
<<_ACEOF
20095 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
20099 cat >>confdefs.h
<<_ACEOF
20100 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
20104 cat >>confdefs.h
<<_ACEOF
20105 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
20109 cat >>confdefs.h
<<_ACEOF
20110 #define UNEXEC_SRC ${UNEXEC_SRC}
20114 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20116 cat >>confdefs.h
<<\_ACEOF
20117 #define HAVE_X_WINDOWS 1
20121 if test "${USE_X_TOOLKIT}" != "none" ; then
20123 cat >>confdefs.h
<<\_ACEOF
20124 #define USE_X_TOOLKIT 1
20128 if test "${HAVE_X11}" = "yes" ; then
20130 cat >>confdefs.h
<<\_ACEOF
20135 if test "${HAVE_XFREE386}" = "yes" ; then
20137 cat >>confdefs.h
<<\_ACEOF
20138 #define HAVE_XFREE386 1
20142 if test "${HAVE_MENUS}" = "yes" ; then
20144 cat >>confdefs.h
<<\_ACEOF
20145 #define HAVE_MENUS 1
20149 if test "${GNU_MALLOC}" = "yes" ; then
20151 cat >>confdefs.h
<<\_ACEOF
20152 #define GNU_MALLOC 1
20156 if test "${REL_ALLOC}" = "yes" ; then
20158 cat >>confdefs.h
<<\_ACEOF
20159 #define REL_ALLOC 1
20168 #### Report on what we decided to do.
20169 #### Report GTK as a toolkit, even if it doesn't use Xt.
20170 #### It makes printing result more understandable as using GTK sets
20171 #### toolkit_scroll_bars to yes by default.
20172 if test "${HAVE_GTK}" = "yes"; then
20177 Configured for \`${canonical}'.
20179 Where should the build process find the source code? ${srcdir}
20180 What operating system and machine description files should Emacs use?
20181 \`${opsysfile}' and \`${machfile}'
20182 What compiler should emacs be built with? ${CC} ${CFLAGS}
20183 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20184 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20185 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20186 What window system should Emacs use? ${window_system}
20187 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20189 if test -n "${x_includes}"; then
20190 echo " Where do we find X Windows header files? ${x_includes}"
20192 echo " Where do we find X Windows header files? Standard dirs"
20194 if test -n "${x_libraries}"; then
20195 echo " Where do we find X Windows libraries? ${x_libraries}"
20197 echo " Where do we find X Windows libraries? Standard dirs"
20200 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20201 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20202 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20203 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20204 echo " Does Emacs use -lungif? ${HAVE_GIF}"
20205 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20206 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20209 if test $USE_XASSERTS = yes; then
20210 echo " Compiling with asserts turned on."
20211 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
20217 # Remove any trailing slashes in these variables.
20218 test "${prefix}" != NONE
&&
20219 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20220 test "${exec_prefix}" != NONE
&&
20221 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20223 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
20224 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
20225 ## from Makefile.c can correctly provide the arg `-traditional' to the
20228 cat >conftest.
$ac_ext <<_ACEOF
20229 #line $LINENO "configure"
20232 cat confdefs.h
>>conftest.
$ac_ext
20233 cat >>conftest.
$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238 $EGREP "yes..yes" >/dev
/null
2>&1; then
20239 CPP_NEED_TRADITIONAL
=no
20241 CPP_NEED_TRADITIONAL
=yes
20246 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"
20247 ac_config_commands
="$ac_config_commands default"
20248 cat >confcache
<<\_ACEOF
20249 # This file is a shell script that caches the results of configure
20250 # tests run on this system so they can be shared between configure
20251 # scripts and configure runs, see configure's option --config-cache.
20252 # It is not useful on other systems. If it contains results you don't
20253 # want to keep, you may remove or edit it.
20255 # config.status only pays attention to the cache file if you give it
20256 # the --recheck option to rerun configure.
20258 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20259 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20260 # following values.
20264 # The following way of writing the cache mishandles newlines in values,
20265 # but we know of no workaround that is simple, portable, and efficient.
20266 # So, don't put newlines in cache variables' values.
20267 # Ultrix sh set writes to stderr and can't be redirected directly,
20268 # and sets the high bit in the cache file unless we assign to the vars.
20271 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20273 # `set' does not quote correctly, so add quotes (double-quote
20274 # substitution turns \\\\ into \\, and sed turns \\ into \).
20277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20280 # `set' quotes correctly as required by POSIX, so do not add quotes.
20282 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20291 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20293 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
20294 if test -w $cache_file; then
20295 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20296 cat confcache
>$cache_file
20298 echo "not updating unwritable cache $cache_file"
20303 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20304 # Let make expand exec_prefix.
20305 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20307 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20308 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20309 # trailing colons and then remove the whole line if VPATH becomes empty
20310 # (actually we leave an empty line to preserve line numbers).
20311 if test "x$srcdir" = x.
; then
20312 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
20313 s/:*\$(srcdir):*/:/;
20314 s/:*\${srcdir}:*/:/;
20316 s/^\([^=]*=[ ]*\):*/\1/;
20322 DEFS
=-DHAVE_CONFIG_H
20326 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20327 # 1. Remove the extension, and $U if already installed.
20328 ac_i
=`echo "$ac_i" |
20329 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20331 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
20332 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
20334 LIBOBJS
=$ac_libobjs
20336 LTLIBOBJS
=$ac_ltlibobjs
20340 : ${CONFIG_STATUS=./config.status}
20341 ac_clean_files_save
=$ac_clean_files
20342 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20343 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20344 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20345 cat >$CONFIG_STATUS <<_ACEOF
20347 # Generated by $as_me.
20348 # Run this file to recreate the current configuration.
20349 # Compiler output produced by configure, useful for debugging
20350 # configure, is in config.log if it exists.
20353 ac_cs_recheck=false
20355 SHELL=\${CONFIG_SHELL-$SHELL}
20358 cat >>$CONFIG_STATUS <<\_ACEOF
20359 ## --------------------- ##
20360 ## M4sh Initialization. ##
20361 ## --------------------- ##
20363 # Be Bourne compatible
20364 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20367 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20368 # is contrary to our usage. Disable this feature.
20369 alias -g '${1+"$@"}'='"$@"'
20370 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
20374 # Support unset when possible.
20375 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
20382 # Work around bugs in pre-3.0 UWIN ksh.
20383 $as_unset ENV MAIL MAILPATH
20390 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20391 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20392 LC_TELEPHONE LC_TIME
20394 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
20395 eval $as_var=C
; export $as_var
20401 # Required to use basename.
20402 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20408 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
20409 as_basename
=basename
20415 # Name of the executable.
20416 as_me
=`$as_basename "$0" ||
20417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20418 X"$0" : 'X\(//\)$' \| \
20419 X"$0" : 'X\(/\)$' \| \
20420 . : '\(.\)' 2>/dev/null ||
20422 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20423 /^X\/\(\/\/\)$/{ s//\1/; q; }
20424 /^X\/\(\/\).*/{ s//\1/; q; }
20428 # PATH needs CR, and LINENO needs CR and PATH.
20429 # Avoid depending upon Character Ranges.
20430 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20431 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20432 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20433 as_cr_digits
='0123456789'
20434 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20436 # The user is always right.
20437 if test "${PATH_SEPARATOR+set}" != set; then
20438 echo "#! /bin/sh" >conf$$.sh
20439 echo "exit 0" >>conf$$.sh
20441 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20450 as_lineno_1
=$LINENO
20451 as_lineno_2
=$LINENO
20452 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
20453 test "x$as_lineno_1" != "x$as_lineno_2" &&
20454 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
20455 # Find who we are. Look in the path if we contain no path at all
20458 *[\\/]* ) as_myself
=$0 ;;
20459 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20460 for as_dir
in $PATH
20463 test -z "$as_dir" && as_dir
=.
20464 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20469 # We did not find ourselves, most probably we were run as `sh COMMAND'
20470 # in which case we are not to be found in the path.
20471 if test "x$as_myself" = x
; then
20474 if test ! -f "$as_myself"; then
20475 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20476 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20477 { (exit 1); exit 1; }; }
20479 case $CONFIG_SHELL in
20481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20482 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
20485 test -z "$as_dir" && as_dir
=.
20486 for as_base
in sh bash ksh sh5
; do
20489 if ("$as_dir/$as_base" -c '
20490 as_lineno_1=$LINENO
20491 as_lineno_2=$LINENO
20492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20493 test "x$as_lineno_1" != "x$as_lineno_2" &&
20494 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
20495 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
20496 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
20497 CONFIG_SHELL
=$as_dir/$as_base
20498 export CONFIG_SHELL
20499 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20507 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20508 # uniformly replaced by the line number. The first 'sed' inserts a
20509 # line-number line before each line; the second 'sed' does the real
20510 # work. The second script uses 'N' to pair each line-number line
20511 # with the numbered line, and appends trailing '-' during
20512 # substitution so that $LINENO is not a special case at line end.
20513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20514 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20515 sed '=' <$as_myself |
20520 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20523 s,^['$as_cr_digits']*\n,,
20524 ' >$as_me.lineno
&&
20525 chmod +x
$as_me.lineno ||
20526 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20527 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20528 { (exit 1); exit 1; }; }
20530 # Don't try to exec as it changes $[0], causing all sort of problems
20531 # (the dirname of $[0] is not the place where we might find the
20532 # original and so on. Autoconf is especially sensible to this).
20534 # Exit status is that of the last command.
20539 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20540 *c
*,-n*) ECHO_N
= ECHO_C
='
20542 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
20543 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20546 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20552 rm -f conf$$ conf$$.exe conf$$.
file
20554 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20555 # We could just check for DJGPP; but this test a) works b) is more generic
20556 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20557 if test -f conf$$.exe
; then
20558 # Don't use ln at all; we don't have any links
20563 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20568 rm -f conf$$ conf$$.exe conf$$.
file
20570 if mkdir
-p .
2>/dev
/null
; then
20576 as_executable_p
="test -f"
20578 # Sed expression to map a string onto a valid CPP name.
20579 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20581 # Sed expression to map a string onto a valid variable name.
20582 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20586 # We need space, tab and new line, in precisely that order.
20596 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20597 # report actual input values of CONFIG_FILES etc. instead of their
20598 # values after options handling. Logging --version etc. is OK.
20602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20603 ## Running $as_me. ##
20608 This file was extended by $as_me, which was
20609 generated by GNU Autoconf 2.57. Invocation command line was
20611 CONFIG_FILES = $CONFIG_FILES
20612 CONFIG_HEADERS = $CONFIG_HEADERS
20613 CONFIG_LINKS = $CONFIG_LINKS
20614 CONFIG_COMMANDS = $CONFIG_COMMANDS
20618 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20622 # Files that config.status was made for.
20623 if test -n "$ac_config_files"; then
20624 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20627 if test -n "$ac_config_headers"; then
20628 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20631 if test -n "$ac_config_links"; then
20632 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20635 if test -n "$ac_config_commands"; then
20636 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20639 cat >>$CONFIG_STATUS <<\_ACEOF
20642 \`$as_me' instantiates files from templates according to the
20643 current configuration.
20645 Usage: $0 [OPTIONS] [FILE]...
20647 -h, --help print this help, then exit
20648 -V, --version print version number, then exit
20649 -q, --quiet do not print progress messages
20650 -d, --debug don't remove temporary files
20651 --recheck update $as_me by reconfiguring in the same conditions
20652 --file=FILE[:TEMPLATE]
20653 instantiate the configuration file FILE
20654 --header=FILE[:TEMPLATE]
20655 instantiate the configuration header FILE
20657 Configuration files:
20660 Configuration headers:
20663 Configuration commands:
20666 Report bugs to <bug-autoconf@gnu.org>."
20669 cat >>$CONFIG_STATUS <<_ACEOF
20672 configured by $0, generated by GNU Autoconf 2.57,
20673 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20675 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20676 Free Software Foundation, Inc.
20677 This config.status script is free software; the Free Software Foundation
20678 gives unlimited permission to copy, distribute and modify it."
20683 cat >>$CONFIG_STATUS <<\_ACEOF
20684 # If no file are specified by the user, then we need to provide default
20685 # value. By we need to know if files were specified by the user.
20691 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20692 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20700 *) # This is not an option, so the user has probably given explicit
20703 ac_need_defaults
=false
;;
20707 # Handling of the options.
20709 cat >>$CONFIG_STATUS <<\_ACEOF
20710 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20712 --version |
--vers* |
-V )
20713 echo "$ac_cs_version"; exit 0 ;;
20715 # Conflict between --help and --header
20716 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20717 Try \`$0 --help' for more information." >&5
20718 echo "$as_me: error: ambiguous option: $1
20719 Try \`$0 --help' for more information." >&2;}
20720 { (exit 1); exit 1; }; };;
20721 --help |
--hel |
-h )
20722 echo "$ac_cs_usage"; exit 0 ;;
20723 --debug |
--d* |
-d )
20725 --file |
--fil |
--fi |
--f )
20727 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20728 ac_need_defaults
=false
;;
20729 --header |
--heade |
--head |
--hea )
20731 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20732 ac_need_defaults
=false
;;
20733 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20734 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20737 # This is an error.
20738 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20739 Try \`$0 --help' for more information." >&5
20740 echo "$as_me: error: unrecognized option: $1
20741 Try \`$0 --help' for more information." >&2;}
20742 { (exit 1); exit 1; }; } ;;
20744 *) ac_config_targets
="$ac_config_targets $1" ;;
20750 ac_configure_extra_args
=
20752 if $ac_cs_silent; then
20754 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20758 cat >>$CONFIG_STATUS <<_ACEOF
20759 if \$ac_cs_recheck; then
20760 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20761 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20766 cat >>$CONFIG_STATUS <<_ACEOF
20768 # INIT-COMMANDS section.
20771 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
20777 cat >>$CONFIG_STATUS <<\_ACEOF
20778 for ac_config_target
in $ac_config_targets
20780 case "$ac_config_target" in
20781 # Handling of arguments.
20782 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20783 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
20784 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20785 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
20786 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20787 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
20788 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20789 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
20790 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
20791 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20792 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
20793 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20794 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20795 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20796 { (exit 1); exit 1; }; };;
20800 # If the user did not use the arguments to specify the items to instantiate,
20801 # then the envvar interface is used. Set only those that are not.
20802 # We use the long form for the default assignment because of an extremely
20803 # bizarre bug on SunOS 4.1.3.
20804 if $ac_need_defaults; then
20805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20810 # Have a temporary directory for convenience. Make it in the build tree
20811 # simply because there is no reason to put it here, and in addition,
20812 # creating and moving files from /tmp can sometimes cause problems.
20813 # Create a temporary directory, and hook for its removal unless debugging.
20816 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20817 trap '{ (exit 1); exit 1; }' 1 2 13 15
20820 # Create a (secure) tmp directory for tmp files.
20823 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20824 test -n "$tmp" && test -d "$tmp"
20827 tmp
=.
/confstat$$
-$RANDOM
20828 (umask 077 && mkdir
$tmp)
20831 echo "$me: cannot create a temporary directory in ." >&2
20832 { (exit 1); exit 1; }
20837 cat >>$CONFIG_STATUS <<_ACEOF
20840 # CONFIG_FILES section.
20843 # No need to generate the scripts if there are no CONFIG_FILES.
20844 # This happens for instance when ./config.status config.h
20845 if test -n "\$CONFIG_FILES"; then
20846 # Protect against being on the right side of a sed subst in config.status.
20847 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20848 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20849 s,@SHELL@,$SHELL,;t t
20850 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20851 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20852 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20853 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20854 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20855 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20856 s,@exec_prefix@,$exec_prefix,;t t
20857 s,@prefix@,$prefix,;t t
20858 s,@program_transform_name@,$program_transform_name,;t t
20859 s,@bindir@,$bindir,;t t
20860 s,@sbindir@,$sbindir,;t t
20861 s,@libexecdir@,$libexecdir,;t t
20862 s,@datadir@,$datadir,;t t
20863 s,@sysconfdir@,$sysconfdir,;t t
20864 s,@sharedstatedir@,$sharedstatedir,;t t
20865 s,@localstatedir@,$localstatedir,;t t
20866 s,@libdir@,$libdir,;t t
20867 s,@includedir@,$includedir,;t t
20868 s,@oldincludedir@,$oldincludedir,;t t
20869 s,@infodir@,$infodir,;t t
20870 s,@mandir@,$mandir,;t t
20871 s,@build_alias@,$build_alias,;t t
20872 s,@host_alias@,$host_alias,;t t
20873 s,@target_alias@,$target_alias,;t t
20874 s,@DEFS@,$DEFS,;t t
20875 s,@ECHO_C@,$ECHO_C,;t t
20876 s,@ECHO_N@,$ECHO_N,;t t
20877 s,@ECHO_T@,$ECHO_T,;t t
20878 s,@LIBS@,$LIBS,;t t
20879 s,@MAINT@,$MAINT,;t t
20880 s,@build@,$build,;t t
20881 s,@build_cpu@,$build_cpu,;t t
20882 s,@build_vendor@,$build_vendor,;t t
20883 s,@build_os@,$build_os,;t t
20884 s,@host@,$host,;t t
20885 s,@host_cpu@,$host_cpu,;t t
20886 s,@host_vendor@,$host_vendor,;t t
20887 s,@host_os@,$host_os,;t t
20889 s,@CFLAGS@,$CFLAGS,;t t
20890 s,@LDFLAGS@,$LDFLAGS,;t t
20891 s,@CPPFLAGS@,$CPPFLAGS,;t t
20892 s,@ac_ct_CC@,$ac_ct_CC,;t t
20893 s,@EXEEXT@,$EXEEXT,;t t
20894 s,@OBJEXT@,$OBJEXT,;t t
20895 s,@LN_S@,$LN_S,;t t
20897 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20898 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20899 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20900 s,@RANLIB@,$RANLIB,;t t
20901 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20902 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
20903 s,@EGREP@,$EGREP,;t t
20904 s,@LIBSOUND@,$LIBSOUND,;t t
20905 s,@SET_MAKE@,$SET_MAKE,;t t
20906 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20907 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20908 s,@GTK_LIBS@,$GTK_LIBS,;t t
20909 s,@ALLOCA@,$ALLOCA,;t t
20910 s,@liblockfile@,$liblockfile,;t t
20911 s,@LIBOBJS@,$LIBOBJS,;t t
20912 s,@NEED_SETGID@,$NEED_SETGID,;t t
20913 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
20914 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
20915 s,@version@,$version,;t t
20916 s,@configuration@,$configuration,;t t
20917 s,@canonical@,$canonical,;t t
20918 s,@srcdir@,$srcdir,;t t
20919 s,@lispdir@,$lispdir,;t t
20920 s,@locallisppath@,$locallisppath,;t t
20921 s,@lisppath@,$lisppath,;t t
20922 s,@x_default_search_path@,$x_default_search_path,;t t
20923 s,@etcdir@,$etcdir,;t t
20924 s,@archlibdir@,$archlibdir,;t t
20925 s,@docdir@,$docdir,;t t
20926 s,@bitmapdir@,$bitmapdir,;t t
20927 s,@gamedir@,$gamedir,;t t
20928 s,@gameuser@,$gameuser,;t t
20929 s,@c_switch_system@,$c_switch_system,;t t
20930 s,@c_switch_machine@,$c_switch_machine,;t t
20931 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
20932 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
20933 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
20934 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
20935 s,@machfile@,$machfile,;t t
20936 s,@opsysfile@,$opsysfile,;t t
20937 s,@carbon_appdir@,$carbon_appdir,;t t
20938 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20943 cat >>$CONFIG_STATUS <<\_ACEOF
20944 # Split the substitutions into bite-sized pieces for seds with
20945 # small command number limits, like on Digital OSF/1 and HP-UX.
20946 ac_max_sed_lines
=48
20947 ac_sed_frag
=1 # Number of current file.
20948 ac_beg
=1 # First line for current file.
20949 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20952 while $ac_more_lines; do
20953 if test $ac_beg -gt 1; then
20954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20956 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20958 if test ! -s $tmp/subs.frag
; then
20959 ac_more_lines
=false
20961 # The purpose of the label and of the branching condition is to
20962 # speed up the sed processing (if there are no `@' at all, there
20963 # is no need to browse any of the substitutions).
20964 # These are the two extra sed commands mentioned above.
20966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20967 if test -z "$ac_sed_cmds"; then
20968 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20970 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20972 ac_sed_frag
=`expr $ac_sed_frag + 1`
20974 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20977 if test -z "$ac_sed_cmds"; then
20980 fi # test -n "$CONFIG_FILES"
20983 cat >>$CONFIG_STATUS <<\_ACEOF
20984 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20987 - |
*:- |
*:-:* ) # input from stdin
20989 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20990 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20991 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20992 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20993 * ) ac_file_in
=$ac_file.
in ;;
20996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20997 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20999 X"$ac_file" : 'X\(//\)[^/]' \| \
21000 X"$ac_file" : 'X\(//\)$' \| \
21001 X"$ac_file" : 'X\(/\)' \| \
21002 . : '\(.\)' 2>/dev/null ||
21004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21006 /^X\(\/\/\)$/{ s//\1/; q; }
21007 /^X\(\/\).*/{ s//\1/; q; }
21009 { if $as_mkdir_p; then
21014 while test ! -d "$as_dir"; do
21015 as_dirs
="$as_dir $as_dirs"
21016 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21018 X"$as_dir" : 'X\(//\)[^/]' \| \
21019 X"$as_dir" : 'X\(//\)$' \| \
21020 X"$as_dir" : 'X\(/\)' \| \
21021 . : '\(.\)' 2>/dev/null ||
21023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21025 /^X\(\/\/\)$/{ s//\1/; q; }
21026 /^X\(\/\).*/{ s//\1/; q; }
21029 test ! -n "$as_dirs" || mkdir
$as_dirs
21030 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21032 { (exit 1); exit 1; }; }; }
21036 if test "$ac_dir" != .
; then
21037 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21038 # A "../" for each directory in $ac_dir_suffix.
21039 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21041 ac_dir_suffix
= ac_top_builddir
=
21045 .
) # No --srcdir option. We are building in place.
21047 if test -z "$ac_top_builddir"; then
21050 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21052 [\\/]* | ?
:[\\/]* ) # Absolute path.
21053 ac_srcdir
=$srcdir$ac_dir_suffix;
21054 ac_top_srcdir
=$srcdir ;;
21055 *) # Relative path.
21056 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21057 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21061 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
21062 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21063 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21064 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21068 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21069 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
21072 if test x
"$ac_file" != x-
; then
21073 { echo "$as_me:$LINENO: creating $ac_file" >&5
21074 echo "$as_me: creating $ac_file" >&6;}
21077 # Let's still pretend it is `configure' which instantiates (i.e., don't
21078 # use $as_me), people would be surprised to read:
21079 # /* config.h. Generated by config.status. */
21080 if test x
"$ac_file" = x-
; then
21083 configure_input
="$ac_file. "
21085 configure_input
=$configure_input"Generated from `echo $ac_file_in |
21086 sed 's,.*/,,'` by configure."
21088 # First look for the input files in the build tree, otherwise in the
21090 ac_file_inputs
=`IFS=:
21091 for f in $ac_file_in; do
21093 -) echo $tmp/stdin ;;
21095 # Absolute (can't be DOS-style, as IFS=:)
21096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21097 echo "$as_me: error: cannot find input file: $f" >&2;}
21098 { (exit 1); exit 1; }; }
21101 if test -f "$f"; then
21104 elif test -f "$srcdir/$f"; then
21109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21110 echo "$as_me: error: cannot find input file: $f" >&2;}
21111 { (exit 1); exit 1; }; }
21114 done` ||
{ (exit 1); exit 1; }
21116 cat >>$CONFIG_STATUS <<_ACEOF
21120 cat >>$CONFIG_STATUS <<\_ACEOF
21122 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21123 s
,@configure_input@
,$configure_input,;t t
21124 s
,@srcdir@
,$ac_srcdir,;t t
21125 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
21126 s
,@top_srcdir@
,$ac_top_srcdir,;t t
21127 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
21128 s
,@builddir@
,$ac_builddir,;t t
21129 s
,@abs_builddir@
,$ac_abs_builddir,;t t
21130 s
,@top_builddir@
,$ac_top_builddir,;t t
21131 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
21132 s
,@INSTALL@
,$ac_INSTALL,;t t
21133 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21135 if test x"$ac_file" != x-; then
21136 mv $tmp/out $ac_file
21144 cat >>$CONFIG_STATUS <<\_ACEOF
21147 # CONFIG_HEADER section.
21150 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
21151 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21153 # ac_d sets the value in "#define NAME VALUE" lines.
21154 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21155 ac_dB
='[ ].*$,\1#\2'
21158 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21159 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21160 ac_uB
='$,\1#\2define\3'
21164 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
21165 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21167 - |
*:- |
*:-:* ) # input from stdin
21169 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21170 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21171 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21172 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21173 * ) ac_file_in
=$ac_file.
in ;;
21176 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
21177 echo "$as_me: creating $ac_file" >&6;}
21179 # First look for the input files in the build tree, otherwise in the
21181 ac_file_inputs
=`IFS=:
21182 for f in $ac_file_in; do
21184 -) echo $tmp/stdin ;;
21186 # Absolute (can't be DOS-style, as IFS=:)
21187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21188 echo "$as_me: error: cannot find input file: $f" >&2;}
21189 { (exit 1); exit 1; }; }
21192 if test -f "$f"; then
21195 elif test -f "$srcdir/$f"; then
21200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21201 echo "$as_me: error: cannot find input file: $f" >&2;}
21202 { (exit 1); exit 1; }; }
21205 done` ||
{ (exit 1); exit 1; }
21206 # Remove the trailing spaces.
21207 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21211 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21212 # `conftest.undefs', that substitutes the proper values into
21213 # config.h.in to produce config.h. The first handles `#define'
21214 # templates, and the second `#undef' templates.
21215 # And first: Protect against being on the right side of a sed subst in
21216 # config.status. Protect against being in an unquoted here document
21217 # in config.status.
21218 rm -f conftest.defines conftest.undefs
21219 # Using a here document instead of a string reduces the quoting nightmare.
21220 # Putting comments in sed scripts is not portable.
21222 # `end' is used to avoid that the second main sed command (meant for
21223 # 0-ary CPP macros) applies to n-ary macro definitions.
21224 # See the Autoconf documentation for `clear'.
21225 cat >confdef2sed.
sed <<\_ACEOF
21230 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21232 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21235 # If some macros were called several times there might be several times
21236 # the same #defines, which is useless. Nevertheless, we may not want to
21237 # sort them, since we want the *last* AC-DEFINE to be honored.
21238 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21239 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21240 rm -f confdef2sed.sed
21242 # This sed command replaces #undef with comments. This is necessary, for
21243 # example, in the case of _POSIX_SOURCE, which is predefined and required
21244 # on some systems where configure will not decide to define it.
21245 cat >>conftest.undefs <<\_ACEOF
21246 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21249 # Break up conftest.defines because some shells have a limit on the size
21250 # of here documents, and old seds have small limits too (100 cmds).
21251 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21252 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21253 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21254 echo ' :' >>$CONFIG_STATUS
21255 rm -f conftest.tail
21256 while grep . conftest.defines >/dev/null
21258 # Write a limited-size here document to $tmp/defines.sed.
21259 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21260 # Speed up: don't consider the non `#define' lines.
21261 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21262 # Work around the forget-to-reset-the-flag bug.
21263 echo 't clr' >>$CONFIG_STATUS
21264 echo ': clr' >>$CONFIG_STATUS
21265 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
21267 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21269 mv $tmp/out $tmp/in
21271 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
21272 rm -f conftest.defines
21273 mv conftest.
tail conftest.defines
21275 rm -f conftest.defines
21276 echo ' fi # grep' >>$CONFIG_STATUS
21277 echo >>$CONFIG_STATUS
21279 # Break up conftest.undefs because some shells have a limit on the size
21280 # of here documents, and old seds have small limits too (100 cmds).
21281 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21282 rm -f conftest.
tail
21283 while grep . conftest.undefs
>/dev
/null
21285 # Write a limited-size here document to $tmp/undefs.sed.
21286 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21287 # Speed up: don't consider the non
`#undef'
21288 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21289 # Work around the forget-to-reset-the-flag bug.
21290 echo 't clr' >>$CONFIG_STATUS
21291 echo ': clr' >>$CONFIG_STATUS
21292 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21294 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21296 mv $tmp/out $tmp/in
21298 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21299 rm -f conftest.undefs
21300 mv conftest.tail conftest.undefs
21302 rm -f conftest.undefs
21304 cat >>$CONFIG_STATUS <<\_ACEOF
21305 # Let's still pretend it is `configure
' which instantiates (i.e., don't
21306 # use $as_me), people would be surprised to read:
21307 # /* config.h. Generated by config.status. */
21308 if test x
"$ac_file" = x-
; then
21309 echo "/* Generated by configure. */" >$tmp/config.h
21311 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21313 cat $tmp/in >>$tmp/config.h
21315 if test x
"$ac_file" != x-
; then
21316 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
21317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21318 echo "$as_me: $ac_file is unchanged" >&6;}
21320 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21322 X"$ac_file" : 'X\(//\)[^/]' \| \
21323 X"$ac_file" : 'X\(//\)$' \| \
21324 X"$ac_file" : 'X\(/\)' \| \
21325 . : '\(.\)' 2>/dev/null ||
21327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21329 /^X\(\/\/\)$/{ s//\1/; q; }
21330 /^X\(\/\).*/{ s//\1/; q; }
21332 { if $as_mkdir_p; then
21337 while test ! -d "$as_dir"; do
21338 as_dirs
="$as_dir $as_dirs"
21339 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21341 X"$as_dir" : 'X\(//\)[^/]' \| \
21342 X"$as_dir" : 'X\(//\)$' \| \
21343 X"$as_dir" : 'X\(/\)' \| \
21344 . : '\(.\)' 2>/dev/null ||
21346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21348 /^X\(\/\/\)$/{ s//\1/; q; }
21349 /^X\(\/\).*/{ s//\1/; q; }
21352 test ! -n "$as_dirs" || mkdir
$as_dirs
21353 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21355 { (exit 1); exit 1; }; }; }
21358 mv $tmp/config.h
$ac_file
21362 rm -f $tmp/config.h
21366 cat >>$CONFIG_STATUS <<\_ACEOF
21369 # CONFIG_COMMANDS section.
21371 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
21372 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
21373 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21374 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
21375 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21376 X"$ac_dest" : 'X\(//\)[^/]' \| \
21377 X"$ac_dest" : 'X\(//\)$' \| \
21378 X"$ac_dest" : 'X\(/\)' \| \
21379 . : '\(.\)' 2>/dev/null ||
21381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21383 /^X\(\/\/\)$/{ s//\1/; q; }
21384 /^X\(\/\).*/{ s//\1/; q; }
21388 if test "$ac_dir" != .
; then
21389 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21390 # A "../" for each directory in $ac_dir_suffix.
21391 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21393 ac_dir_suffix
= ac_top_builddir
=
21397 .
) # No --srcdir option. We are building in place.
21399 if test -z "$ac_top_builddir"; then
21402 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21404 [\\/]* | ?
:[\\/]* ) # Absolute path.
21405 ac_srcdir
=$srcdir$ac_dir_suffix;
21406 ac_top_srcdir
=$srcdir ;;
21407 *) # Relative path.
21408 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21409 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21411 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21413 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
21414 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21415 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21416 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21419 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21420 echo "$as_me: executing $ac_dest commands" >&6;}
21424 ### Make the necessary directories, if they don't exist.
21425 for dir
in etc lisp
; do
21426 test -d ${dir} || mkdir
${dir}
21429 # Build src/Makefile from ${srcdir}/src/Makefile.c
21430 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
21431 # This must be done after src/config.h is built, since we rely on that file.
21433 # Now get this: Some word that is part of the ${srcdir} directory name
21434 # or the ${configuration} value might, just might, happen to be an
21435 # identifier like `sun4' or `i386' or something, and be predefined by
21436 # the C preprocessor to some helpful value like 1, or maybe the empty
21437 # string. Needless to say consequent macro substitutions are less
21438 # than conducive to the makefile finding the correct directory.
21439 undefs
="`echo $top_srcdir $configuration $canonical |
21440 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
21441 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
21444 echo creating src
/epaths.h
21445 ${MAKE-make} epaths-force
21447 # As of 2000-11-19, newest development versions of GNU cpp preprocess
21448 # `..' to `. .' unless invoked with -traditional
21450 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
21451 CPPFLAGS
="$CPPFLAGS -traditional"
21454 echo creating lib-src
/Makefile
21456 rm -f junk.c junk1.c junk2.c
21457 sed -e '/start of cpp stuff/q' \
21458 < Makefile.c
> junk1.c
21459 sed -e '1,/start of cpp stuff/d'\
21460 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
21461 < Makefile.c
> junk.c
21462 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
21463 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
21464 cat junk1.c junk2.c
> Makefile.new
21465 rm -f junk.c junk1.c junk2.c
21466 chmod 444 Makefile.new
21467 mv -f Makefile.new Makefile
21470 echo creating src
/Makefile
21472 rm -f junk.c junk1.c junk2.c
21473 sed -e '/start of cpp stuff/q' \
21474 < Makefile.c
> junk1.c
21475 sed -e '1,/start of cpp stuff/d'\
21476 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
21477 < Makefile.c
> junk.c
21478 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
21479 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
21480 cat junk1.c junk2.c
> Makefile.new
21481 rm -f junk.c junk1.c junk2.c
21482 chmod 444 Makefile.new
21483 mv -f Makefile.new Makefile
21486 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21487 echo creating src
/.gdbinit
21488 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21491 # This is how we know whether to re-run configure in certain cases.
21492 touch src
/config.stamp
21499 cat >>$CONFIG_STATUS <<\_ACEOF
21501 { (exit 0); exit 0; }
21503 chmod +x
$CONFIG_STATUS
21504 ac_clean_files
=$ac_clean_files_save
21507 # configure is writing to config.log, and then calls config.status.
21508 # config.status does its own redirection, appending to config.log.
21509 # Unfortunately, on DOS this fails, as config.log is still kept open
21510 # by configure, so config.status won't be able to write to it; its
21511 # output is simply discarded. So we exec the FD to /dev/null,
21512 # effectively closing config.log, so it can be properly (re)opened and
21513 # appended to by config.status. When coming back to configure, we
21514 # need to make the FD available again.
21515 if test "$no_create" != yes; then
21517 ac_config_status_args
=
21518 test "$silent" = yes &&
21519 ac_config_status_args
="$ac_config_status_args --quiet"
21521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21524 # would make configure fail if this is the last instruction.
21525 $ac_cs_success ||
{ (exit 1); exit 1; }