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 *-lynxos* ) opsys
=lynxos
;;
2533 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2534 *-isc2.2
* ) opsys
=isc2-2
;;
2535 *-isc4.0
* ) opsys
=isc4-0
;;
2536 *-isc4.
* ) opsys
=isc4-1
2537 GCC_TEST_OPTIONS
=-posix
2538 NON_GCC_TEST_OPTIONS
=-Xp
2540 *-isc* ) opsys
=isc3-0
;;
2541 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2542 *-esix* ) opsys
=esix
;;
2543 *-xenix* ) opsys
=xenix
;;
2544 *-linux-gnu* ) opsys
=gnu-linux
;;
2545 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2546 *-sco3.2v5
* ) opsys
=sco5
2547 NON_GNU_CPP
=/lib
/cpp
2548 # Prevent -belf from being passed to $CPP.
2549 # /lib/cpp does not accept it.
2550 OVERRIDE_CPPFLAGS
=" "
2552 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2553 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2554 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2555 *-386bsd* ) opsys
=386bsd
;;
2556 *-nextstep* ) opsys
=nextstep
;;
2557 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2561 ## m68k Linux-based GNU system
2563 machine
=m68k opsys
=gnu-linux
2566 ## Mips Linux-based GNU system
2567 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2568 machine
=mips opsys
=gnu-linux
2572 sparc-fujitsu-sysv4
* )
2573 machine
=sparc opsys
=uxpds
2574 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2579 f301-fujitsu-uxpv4.1
)
2580 machine
=f301 opsys
=uxpv
2583 ## Darwin / Mac OS X
2584 powerpc-apple-darwin
* )
2585 machine
=powermac opsys
=darwin
2586 # Define CPP as follows to make autoconf work correctly.
2587 CPP
="${CC-cc} -E -no-cpp-precomp"
2588 # Use fink packages if available.
2589 if test -d /sw
/include
&& test -d /sw
/lib
; then
2590 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2591 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2592 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2596 ## AMD x86-64 Linux-based GNU system
2597 x86_64-
*-linux-gnu* )
2598 machine
=amdx86-64 opsys
=gnu-linux
2606 ### If the code above didn't choose an operating system, just choose
2607 ### an operating system based on the configuration name. You really
2608 ### only want to use this when you have no idea what the right
2609 ### operating system is; if you know what operating systems a machine
2610 ### runs, it's cleaner to make it explicit in the case statement
2612 if test x
"${opsys}" = x
; then
2613 case "${canonical}" in
2614 *-gnu* ) opsys
=gnu
;;
2615 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2616 *-bsd4.2
) opsys
=bsd4-2
;;
2617 *-bsd4.3
) opsys
=bsd4-3
;;
2618 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2619 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2620 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2621 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2622 *-sysv4.2uw
* ) opsys
=unixware
;;
2623 *-sysv5uw* ) opsys
=unixware
;;
2624 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2625 *-sysv4.1
* |
*-sysvr4.1
* )
2626 NON_GNU_CPP
=/usr
/lib
/cpp
2628 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2629 if [ x
$NON_GNU_CPP = x
]; then
2630 if [ -f /usr
/ccs
/lib
/cpp
]; then
2631 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2633 NON_GNU_CPP
=/lib
/cpp
2637 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2646 if test $unported = yes; then
2647 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2648 Check \`etc/MACHINES' for recognized configuration names." >&5
2649 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2650 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2651 { (exit 1); exit 1; }; }
2654 machfile
="m/${machine}.h"
2655 opsysfile
="s/${opsys}.h"
2658 #### Choose a compiler.
2659 test -n "$CC" && cc_specified
=yes
2661 # Save the value of CFLAGS that the user specified.
2662 SPECIFIED_CFLAGS
="$CFLAGS"
2665 "yes" ) CC
="gcc" GCC
=yes ;;
2666 "no" ) : ${CC=cc} ;;
2670 ac_cpp
='$CPP $CPPFLAGS'
2671 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC
="$CC" # Let the user override the test.
2685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir
=.
2690 for ac_exec_ext
in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 if test -n "$CC"; then
2703 echo "$as_me:$LINENO: result: $CC" >&5
2704 echo "${ECHO_T}$CC" >&6
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2711 if test -z "$ac_cv_prog_CC"; then
2713 # Extract the first word of "gcc", so it can be a program name with args.
2714 set dummy gcc
; ac_word
=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir
=.
2728 for ac_exec_ext
in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_ac_ct_CC
="gcc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2740 if test -n "$ac_ct_CC"; then
2741 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2742 echo "${ECHO_T}$ac_ct_CC" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2753 if test -z "$CC"; then
2754 if test -n "$ac_tool_prefix"; then
2755 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2756 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2757 echo "$as_me:$LINENO: checking for $ac_word" >&5
2758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759 if test "${ac_cv_prog_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC
="$CC" # Let the user override the test.
2765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir
=.
2770 for ac_exec_ext
in '' $ac_executable_extensions; do
2771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test -n "$CC"; then
2783 echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2791 if test -z "$ac_cv_prog_CC"; then
2793 # Extract the first word of "cc", so it can be a program name with args.
2794 set dummy cc
; ac_word
=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir
=.
2808 for ac_exec_ext
in '' $ac_executable_extensions; do
2809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_ac_ct_CC
="cc"
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2820 if test -n "$ac_ct_CC"; then
2821 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2822 echo "${ECHO_T}$ac_ct_CC" >&6
2824 echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2834 if test -z "$CC"; then
2835 # Extract the first word of "cc", so it can be a program name with args.
2836 set dummy cc
; ac_word
=$2
2837 echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC
="$CC" # Let the user override the test.
2846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir
=.
2851 for ac_exec_ext
in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2854 ac_prog_rejected
=yes
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test $ac_prog_rejected = yes; then
2865 # We found a bogon in the path, so make sure we never use it.
2866 set dummy
$ac_cv_prog_CC
2868 if test $# != 0; then
2869 # We chose a different compiler from the bogus one.
2870 # However, it has the same basename, so the bogon will be chosen
2871 # first if we set CC to just the basename; use the full file name.
2873 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2879 if test -n "$CC"; then
2880 echo "$as_me:$LINENO: result: $CC" >&5
2881 echo "${ECHO_T}$CC" >&6
2883 echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2888 if test -z "$CC"; then
2889 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC
="$CC" # Let the user override the test.
2902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir
=.
2907 for ac_exec_ext
in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test -n "$CC"; then
2920 echo "$as_me:$LINENO: result: $CC" >&5
2921 echo "${ECHO_T}$CC" >&6
2923 echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2927 test -n "$CC" && break
2930 if test -z "$CC"; then
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy
$ac_prog; ac_word
=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir
=.
2949 for ac_exec_ext
in '' $ac_executable_extensions; do
2950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_ac_ct_CC
="$ac_prog"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2963 echo "${ECHO_T}$ac_ct_CC" >&6
2965 echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2969 test -n "$ac_ct_CC" && break
2978 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: no acceptable C compiler found in \$PATH
2981 See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }
2984 # Provide some information about the compiler.
2985 echo "$as_me:$LINENO:" \
2986 "checking for C compiler version" >&5
2987 ac_compiler
=`set X $ac_compile; echo $2`
2988 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2989 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }
2993 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2994 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }
2998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2999 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3004 cat >conftest.
$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h
>>conftest.
$ac_ext
3009 cat >>conftest.
$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 ac_clean_files_save
=$ac_clean_files
3021 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3022 # Try to create an executable without -o first, disregard a.out.
3023 # It will help us diagnose broken compilers, and finding out an intuition
3025 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3026 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3027 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3028 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3029 (eval $ac_link_default) 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 # Find the output, starting from the most likely. This scheme is
3034 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3037 # Be careful to initialize this variable, since it used to be cached.
3038 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3040 # b.out is created by i960 compilers.
3041 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3043 test -f "$ac_file" ||
continue
3045 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3048 # This is the source file.
3051 # We found the default executable, but exeext='' is most
3055 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056 # FIXME: I believe we export ac_cv_exeext for Libtool,
3057 # but it would be cool to find out if it's true. Does anybody
3058 # maintain Libtool? --akim.
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.
$ac_ext >&5
3069 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3070 See \`config.log' for more details." >&5
3071 echo "$as_me: error: C compiler cannot create executables
3072 See \`config.log' for more details." >&2;}
3073 { (exit 77); exit 77; }; }
3076 ac_exeext
=$ac_cv_exeext
3077 echo "$as_me:$LINENO: result: $ac_file" >&5
3078 echo "${ECHO_T}$ac_file" >&6
3080 # Check the compiler produces executables we can run. If not, either
3081 # the compiler is broken, or we cross compile.
3082 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3083 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3084 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3085 # If not cross compiling, check that we can run a simple program.
3086 if test "$cross_compiling" != yes; then
3087 if { ac_try
='./$ac_file'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3095 if test "$cross_compiling" = maybe
; then
3098 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3099 If you meant to cross compile, use \`--host'.
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: cannot run C compiled programs.
3102 If you meant to cross compile, use \`--host'.
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3108 echo "$as_me:$LINENO: result: yes" >&5
3109 echo "${ECHO_T}yes" >&6
3111 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3112 ac_clean_files
=$ac_clean_files_save
3113 # Check the compiler produces executables we can run. If not, either
3114 # the compiler is broken, or we cross compile.
3115 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3116 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3117 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3118 echo "${ECHO_T}$cross_compiling" >&6
3120 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3121 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3123 (eval $ac_link) 2>&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; then
3127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3129 # work properly (i.e., refer to `conftest.exe'), while it won't with
3131 for ac_file
in conftest.exe conftest conftest.
*; do
3132 test -f "$ac_file" ||
continue
3134 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3135 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3143 See \`config.log' for more details." >&5
3144 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3145 See \`config.log' for more details." >&2;}
3146 { (exit 1); exit 1; }; }
3149 rm -f conftest
$ac_cv_exeext
3150 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3151 echo "${ECHO_T}$ac_cv_exeext" >&6
3153 rm -f conftest.
$ac_ext
3154 EXEEXT
=$ac_cv_exeext
3156 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3157 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3158 if test "${ac_cv_objext+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 cat >conftest.
$ac_ext <<_ACEOF
3162 #line $LINENO "configure"
3165 cat confdefs.h
>>conftest.
$ac_ext
3166 cat >>conftest.
$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.o conftest.obj
3178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3179 (eval $ac_compile) 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; then
3183 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3185 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3186 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.
$ac_ext >&5
3194 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3197 See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3201 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3204 echo "${ECHO_T}$ac_cv_objext" >&6
3205 OBJEXT
=$ac_cv_objext
3207 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3208 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3209 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 cat >conftest.
$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3216 cat confdefs.h
>>conftest.
$ac_ext
3217 cat >>conftest.
$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3231 rm -f conftest.
$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try
='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.
$ac_ext >&5
3250 rm -f conftest.
$ac_objext conftest.
$ac_ext
3251 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3254 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3256 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CFLAGS
=${CFLAGS+set}
3258 ac_save_CFLAGS
=$CFLAGS
3260 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3262 if test "${ac_cv_prog_cc_g+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 cat >conftest.
$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3269 cat confdefs.h
>>conftest.
$ac_ext
3270 cat >>conftest.
$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3281 rm -f conftest.
$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try
='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.
$ac_ext >&5
3300 rm -f conftest.
$ac_objext conftest.
$ac_ext
3302 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3303 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3304 if test "$ac_test_CFLAGS" = set; then
3305 CFLAGS
=$ac_save_CFLAGS
3306 elif test $ac_cv_prog_cc_g = yes; then
3307 if test "$GCC" = yes; then
3313 if test "$GCC" = yes; then
3319 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3320 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3321 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 ac_cv_prog_cc_stdc
=no
3326 cat >conftest.
$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3330 cat confdefs.h
>>conftest.
$ac_ext
3331 cat >>conftest.
$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3335 #include <sys/types.h>
3336 #include <sys/stat.h>
3337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3338 struct buf { int x; };
3339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3340 static char *e (p, i)
3346 static char *f (char * (*g) (char **, int), char **p, ...)
3351 s = g (p, va_arg (v,int));
3355 int test (int i, double x);
3356 struct s1 {int (*f) (int a);};
3357 struct s2 {int (*f) (double a);};
3358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3369 # Don't try gcc -ansi; that turns off useful extensions and
3370 # breaks some systems' header files.
3371 # AIX -qlanglvl=ansi
3372 # Ultrix and OSF/1 -std1
3373 # HP-UX 10.20 and later -Ae
3374 # HP-UX older versions -Aa -D_HPUX_SOURCE
3375 # SVR4 -Xc -D__EXTENSIONS__
3376 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3378 CC
="$ac_save_CC $ac_arg"
3379 rm -f conftest.
$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try
='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_prog_cc_stdc
=$ac_arg
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.
$ac_ext >&5
3398 rm -f conftest.
$ac_objext
3400 rm -f conftest.
$ac_ext conftest.
$ac_objext
3405 case "x$ac_cv_prog_cc_stdc" in
3407 echo "$as_me:$LINENO: result: none needed" >&5
3408 echo "${ECHO_T}none needed" >&6 ;;
3410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3412 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3415 # Some people use a C++ compiler to compile C. Since we use `exit',
3416 # in C++ we need to declare it. In case someone uses the same compiler
3417 # for both compiling C and C++ we need to have the C++ compiler decide
3418 # the declaration of exit, since it's the most demanding environment.
3419 cat >conftest.
$ac_ext <<_ACEOF
3424 rm -f conftest.
$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try
='test -s conftest.$ac_objext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3436 for ac_declaration
in \
3438 '#include <stdlib.h>' \
3439 'extern "C" void std::exit (int) throw (); using std::exit;' \
3440 'extern "C" void std::exit (int); using std::exit;' \
3441 'extern "C" void exit (int) throw ();' \
3442 'extern "C" void exit (int);' \
3445 cat >conftest.
$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3449 cat confdefs.h
>>conftest.
$ac_ext
3450 cat >>conftest.
$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3462 rm -f conftest.
$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try
='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.
$ac_ext >&5
3481 rm -f conftest.
$ac_objext conftest.
$ac_ext
3482 cat >conftest.
$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3486 cat confdefs.h
>>conftest.
$ac_ext
3487 cat >>conftest.
$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3498 rm -f conftest.
$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try
='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.
$ac_ext >&5
3516 rm -f conftest.
$ac_objext conftest.
$ac_ext
3519 if test -n "$ac_declaration"; then
3520 echo '#ifdef __cplusplus' >>confdefs.h
3521 echo $ac_declaration >>confdefs.h
3522 echo '#endif' >>confdefs.h
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.
$ac_ext >&5
3530 rm -f conftest.
$ac_objext conftest.
$ac_ext
3532 ac_cpp
='$CPP $CPPFLAGS'
3533 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3538 # On Suns, sometimes $CPP names a directory.
3539 if test -n "$CPP" && test -d "$CPP"; then
3543 #### Some systems specify a CPP to use unless we are using GCC.
3544 #### Now that we know whether we are using GCC, we can decide whether
3545 #### to use that one.
3546 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3551 #### Some systems specify a CC to use unless we are using GCC.
3552 #### Now that we know whether we are using GCC, we can decide whether
3553 #### to use that one.
3554 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3555 test x
$cc_specified != xyes
3560 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3562 CC
="$CC $GCC_TEST_OPTIONS"
3565 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3567 CC
="$CC $NON_GCC_TEST_OPTIONS"
3570 #### Some other nice autoconf tests.
3572 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3573 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3575 if test "$LN_S" = "ln -s"; then
3576 echo "$as_me:$LINENO: result: yes" >&5
3577 echo "${ECHO_T}yes" >&6
3579 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3580 echo "${ECHO_T}no, using $LN_S" >&6
3584 ac_cpp
='$CPP $CPPFLAGS'
3585 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3588 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3589 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3590 # On Suns, sometimes $CPP names a directory.
3591 if test -n "$CPP" && test -d "$CPP"; then
3594 if test -z "$CPP"; then
3595 if test "${ac_cv_prog_CPP+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 # Double quotes because CPP needs to be expanded
3599 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3602 for ac_c_preproc_warn_flag
in '' yes
3604 # Use a header file that comes with gcc, so configuring glibc
3605 # with a fresh cross-compiler works.
3606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3607 # <limits.h> exists even on freestanding compilers.
3608 # On the NeXT, cc -E runs the code through the compiler's parser,
3609 # not just through cpp. "Syntax error" is here to catch this case.
3610 cat >conftest.
$ac_ext <<_ACEOF
3611 #line $LINENO "configure"
3614 cat confdefs.h
>>conftest.
$ac_ext
3615 cat >>conftest.
$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3618 # include <limits.h>
3620 # include <assert.h>
3624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3627 grep -v '^ *+' conftest.er1
>conftest.err
3629 cat conftest.err
>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev
/null
; then
3632 if test -s conftest.err
; then
3633 ac_cpp_err
=$ac_c_preproc_warn_flag
3640 if test -z "$ac_cpp_err"; then
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.
$ac_ext >&5
3646 # Broken: fails on valid input.
3649 rm -f conftest.err conftest.
$ac_ext
3651 # OK, works on sane cases. Now check whether non-existent headers
3652 # can be detected and how.
3653 cat >conftest.
$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3657 cat confdefs.h
>>conftest.
$ac_ext
3658 cat >>conftest.
$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3660 #include <ac_nonexistent.h>
3662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1
>conftest.err
3667 cat conftest.err
>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } >/dev
/null
; then
3670 if test -s conftest.err
; then
3671 ac_cpp_err
=$ac_c_preproc_warn_flag
3678 if test -z "$ac_cpp_err"; then
3679 # Broken: success on invalid input.
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3685 # Passes both tests.
3689 rm -f conftest.err conftest.
$ac_ext
3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693 rm -f conftest.err conftest.
$ac_ext
3694 if $ac_preproc_ok; then
3706 echo "$as_me:$LINENO: result: $CPP" >&5
3707 echo "${ECHO_T}$CPP" >&6
3709 for ac_c_preproc_warn_flag
in '' yes
3711 # Use a header file that comes with gcc, so configuring glibc
3712 # with a fresh cross-compiler works.
3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714 # <limits.h> exists even on freestanding compilers.
3715 # On the NeXT, cc -E runs the code through the compiler's parser,
3716 # not just through cpp. "Syntax error" is here to catch this case.
3717 cat >conftest.
$ac_ext <<_ACEOF
3718 #line $LINENO "configure"
3721 cat confdefs.h
>>conftest.
$ac_ext
3722 cat >>conftest.
$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3725 # include <limits.h>
3727 # include <assert.h>
3731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3734 grep -v '^ *+' conftest.er1
>conftest.err
3736 cat conftest.err
>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev
/null
; then
3739 if test -s conftest.err
; then
3740 ac_cpp_err
=$ac_c_preproc_warn_flag
3747 if test -z "$ac_cpp_err"; then
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.
$ac_ext >&5
3753 # Broken: fails on valid input.
3756 rm -f conftest.err conftest.
$ac_ext
3758 # OK, works on sane cases. Now check whether non-existent headers
3759 # can be detected and how.
3760 cat >conftest.
$ac_ext <<_ACEOF
3761 #line $LINENO "configure"
3764 cat confdefs.h
>>conftest.
$ac_ext
3765 cat >>conftest.
$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 #include <ac_nonexistent.h>
3769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3770 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3772 grep -v '^ *+' conftest.er1
>conftest.err
3774 cat conftest.err
>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } >/dev
/null
; then
3777 if test -s conftest.err
; then
3778 ac_cpp_err
=$ac_c_preproc_warn_flag
3785 if test -z "$ac_cpp_err"; then
3786 # Broken: success on invalid input.
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.
$ac_ext >&5
3792 # Passes both tests.
3796 rm -f conftest.err conftest.
$ac_ext
3799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3800 rm -f conftest.err conftest.
$ac_ext
3801 if $ac_preproc_ok; then
3804 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3805 See \`config.log' for more details." >&5
3806 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3807 See \`config.log' for more details." >&2;}
3808 { (exit 1); exit 1; }; }
3812 ac_cpp
='$CPP $CPPFLAGS'
3813 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3817 # Find a good install program. We prefer a C program (faster),
3818 # so one script is as good as another. But avoid the broken or
3819 # incompatible versions:
3820 # SysV /etc/install, /usr/sbin/install
3821 # SunOS /usr/etc/install
3822 # IRIX /sbin/install
3824 # AmigaOS /C/install, which installs bootblocks on floppy discs
3825 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3826 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3827 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3828 # ./install, which can be erroneously created by make from ./install.sh.
3829 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3830 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3831 if test -z "$INSTALL"; then
3832 if test "${ac_cv_path_install+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir
=.
3840 # Account for people who put trailing slashes in PATH elements.
3842 .
/ | .
// |
/cC
/* | \
3843 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3846 # OSF1 and SCO ODT 3.0 have their own names for install.
3847 # Don't use installbsd from OSF since it installs stuff as root
3849 for ac_prog
in ginstall scoinst
install; do
3850 for ac_exec_ext
in '' $ac_executable_extensions; do
3851 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3852 if test $ac_prog = install &&
3853 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3854 # AIX install. It has an incompatible calling convention.
3856 elif test $ac_prog = install &&
3857 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3858 # program-specific install script used by HP pwplus--don't use.
3861 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3873 if test "${ac_cv_path_install+set}" = set; then
3874 INSTALL
=$ac_cv_path_install
3876 # As a last resort, use the slow shell script. We don't cache a
3877 # path for INSTALL within a source directory, because that will
3878 # break other packages using the cache if that directory is
3879 # removed, or if the path is relative.
3880 INSTALL
=$ac_install_sh
3883 echo "$as_me:$LINENO: result: $INSTALL" >&5
3884 echo "${ECHO_T}$INSTALL" >&6
3886 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3887 # It thinks the first close brace ends the variable substitution.
3888 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3890 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3892 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3894 if test "x$RANLIB" = x
; then
3895 if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3897 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_RANLIB+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 if test -n "$RANLIB"; then
3904 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir
=.
3911 for ac_exec_ext
in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 RANLIB
=$ac_cv_prog_RANLIB
3923 if test -n "$RANLIB"; then
3924 echo "$as_me:$LINENO: result: $RANLIB" >&5
3925 echo "${ECHO_T}$RANLIB" >&6
3927 echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3932 if test -z "$ac_cv_prog_RANLIB"; then
3933 ac_ct_RANLIB
=$RANLIB
3934 # Extract the first word of "ranlib", so it can be a program name with args.
3935 set dummy ranlib
; ac_word
=$2
3936 echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 if test -n "$ac_ct_RANLIB"; then
3942 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3948 test -z "$as_dir" && as_dir
=.
3949 for ac_exec_ext
in '' $ac_executable_extensions; do
3950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3961 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3962 if test -n "$ac_ct_RANLIB"; then
3963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3966 echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3970 RANLIB
=$ac_ct_RANLIB
3972 RANLIB
="$ac_cv_prog_RANLIB"
3976 # Extract the first word of "install-info", so it can be a program name with args.
3977 set dummy install-info
; ac_word
=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 case $INSTALL_INFO in
3985 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir
=.
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4007 if test -n "$INSTALL_INFO"; then
4008 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4009 echo "${ECHO_T}$INSTALL_INFO" >&6
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4015 # Extract the first word of "install-info", so it can be a program name with args.
4016 set dummy install-info
; ac_word
=$2
4017 echo "$as_me:$LINENO: checking for $ac_word" >&5
4018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 case $INSTALL_INFO in
4024 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 for as_dir
in /usr
/sbin
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4046 if test -n "$INSTALL_INFO"; then
4047 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4048 echo "${ECHO_T}$INSTALL_INFO" >&6
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4054 # Extract the first word of "install-info", so it can be a program name with args.
4055 set dummy install-info
; ac_word
=$2
4056 echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 case $INSTALL_INFO in
4063 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir
=.
4071 for ac_exec_ext
in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4084 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4086 if test -n "$INSTALL_INFO"; then
4087 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4088 echo "${ECHO_T}$INSTALL_INFO" >&6
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4096 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4098 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4101 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4103 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4107 late_LDFLAGS
=$LDFLAGS
4108 if test "$GCC" = yes; then
4109 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4111 LDFLAGS
="$LDFLAGS -znocombreloc"
4114 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4115 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4117 cat >conftest.
$ac_ext <<_ACEOF
4120 rm -f conftest.
$ac_objext conftest
$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try
='test -s conftest$ac_exeext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 echo "$as_me:$LINENO: result: yes" >&5
4133 echo "${ECHO_T}yes" >&6
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.
$ac_ext >&5
4138 LDFLAGS
=$late_LDFLAGS
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4142 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4145 echo "$as_me:$LINENO: checking for egrep" >&5
4146 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4147 if test "${ac_cv_prog_egrep+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4151 then ac_cv_prog_egrep
='grep -E'
4152 else ac_cv_prog_egrep
='egrep'
4155 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4156 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4157 EGREP
=$ac_cv_prog_egrep
4161 echo "$as_me:$LINENO: checking for AIX" >&5
4162 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4163 cat >conftest.
$ac_ext <<_ACEOF
4164 #line $LINENO "configure"
4167 cat confdefs.h
>>conftest.
$ac_ext
4168 cat >>conftest.
$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "yes" >/dev
/null
2>&1; then
4177 echo "$as_me:$LINENO: result: yes" >&5
4178 echo "${ECHO_T}yes" >&6
4179 cat >>confdefs.h
<<\_ACEOF
4180 #define _ALL_SOURCE 1
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4192 #### Extract some information from the operating system and machine files.
4194 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4195 - which libraries the lib-src programs will want, and
4196 - whether the GNU malloc routines are usable..." >&5
4197 echo "$as_me: 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..." >&6;}
4201 ### First figure out CFLAGS (which we use for running the compiler here)
4202 ### and REAL_CFLAGS (which we use for real compilation).
4203 ### The two are the same except on a few systems, where they are made
4204 ### different to work around various lossages. For example,
4205 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4206 ### as implying static linking.
4208 ### If the CFLAGS env var is specified, we use that value
4209 ### instead of the default.
4211 ### It's not important that this name contain the PID; you can't run
4212 ### two configures in the same directory and have anything work
4214 tempcname
="conftest.c"
4217 #include "'${srcdir}'/src/'${opsysfile}'"
4218 #include "'${srcdir}'/src/'${machfile}'"
4219 #ifndef LIBS_MACHINE
4220 #define LIBS_MACHINE
4225 #ifndef C_SWITCH_SYSTEM
4226 #define C_SWITCH_SYSTEM
4228 #ifndef C_SWITCH_MACHINE
4229 #define C_SWITCH_MACHINE
4231 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4232 configure___ c_switch_system=C_SWITCH_SYSTEM
4233 configure___ c_switch_machine=C_SWITCH_MACHINE
4236 #define LIB_X11_LIB -lX11
4239 #ifndef LIBX11_MACHINE
4240 #define LIBX11_MACHINE
4243 #ifndef LIBX11_SYSTEM
4244 #define LIBX11_SYSTEM
4246 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4249 configure___ unexec=UNEXEC
4251 configure___ unexec=unexec.o
4254 #ifdef SYSTEM_MALLOC
4255 configure___ system_malloc=yes
4257 configure___ system_malloc=no
4260 #ifdef USE_MMAP_FOR_BUFFERS
4261 configure___ use_mmap_for_buffers=yes
4263 configure___ use_mmap_for_buffers=no
4266 #ifndef C_DEBUG_SWITCH
4267 #define C_DEBUG_SWITCH -g
4270 #ifndef C_OPTIMIZE_SWITCH
4272 #define C_OPTIMIZE_SWITCH -O2
4274 #define C_OPTIMIZE_SWITCH -O
4278 #ifndef LD_SWITCH_MACHINE
4279 #define LD_SWITCH_MACHINE
4282 #ifndef LD_SWITCH_SYSTEM
4283 #define LD_SWITCH_SYSTEM
4286 #ifndef LD_SWITCH_X_SITE_AUX
4287 #define LD_SWITCH_X_SITE_AUX
4290 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4291 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4293 #ifdef THIS_IS_CONFIGURE
4295 /* Get the CFLAGS for tests in configure. */
4297 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4299 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4302 #else /* not THIS_IS_CONFIGURE */
4304 /* Get the CFLAGS for real compilation. */
4306 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4308 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4311 #endif /* not THIS_IS_CONFIGURE */
4314 # The value of CPP is a quoted variable reference, so we need to do this
4315 # to get its actual value...
4316 CPP
=`eval "echo $CPP"`
4317 eval `${CPP} -Isrc ${tempcname} \
4318 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4319 if test "x$SPECIFIED_CFLAGS" = x
; then
4320 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4321 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4323 REAL_CFLAGS
="$CFLAGS"
4327 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4329 ### Make sure subsequent tests use flags consistent with the build flags.
4331 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4332 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4334 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4340 cat >>confdefs.h
<<\_ACEOF
4341 #define _GNU_SOURCE 1
4346 # Check whether --enable-largefile or --disable-largefile was given.
4347 if test "${enable_largefile+set}" = set; then
4348 enableval
="$enable_largefile"
4351 if test "$enable_largefile" != no
; then
4353 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4354 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4355 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 ac_cv_sys_largefile_CC
=no
4359 if test "$GCC" != yes; then
4362 # IRIX 6.2 and later do not support large files by default,
4363 # so use the C compiler's -n32 option if that helps.
4364 cat >conftest.
$ac_ext <<_ACEOF
4365 #line $LINENO "configure"
4368 cat confdefs.h
>>conftest.
$ac_ext
4369 cat >>conftest.
$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <sys/types.h>
4372 /* Check that off_t can represent 2**63 - 1 correctly.
4373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4374 since some C++ compilers masquerading as C compilers
4375 incorrectly reject 9223372036854775807. */
4376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4378 && LARGE_OFF_T % 2147483647 == 1)
4388 rm -f conftest.
$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try
='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.
$ac_ext >&5
4406 rm -f conftest.
$ac_objext
4408 rm -f conftest.
$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try
='test -s conftest.$ac_objext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_sys_largefile_CC
=' -n32'; break
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.
$ac_ext >&5
4426 rm -f conftest.
$ac_objext
4430 rm -f conftest.
$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4434 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4435 if test "$ac_cv_sys_largefile_CC" != no
; then
4436 CC
=$CC$ac_cv_sys_largefile_CC
4439 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4440 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4441 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 ac_cv_sys_file_offset_bits
=no
4446 cat >conftest.
$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4450 cat confdefs.h
>>conftest.
$ac_ext
4451 cat >>conftest.
$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <sys/types.h>
4454 /* Check that off_t can represent 2**63 - 1 correctly.
4455 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4456 since some C++ compilers masquerading as C compilers
4457 incorrectly reject 9223372036854775807. */
4458 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4459 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4460 && LARGE_OFF_T % 2147483647 == 1)
4470 rm -f conftest.
$ac_objext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try
='test -s conftest.$ac_objext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.
$ac_ext >&5
4488 rm -f conftest.
$ac_objext conftest.
$ac_ext
4489 cat >conftest.
$ac_ext <<_ACEOF
4490 #line $LINENO "configure"
4493 cat confdefs.h
>>conftest.
$ac_ext
4494 cat >>conftest.
$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 #define _FILE_OFFSET_BITS 64
4497 #include <sys/types.h>
4498 /* Check that off_t can represent 2**63 - 1 correctly.
4499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4500 since some C++ compilers masquerading as C compilers
4501 incorrectly reject 9223372036854775807. */
4502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4504 && LARGE_OFF_T % 2147483647 == 1)
4514 rm -f conftest.
$ac_objext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516 (eval $ac_compile) 2>&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try
='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_cv_sys_file_offset_bits
=64; break
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.
$ac_ext >&5
4532 rm -f conftest.
$ac_objext conftest.
$ac_ext
4536 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4537 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4538 if test "$ac_cv_sys_file_offset_bits" != no
; then
4540 cat >>confdefs.h
<<_ACEOF
4541 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4546 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4547 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4548 if test "${ac_cv_sys_large_files+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 ac_cv_sys_large_files
=no
4553 cat >conftest.
$ac_ext <<_ACEOF
4554 #line $LINENO "configure"
4557 cat confdefs.h
>>conftest.
$ac_ext
4558 cat >>conftest.
$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 #include <sys/types.h>
4561 /* Check that off_t can represent 2**63 - 1 correctly.
4562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4563 since some C++ compilers masquerading as C compilers
4564 incorrectly reject 9223372036854775807. */
4565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4567 && LARGE_OFF_T % 2147483647 == 1)
4577 rm -f conftest.
$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try
='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.
$ac_ext >&5
4595 rm -f conftest.
$ac_objext conftest.
$ac_ext
4596 cat >conftest.
$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4600 cat confdefs.h
>>conftest.
$ac_ext
4601 cat >>conftest.
$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 #define _LARGE_FILES 1
4604 #include <sys/types.h>
4605 /* Check that off_t can represent 2**63 - 1 correctly.
4606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4607 since some C++ compilers masquerading as C compilers
4608 incorrectly reject 9223372036854775807. */
4609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4611 && LARGE_OFF_T % 2147483647 == 1)
4621 rm -f conftest.
$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try
='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_cv_sys_large_files
=1; break
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.
$ac_ext >&5
4639 rm -f conftest.
$ac_objext conftest.
$ac_ext
4643 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4644 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4645 if test "$ac_cv_sys_large_files" != no
; then
4647 cat >>confdefs.h
<<_ACEOF
4648 #define _LARGE_FILES $ac_cv_sys_large_files
4656 if test "${with_sound}" != "no"; then
4657 # Sound support for GNU/Linux and the free BSDs.
4658 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4659 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4660 if test "${ac_cv_header_stdc+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 cat >conftest.
$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4667 cat confdefs.h
>>conftest.
$ac_ext
4668 cat >>conftest.
$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4683 rm -f conftest.
$ac_objext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try
='test -s conftest.$ac_objext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_header_stdc
=yes
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.
$ac_ext >&5
4700 ac_cv_header_stdc
=no
4702 rm -f conftest.
$ac_objext conftest.
$ac_ext
4704 if test $ac_cv_header_stdc = yes; then
4705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4706 cat >conftest.
$ac_ext <<_ACEOF
4707 #line $LINENO "configure"
4710 cat confdefs.h
>>conftest.
$ac_ext
4711 cat >>conftest.
$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717 $EGREP "memchr" >/dev
/null
2>&1; then
4720 ac_cv_header_stdc
=no
4726 if test $ac_cv_header_stdc = yes; then
4727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4728 cat >conftest.
$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4732 cat confdefs.h
>>conftest.
$ac_ext
4733 cat >>conftest.
$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 $EGREP "free" >/dev
/null
2>&1; then
4742 ac_cv_header_stdc
=no
4748 if test $ac_cv_header_stdc = yes; then
4749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4750 if test "$cross_compiling" = yes; then
4753 cat >conftest.
$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4757 cat confdefs.h
>>conftest.
$ac_ext
4758 cat >>conftest.
$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4761 #if ((' ' & 0x0FF) == 0x020)
4762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4765 # define ISLOWER(c) \
4766 (('a' <= (c) && (c) <= 'i') \
4767 || ('j' <= (c) && (c) <= 'r') \
4768 || ('s' <= (c) && (c) <= 'z'))
4769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4777 for (i = 0; i < 256; i++)
4778 if (XOR (islower (i), ISLOWER (i))
4779 || toupper (i) != TOUPPER (i))
4784 rm -f conftest
$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4797 echo "$as_me: program exited with status $ac_status" >&5
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.
$ac_ext >&5
4802 ac_cv_header_stdc
=no
4804 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4808 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4809 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4810 if test $ac_cv_header_stdc = yes; then
4812 cat >>confdefs.h
<<\_ACEOF
4813 #define STDC_HEADERS 1
4818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4828 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4829 inttypes.h stdint.h unistd.h
4831 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4832 echo "$as_me:$LINENO: checking for $ac_header" >&5
4833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 cat >conftest.
$ac_ext <<_ACEOF
4838 #line $LINENO "configure"
4841 cat confdefs.h
>>conftest.
$ac_ext
4842 cat >>conftest.
$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 $ac_includes_default
4846 #include <$ac_header>
4848 rm -f conftest.
$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try
='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 eval "$as_ac_Header=yes"
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.
$ac_ext >&5
4865 eval "$as_ac_Header=no"
4867 rm -f conftest.
$ac_objext conftest.
$ac_ext
4869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4872 cat >>confdefs.h
<<_ACEOF
4873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4884 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4886 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4896 # Is the header compilable?
4897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4899 cat >conftest.
$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4903 cat confdefs.h
>>conftest.
$ac_ext
4904 cat >>conftest.
$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 $ac_includes_default
4907 #include <$ac_header>
4909 rm -f conftest.
$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try
='test -s conftest.$ac_objext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4921 ac_header_compiler
=yes
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.
$ac_ext >&5
4926 ac_header_compiler
=no
4928 rm -f conftest.
$ac_objext conftest.
$ac_ext
4929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4930 echo "${ECHO_T}$ac_header_compiler" >&6
4932 # Is the header present?
4933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4935 cat >conftest.
$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4939 cat confdefs.h
>>conftest.
$ac_ext
4940 cat >>conftest.
$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <$ac_header>
4944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
4949 cat conftest.err
>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev
/null
; then
4952 if test -s conftest.err
; then
4953 ac_cpp_err
=$ac_c_preproc_warn_flag
4960 if test -z "$ac_cpp_err"; then
4961 ac_header_preproc
=yes
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.
$ac_ext >&5
4966 ac_header_preproc
=no
4968 rm -f conftest.err conftest.
$ac_ext
4969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4970 echo "${ECHO_T}$ac_header_preproc" >&6
4972 # So? What about this header?
4973 case $ac_header_compiler:$ac_header_preproc in
4975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4981 ## ------------------------------------ ##
4982 ## Report this to bug-autoconf@gnu.org. ##
4983 ## ------------------------------------ ##
4986 sed "s/^/$as_me: WARNING: /" >&2
4989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4997 ## ------------------------------------ ##
4998 ## Report this to bug-autoconf@gnu.org. ##
4999 ## ------------------------------------ ##
5002 sed "s/^/$as_me: WARNING: /" >&2
5005 echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 eval "$as_ac_Header=$ac_header_preproc"
5012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5017 cat >>confdefs.h
<<_ACEOF
5018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5025 # Emulation library used on NetBSD.
5026 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5027 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5028 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 ac_check_lib_save_LIBS
=$LIBS
5032 LIBS
="-lossaudio $LIBS"
5033 cat >conftest.
$ac_ext <<_ACEOF
5034 #line $LINENO "configure"
5037 cat confdefs.h
>>conftest.
$ac_ext
5038 cat >>conftest.
$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5041 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5056 rm -f conftest.
$ac_objext conftest
$ac_exeext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5058 (eval $ac_link) 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try
='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_lib_ossaudio__oss_ioctl
=yes
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.
$ac_ext >&5
5073 ac_cv_lib_ossaudio__oss_ioctl
=no
5075 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5076 LIBS
=$ac_check_lib_save_LIBS
5078 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5079 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5080 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5114 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5115 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5116 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5117 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5120 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5122 echo "$as_me:$LINENO: checking for $ac_header" >&5
5123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5130 # Is the header compilable?
5131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5133 cat >conftest.
$ac_ext <<_ACEOF
5134 #line $LINENO "configure"
5137 cat confdefs.h
>>conftest.
$ac_ext
5138 cat >>conftest.
$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 $ac_includes_default
5141 #include <$ac_header>
5143 rm -f conftest.
$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145 (eval $ac_compile) 2>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try
='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_header_compiler
=yes
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.
$ac_ext >&5
5160 ac_header_compiler
=no
5162 rm -f conftest.
$ac_objext conftest.
$ac_ext
5163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5164 echo "${ECHO_T}$ac_header_compiler" >&6
5166 # Is the header present?
5167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5169 cat >conftest.
$ac_ext <<_ACEOF
5170 #line $LINENO "configure"
5173 cat confdefs.h
>>conftest.
$ac_ext
5174 cat >>conftest.
$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 #include <$ac_header>
5178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5181 grep -v '^ *+' conftest.er1
>conftest.err
5183 cat conftest.err
>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev
/null
; then
5186 if test -s conftest.err
; then
5187 ac_cpp_err
=$ac_c_preproc_warn_flag
5194 if test -z "$ac_cpp_err"; then
5195 ac_header_preproc
=yes
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.
$ac_ext >&5
5200 ac_header_preproc
=no
5202 rm -f conftest.err conftest.
$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5204 echo "${ECHO_T}$ac_header_preproc" >&6
5206 # So? What about this header?
5207 case $ac_header_compiler:$ac_header_preproc in
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5215 ## ------------------------------------ ##
5216 ## Report this to bug-autoconf@gnu.org. ##
5217 ## ------------------------------------ ##
5220 sed "s/^/$as_me: WARNING: /" >&2
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5231 ## ------------------------------------ ##
5232 ## Report this to bug-autoconf@gnu.org. ##
5233 ## ------------------------------------ ##
5236 sed "s/^/$as_me: WARNING: /" >&2
5239 echo "$as_me:$LINENO: checking for $ac_header" >&5
5240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 eval "$as_ac_Header=$ac_header_preproc"
5246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5251 cat >>confdefs.h
<<_ACEOF
5252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5260 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5261 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5262 cat >conftest.
$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5266 cat confdefs.h
>>conftest.
$ac_ext
5267 cat >>conftest.
$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5269 #include <sys/personality.h>
5273 personality (PER_LINUX32)
5278 rm -f conftest.
$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try
='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 emacs_cv_personality_linux32
=yes
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.
$ac_ext >&5
5295 emacs_cv_personality_linux32
=no
5297 rm -f conftest.
$ac_objext conftest.
$ac_ext
5298 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5299 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5301 if test $emacs_cv_personality_linux32 = yes; then
5303 cat >>confdefs.h
<<\_ACEOF
5304 #define HAVE_PERSONALITY_LINUX32 1
5310 for ac_header
in term.h
5312 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5313 echo "$as_me:$LINENO: checking for $ac_header" >&5
5314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 cat >conftest.
$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5322 cat confdefs.h
>>conftest.
$ac_ext
5323 cat >>conftest.
$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <$ac_header>
5327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5330 grep -v '^ *+' conftest.er1
>conftest.err
5332 cat conftest.err
>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev
/null
; then
5335 if test -s conftest.err
; then
5336 ac_cpp_err
=$ac_c_preproc_warn_flag
5343 if test -z "$ac_cpp_err"; then
5344 eval "$as_ac_Header=yes"
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.
$ac_ext >&5
5349 eval "$as_ac_Header=no"
5351 rm -f conftest.err conftest.
$ac_ext
5353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356 cat >>confdefs.h
<<_ACEOF
5357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5366 if test "${ac_cv_header_stdc+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 cat >conftest.
$ac_ext <<_ACEOF
5370 #line $LINENO "configure"
5373 cat confdefs.h
>>conftest.
$ac_ext
5374 cat >>conftest.
$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5389 rm -f conftest.
$ac_objext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391 (eval $ac_compile) 2>&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try
='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_header_stdc
=yes
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.
$ac_ext >&5
5406 ac_cv_header_stdc
=no
5408 rm -f conftest.
$ac_objext conftest.
$ac_ext
5410 if test $ac_cv_header_stdc = yes; then
5411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5412 cat >conftest.
$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5416 cat confdefs.h
>>conftest.
$ac_ext
5417 cat >>conftest.
$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5423 $EGREP "memchr" >/dev
/null
2>&1; then
5426 ac_cv_header_stdc
=no
5432 if test $ac_cv_header_stdc = yes; then
5433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5434 cat >conftest.
$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5438 cat confdefs.h
>>conftest.
$ac_ext
5439 cat >>conftest.
$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5445 $EGREP "free" >/dev
/null
2>&1; then
5448 ac_cv_header_stdc
=no
5454 if test $ac_cv_header_stdc = yes; then
5455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5456 if test "$cross_compiling" = yes; then
5459 cat >conftest.
$ac_ext <<_ACEOF
5460 #line $LINENO "configure"
5463 cat confdefs.h
>>conftest.
$ac_ext
5464 cat >>conftest.
$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5467 #if ((' ' & 0x0FF) == 0x020)
5468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5471 # define ISLOWER(c) \
5472 (('a' <= (c) && (c) <= 'i') \
5473 || ('j' <= (c) && (c) <= 'r') \
5474 || ('s' <= (c) && (c) <= 'z'))
5475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5483 for (i = 0; i < 256; i++)
5484 if (XOR (islower (i), ISLOWER (i))
5485 || toupper (i) != TOUPPER (i))
5490 rm -f conftest
$ac_exeext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492 (eval $ac_link) 2>&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5503 echo "$as_me: program exited with status $ac_status" >&5
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5508 ac_cv_header_stdc
=no
5510 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5514 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5515 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5516 if test $ac_cv_header_stdc = yes; then
5518 cat >>confdefs.h
<<\_ACEOF
5519 #define STDC_HEADERS 1
5524 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5525 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5526 if test "${ac_cv_header_time+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 cat >conftest.
$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5533 cat confdefs.h
>>conftest.
$ac_ext
5534 cat >>conftest.
$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 #include <sys/time.h>
5543 if ((struct tm *) 0)
5549 rm -f conftest.
$ac_objext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try
='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_header_time
=yes
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.
$ac_ext >&5
5566 ac_cv_header_time
=no
5568 rm -f conftest.
$ac_objext conftest.
$ac_ext
5570 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5571 echo "${ECHO_T}$ac_cv_header_time" >&6
5572 if test $ac_cv_header_time = yes; then
5574 cat >>confdefs.h
<<\_ACEOF
5575 #define TIME_WITH_SYS_TIME 1
5580 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5581 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5582 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 cat >conftest.
$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5589 cat confdefs.h
>>conftest.
$ac_ext
5590 cat >>conftest.
$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 $ac_includes_default
5597 char *p = (char *) sys_siglist;
5604 rm -f conftest.
$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try
='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_have_decl_sys_siglist
=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.
$ac_ext >&5
5621 ac_cv_have_decl_sys_siglist
=no
5623 rm -f conftest.
$ac_objext conftest.
$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5626 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5627 if test $ac_cv_have_decl_sys_siglist = yes; then
5629 cat >>confdefs.h
<<_ACEOF
5630 #define HAVE_DECL_SYS_SIGLIST 1
5635 cat >>confdefs.h
<<_ACEOF
5636 #define HAVE_DECL_SYS_SIGLIST 0
5643 if test $ac_cv_have_decl_sys_siglist != yes; then
5644 # For Tru64, at least:
5645 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5646 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5647 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 cat >conftest.
$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5654 cat confdefs.h
>>conftest.
$ac_ext
5655 cat >>conftest.
$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5661 #ifndef __sys_siglist
5662 char *p = (char *) __sys_siglist;
5669 rm -f conftest.
$ac_objext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try
='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_cv_have_decl___sys_siglist
=yes
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.
$ac_ext >&5
5686 ac_cv_have_decl___sys_siglist
=no
5688 rm -f conftest.
$ac_objext conftest.
$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5691 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5692 if test $ac_cv_have_decl___sys_siglist = yes; then
5694 cat >>confdefs.h
<<_ACEOF
5695 #define HAVE_DECL___SYS_SIGLIST 1
5700 cat >>confdefs.h
<<_ACEOF
5701 #define HAVE_DECL___SYS_SIGLIST 0
5708 if test $ac_cv_have_decl___sys_siglist = yes; then
5710 cat >>confdefs.h
<<\_ACEOF
5711 #define sys_siglist __sys_siglist
5716 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5717 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5718 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 cat >conftest.
$ac_ext <<_ACEOF
5722 #line $LINENO "configure"
5725 cat confdefs.h
>>conftest.
$ac_ext
5726 cat >>conftest.
$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <sys/types.h>
5729 #include <sys/wait.h>
5731 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5734 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5742 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5747 rm -f conftest.
$ac_objext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try
='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_header_sys_wait_h
=yes
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.
$ac_ext >&5
5764 ac_cv_header_sys_wait_h
=no
5766 rm -f conftest.
$ac_objext conftest.
$ac_ext
5768 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5769 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5770 if test $ac_cv_header_sys_wait_h = yes; then
5772 cat >>confdefs.h
<<\_ACEOF
5773 #define HAVE_SYS_WAIT_H 1
5779 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5780 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5781 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 cat >conftest.
$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #ifdef TIME_WITH_SYS_TIME
5792 #include <sys/time.h>
5795 #ifdef HAVE_SYS_TIME_H
5796 #include <sys/time.h>
5807 static struct utimbuf x; x.actime = x.modtime;
5812 rm -f conftest.
$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try
='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 emacs_cv_struct_utimbuf
=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.
$ac_ext >&5
5829 emacs_cv_struct_utimbuf
=no
5831 rm -f conftest.
$ac_objext conftest.
$ac_ext
5833 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5834 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5835 if test $emacs_cv_struct_utimbuf = yes; then
5837 cat >>confdefs.h
<<\_ACEOF
5838 #define HAVE_STRUCT_UTIMBUF 1
5843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5845 if test "${ac_cv_type_signal+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 cat >conftest.
$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5852 cat confdefs.h
>>conftest.
$ac_ext
5853 cat >>conftest.
$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <sys/types.h>
5861 extern "C" void (*signal (int, void (*)(int)))(int);
5863 void (*signal ()) ();
5874 rm -f conftest.
$ac_objext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try
='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_type_signal
=void
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5891 ac_cv_type_signal
=int
5893 rm -f conftest.
$ac_objext conftest.
$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5896 echo "${ECHO_T}$ac_cv_type_signal" >&6
5898 cat >>confdefs.h
<<_ACEOF
5899 #define RETSIGTYPE $ac_cv_type_signal
5904 echo "$as_me:$LINENO: checking for speed_t" >&5
5905 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5906 if test "${emacs_cv_speed_t+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 cat >conftest.
$ac_ext <<_ACEOF
5910 #line $LINENO "configure"
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <termios.h>
5925 rm -f conftest.
$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927 (eval $ac_compile) 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try
='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 emacs_cv_speed_t
=yes
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5944 rm -f conftest.
$ac_objext conftest.
$ac_ext
5946 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5947 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5948 if test $emacs_cv_speed_t = yes; then
5950 cat >>confdefs.h
<<\_ACEOF
5951 #define HAVE_SPEED_T 1
5956 echo "$as_me:$LINENO: checking for struct timeval" >&5
5957 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5958 if test "${emacs_cv_struct_timeval+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 cat >conftest.
$ac_ext <<_ACEOF
5962 #line $LINENO "configure"
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #ifdef TIME_WITH_SYS_TIME
5969 #include <sys/time.h>
5972 #ifdef HAVE_SYS_TIME_H
5973 #include <sys/time.h>
5981 static struct timeval x; x.tv_sec = x.tv_usec;
5986 rm -f conftest.
$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try
='test -s conftest.$ac_objext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 emacs_cv_struct_timeval
=yes
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.
$ac_ext >&5
6003 emacs_cv_struct_timeval
=no
6005 rm -f conftest.
$ac_objext conftest.
$ac_ext
6007 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6008 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6009 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6010 if test $emacs_cv_struct_timeval = yes; then
6012 cat >>confdefs.h
<<\_ACEOF
6013 #define HAVE_TIMEVAL 1
6018 echo "$as_me:$LINENO: checking for struct exception" >&5
6019 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6020 if test "${emacs_cv_struct_exception+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 cat >conftest.
$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6027 cat confdefs.h
>>conftest.
$ac_ext
6028 cat >>conftest.
$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6034 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6039 rm -f conftest.
$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try
='test -s conftest.$ac_objext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 emacs_cv_struct_exception
=yes
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.
$ac_ext >&5
6056 emacs_cv_struct_exception
=no
6058 rm -f conftest.
$ac_objext conftest.
$ac_ext
6060 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6061 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6062 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6063 if test $emacs_cv_struct_exception != yes; then
6065 cat >>confdefs.h
<<\_ACEOF
6066 #define NO_MATHERR 1
6072 for ac_header
in sys
/socket.h
6074 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6076 echo "$as_me:$LINENO: checking for $ac_header" >&5
6077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6084 # Is the header compilable?
6085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6087 cat >conftest.
$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6091 cat confdefs.h
>>conftest.
$ac_ext
6092 cat >>conftest.
$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6095 #include <$ac_header>
6097 rm -f conftest.
$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try
='test -s conftest.$ac_objext'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; }; then
6109 ac_header_compiler
=yes
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.
$ac_ext >&5
6114 ac_header_compiler
=no
6116 rm -f conftest.
$ac_objext conftest.
$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6118 echo "${ECHO_T}$ac_header_compiler" >&6
6120 # Is the header present?
6121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6123 cat >conftest.
$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #include <$ac_header>
6132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6135 grep -v '^ *+' conftest.er1
>conftest.err
6137 cat conftest.err
>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev
/null
; then
6140 if test -s conftest.err
; then
6141 ac_cpp_err
=$ac_c_preproc_warn_flag
6148 if test -z "$ac_cpp_err"; then
6149 ac_header_preproc
=yes
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.
$ac_ext >&5
6154 ac_header_preproc
=no
6156 rm -f conftest.err conftest.
$ac_ext
6157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6158 echo "${ECHO_T}$ac_header_preproc" >&6
6160 # So? What about this header?
6161 case $ac_header_compiler:$ac_header_preproc in
6163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6169 ## ------------------------------------ ##
6170 ## Report this to bug-autoconf@gnu.org. ##
6171 ## ------------------------------------ ##
6174 sed "s/^/$as_me: WARNING: /" >&2
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6185 ## ------------------------------------ ##
6186 ## Report this to bug-autoconf@gnu.org. ##
6187 ## ------------------------------------ ##
6190 sed "s/^/$as_me: WARNING: /" >&2
6193 echo "$as_me:$LINENO: checking for $ac_header" >&5
6194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 eval "$as_ac_Header=$ac_header_preproc"
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6205 cat >>confdefs.h
<<_ACEOF
6206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6214 for ac_header
in net
/if.h
6216 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217 echo "$as_me:$LINENO: checking for $ac_header" >&5
6218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 cat >conftest.
$ac_ext <<_ACEOF
6223 #line $LINENO "configure"
6226 cat confdefs.h
>>conftest.
$ac_ext
6227 cat >>conftest.
$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 $ac_includes_default
6230 #if HAVE_SYS_SOCKET_H
6231 #include <sys/socket.h>
6234 #include <$ac_header>
6236 rm -f conftest.
$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try
='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 eval "$as_ac_Header=yes"
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.
$ac_ext >&5
6253 eval "$as_ac_Header=no"
6255 rm -f conftest.
$ac_objext conftest.
$ac_ext
6257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6260 cat >>confdefs.h
<<_ACEOF
6261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6270 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6271 if test "${ac_cv_struct_tm+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 cat >conftest.
$ac_ext <<_ACEOF
6275 #line $LINENO "configure"
6278 cat confdefs.h
>>conftest.
$ac_ext
6279 cat >>conftest.
$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <sys/types.h>
6287 struct tm *tp; tp->tm_sec;
6292 rm -f conftest.
$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try
='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_cv_struct_tm
=time.h
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.
$ac_ext >&5
6309 ac_cv_struct_tm
=sys
/time.h
6311 rm -f conftest.
$ac_objext conftest.
$ac_ext
6313 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6314 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6315 if test $ac_cv_struct_tm = sys
/time.h
; then
6317 cat >>confdefs.h
<<\_ACEOF
6318 #define TM_IN_SYS_TIME 1
6323 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6324 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6325 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.
$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6332 cat confdefs.h
>>conftest.
$ac_ext
6333 cat >>conftest.
$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <sys/types.h>
6336 #include <$ac_cv_struct_tm>
6342 static struct tm ac_aggr;
6343 if (ac_aggr.tm_zone)
6349 rm -f conftest.
$ac_objext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351 (eval $ac_compile) 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try
='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_member_struct_tm_tm_zone
=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.
$ac_ext >&5
6366 cat >conftest.
$ac_ext <<_ACEOF
6367 #line $LINENO "configure"
6370 cat confdefs.h
>>conftest.
$ac_ext
6371 cat >>conftest.
$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <sys/types.h>
6374 #include <$ac_cv_struct_tm>
6380 static struct tm ac_aggr;
6381 if (sizeof ac_aggr.tm_zone)
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try
='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_member_struct_tm_tm_zone
=yes
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.
$ac_ext >&5
6404 ac_cv_member_struct_tm_tm_zone
=no
6406 rm -f conftest.
$ac_objext conftest.
$ac_ext
6408 rm -f conftest.
$ac_objext conftest.
$ac_ext
6410 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6411 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6412 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6414 cat >>confdefs.h
<<_ACEOF
6415 #define HAVE_STRUCT_TM_TM_ZONE 1
6421 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6423 cat >>confdefs.h
<<\_ACEOF
6424 #define HAVE_TM_ZONE 1
6428 echo "$as_me:$LINENO: checking for tzname" >&5
6429 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6430 if test "${ac_cv_var_tzname+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 cat >conftest.
$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6437 cat confdefs.h
>>conftest.
$ac_ext
6438 cat >>conftest.
$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6441 #ifndef tzname /* For SGI. */
6442 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6453 rm -f conftest.
$ac_objext conftest
$ac_exeext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try
='test -s conftest$ac_exeext'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_cv_var_tzname
=yes
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.
$ac_ext >&5
6472 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6474 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6475 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6476 if test $ac_cv_var_tzname = yes; then
6478 cat >>confdefs.h
<<\_ACEOF
6479 #define HAVE_TZNAME 1
6485 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6486 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6487 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 cat >conftest.
$ac_ext <<_ACEOF
6491 #line $LINENO "configure"
6494 cat confdefs.h
>>conftest.
$ac_ext
6495 cat >>conftest.
$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6502 static struct tm ac_aggr;
6503 if (ac_aggr.tm_gmtoff)
6509 rm -f conftest.
$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try
='test -s conftest.$ac_objext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_member_struct_tm_tm_gmtoff
=yes
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.
$ac_ext >&5
6526 cat >conftest.
$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6530 cat confdefs.h
>>conftest.
$ac_ext
6531 cat >>conftest.
$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6538 static struct tm ac_aggr;
6539 if (sizeof ac_aggr.tm_gmtoff)
6545 rm -f conftest.
$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try
='test -s conftest.$ac_objext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_member_struct_tm_tm_gmtoff
=yes
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.
$ac_ext >&5
6562 ac_cv_member_struct_tm_tm_gmtoff
=no
6564 rm -f conftest.
$ac_objext conftest.
$ac_ext
6566 rm -f conftest.
$ac_objext conftest.
$ac_ext
6568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6569 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6570 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6572 cat >>confdefs.h
<<\_ACEOF
6573 #define HAVE_TM_GMTOFF 1
6578 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6579 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6580 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 cat >conftest.
$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6587 cat confdefs.h
>>conftest.
$ac_ext
6588 cat >>conftest.
$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 #if HAVE_SYS_SOCKET_H
6592 #include <sys/socket.h>
6601 static struct ifreq ac_aggr;
6602 if (ac_aggr.ifr_flags)
6608 rm -f conftest.
$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try
='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_member_struct_ifreq_ifr_flags
=yes
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.
$ac_ext >&5
6625 cat >conftest.
$ac_ext <<_ACEOF
6626 #line $LINENO "configure"
6629 cat confdefs.h
>>conftest.
$ac_ext
6630 cat >>conftest.
$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 $ac_includes_default
6633 #if HAVE_SYS_SOCKET_H
6634 #include <sys/socket.h>
6643 static struct ifreq ac_aggr;
6644 if (sizeof ac_aggr.ifr_flags)
6650 rm -f conftest.
$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try
='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_member_struct_ifreq_ifr_flags
=yes
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.
$ac_ext >&5
6667 ac_cv_member_struct_ifreq_ifr_flags
=no
6669 rm -f conftest.
$ac_objext conftest.
$ac_ext
6671 rm -f conftest.
$ac_objext conftest.
$ac_ext
6673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6674 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6675 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6677 cat >>confdefs.h
<<_ACEOF
6678 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6683 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6684 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6685 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 cat >conftest.
$ac_ext <<_ACEOF
6689 #line $LINENO "configure"
6692 cat confdefs.h
>>conftest.
$ac_ext
6693 cat >>conftest.
$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #if HAVE_SYS_SOCKET_H
6697 #include <sys/socket.h>
6706 static struct ifreq ac_aggr;
6707 if (ac_aggr.ifr_hwaddr)
6713 rm -f conftest.
$ac_objext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try
='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.
$ac_ext >&5
6730 cat >conftest.
$ac_ext <<_ACEOF
6731 #line $LINENO "configure"
6734 cat confdefs.h
>>conftest.
$ac_ext
6735 cat >>conftest.
$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6738 #if HAVE_SYS_SOCKET_H
6739 #include <sys/socket.h>
6748 static struct ifreq ac_aggr;
6749 if (sizeof ac_aggr.ifr_hwaddr)
6755 rm -f conftest.
$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try
='test -s conftest.$ac_objext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.
$ac_ext >&5
6772 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
6774 rm -f conftest.
$ac_objext conftest.
$ac_ext
6776 rm -f conftest.
$ac_objext conftest.
$ac_ext
6778 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6779 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6780 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6782 cat >>confdefs.h
<<_ACEOF
6783 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6788 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6789 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6790 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 cat >conftest.
$ac_ext <<_ACEOF
6794 #line $LINENO "configure"
6797 cat confdefs.h
>>conftest.
$ac_ext
6798 cat >>conftest.
$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 $ac_includes_default
6801 #if HAVE_SYS_SOCKET_H
6802 #include <sys/socket.h>
6811 static struct ifreq ac_aggr;
6812 if (ac_aggr.ifr_netmask)
6818 rm -f conftest.
$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try
='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.
$ac_ext >&5
6835 cat >conftest.
$ac_ext <<_ACEOF
6836 #line $LINENO "configure"
6839 cat confdefs.h
>>conftest.
$ac_ext
6840 cat >>conftest.
$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 $ac_includes_default
6843 #if HAVE_SYS_SOCKET_H
6844 #include <sys/socket.h>
6853 static struct ifreq ac_aggr;
6854 if (sizeof ac_aggr.ifr_netmask)
6860 rm -f conftest.
$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try
='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.
$ac_ext >&5
6877 ac_cv_member_struct_ifreq_ifr_netmask
=no
6879 rm -f conftest.
$ac_objext conftest.
$ac_ext
6881 rm -f conftest.
$ac_objext conftest.
$ac_ext
6883 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6884 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6885 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6887 cat >>confdefs.h
<<_ACEOF
6888 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6893 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6894 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6895 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 cat >conftest.
$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6902 cat confdefs.h
>>conftest.
$ac_ext
6903 cat >>conftest.
$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 $ac_includes_default
6906 #if HAVE_SYS_SOCKET_H
6907 #include <sys/socket.h>
6916 static struct ifreq ac_aggr;
6917 if (ac_aggr.ifr_broadaddr)
6923 rm -f conftest.
$ac_objext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try
='test -s conftest.$ac_objext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.
$ac_ext >&5
6940 cat >conftest.
$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6944 cat confdefs.h
>>conftest.
$ac_ext
6945 cat >>conftest.
$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 #if HAVE_SYS_SOCKET_H
6949 #include <sys/socket.h>
6958 static struct ifreq ac_aggr;
6959 if (sizeof ac_aggr.ifr_broadaddr)
6965 rm -f conftest.
$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try
='test -s conftest.$ac_objext'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; }; then
6977 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.
$ac_ext >&5
6982 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
6984 rm -f conftest.
$ac_objext conftest.
$ac_ext
6986 rm -f conftest.
$ac_objext conftest.
$ac_ext
6988 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6989 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6990 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6992 cat >>confdefs.h
<<_ACEOF
6993 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6998 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
6999 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7000 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 cat >conftest.
$ac_ext <<_ACEOF
7004 #line $LINENO "configure"
7007 cat confdefs.h
>>conftest.
$ac_ext
7008 cat >>conftest.
$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7011 #if HAVE_SYS_SOCKET_H
7012 #include <sys/socket.h>
7021 static struct ifreq ac_aggr;
7022 if (ac_aggr.ifr_addr)
7028 rm -f conftest.
$ac_objext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try
='test -s conftest.$ac_objext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 ac_cv_member_struct_ifreq_ifr_addr
=yes
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.
$ac_ext >&5
7045 cat >conftest.
$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7049 cat confdefs.h
>>conftest.
$ac_ext
7050 cat >>conftest.
$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7053 #if HAVE_SYS_SOCKET_H
7054 #include <sys/socket.h>
7063 static struct ifreq ac_aggr;
7064 if (sizeof ac_aggr.ifr_addr)
7070 rm -f conftest.
$ac_objext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7072 (eval $ac_compile) 2>&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try
='test -s conftest.$ac_objext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 ac_cv_member_struct_ifreq_ifr_addr
=yes
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.
$ac_ext >&5
7087 ac_cv_member_struct_ifreq_ifr_addr
=no
7089 rm -f conftest.
$ac_objext conftest.
$ac_ext
7091 rm -f conftest.
$ac_objext conftest.
$ac_ext
7093 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7094 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7095 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7097 cat >>confdefs.h
<<_ACEOF
7098 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7106 echo "$as_me:$LINENO: checking for function prototypes" >&5
7107 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7108 if test "$ac_cv_prog_cc_stdc" != no
; then
7109 echo "$as_me:$LINENO: result: yes" >&5
7110 echo "${ECHO_T}yes" >&6
7112 cat >>confdefs.h
<<\_ACEOF
7113 #define PROTOTYPES 1
7117 cat >>confdefs.h
<<\_ACEOF
7118 #define __PROTOTYPES 1
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7126 echo "$as_me:$LINENO: checking for working volatile" >&5
7127 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7128 if test "${ac_cv_c_volatile+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 cat >conftest.
$ac_ext <<_ACEOF
7132 #line $LINENO "configure"
7135 cat confdefs.h
>>conftest.
$ac_ext
7136 cat >>conftest.
$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7149 rm -f conftest.
$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try
='test -s conftest.$ac_objext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_c_volatile
=yes
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.
$ac_ext >&5
7168 rm -f conftest.
$ac_objext conftest.
$ac_ext
7170 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7171 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7172 if test $ac_cv_c_volatile = no
; then
7174 cat >>confdefs.h
<<\_ACEOF
7180 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7181 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7182 if test "${ac_cv_c_const+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 cat >conftest.
$ac_ext <<_ACEOF
7186 #line $LINENO "configure"
7189 cat confdefs.h
>>conftest.
$ac_ext
7190 cat >>conftest.
$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7196 /* FIXME: Include the comments suggested by Paul. */
7198 /* Ultrix mips cc rejects this. */
7199 typedef int charset[2];
7201 /* SunOS 4.1.1 cc rejects this. */
7202 char const *const *ccp;
7204 /* NEC SVR4.0.2 mips cc rejects this. */
7205 struct point {int x, y;};
7206 static struct point const zero = {0,0};
7207 /* AIX XL C 1.02.0.0 rejects this.
7208 It does not let you subtract one const X* pointer from another in
7209 an arm of an if-expression whose if-part is not a constant
7211 const char *g = "string";
7212 ccp = &g + (g ? g-g : 0);
7213 /* HPUX 7.0 cc rejects these. */
7216 ccp = (char const *const *) p;
7217 { /* SCO 3.2v4 cc rejects this. */
7219 char const *s = 0 ? (char *) 0 : (char const *) 0;
7223 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7225 const int *foo = &x[0];
7228 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7229 typedef const int *iptr;
7233 { /* AIX XL C 1.02.0.0 rejects this saying
7234 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7235 struct s { int j; const int *ap[3]; };
7236 struct s *b; b->j = 5;
7238 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7247 rm -f conftest.
$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249 (eval $ac_compile) 2>&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } &&
7253 { ac_try
='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.
$ac_ext >&5
7266 rm -f conftest.
$ac_objext conftest.
$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7269 echo "${ECHO_T}$ac_cv_c_const" >&6
7270 if test $ac_cv_c_const = no
; then
7272 cat >>confdefs.h
<<\_ACEOF
7278 echo "$as_me:$LINENO: checking for void * support" >&5
7279 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7280 if test "${emacs_cv_void_star+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 cat >conftest.
$ac_ext <<_ACEOF
7284 #line $LINENO "configure"
7287 cat confdefs.h
>>conftest.
$ac_ext
7288 cat >>conftest.
$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7299 rm -f conftest.
$ac_objext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try
='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 emacs_cv_void_star
=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.
$ac_ext >&5
7316 emacs_cv_void_star
=no
7318 rm -f conftest.
$ac_objext conftest.
$ac_ext
7320 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7321 echo "${ECHO_T}$emacs_cv_void_star" >&6
7322 if test $emacs_cv_void_star = yes; then
7323 cat >>confdefs.h
<<\_ACEOF
7324 #define POINTER_TYPE void
7328 cat >>confdefs.h
<<\_ACEOF
7329 #define POINTER_TYPE char
7338 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7339 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7340 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
7341 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 cat >conftest.
make <<\_ACEOF
7346 @
echo 'ac_maketemp="$(MAKE)"'
7348 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7349 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7350 if test -n "$ac_maketemp"; then
7351 eval ac_cv_prog_make_
${ac_make}_set
=yes
7353 eval ac_cv_prog_make_
${ac_make}_set
=no
7357 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7362 echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7364 SET_MAKE
="MAKE=${MAKE-make}"
7368 echo "$as_me:$LINENO: checking for long file names" >&5
7369 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7370 if test "${ac_cv_sys_long_file_names+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cv_sys_long_file_names
=yes
7374 # Test for long file names in all the places we know might matter:
7375 # . the current directory, where building will happen
7376 # $prefix/lib where we will be installing things
7377 # $exec_prefix/lib likewise
7378 # eval it to expand exec_prefix.
7379 # $TMPDIR if set, where it might want to write temporary files
7380 # if $TMPDIR is not set:
7381 # /tmp where it might want to write temporary files
7384 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7387 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7389 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7390 test -d $ac_dir ||
continue
7391 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7392 ac_xdir
=$ac_dir/cf$$
7393 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7394 ac_tf1
=$ac_xdir/conftest9012345
7395 ac_tf2
=$ac_xdir/conftest9012346
7396 (echo 1 >$ac_tf1) 2>/dev
/null
7397 (echo 2 >$ac_tf2) 2>/dev
/null
7398 ac_val
=`cat $ac_tf1 2>/dev/null`
7399 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7400 ac_cv_sys_long_file_names
=no
7401 rm -rf $ac_xdir 2>/dev
/null
7404 rm -rf $ac_xdir 2>/dev
/null
7407 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7408 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7409 if test $ac_cv_sys_long_file_names = yes; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define HAVE_LONG_FILE_NAMES 1
7418 #### Choose a window system.
7420 echo "$as_me:$LINENO: checking for X" >&5
7421 echo $ECHO_N "checking for X... $ECHO_C" >&6
7424 # Check whether --with-x or --without-x was given.
7425 if test "${with_x+set}" = set; then
7429 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7430 if test "x$with_x" = xno
; then
7431 # The user explicitly disabled X.
7434 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7435 # Both variables are already set.
7438 if test "${ac_cv_have_x+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 # One or both of the vars are not set, and there is no cached value.
7442 ac_x_includes
=no ac_x_libraries
=no
7444 if mkdir conftest.dir
; then
7446 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7447 cat >Imakefile
<<'_ACEOF'
7449 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7451 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7452 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7453 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7454 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7455 for ac_extension
in a so sl
; do
7456 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7457 test -f $ac_im_libdir/libX11.
$ac_extension; then
7458 ac_im_usrlibdir
=$ac_im_libdir; break
7461 # Screen out bogus values from the imake configuration. They are
7462 # bogus both because they are the default anyway, and because
7463 # using them would break gcc on systems where it needs fixed includes.
7464 case $ac_im_incroot in
7466 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7468 case $ac_im_usrlibdir in
7470 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7477 # Standard set of common directories for X headers.
7478 # Check X11 before X11Rn because it is often a symlink to the current release.
7490 /usr/local/X11/include
7491 /usr/local/X11R6/include
7492 /usr/local/X11R5/include
7493 /usr/local/X11R4/include
7495 /usr/local/include/X11
7496 /usr/local/include/X11R6
7497 /usr/local/include/X11R5
7498 /usr/local/include/X11R4
7502 /usr/XFree86/include/X11
7506 /usr/unsupported/include
7508 /usr/local/x11r5/include
7509 /usr/lpp/Xamples/include
7511 /usr/openwin/include
7512 /usr/openwin/share/include'
7514 if test "$ac_x_includes" = no
; then
7515 # Guess where to find include files, by looking for Intrinsic.h.
7516 # First, try using that file with no special directory specified.
7517 cat >conftest.
$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7521 cat confdefs.h
>>conftest.
$ac_ext
7522 cat >>conftest.
$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <X11/Intrinsic.h>
7526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7529 grep -v '^ *+' conftest.er1
>conftest.err
7531 cat conftest.err
>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } >/dev
/null
; then
7534 if test -s conftest.err
; then
7535 ac_cpp_err
=$ac_c_preproc_warn_flag
7542 if test -z "$ac_cpp_err"; then
7543 # We can compile using X headers with no special include directory.
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.
$ac_ext >&5
7549 for ac_dir
in $ac_x_header_dirs; do
7550 if test -r "$ac_dir/X11/Intrinsic.h"; then
7551 ac_x_includes
=$ac_dir
7556 rm -f conftest.err conftest.
$ac_ext
7557 fi # $ac_x_includes = no
7559 if test "$ac_x_libraries" = no
; then
7560 # Check for the libraries.
7561 # See if we find them without any special options.
7562 # Don't add to $LIBS permanently.
7565 cat >conftest.
$ac_ext <<_ACEOF
7566 #line $LINENO "configure"
7569 cat confdefs.h
>>conftest.
$ac_ext
7570 cat >>conftest.
$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <X11/Intrinsic.h>
7581 rm -f conftest.
$ac_objext conftest
$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try
='test -s conftest$ac_exeext'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
7594 # We can link X programs with no special library path.
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.
$ac_ext >&5
7601 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7603 # Don't even attempt the hair of trying to link an X program!
7604 for ac_extension
in a so sl
; do
7605 if test -r $ac_dir/libXt.
$ac_extension; then
7606 ac_x_libraries
=$ac_dir
7612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7613 fi # $ac_x_libraries = no
7615 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7616 # Didn't find X anywhere. Cache the known absence of X.
7617 ac_cv_have_x
="have_x=no"
7619 # Record where we found X for the cache.
7620 ac_cv_have_x
="have_x=yes \
7621 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7626 eval "$ac_cv_have_x"
7629 if test "$have_x" != yes; then
7630 echo "$as_me:$LINENO: result: $have_x" >&5
7631 echo "${ECHO_T}$have_x" >&6
7634 # If each of the values was on the command line, it overrides each guess.
7635 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7636 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7637 # Update the cache value to reflect the command line values.
7638 ac_cv_have_x
="have_x=yes \
7639 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7640 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7641 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7644 if test "$no_x" = yes; then
7650 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7651 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7652 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7653 x_default_search_path
=""
7654 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7656 ${x_library}/X11/%L/%T/%N%C%S:\
7657 ${x_library}/X11/%l/%T/%N%C%S:\
7658 ${x_library}/X11/%T/%N%C%S:\
7659 ${x_library}/X11/%L/%T/%N%S:\
7660 ${x_library}/X11/%l/%T/%N%S:\
7661 ${x_library}/X11/%T/%N%S"
7662 if test x
"${x_default_search_path}" = x
; then
7663 x_default_search_path
=${x_search_path}
7665 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7669 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7670 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7673 if test x
"${x_includes}" = x
; then
7674 bitmapdir
=/usr
/include
/X11
/bitmaps
7676 # accumulate include directories that have X11 bitmap subdirectories
7678 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7679 if test -d "${bmd}/X11/bitmaps"; then
7680 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7682 if test -d "${bmd}/bitmaps"; then
7683 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7686 if test ${bmd_acc} != "dummyval"; then
7687 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7691 case "${window_system}" in
7695 case "${with_x_toolkit}" in
7696 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7697 motif
) USE_X_TOOLKIT
=MOTIF
;;
7699 USE_X_TOOLKIT
=none
;;
7700 no
) USE_X_TOOLKIT
=none
;;
7701 * ) USE_X_TOOLKIT
=maybe
;;
7711 ### If we're using X11, we should use the X menu package.
7714 yes ) HAVE_MENUS
=yes ;;
7717 if test "${opsys}" = "hpux9"; then
7718 case "${x_libraries}" in
7720 opsysfile
="s/hpux9-x11r4.h"
7725 if test "${opsys}" = "hpux9shr"; then
7726 case "${x_libraries}" in
7728 opsysfile
="s/hpux9shxr4.h"
7734 if test "${HAVE_X11}" != "yes"; then
7735 if test "${with_carbon}" != "no"; then
7736 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7737 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
7738 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7739 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
7743 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7745 # Is the header compilable?
7746 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
7747 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
7748 cat >conftest.
$ac_ext <<_ACEOF
7749 #line $LINENO "configure"
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #include <Carbon/Carbon.h>
7758 rm -f conftest.
$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try
='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_header_compiler
=yes
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.
$ac_ext >&5
7775 ac_header_compiler
=no
7777 rm -f conftest.
$ac_objext conftest.
$ac_ext
7778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7779 echo "${ECHO_T}$ac_header_compiler" >&6
7781 # Is the header present?
7782 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
7783 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
7784 cat >conftest.
$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7788 cat confdefs.h
>>conftest.
$ac_ext
7789 cat >>conftest.
$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <Carbon/Carbon.h>
7793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7794 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7796 grep -v '^ *+' conftest.er1
>conftest.err
7798 cat conftest.err
>&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } >/dev
/null
; then
7801 if test -s conftest.err
; then
7802 ac_cpp_err
=$ac_c_preproc_warn_flag
7809 if test -z "$ac_cpp_err"; then
7810 ac_header_preproc
=yes
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.
$ac_ext >&5
7815 ac_header_preproc
=no
7817 rm -f conftest.err conftest.
$ac_ext
7818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7819 echo "${ECHO_T}$ac_header_preproc" >&6
7821 # So? What about this header?
7822 case $ac_header_compiler:$ac_header_preproc in
7824 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
7825 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
7827 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
7830 ## ------------------------------------ ##
7831 ## Report this to bug-autoconf@gnu.org. ##
7832 ## ------------------------------------ ##
7835 sed "s/^/$as_me: WARNING: /" >&2
7838 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
7839 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
7841 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
7846 ## ------------------------------------ ##
7847 ## Report this to bug-autoconf@gnu.org. ##
7848 ## ------------------------------------ ##
7851 sed "s/^/$as_me: WARNING: /" >&2
7854 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
7855 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7856 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
7861 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
7862 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7865 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7873 ### Compute the unexec source name from the object name.
7874 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
7876 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7877 # Assume not, until told otherwise.
7880 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7881 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7882 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 cat >conftest.
$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7889 cat confdefs.h
>>conftest.
$ac_ext
7890 cat >>conftest.
$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 /* System header to define __stub macros and hopefully few prototypes,
7893 which can conflict with char malloc_get_state (); below.
7894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7895 <limits.h> exists even on freestanding compilers. */
7897 # include <limits.h>
7899 # include <assert.h>
7901 /* Override any gcc2 internal prototype to avoid an error. */
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7908 char malloc_get_state ();
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7915 char (*f) () = malloc_get_state;
7924 return f != malloc_get_state;
7929 rm -f conftest.
$ac_objext conftest
$ac_exeext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931 (eval $ac_link) 2>&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try
='test -s conftest$ac_exeext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7941 ac_cv_func_malloc_get_state
=yes
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.
$ac_ext >&5
7946 ac_cv_func_malloc_get_state
=no
7948 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7950 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7951 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7952 if test $ac_cv_func_malloc_get_state = yes; then
7958 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7959 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7960 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 cat >conftest.
$ac_ext <<_ACEOF
7964 #line $LINENO "configure"
7967 cat confdefs.h
>>conftest.
$ac_ext
7968 cat >>conftest.
$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7970 /* System header to define __stub macros and hopefully few prototypes,
7971 which can conflict with char malloc_set_state (); below.
7972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7973 <limits.h> exists even on freestanding compilers. */
7975 # include <limits.h>
7977 # include <assert.h>
7979 /* Override any gcc2 internal prototype to avoid an error. */
7984 /* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7986 char malloc_set_state ();
7987 /* The GNU C library defines this for functions which it implements
7988 to always fail with ENOSYS. Some functions are actually named
7989 something starting with __ and the normal name is an alias. */
7990 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7993 char (*f) () = malloc_set_state;
8002 return f != malloc_set_state;
8007 rm -f conftest.
$ac_objext conftest
$ac_exeext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8009 (eval $ac_link) 2>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try
='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_cv_func_malloc_set_state
=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.
$ac_ext >&5
8024 ac_cv_func_malloc_set_state
=no
8026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8028 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8029 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8030 if test $ac_cv_func_malloc_set_state = yes; then
8036 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8037 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8038 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.
$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8045 cat confdefs.h
>>conftest.
$ac_ext
8046 cat >>conftest.
$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 extern void (* __after_morecore_hook)();
8052 __after_morecore_hook = 0
8057 rm -f conftest.
$ac_objext conftest
$ac_exeext
8058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8059 (eval $ac_link) 2>&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try
='test -s conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 emacs_cv_var___after_morecore_hook
=yes
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.
$ac_ext >&5
8074 emacs_cv_var___after_morecore_hook
=no
8076 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8078 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8079 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8080 if test $emacs_cv_var___after_morecore_hook = no
; then
8083 if test "${system_malloc}" = "yes"; then
8086 (The GNU allocators don't work with this system configuration.)"
8088 if test "$doug_lea_malloc" = "yes" ; then
8089 if test "$GNU_MALLOC" = yes ; then
8091 (Using Doug Lea's new malloc from the GNU C Library.)"
8094 cat >>confdefs.h
<<\_ACEOF
8095 #define DOUG_LEA_MALLOC 1
8100 if test x
"${REL_ALLOC}" = x
; then
8101 REL_ALLOC
=${GNU_MALLOC}
8107 for ac_header
in stdlib.h unistd.h
8109 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111 echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8119 # Is the header compilable?
8120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8122 cat >conftest.
$ac_ext <<_ACEOF
8123 #line $LINENO "configure"
8126 cat confdefs.h
>>conftest.
$ac_ext
8127 cat >>conftest.
$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 $ac_includes_default
8130 #include <$ac_header>
8132 rm -f conftest.
$ac_objext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134 (eval $ac_compile) 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try
='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_header_compiler
=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.
$ac_ext >&5
8149 ac_header_compiler
=no
8151 rm -f conftest.
$ac_objext conftest.
$ac_ext
8152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8153 echo "${ECHO_T}$ac_header_compiler" >&6
8155 # Is the header present?
8156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8158 cat >conftest.
$ac_ext <<_ACEOF
8159 #line $LINENO "configure"
8162 cat confdefs.h
>>conftest.
$ac_ext
8163 cat >>conftest.
$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <$ac_header>
8167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8170 grep -v '^ *+' conftest.er1
>conftest.err
8172 cat conftest.err
>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } >/dev
/null
; then
8175 if test -s conftest.err
; then
8176 ac_cpp_err
=$ac_c_preproc_warn_flag
8183 if test -z "$ac_cpp_err"; then
8184 ac_header_preproc
=yes
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.
$ac_ext >&5
8189 ac_header_preproc
=no
8191 rm -f conftest.err conftest.
$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6
8195 # So? What about this header?
8196 case $ac_header_compiler:$ac_header_preproc in
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8204 ## ------------------------------------ ##
8205 ## Report this to bug-autoconf@gnu.org. ##
8206 ## ------------------------------------ ##
8209 sed "s/^/$as_me: WARNING: /" >&2
8212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8220 ## ------------------------------------ ##
8221 ## Report this to bug-autoconf@gnu.org. ##
8222 ## ------------------------------------ ##
8225 sed "s/^/$as_me: WARNING: /" >&2
8228 echo "$as_me:$LINENO: checking for $ac_header" >&5
8229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 eval "$as_ac_Header=$ac_header_preproc"
8235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240 cat >>confdefs.h
<<_ACEOF
8241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8249 for ac_func
in getpagesize
8251 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8252 echo "$as_me:$LINENO: checking for $ac_func" >&5
8253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8254 if eval "test \"\${$as_ac_var+set}\" = set"; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 cat >conftest.
$ac_ext <<_ACEOF
8258 #line $LINENO "configure"
8261 cat confdefs.h
>>conftest.
$ac_ext
8262 cat >>conftest.
$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char $ac_func (); below.
8266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267 <limits.h> exists even on freestanding compilers. */
8269 # include <limits.h>
8271 # include <assert.h>
8273 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8281 /* The GNU C library defines this for functions which it implements
8282 to always fail with ENOSYS. Some functions are actually named
8283 something starting with __ and the normal name is an alias. */
8284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8287 char (*f) () = $ac_func;
8296 return f != $ac_func;
8301 rm -f conftest.
$ac_objext conftest
$ac_exeext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try
='test -s conftest$ac_exeext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 eval "$as_ac_var=yes"
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.
$ac_ext >&5
8318 eval "$as_ac_var=no"
8320 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8324 if test `eval echo '${'$as_ac_var'}'` = yes; then
8325 cat >>confdefs.h
<<_ACEOF
8326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8332 echo "$as_me:$LINENO: checking for working mmap" >&5
8333 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8334 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 if test "$cross_compiling" = yes; then
8338 ac_cv_func_mmap_fixed_mapped
=no
8340 cat >conftest.
$ac_ext <<_ACEOF
8341 #line $LINENO "configure"
8344 cat confdefs.h
>>conftest.
$ac_ext
8345 cat >>conftest.
$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 /* malloc might have been renamed as rpl_malloc. */
8351 /* Thanks to Mike Haertel and Jim Avera for this test.
8352 Here is a matrix of mmap possibilities:
8353 mmap private not fixed
8354 mmap private fixed at somewhere currently unmapped
8355 mmap private fixed at somewhere already mapped
8356 mmap shared not fixed
8357 mmap shared fixed at somewhere currently unmapped
8358 mmap shared fixed at somewhere already mapped
8359 For private mappings, we should verify that changes cannot be read()
8360 back from the file, nor mmap's back from the file at a different
8361 address. (There have been systems where private was not correctly
8362 implemented like the infamous i386 svr4.0, and systems where the
8363 VM page cache was not coherent with the file system buffer cache
8364 like early versions of FreeBSD and possibly contemporary NetBSD.)
8365 For shared mappings, we should conversely verify that changes get
8366 propagated back to all the places they're supposed to be.
8368 Grep wants private fixed already mapped.
8369 The main things grep needs to know about mmap are:
8370 * does it exist and is it safe to write into the mmap'd area
8371 * how to use it (BSD variants) */
8374 #include <sys/mman.h>
8376 #if !STDC_HEADERS && !HAVE_STDLIB_H
8380 /* This mess was copied from the GNU getpagesize.h. */
8381 #if !HAVE_GETPAGESIZE
8382 /* Assume that all systems that can run configure have sys/param.h. */
8383 # if !HAVE_SYS_PARAM_H
8384 # define HAVE_SYS_PARAM_H 1
8387 # ifdef _SC_PAGESIZE
8388 # define getpagesize() sysconf(_SC_PAGESIZE)
8389 # else /* no _SC_PAGESIZE */
8390 # if HAVE_SYS_PARAM_H
8391 # include <sys/param.h>
8392 # ifdef EXEC_PAGESIZE
8393 # define getpagesize() EXEC_PAGESIZE
8394 # else /* no EXEC_PAGESIZE */
8396 # define getpagesize() NBPG * CLSIZE
8399 # endif /* no CLSIZE */
8400 # else /* no NBPG */
8402 # define getpagesize() NBPC
8403 # else /* no NBPC */
8405 # define getpagesize() PAGESIZE
8406 # endif /* PAGESIZE */
8407 # endif /* no NBPC */
8408 # endif /* no NBPG */
8409 # endif /* no EXEC_PAGESIZE */
8410 # else /* no HAVE_SYS_PARAM_H */
8411 # define getpagesize() 8192 /* punt totally */
8412 # endif /* no HAVE_SYS_PARAM_H */
8413 # endif /* no _SC_PAGESIZE */
8415 #endif /* no HAVE_GETPAGESIZE */
8420 char *data, *data2, *data3;
8424 pagesize = getpagesize ();
8426 /* First, make a file with some known garbage in it. */
8427 data = (char *) malloc (pagesize);
8430 for (i = 0; i < pagesize; ++i)
8431 *(data + i) = rand ();
8433 fd = creat ("conftest.mmap", 0600);
8436 if (write (fd, data, pagesize) != pagesize)
8440 /* Next, try to mmap the file at a fixed address which already has
8441 something else allocated at it. If we can, also make sure that
8442 we see the same garbage. */
8443 fd = open ("conftest.mmap", O_RDWR);
8446 data2 = (char *) malloc (2 * pagesize);
8449 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8450 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8451 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8453 for (i = 0; i < pagesize; ++i)
8454 if (*(data + i) != *(data2 + i))
8457 /* Finally, make sure that changes to the mapped area do not
8458 percolate back to the file as seen by read(). (This is a bug on
8459 some variants of i386 svr4.0.) */
8460 for (i = 0; i < pagesize; ++i)
8461 *(data2 + i) = *(data2 + i) + 1;
8462 data3 = (char *) malloc (pagesize);
8465 if (read (fd, data3, pagesize) != pagesize)
8467 for (i = 0; i < pagesize; ++i)
8468 if (*(data + i) != *(data3 + i))
8474 rm -f conftest
$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_func_mmap_fixed_mapped
=yes
8487 echo "$as_me: program exited with status $ac_status" >&5
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.
$ac_ext >&5
8492 ac_cv_func_mmap_fixed_mapped
=no
8494 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8498 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8499 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8501 cat >>confdefs.h
<<\_ACEOF
8508 if test $use_mmap_for_buffers = yes; then
8512 LIBS
="$libsrc_libs $LIBS"
8515 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8516 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8517 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 ac_check_lib_save_LIBS
=$LIBS
8522 cat >conftest.
$ac_ext <<_ACEOF
8523 #line $LINENO "configure"
8526 cat confdefs.h
>>conftest.
$ac_ext
8527 cat >>conftest.
$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8545 rm -f conftest.
$ac_objext conftest
$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try
='test -s conftest$ac_exeext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_lib_dnet_dnet_ntoa
=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.
$ac_ext >&5
8562 ac_cv_lib_dnet_dnet_ntoa
=no
8564 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8565 LIBS
=$ac_check_lib_save_LIBS
8567 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8568 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8569 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8570 cat >>confdefs.h
<<_ACEOF
8571 #define HAVE_LIBDNET 1
8579 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8580 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8581 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 ac_check_lib_save_LIBS
=$LIBS
8586 cat >conftest.
$ac_ext <<_ACEOF
8587 #line $LINENO "configure"
8590 cat confdefs.h
>>conftest.
$ac_ext
8591 cat >>conftest.
$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8603 rm -f conftest.
$ac_objext conftest
$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try
='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_lib_Xbsd_main
=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.
$ac_ext >&5
8620 ac_cv_lib_Xbsd_main
=no
8622 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8623 LIBS
=$ac_check_lib_save_LIBS
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8626 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8627 if test $ac_cv_lib_Xbsd_main = yes; then
8628 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8633 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8634 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8635 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 ac_check_lib_save_LIBS
=$LIBS
8639 LIBS
="-lpthreads $LIBS"
8640 cat >conftest.
$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8644 cat confdefs.h
>>conftest.
$ac_ext
8645 cat >>conftest.
$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 /* Override any gcc2 internal prototype to avoid an error. */
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8663 rm -f conftest.
$ac_objext conftest
$ac_exeext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665 (eval $ac_link) 2>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try
='test -s conftest$ac_exeext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 ac_cv_lib_pthreads_cma_open
=yes
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.
$ac_ext >&5
8680 ac_cv_lib_pthreads_cma_open
=no
8682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8683 LIBS
=$ac_check_lib_save_LIBS
8685 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8686 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8687 if test $ac_cv_lib_pthreads_cma_open = yes; then
8688 cat >>confdefs.h
<<_ACEOF
8689 #define HAVE_LIBPTHREADS 1
8692 LIBS
="-lpthreads $LIBS"
8697 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8698 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8699 if test -d /usr
/X386
/include
; then
8701 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8705 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8706 echo "${ECHO_T}$HAVE_XFREE386" >&6
8711 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8712 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8713 if test "${gdb_cv_bigtoc+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8719 *) gdb_cv_bigtoc
=-bbigtoc ;;
8722 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8723 cat >conftest.
$ac_ext <<_ACEOF
8724 #line $LINENO "configure"
8727 cat confdefs.h
>>conftest.
$ac_ext
8728 cat >>conftest.
$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8739 rm -f conftest.
$ac_objext conftest
$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741 (eval $ac_link) 2>&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try
='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.
$ac_ext >&5
8758 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8761 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8762 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8766 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8767 # used for the tests that follow. We set them back to REAL_CFLAGS and
8768 # REAL_CPPFLAGS later on.
8770 REAL_CPPFLAGS
="$CPPFLAGS"
8772 if test "${HAVE_X11}" = "yes"; then
8773 DEFS
="$C_SWITCH_X_SITE $DEFS"
8774 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8776 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8777 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8779 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8780 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8781 # but it's more convenient here to set LD_RUN_PATH
8782 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8783 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8784 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8788 if test "${opsys}" = "gnu-linux"; then
8789 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8790 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8791 cat >conftest.
$ac_ext <<_ACEOF
8792 #line $LINENO "configure"
8795 cat confdefs.h
>>conftest.
$ac_ext
8796 cat >>conftest.
$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8802 XOpenDisplay ("foo");
8807 rm -f conftest.
$ac_objext conftest
$ac_exeext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809 (eval $ac_link) 2>&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try
='test -s conftest$ac_exeext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 xlinux_first_failure
=no
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.
$ac_ext >&5
8824 xlinux_first_failure
=yes
8826 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8827 if test "${xlinux_first_failure}" = "yes"; then
8828 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8829 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8830 OLD_CPPFLAGS
="$CPPFLAGS"
8832 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8833 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8834 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8835 LIBS
="$LIBS -b i486-linuxaout"
8836 cat >conftest.
$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8840 cat confdefs.h
>>conftest.
$ac_ext
8841 cat >>conftest.
$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8847 XOpenDisplay ("foo");
8852 rm -f conftest.
$ac_objext conftest
$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try
='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 xlinux_second_failure
=no
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.
$ac_ext >&5
8869 xlinux_second_failure
=yes
8871 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8872 if test "${xlinux_second_failure}" = "yes"; then
8873 # If we get the same failure with -b, there is no use adding -b.
8874 # So take it out. This plays safe.
8875 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8876 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8877 CPPFLAGS
="$OLD_CPPFLAGS"
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8882 echo "$as_me:$LINENO: result: yes" >&5
8883 echo "${ECHO_T}yes" >&6
8886 echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6
8891 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8892 # header files included from there.
8893 echo "$as_me:$LINENO: checking for Xkb" >&5
8894 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8895 cat >conftest.
$ac_ext <<_ACEOF
8896 #line $LINENO "configure"
8899 cat confdefs.h
>>conftest.
$ac_ext
8900 cat >>conftest.
$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 #include <X11/Xlib.h>
8903 #include <X11/XKBlib.h>
8907 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8912 rm -f conftest.
$ac_objext conftest
$ac_exeext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914 (eval $ac_link) 2>&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try
='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.
$ac_ext >&5
8931 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8932 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8933 echo "${ECHO_T}$emacs_xkb" >&6
8934 if test $emacs_xkb = yes; then
8936 cat >>confdefs.h
<<\_ACEOF
8937 #define HAVE_XKBGETKEYBOARD 1
8946 for ac_func
in XrmSetDatabase XScreenResourceString \
8947 XScreenNumberOfScreen XSetWMProtocols
8949 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8950 echo "$as_me:$LINENO: checking for $ac_func" >&5
8951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8952 if eval "test \"\${$as_ac_var+set}\" = set"; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 cat >conftest.
$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8959 cat confdefs.h
>>conftest.
$ac_ext
8960 cat >>conftest.
$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 /* System header to define __stub macros and hopefully few prototypes,
8963 which can conflict with char $ac_func (); below.
8964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8965 <limits.h> exists even on freestanding compilers. */
8967 # include <limits.h>
8969 # include <assert.h>
8971 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8979 /* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8985 char (*f) () = $ac_func;
8994 return f != $ac_func;
8999 rm -f conftest.
$ac_objext conftest
$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try
='test -s conftest$ac_exeext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 eval "$as_ac_var=yes"
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.
$ac_ext >&5
9016 eval "$as_ac_var=no"
9018 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9022 if test `eval echo '${'$as_ac_var'}'` = yes; then
9023 cat >>confdefs.h
<<_ACEOF
9024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9032 if test "${window_system}" = "x11"; then
9033 echo "$as_me:$LINENO: checking X11 version 6" >&5
9034 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9035 if test "${emacs_cv_x11_version_6+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 cat >conftest.
$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9042 cat confdefs.h
>>conftest.
$ac_ext
9043 cat >>conftest.
$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 #include <X11/Xlib.h>
9049 #if XlibSpecificationRelease < 6
9057 rm -f conftest.
$ac_objext conftest
$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try
='test -s conftest$ac_exeext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 emacs_cv_x11_version_6
=yes
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.
$ac_ext >&5
9074 emacs_cv_x11_version_6
=no
9076 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9079 if test $emacs_cv_x11_version_6 = yes; then
9080 echo "$as_me:$LINENO: result: 6 or newer" >&5
9081 echo "${ECHO_T}6 or newer" >&6
9083 cat >>confdefs.h
<<\_ACEOF
9084 #define HAVE_X11R6 1
9088 echo "$as_me:$LINENO: result: before 6" >&5
9089 echo "${ECHO_T}before 6" >&6
9093 if test "${window_system}" = "x11"; then
9094 echo "$as_me:$LINENO: checking X11 version 5" >&5
9095 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9096 if test "${emacs_cv_x11_version_5+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 cat >conftest.
$ac_ext <<_ACEOF
9100 #line $LINENO "configure"
9103 cat confdefs.h
>>conftest.
$ac_ext
9104 cat >>conftest.
$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 #include <X11/Xlib.h>
9110 #if XlibSpecificationRelease < 5
9118 rm -f conftest.
$ac_objext conftest
$ac_exeext
9119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120 (eval $ac_link) 2>&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try
='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 emacs_cv_x11_version_5
=yes
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.
$ac_ext >&5
9135 emacs_cv_x11_version_5
=no
9137 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9140 if test $emacs_cv_x11_version_5 = yes; then
9141 echo "$as_me:$LINENO: result: 5 or newer" >&5
9142 echo "${ECHO_T}5 or newer" >&6
9145 cat >>confdefs.h
<<\_ACEOF
9146 #define HAVE_X11R5 1
9151 echo "$as_me:$LINENO: result: before 5" >&5
9152 echo "${ECHO_T}before 5" >&6
9159 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9160 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9161 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9162 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9163 { (exit 1); exit 1; }; };
9167 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9169 if test "X${with_pkg_config_prog}" != X
; then
9170 PKG_CONFIG
="${with_pkg_config_prog}"
9175 if test -z "$PKG_CONFIG"; then
9176 # Extract the first word of "pkg-config", so it can be a program name with args.
9177 set dummy pkg-config
; ac_word
=$2
9178 echo "$as_me:$LINENO: checking for $ac_word" >&5
9179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9180 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9192 test -z "$as_dir" && as_dir
=.
9193 for ac_exec_ext
in '' $ac_executable_extensions; do
9194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9206 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9208 if test -n "$PKG_CONFIG"; then
9209 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9210 echo "${ECHO_T}$PKG_CONFIG" >&6
9212 echo "$as_me:$LINENO: result: no" >&5
9213 echo "${ECHO_T}no" >&6
9218 if test "$PKG_CONFIG" = "no" ; then
9219 echo "*** The pkg-config script could not be found. Make sure it is"
9220 echo "*** in your path, or give the full path to pkg-config with"
9221 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9222 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9224 PKG_CONFIG_MIN_VERSION
=0.9.0
9225 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9226 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9227 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9229 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9230 echo "$as_me:$LINENO: result: yes" >&5
9231 echo "${ECHO_T}yes" >&6
9234 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9235 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9236 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9237 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9238 echo "${ECHO_T}$GTK_CFLAGS" >&6
9240 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9241 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9242 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9243 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9244 echo "${ECHO_T}$GTK_LIBS" >&6
9248 ## If we have a custom action on failure, don't print errors, but
9249 ## do set a variable so people can do so.
9250 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9251 echo $GTK_PKG_ERRORS
9257 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9258 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9262 if test $succeeded = yes; then
9265 { { 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
9266 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;}
9267 { (exit 1); exit 1; }; }
9272 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9273 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9274 LIBS
="$GTK_LIBS $LIBS"
9277 cat >>confdefs.h
<<\_ACEOF
9283 if test "$with_toolkit_scroll_bars" != no
; then
9284 with_toolkit_scroll_bars
=yes
9287 HAVE_GTK_MULTIDISPLAY
=no
9289 for ac_func
in gdk_display_open
9291 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9292 echo "$as_me:$LINENO: checking for $ac_func" >&5
9293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9294 if eval "test \"\${$as_ac_var+set}\" = set"; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 cat >conftest.
$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* System header to define __stub macros and hopefully few prototypes,
9305 which can conflict with char $ac_func (); below.
9306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307 <limits.h> exists even on freestanding compilers. */
9309 # include <limits.h>
9311 # include <assert.h>
9313 /* Override any gcc2 internal prototype to avoid an error. */
9318 /* We use char because int might match the return type of a gcc2
9319 builtin and then its argument prototype would still apply. */
9321 /* The GNU C library defines this for functions which it implements
9322 to always fail with ENOSYS. Some functions are actually named
9323 something starting with __ and the normal name is an alias. */
9324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9327 char (*f) () = $ac_func;
9336 return f != $ac_func;
9341 rm -f conftest.
$ac_objext conftest
$ac_exeext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try
='test -s conftest$ac_exeext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 eval "$as_ac_var=yes"
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.
$ac_ext >&5
9358 eval "$as_ac_var=no"
9360 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9364 if test `eval echo '${'$as_ac_var'}'` = yes; then
9365 cat >>confdefs.h
<<_ACEOF
9366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9368 HAVE_GTK_MULTIDISPLAY
=yes
9372 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9374 cat >>confdefs.h
<<\_ACEOF
9375 #define HAVE_GTK_MULTIDISPLAY 1
9379 HAVE_GTK_FILE_SELECTION
=no
9381 for ac_func
in gtk_file_selection_new
9383 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9384 echo "$as_me:$LINENO: checking for $ac_func" >&5
9385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9386 if eval "test \"\${$as_ac_var+set}\" = set"; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 cat >conftest.
$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9393 cat confdefs.h
>>conftest.
$ac_ext
9394 cat >>conftest.
$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 /* System header to define __stub macros and hopefully few prototypes,
9397 which can conflict with char $ac_func (); below.
9398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399 <limits.h> exists even on freestanding compilers. */
9401 # include <limits.h>
9403 # include <assert.h>
9405 /* Override any gcc2 internal prototype to avoid an error. */
9410 /* We use char because int might match the return type of a gcc2
9411 builtin and then its argument prototype would still apply. */
9413 /* The GNU C library defines this for functions which it implements
9414 to always fail with ENOSYS. Some functions are actually named
9415 something starting with __ and the normal name is an alias. */
9416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9419 char (*f) () = $ac_func;
9428 return f != $ac_func;
9433 rm -f conftest.
$ac_objext conftest
$ac_exeext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435 (eval $ac_link) 2>&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try
='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 eval "$as_ac_var=yes"
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.
$ac_ext >&5
9450 eval "$as_ac_var=no"
9452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9456 if test `eval echo '${'$as_ac_var'}'` = yes; then
9457 cat >>confdefs.h
<<_ACEOF
9458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9460 HAVE_GTK_FILE_SELECTION
=yes
9465 HAVE_GTK_FILE_CHOOSER
=no
9467 for ac_func
in gtk_file_chooser_dialog_new
9469 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9470 echo "$as_me:$LINENO: checking for $ac_func" >&5
9471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9472 if eval "test \"\${$as_ac_var+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 cat >conftest.
$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9479 cat confdefs.h
>>conftest.
$ac_ext
9480 cat >>conftest.
$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 /* System header to define __stub macros and hopefully few prototypes,
9483 which can conflict with char $ac_func (); below.
9484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9485 <limits.h> exists even on freestanding compilers. */
9487 # include <limits.h>
9489 # include <assert.h>
9491 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9505 char (*f) () = $ac_func;
9514 return f != $ac_func;
9519 rm -f conftest.
$ac_objext conftest
$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try
='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 eval "$as_ac_var=yes"
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.
$ac_ext >&5
9536 eval "$as_ac_var=no"
9538 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9542 if test `eval echo '${'$as_ac_var'}'` = yes; then
9543 cat >>confdefs.h
<<_ACEOF
9544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9546 HAVE_GTK_FILE_CHOOSER
=yes
9551 if test "$HAVE_GTK_FILE_SELECTION" = yes \
9552 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
9554 cat >>confdefs.h
<<\_ACEOF
9555 #define HAVE_GTK_FILE_BOTH 1
9560 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
9561 HAVE_GTK_AND_PTHREAD
=no
9563 for ac_header
in pthread.h
9565 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9567 echo "$as_me:$LINENO: checking for $ac_header" >&5
9568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9575 # Is the header compilable?
9576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9578 cat >conftest.
$ac_ext <<_ACEOF
9579 #line $LINENO "configure"
9582 cat confdefs.h
>>conftest.
$ac_ext
9583 cat >>conftest.
$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 $ac_includes_default
9586 #include <$ac_header>
9588 rm -f conftest.
$ac_objext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590 (eval $ac_compile) 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try
='test -s conftest.$ac_objext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_header_compiler
=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.
$ac_ext >&5
9605 ac_header_compiler
=no
9607 rm -f conftest.
$ac_objext conftest.
$ac_ext
9608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9609 echo "${ECHO_T}$ac_header_compiler" >&6
9611 # Is the header present?
9612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9614 cat >conftest.
$ac_ext <<_ACEOF
9615 #line $LINENO "configure"
9618 cat confdefs.h
>>conftest.
$ac_ext
9619 cat >>conftest.
$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 #include <$ac_header>
9623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9624 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9626 grep -v '^ *+' conftest.er1
>conftest.err
9628 cat conftest.err
>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } >/dev
/null
; then
9631 if test -s conftest.err
; then
9632 ac_cpp_err
=$ac_c_preproc_warn_flag
9639 if test -z "$ac_cpp_err"; then
9640 ac_header_preproc
=yes
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.
$ac_ext >&5
9645 ac_header_preproc
=no
9647 rm -f conftest.err conftest.
$ac_ext
9648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9649 echo "${ECHO_T}$ac_header_preproc" >&6
9651 # So? What about this header?
9652 case $ac_header_compiler:$ac_header_preproc in
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9660 ## ------------------------------------ ##
9661 ## Report this to bug-autoconf@gnu.org. ##
9662 ## ------------------------------------ ##
9665 sed "s/^/$as_me: WARNING: /" >&2
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9676 ## ------------------------------------ ##
9677 ## Report this to bug-autoconf@gnu.org. ##
9678 ## ------------------------------------ ##
9681 sed "s/^/$as_me: WARNING: /" >&2
9684 echo "$as_me:$LINENO: checking for $ac_header" >&5
9685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 eval "$as_ac_Header=$ac_header_preproc"
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9696 cat >>confdefs.h
<<_ACEOF
9697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9704 if test "$ac_cv_header_pthread_h"; then
9705 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
9706 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
9707 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 ac_check_lib_save_LIBS
=$LIBS
9711 LIBS
="-lpthread $LIBS"
9712 cat >conftest.
$ac_ext <<_ACEOF
9713 #line $LINENO "configure"
9716 cat confdefs.h
>>conftest.
$ac_ext
9717 cat >>conftest.
$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9720 /* Override any gcc2 internal prototype to avoid an error. */
9724 /* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9726 char pthread_self ();
9735 rm -f conftest.
$ac_objext conftest
$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try
='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_lib_pthread_pthread_self
=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.
$ac_ext >&5
9752 ac_cv_lib_pthread_pthread_self
=no
9754 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9755 LIBS
=$ac_check_lib_save_LIBS
9757 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
9758 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
9759 if test $ac_cv_lib_pthread_pthread_self = yes; then
9760 HAVE_GTK_AND_PTHREAD
=yes
9764 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9765 GTK_LIBS
="$GTK_LIBS -lpthread"
9767 cat >>confdefs.h
<<\_ACEOF
9768 #define HAVE_GTK_AND_PTHREAD 1
9775 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9776 if test x
"${HAVE_X11R5}" = xyes
; then
9777 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9778 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9779 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 cat >conftest.
$ac_ext <<_ACEOF
9783 #line $LINENO "configure"
9786 cat confdefs.h
>>conftest.
$ac_ext
9787 cat >>conftest.
$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9790 #include <X11/Intrinsic.h>
9791 #include <X11/Xaw/Simple.h>
9800 rm -f conftest.
$ac_objext conftest
$ac_exeext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9802 (eval $ac_link) 2>&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try
='test -s conftest$ac_exeext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 emacs_cv_x11_version_5_with_xaw
=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.
$ac_ext >&5
9817 emacs_cv_x11_version_5_with_xaw
=no
9819 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9822 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9823 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9824 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9827 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9828 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9836 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9838 if test "${USE_X_TOOLKIT}" != "none"; then
9839 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9840 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9841 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >conftest.
$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9848 cat confdefs.h
>>conftest.
$ac_ext
9849 cat >>conftest.
$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 #include <X11/Intrinsic.h>
9855 #if XtSpecificationRelease < 6
9863 rm -f conftest.
$ac_objext conftest
$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try
='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 emacs_cv_x11_toolkit_version_6
=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.
$ac_ext >&5
9880 emacs_cv_x11_toolkit_version_6
=no
9882 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9885 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9886 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9887 echo "$as_me:$LINENO: result: 6 or newer" >&5
9888 echo "${ECHO_T}6 or newer" >&6
9890 cat >>confdefs.h
<<\_ACEOF
9891 #define HAVE_X11XTR6 1
9895 echo "$as_me:$LINENO: result: before 6" >&5
9896 echo "${ECHO_T}before 6" >&6
9900 if test x
$HAVE_X11XTR6 = xyes
; then
9901 LIBS
="-lXt -lSM -lICE $LIBS"
9906 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9907 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9908 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 ac_check_lib_save_LIBS
=$LIBS
9913 cat >conftest.
$ac_ext <<_ACEOF
9914 #line $LINENO "configure"
9917 cat confdefs.h
>>conftest.
$ac_ext
9918 cat >>conftest.
$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9921 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9927 char XmuConvertStandardSelection ();
9931 XmuConvertStandardSelection ();
9936 rm -f conftest.
$ac_objext conftest
$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try
='test -s conftest$ac_exeext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.
$ac_ext >&5
9953 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9955 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9956 LIBS
=$ac_check_lib_save_LIBS
9958 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9959 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9960 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9961 cat >>confdefs.h
<<_ACEOF
9962 #define HAVE_LIBXMU 1
9969 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9972 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9973 if test "${HAVE_X11}" = "yes"; then
9974 if test "${USE_X_TOOLKIT}" != "none"; then
9976 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9977 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9978 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 ac_check_lib_save_LIBS
=$LIBS
9983 cat >conftest.
$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9987 cat confdefs.h
>>conftest.
$ac_ext
9988 cat >>conftest.
$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9991 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997 char XShapeQueryExtension ();
10001 XShapeQueryExtension ();
10006 rm -f conftest.
$ac_objext conftest
$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try
='test -s conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.
$ac_ext >&5
10023 ac_cv_lib_Xext_XShapeQueryExtension
=no
10025 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10026 LIBS
=$ac_check_lib_save_LIBS
10028 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10029 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10030 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10031 cat >>confdefs.h
<<_ACEOF
10032 #define HAVE_LIBXEXT 1
10035 LIBS
="-lXext $LIBS"
10042 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10043 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10044 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10045 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 cat >conftest.
$ac_ext <<_ACEOF
10049 #line $LINENO "configure"
10052 cat confdefs.h
>>conftest.
$ac_ext
10053 cat >>conftest.
$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10059 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10062 Motif version prior to 2.1.
10068 rm -f conftest.
$ac_objext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10070 (eval $ac_compile) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try
='test -s conftest.$ac_objext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 emacs_cv_motif_version_2_1
=yes
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.
$ac_ext >&5
10085 emacs_cv_motif_version_2_1
=no
10087 rm -f conftest.
$ac_objext conftest.
$ac_ext
10089 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10090 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10091 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10092 if test $emacs_cv_motif_version_2_1 = yes; then
10095 cat >>confdefs.h
<<\_ACEOF
10096 #define HAVE_MOTIF_2_1 1
10099 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10100 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10101 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 ac_check_lib_save_LIBS
=$LIBS
10106 cat >conftest.
$ac_ext <<_ACEOF
10107 #line $LINENO "configure"
10110 cat confdefs.h
>>conftest.
$ac_ext
10111 cat >>conftest.
$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10114 /* Override any gcc2 internal prototype to avoid an error. */
10118 /* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10120 char XpCreateContext ();
10124 XpCreateContext ();
10129 rm -f conftest.
$ac_objext conftest
$ac_exeext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131 (eval $ac_link) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try
='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_lib_Xp_XpCreateContext
=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.
$ac_ext >&5
10146 ac_cv_lib_Xp_XpCreateContext
=no
10148 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10149 LIBS
=$ac_check_lib_save_LIBS
10151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10152 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10153 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10157 if test ${HAVE_LIBXP} = yes; then
10159 cat >>confdefs.h
<<\_ACEOF
10160 #define HAVE_LIBXP 1
10165 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10166 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10167 if test "${emacs_cv_lesstif+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 # We put this in CFLAGS temporarily to precede other -I options
10171 # that might be in CFLAGS temporarily.
10172 # We put this in CPPFLAGS where it precedes the other -I options.
10173 OLD_CPPFLAGS
=$CPPFLAGS
10175 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10176 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10177 cat >conftest.
$ac_ext <<_ACEOF
10178 #line $LINENO "configure"
10181 cat confdefs.h
>>conftest.
$ac_ext
10182 cat >>conftest.
$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10193 rm -f conftest.
$ac_objext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10195 (eval $ac_compile) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try
='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 emacs_cv_lesstif
=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.
$ac_ext >&5
10210 emacs_cv_lesstif
=no
10212 rm -f conftest.
$ac_objext conftest.
$ac_ext
10214 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10215 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10216 if test $emacs_cv_lesstif = yes; then
10217 # Make sure this -I option remains in CPPFLAGS after it is set
10218 # back to REAL_CPPFLAGS.
10219 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10220 # have those other -I options anyway. Ultimately, having this
10221 # directory ultimately in CPPFLAGS will be enough.
10222 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10223 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10226 CPPFLAGS
=$OLD_CPPFLAGS
10231 ### Is -lXaw3d available?
10233 if test "${HAVE_X11}" = "yes"; then
10234 if test "${USE_X_TOOLKIT}" != "none"; then
10235 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10236 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10237 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 cat >conftest.
$ac_ext <<_ACEOF
10241 #line $LINENO "configure"
10244 cat confdefs.h
>>conftest.
$ac_ext
10245 cat >>conftest.
$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247 #include <X11/Xaw3d/Scrollbar.h>
10249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10250 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10252 grep -v '^ *+' conftest.er1
>conftest.err
10254 cat conftest.err
>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } >/dev
/null
; then
10257 if test -s conftest.err
; then
10258 ac_cpp_err
=$ac_c_preproc_warn_flag
10265 if test -z "$ac_cpp_err"; then
10266 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.
$ac_ext >&5
10271 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10273 rm -f conftest.err conftest.
$ac_ext
10275 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10276 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10277 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10278 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10279 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10280 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_check_lib_save_LIBS
=$LIBS
10284 LIBS
="-lXaw3d $LIBS"
10285 cat >conftest.
$ac_ext <<_ACEOF
10286 #line $LINENO "configure"
10289 cat confdefs.h
>>conftest.
$ac_ext
10290 cat >>conftest.
$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 /* Override any gcc2 internal prototype to avoid an error. */
10297 /* We use char because int might match the return type of a gcc2
10298 builtin and then its argument prototype would still apply. */
10299 char XawScrollbarSetThumb ();
10303 XawScrollbarSetThumb ();
10308 rm -f conftest.
$ac_objext conftest
$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try
='test -s conftest$ac_exeext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.
$ac_ext >&5
10325 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10327 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10328 LIBS
=$ac_check_lib_save_LIBS
10330 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10331 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10332 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10339 if test "${HAVE_XAW3D}" = "yes"; then
10341 cat >>confdefs.h
<<\_ACEOF
10342 #define HAVE_XAW3D 1
10351 USE_TOOLKIT_SCROLL_BARS
=no
10352 if test "${with_toolkit_scroll_bars}" != "no"; then
10353 if test "${USE_X_TOOLKIT}" != "none"; then
10354 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10355 cat >>confdefs.h
<<\_ACEOF
10356 #define USE_TOOLKIT_SCROLL_BARS 1
10360 USE_TOOLKIT_SCROLL_BARS
=yes
10361 elif test "${HAVE_XAW3D}" = "yes"; then
10362 cat >>confdefs.h
<<\_ACEOF
10363 #define USE_TOOLKIT_SCROLL_BARS 1
10366 USE_TOOLKIT_SCROLL_BARS
=yes
10368 elif test "${HAVE_GTK}" = "yes"; then
10369 cat >>confdefs.h
<<\_ACEOF
10370 #define USE_TOOLKIT_SCROLL_BARS 1
10373 USE_TOOLKIT_SCROLL_BARS
=yes
10374 elif test "${HAVE_CARBON}" = "yes"; then
10375 cat >>confdefs.h
<<\_ACEOF
10376 #define USE_TOOLKIT_SCROLL_BARS 1
10379 USE_TOOLKIT_SCROLL_BARS
=yes
10383 cat >conftest.
$ac_ext <<_ACEOF
10384 #line $LINENO "configure"
10387 cat confdefs.h
>>conftest.
$ac_ext
10388 cat >>conftest.
$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10391 #include <X11/Xlib.h>
10392 #include <X11/Xresource.h>
10401 rm -f conftest.
$ac_objext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403 (eval $ac_compile) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try
='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10415 cat >>confdefs.h
<<\_ACEOF
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.
$ac_ext >&5
10425 rm -f conftest.
$ac_objext conftest.
$ac_ext
10428 if test "${with_xim}" != "no"; then
10430 cat >>confdefs.h
<<\_ACEOF
10437 if test "${HAVE_XIM}" != "no"; then
10438 late_CFLAGS
=$CFLAGS
10439 if test "$GCC" = yes; then
10440 CFLAGS
="$CFLAGS --pedantic-errors"
10442 cat >conftest.
$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10446 cat confdefs.h
>>conftest.
$ac_ext
10447 cat >>conftest.
$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10450 #include <X11/Xlib.h>
10451 #include <X11/Xresource.h>
10460 XPointer *client_data;
10462 /* If we're not using GCC, it's probably not XFree86, and this is
10463 probably right, but we can't use something like --pedantic-errors. */
10464 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10465 char*, XIMProc, XPointer*);
10467 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10473 rm -f conftest.
$ac_objext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try
='test -s conftest.$ac_objext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 emacs_cv_arg6_star
=yes
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.
$ac_ext >&5
10491 rm -f conftest.
$ac_objext conftest.
$ac_ext
10493 if test "$emacs_cv_arg6_star" = yes; then
10494 cat >>confdefs.h
<<\_ACEOF
10495 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10499 cat >>confdefs.h
<<\_ACEOF
10500 #define XRegisterIMInstantiateCallback_arg6 XPointer
10504 CFLAGS
=$late_CFLAGS
10507 ### Use -lXpm if available, unless `--with-xpm=no'.
10509 if test "${HAVE_X11}" = "yes"; then
10510 if test "${with_xpm}" != "no"; then
10511 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10512 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10513 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10514 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10518 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10520 # Is the header compilable?
10521 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10522 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10523 cat >conftest.
$ac_ext <<_ACEOF
10524 #line $LINENO "configure"
10527 cat confdefs.h
>>conftest.
$ac_ext
10528 cat >>conftest.
$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 $ac_includes_default
10531 #include <X11/xpm.h>
10533 rm -f conftest.
$ac_objext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535 (eval $ac_compile) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try
='test -s conftest.$ac_objext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_header_compiler
=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10550 ac_header_compiler
=no
10552 rm -f conftest.
$ac_objext conftest.
$ac_ext
10553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10554 echo "${ECHO_T}$ac_header_compiler" >&6
10556 # Is the header present?
10557 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10558 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10559 cat >conftest.
$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10563 cat confdefs.h
>>conftest.
$ac_ext
10564 cat >>conftest.
$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <X11/xpm.h>
10568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10569 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10571 grep -v '^ *+' conftest.er1
>conftest.err
10573 cat conftest.err
>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } >/dev
/null
; then
10576 if test -s conftest.err
; then
10577 ac_cpp_err
=$ac_c_preproc_warn_flag
10584 if test -z "$ac_cpp_err"; then
10585 ac_header_preproc
=yes
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.
$ac_ext >&5
10590 ac_header_preproc
=no
10592 rm -f conftest.err conftest.
$ac_ext
10593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10594 echo "${ECHO_T}$ac_header_preproc" >&6
10596 # So? What about this header?
10597 case $ac_header_compiler:$ac_header_preproc in
10599 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10600 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10602 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10605 ## ------------------------------------ ##
10606 ## Report this to bug-autoconf@gnu.org. ##
10607 ## ------------------------------------ ##
10610 sed "s/^/$as_me: WARNING: /" >&2
10613 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10614 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10616 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10618 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10621 ## ------------------------------------ ##
10622 ## Report this to bug-autoconf@gnu.org. ##
10623 ## ------------------------------------ ##
10626 sed "s/^/$as_me: WARNING: /" >&2
10629 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10630 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10631 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10636 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10637 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10640 if test $ac_cv_header_X11_xpm_h = yes; then
10641 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10642 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10643 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 ac_check_lib_save_LIBS
=$LIBS
10647 LIBS
="-lXpm -lX11 $LIBS"
10648 cat >conftest.
$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10652 cat confdefs.h
>>conftest.
$ac_ext
10653 cat >>conftest.
$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10656 /* Override any gcc2 internal prototype to avoid an error. */
10660 /* We use char because int might match the return type of a gcc2
10661 builtin and then its argument prototype would still apply. */
10662 char XpmReadFileToPixmap ();
10666 XpmReadFileToPixmap ();
10671 rm -f conftest.
$ac_objext conftest
$ac_exeext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673 (eval $ac_link) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try
='test -s conftest$ac_exeext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.
$ac_ext >&5
10688 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10690 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10691 LIBS
=$ac_check_lib_save_LIBS
10693 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10694 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10695 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10702 if test "${HAVE_XPM}" = "yes"; then
10703 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10704 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10705 cat >conftest.
$ac_ext <<_ACEOF
10706 #line $LINENO "configure"
10709 cat confdefs.h
>>conftest.
$ac_ext
10710 cat >>conftest.
$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10712 #include "X11/xpm.h"
10713 #ifndef XpmReturnAllocPixels
10714 no_return_alloc_pixels
10718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10719 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
10727 if test "${HAVE_XPM}" = "yes"; then
10728 echo "$as_me:$LINENO: result: yes" >&5
10729 echo "${ECHO_T}yes" >&6
10731 echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6
10737 if test "${HAVE_XPM}" = "yes"; then
10739 cat >>confdefs.h
<<\_ACEOF
10746 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10748 if test "${HAVE_X11}" = "yes"; then
10749 if test "${with_jpeg}" != "no"; then
10750 if test "${ac_cv_header_jerror_h+set}" = set; then
10751 echo "$as_me:$LINENO: checking for jerror.h" >&5
10752 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10753 if test "${ac_cv_header_jerror_h+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10757 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10759 # Is the header compilable?
10760 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10761 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10762 cat >conftest.
$ac_ext <<_ACEOF
10763 #line $LINENO "configure"
10766 cat confdefs.h
>>conftest.
$ac_ext
10767 cat >>conftest.
$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 $ac_includes_default
10770 #include <jerror.h>
10772 rm -f conftest.
$ac_objext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10774 (eval $ac_compile) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try
='test -s conftest.$ac_objext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_header_compiler
=yes
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.
$ac_ext >&5
10789 ac_header_compiler
=no
10791 rm -f conftest.
$ac_objext conftest.
$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10793 echo "${ECHO_T}$ac_header_compiler" >&6
10795 # Is the header present?
10796 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10797 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10798 cat >conftest.
$ac_ext <<_ACEOF
10799 #line $LINENO "configure"
10802 cat confdefs.h
>>conftest.
$ac_ext
10803 cat >>conftest.
$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <jerror.h>
10807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1
>conftest.err
10812 cat conftest.err
>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev
/null
; then
10815 if test -s conftest.err
; then
10816 ac_cpp_err
=$ac_c_preproc_warn_flag
10823 if test -z "$ac_cpp_err"; then
10824 ac_header_preproc
=yes
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.
$ac_ext >&5
10829 ac_header_preproc
=no
10831 rm -f conftest.err conftest.
$ac_ext
10832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10833 echo "${ECHO_T}$ac_header_preproc" >&6
10835 # So? What about this header?
10836 case $ac_header_compiler:$ac_header_preproc in
10838 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10839 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10840 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10841 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10844 ## ------------------------------------ ##
10845 ## Report this to bug-autoconf@gnu.org. ##
10846 ## ------------------------------------ ##
10849 sed "s/^/$as_me: WARNING: /" >&2
10852 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10853 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
10855 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10857 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10860 ## ------------------------------------ ##
10861 ## Report this to bug-autoconf@gnu.org. ##
10862 ## ------------------------------------ ##
10865 sed "s/^/$as_me: WARNING: /" >&2
10868 echo "$as_me:$LINENO: checking for jerror.h" >&5
10869 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10870 if test "${ac_cv_header_jerror_h+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 ac_cv_header_jerror_h
=$ac_header_preproc
10875 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10876 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10879 if test $ac_cv_header_jerror_h = yes; then
10880 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
10881 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
10882 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 ac_check_lib_save_LIBS
=$LIBS
10886 LIBS
="-ljpeg $LIBS"
10887 cat >conftest.
$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10891 cat confdefs.h
>>conftest.
$ac_ext
10892 cat >>conftest.
$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10895 /* Override any gcc2 internal prototype to avoid an error. */
10899 /* We use char because int might match the return type of a gcc2
10900 builtin and then its argument prototype would still apply. */
10901 char jpeg_destroy_compress ();
10905 jpeg_destroy_compress ();
10910 rm -f conftest.
$ac_objext conftest
$ac_exeext
10911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10912 (eval $ac_link) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try
='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.
$ac_ext >&5
10927 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10929 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10930 LIBS
=$ac_check_lib_save_LIBS
10932 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10933 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10934 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10944 if test "${HAVE_JPEG}" = "yes"; then
10945 cat >>confdefs.h
<<\_ACEOF
10946 #define HAVE_JPEG 1
10949 cat >conftest.
$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10953 cat confdefs.h
>>conftest.
$ac_ext
10954 cat >>conftest.
$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <jpeglib.h>
10957 version=JPEG_LIB_VERSION
10960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10961 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
10962 cat >>confdefs.h
<<\_ACEOF
10963 #define HAVE_JPEG 1
10967 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10968 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10976 ### Use -lpng if available, unless `--with-png=no'.
10978 if test "${HAVE_X11}" = "yes"; then
10979 if test "${with_png}" != "no"; then
10980 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10981 # in /usr/include/libpng.
10984 for ac_header
in png.h libpng
/png.h
10986 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10988 echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10996 # Is the header compilable?
10997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10999 cat >conftest.
$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11003 cat confdefs.h
>>conftest.
$ac_ext
11004 cat >>conftest.
$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 $ac_includes_default
11007 #include <$ac_header>
11009 rm -f conftest.
$ac_objext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try
='test -s conftest.$ac_objext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_header_compiler
=yes
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.
$ac_ext >&5
11026 ac_header_compiler
=no
11028 rm -f conftest.
$ac_objext conftest.
$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11030 echo "${ECHO_T}$ac_header_compiler" >&6
11032 # Is the header present?
11033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11035 cat >conftest.
$ac_ext <<_ACEOF
11036 #line $LINENO "configure"
11039 cat confdefs.h
>>conftest.
$ac_ext
11040 cat >>conftest.
$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 #include <$ac_header>
11044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11045 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11047 grep -v '^ *+' conftest.er1
>conftest.err
11049 cat conftest.err
>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } >/dev
/null
; then
11052 if test -s conftest.err
; then
11053 ac_cpp_err
=$ac_c_preproc_warn_flag
11060 if test -z "$ac_cpp_err"; then
11061 ac_header_preproc
=yes
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.
$ac_ext >&5
11066 ac_header_preproc
=no
11068 rm -f conftest.err conftest.
$ac_ext
11069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11070 echo "${ECHO_T}$ac_header_preproc" >&6
11072 # So? What about this header?
11073 case $ac_header_compiler:$ac_header_preproc in
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11081 ## ------------------------------------ ##
11082 ## Report this to bug-autoconf@gnu.org. ##
11083 ## ------------------------------------ ##
11086 sed "s/^/$as_me: WARNING: /" >&2
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097 ## ------------------------------------ ##
11098 ## Report this to bug-autoconf@gnu.org. ##
11099 ## ------------------------------------ ##
11102 sed "s/^/$as_me: WARNING: /" >&2
11105 echo "$as_me:$LINENO: checking for $ac_header" >&5
11106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 eval "$as_ac_Header=$ac_header_preproc"
11112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11117 cat >>confdefs.h
<<_ACEOF
11118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11125 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11126 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11127 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11128 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 ac_check_lib_save_LIBS
=$LIBS
11132 LIBS
="-lpng -lz -lm $LIBS"
11133 cat >conftest.
$ac_ext <<_ACEOF
11134 #line $LINENO "configure"
11137 cat confdefs.h
>>conftest.
$ac_ext
11138 cat >>conftest.
$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11141 /* Override any gcc2 internal prototype to avoid an error. */
11145 /* We use char because int might match the return type of a gcc2
11146 builtin and then its argument prototype would still apply. */
11147 char png_get_channels ();
11151 png_get_channels ();
11156 rm -f conftest.
$ac_objext conftest
$ac_exeext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158 (eval $ac_link) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try
='test -s conftest$ac_exeext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_lib_png_png_get_channels
=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.
$ac_ext >&5
11173 ac_cv_lib_png_png_get_channels
=no
11175 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11176 LIBS
=$ac_check_lib_save_LIBS
11178 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11179 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11180 if test $ac_cv_lib_png_png_get_channels = yes; then
11187 if test "${HAVE_PNG}" = "yes"; then
11189 cat >>confdefs.h
<<\_ACEOF
11196 ### Use -ltiff if available, unless `--with-tiff=no'.
11198 if test "${HAVE_X11}" = "yes"; then
11199 if test "${with_tiff}" != "no"; then
11200 if test "${ac_cv_header_tiffio_h+set}" = set; then
11201 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11202 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11203 if test "${ac_cv_header_tiffio_h+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11207 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11209 # Is the header compilable?
11210 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11211 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11212 cat >conftest.
$ac_ext <<_ACEOF
11213 #line $LINENO "configure"
11216 cat confdefs.h
>>conftest.
$ac_ext
11217 cat >>conftest.
$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11220 #include <tiffio.h>
11222 rm -f conftest.
$ac_objext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224 (eval $ac_compile) 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try
='test -s conftest.$ac_objext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 ac_header_compiler
=yes
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.
$ac_ext >&5
11239 ac_header_compiler
=no
11241 rm -f conftest.
$ac_objext conftest.
$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11243 echo "${ECHO_T}$ac_header_compiler" >&6
11245 # Is the header present?
11246 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11247 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11248 cat >conftest.
$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11252 cat confdefs.h
>>conftest.
$ac_ext
11253 cat >>conftest.
$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <tiffio.h>
11257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11258 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11260 grep -v '^ *+' conftest.er1
>conftest.err
11262 cat conftest.err
>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev
/null
; then
11265 if test -s conftest.err
; then
11266 ac_cpp_err
=$ac_c_preproc_warn_flag
11273 if test -z "$ac_cpp_err"; then
11274 ac_header_preproc
=yes
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.
$ac_ext >&5
11279 ac_header_preproc
=no
11281 rm -f conftest.err conftest.
$ac_ext
11282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11283 echo "${ECHO_T}$ac_header_preproc" >&6
11285 # So? What about this header?
11286 case $ac_header_compiler:$ac_header_preproc in
11288 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11289 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11291 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11294 ## ------------------------------------ ##
11295 ## Report this to bug-autoconf@gnu.org. ##
11296 ## ------------------------------------ ##
11299 sed "s/^/$as_me: WARNING: /" >&2
11302 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11303 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11305 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11310 ## ------------------------------------ ##
11311 ## Report this to bug-autoconf@gnu.org. ##
11312 ## ------------------------------------ ##
11315 sed "s/^/$as_me: WARNING: /" >&2
11318 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11319 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11320 if test "${ac_cv_header_tiffio_h+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 ac_cv_header_tiffio_h
=$ac_header_preproc
11325 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11326 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11329 if test $ac_cv_header_tiffio_h = yes; then
11331 # At least one tiff package requires the jpeg library.
11332 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11333 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11334 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11335 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 ac_check_lib_save_LIBS
=$LIBS
11339 LIBS
="-ltiff $tifflibs $LIBS"
11340 cat >conftest.
$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11344 cat confdefs.h
>>conftest.
$ac_ext
11345 cat >>conftest.
$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11348 /* Override any gcc2 internal prototype to avoid an error. */
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11354 char TIFFGetVersion ();
11363 rm -f conftest.
$ac_objext conftest
$ac_exeext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try
='test -s conftest$ac_exeext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_cv_lib_tiff_TIFFGetVersion
=yes
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.
$ac_ext >&5
11380 ac_cv_lib_tiff_TIFFGetVersion
=no
11382 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11383 LIBS
=$ac_check_lib_save_LIBS
11385 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11386 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11387 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11396 if test "${HAVE_TIFF}" = "yes"; then
11398 cat >>confdefs.h
<<\_ACEOF
11399 #define HAVE_TIFF 1
11405 ### Use -lgif if available, unless `--with-gif=no'.
11407 if test "${HAVE_X11}" = "yes"; then
11408 if test "${with_gif}" != "no"; then
11409 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11410 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11411 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11412 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11416 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11418 # Is the header compilable?
11419 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11420 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11421 cat >conftest.
$ac_ext <<_ACEOF
11422 #line $LINENO "configure"
11425 cat confdefs.h
>>conftest.
$ac_ext
11426 cat >>conftest.
$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 $ac_includes_default
11429 #include <gif_lib.h>
11431 rm -f conftest.
$ac_objext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11433 (eval $ac_compile) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try
='test -s conftest.$ac_objext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 ac_header_compiler
=yes
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.
$ac_ext >&5
11448 ac_header_compiler
=no
11450 rm -f conftest.
$ac_objext conftest.
$ac_ext
11451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11452 echo "${ECHO_T}$ac_header_compiler" >&6
11454 # Is the header present?
11455 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11456 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11457 cat >conftest.
$ac_ext <<_ACEOF
11458 #line $LINENO "configure"
11461 cat confdefs.h
>>conftest.
$ac_ext
11462 cat >>conftest.
$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 #include <gif_lib.h>
11466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11469 grep -v '^ *+' conftest.er1
>conftest.err
11471 cat conftest.err
>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } >/dev
/null
; then
11474 if test -s conftest.err
; then
11475 ac_cpp_err
=$ac_c_preproc_warn_flag
11482 if test -z "$ac_cpp_err"; then
11483 ac_header_preproc
=yes
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.
$ac_ext >&5
11488 ac_header_preproc
=no
11490 rm -f conftest.err conftest.
$ac_ext
11491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11492 echo "${ECHO_T}$ac_header_preproc" >&6
11494 # So? What about this header?
11495 case $ac_header_compiler:$ac_header_preproc in
11497 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11498 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11500 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11503 ## ------------------------------------ ##
11504 ## Report this to bug-autoconf@gnu.org. ##
11505 ## ------------------------------------ ##
11508 sed "s/^/$as_me: WARNING: /" >&2
11511 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11512 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11514 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11516 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11519 ## ------------------------------------ ##
11520 ## Report this to bug-autoconf@gnu.org. ##
11521 ## ------------------------------------ ##
11524 sed "s/^/$as_me: WARNING: /" >&2
11527 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11528 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11529 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 ac_cv_header_gif_lib_h
=$ac_header_preproc
11534 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11535 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11538 if test $ac_cv_header_gif_lib_h = yes; then
11539 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11540 # Earlier versions can crash Emacs.
11541 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11542 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11543 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 ac_check_lib_save_LIBS
=$LIBS
11547 LIBS
="-lungif $LIBS"
11548 cat >conftest.
$ac_ext <<_ACEOF
11549 #line $LINENO "configure"
11552 cat confdefs.h
>>conftest.
$ac_ext
11553 cat >>conftest.
$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11556 /* Override any gcc2 internal prototype to avoid an error. */
11560 /* We use char because int might match the return type of a gcc2
11561 builtin and then its argument prototype would still apply. */
11562 char EGifPutExtensionLast ();
11566 EGifPutExtensionLast ();
11571 rm -f conftest.
$ac_objext conftest
$ac_exeext
11572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11573 (eval $ac_link) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try
='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.
$ac_ext >&5
11588 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11590 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11591 LIBS
=$ac_check_lib_save_LIBS
11593 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11594 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11595 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11604 if test "${HAVE_GIF}" = "yes"; then
11606 cat >>confdefs.h
<<\_ACEOF
11613 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11614 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
11615 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
11616 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
11620 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
11622 # Is the header compilable?
11623 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
11624 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
11625 cat >conftest.
$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11629 cat confdefs.h
>>conftest.
$ac_ext
11630 cat >>conftest.
$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 $ac_includes_default
11633 #include <malloc/malloc.h>
11635 rm -f conftest.
$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try
='test -s conftest.$ac_objext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_header_compiler
=yes
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.
$ac_ext >&5
11652 ac_header_compiler
=no
11654 rm -f conftest.
$ac_objext conftest.
$ac_ext
11655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11656 echo "${ECHO_T}$ac_header_compiler" >&6
11658 # Is the header present?
11659 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
11660 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
11661 cat >conftest.
$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11665 cat confdefs.h
>>conftest.
$ac_ext
11666 cat >>conftest.
$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <malloc/malloc.h>
11670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11671 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11673 grep -v '^ *+' conftest.er1
>conftest.err
11675 cat conftest.err
>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } >/dev
/null
; then
11678 if test -s conftest.err
; then
11679 ac_cpp_err
=$ac_c_preproc_warn_flag
11686 if test -z "$ac_cpp_err"; then
11687 ac_header_preproc
=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.
$ac_ext >&5
11692 ac_header_preproc
=no
11694 rm -f conftest.err conftest.
$ac_ext
11695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696 echo "${ECHO_T}$ac_header_preproc" >&6
11698 # So? What about this header?
11699 case $ac_header_compiler:$ac_header_preproc in
11701 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
11702 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
11704 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
11707 ## ------------------------------------ ##
11708 ## Report this to bug-autoconf@gnu.org. ##
11709 ## ------------------------------------ ##
11712 sed "s/^/$as_me: WARNING: /" >&2
11715 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
11716 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
11718 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
11723 ## ------------------------------------ ##
11724 ## Report this to bug-autoconf@gnu.org. ##
11725 ## ------------------------------------ ##
11728 sed "s/^/$as_me: WARNING: /" >&2
11731 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
11732 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
11733 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
11738 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
11739 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
11742 if test $ac_cv_header_malloc_malloc_h = yes; then
11744 cat >>confdefs.h
<<\_ACEOF
11745 #define HAVE_MALLOC_MALLOC_H 1
11752 ### Use Mac OS X Carbon API to implement GUI.
11753 if test "${HAVE_CARBON}" = "yes"; then
11755 cat >>confdefs.h
<<\_ACEOF
11756 #define HAVE_CARBON 1
11760 ## Specify the install directory
11762 if test "${carbon_appdir_x}" != ""; then
11763 case ${carbon_appdir_x} in
11764 y | ye |
yes) carbon_appdir
=/Applications
;;
11765 * ) carbon_appdir
=${carbon_appdir_x} ;;
11768 # We also have mouse menus.
11771 tmp_CFLAGS
="$CFLAGS"
11772 CFLAGS
="$CFLAGS -framework Carbon"
11773 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
11774 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
11775 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 cat >conftest.
$ac_ext <<_ACEOF
11779 #line $LINENO "configure"
11782 cat confdefs.h
>>conftest.
$ac_ext
11783 cat >>conftest.
$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 /* System header to define __stub macros and hopefully few prototypes,
11786 which can conflict with char CancelMenuTracking (); below.
11787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11788 <limits.h> exists even on freestanding compilers. */
11790 # include <limits.h>
11792 # include <assert.h>
11794 /* Override any gcc2 internal prototype to avoid an error. */
11799 /* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11801 char CancelMenuTracking ();
11802 /* The GNU C library defines this for functions which it implements
11803 to always fail with ENOSYS. Some functions are actually named
11804 something starting with __ and the normal name is an alias. */
11805 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
11808 char (*f) () = CancelMenuTracking;
11817 return f != CancelMenuTracking;
11822 rm -f conftest.
$ac_objext conftest
$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try
='test -s conftest$ac_exeext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_func_CancelMenuTracking
=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.
$ac_ext >&5
11839 ac_cv_func_CancelMenuTracking
=no
11841 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
11844 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
11845 if test $ac_cv_func_CancelMenuTracking = yes; then
11851 if test "$have_cmt" = yes; then
11853 cat >>confdefs.h
<<\_ACEOF
11854 #define HAVE_CANCELMENUTRACKING 1
11858 CFLAGS
="$tmp_CFLAGS"
11861 ### Use session management (-lSM -lICE) if available
11863 if test "${HAVE_X11}" = "yes"; then
11864 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11865 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11866 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11867 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11871 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11873 # Is the header compilable?
11874 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
11875 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
11876 cat >conftest.
$ac_ext <<_ACEOF
11877 #line $LINENO "configure"
11880 cat confdefs.h
>>conftest.
$ac_ext
11881 cat >>conftest.
$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883 $ac_includes_default
11884 #include <X11/SM/SMlib.h>
11886 rm -f conftest.
$ac_objext
11887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11888 (eval $ac_compile) 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try
='test -s conftest.$ac_objext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_header_compiler
=yes
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.
$ac_ext >&5
11903 ac_header_compiler
=no
11905 rm -f conftest.
$ac_objext conftest.
$ac_ext
11906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11907 echo "${ECHO_T}$ac_header_compiler" >&6
11909 # Is the header present?
11910 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
11911 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
11912 cat >conftest.
$ac_ext <<_ACEOF
11913 #line $LINENO "configure"
11916 cat confdefs.h
>>conftest.
$ac_ext
11917 cat >>conftest.
$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 #include <X11/SM/SMlib.h>
11921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11922 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11924 grep -v '^ *+' conftest.er1
>conftest.err
11926 cat conftest.err
>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } >/dev
/null
; then
11929 if test -s conftest.err
; then
11930 ac_cpp_err
=$ac_c_preproc_warn_flag
11937 if test -z "$ac_cpp_err"; then
11938 ac_header_preproc
=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.
$ac_ext >&5
11943 ac_header_preproc
=no
11945 rm -f conftest.err conftest.
$ac_ext
11946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11947 echo "${ECHO_T}$ac_header_preproc" >&6
11949 # So? What about this header?
11950 case $ac_header_compiler:$ac_header_preproc in
11952 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11953 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11955 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11958 ## ------------------------------------ ##
11959 ## Report this to bug-autoconf@gnu.org. ##
11960 ## ------------------------------------ ##
11963 sed "s/^/$as_me: WARNING: /" >&2
11966 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
11967 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
11969 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11971 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11974 ## ------------------------------------ ##
11975 ## Report this to bug-autoconf@gnu.org. ##
11976 ## ------------------------------------ ##
11979 sed "s/^/$as_me: WARNING: /" >&2
11982 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11983 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11984 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
11989 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11990 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11993 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
11994 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
11995 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
11996 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 ac_check_lib_save_LIBS
=$LIBS
12000 LIBS
="-lSM -lICE $LIBS"
12001 cat >conftest.
$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12005 cat confdefs.h
>>conftest.
$ac_ext
12006 cat >>conftest.
$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12009 /* Override any gcc2 internal prototype to avoid an error. */
12013 /* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015 char SmcOpenConnection ();
12019 SmcOpenConnection ();
12024 rm -f conftest.
$ac_objext conftest
$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try
='test -s conftest$ac_exeext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_lib_SM_SmcOpenConnection
=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.
$ac_ext >&5
12041 ac_cv_lib_SM_SmcOpenConnection
=no
12043 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12044 LIBS
=$ac_check_lib_save_LIBS
12046 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12047 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12048 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12056 if test "${HAVE_X_SM}" = "yes"; then
12058 cat >>confdefs.h
<<\_ACEOF
12059 #define HAVE_X_SM 1
12064 *) LIBS
="-lSM -lICE $LIBS" ;;
12069 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12070 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12071 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12072 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 cat >conftest.
$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12079 cat confdefs.h
>>conftest.
$ac_ext
12080 cat >>conftest.
$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12091 rm -f conftest.
$ac_objext conftest
$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try
='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 emacs_cv_netdb_declares_h_errno
=yes
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.
$ac_ext >&5
12108 emacs_cv_netdb_declares_h_errno
=no
12110 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12112 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12113 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12114 if test $emacs_cv_netdb_declares_h_errno = yes; then
12116 cat >>confdefs.h
<<\_ACEOF
12117 #define HAVE_H_ERRNO 1
12122 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12123 # for constant arguments. Useless!
12124 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12125 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12126 if test "${ac_cv_working_alloca_h+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 cat >conftest.
$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12133 cat confdefs.h
>>conftest.
$ac_ext
12134 cat >>conftest.
$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 #include <alloca.h>
12140 char *p = (char *) alloca (2 * sizeof (int));
12145 rm -f conftest.
$ac_objext conftest
$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147 (eval $ac_link) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try
='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_working_alloca_h
=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.
$ac_ext >&5
12162 ac_cv_working_alloca_h
=no
12164 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12166 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12167 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12168 if test $ac_cv_working_alloca_h = yes; then
12170 cat >>confdefs.h
<<\_ACEOF
12171 #define HAVE_ALLOCA_H 1
12176 echo "$as_me:$LINENO: checking for alloca" >&5
12177 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12178 if test "${ac_cv_func_alloca_works+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 cat >conftest.
$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12185 cat confdefs.h
>>conftest.
$ac_ext
12186 cat >>conftest.
$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12189 # define alloca __builtin_alloca
12192 # include <malloc.h>
12193 # define alloca _alloca
12196 # include <alloca.h>
12201 # ifndef alloca /* predefined by HP cc +Olibcalls */
12212 char *p = (char *) alloca (1);
12217 rm -f conftest.
$ac_objext conftest
$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try
='test -s conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_func_alloca_works
=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.
$ac_ext >&5
12234 ac_cv_func_alloca_works
=no
12236 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12238 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12239 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12241 if test $ac_cv_func_alloca_works = yes; then
12243 cat >>confdefs.h
<<\_ACEOF
12244 #define HAVE_ALLOCA 1
12248 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12249 # that cause trouble. Some versions do not even contain alloca or
12250 # contain a buggy version. If you still want to use their alloca,
12251 # use ar to extract alloca.o from them instead of compiling alloca.c.
12253 ALLOCA
=alloca.
$ac_objext
12255 cat >>confdefs.h
<<\_ACEOF
12260 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12261 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12262 if test "${ac_cv_os_cray+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 cat >conftest.
$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12269 cat confdefs.h
>>conftest.
$ac_ext
12270 cat >>conftest.
$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 #if defined(CRAY) && ! defined(CRAY2)
12279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12280 $EGREP "webecray" >/dev
/null
2>&1; then
12288 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12289 echo "${ECHO_T}$ac_cv_os_cray" >&6
12290 if test $ac_cv_os_cray = yes; then
12291 for ac_func
in _getb67 GETB67 getb67
; do
12292 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12293 echo "$as_me:$LINENO: checking for $ac_func" >&5
12294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12295 if eval "test \"\${$as_ac_var+set}\" = set"; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 cat >conftest.
$ac_ext <<_ACEOF
12299 #line $LINENO "configure"
12302 cat confdefs.h
>>conftest.
$ac_ext
12303 cat >>conftest.
$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 /* System header to define __stub macros and hopefully few prototypes,
12306 which can conflict with char $ac_func (); below.
12307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12308 <limits.h> exists even on freestanding compilers. */
12310 # include <limits.h>
12312 # include <assert.h>
12314 /* Override any gcc2 internal prototype to avoid an error. */
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12322 /* The GNU C library defines this for functions which it implements
12323 to always fail with ENOSYS. Some functions are actually named
12324 something starting with __ and the normal name is an alias. */
12325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12328 char (*f) () = $ac_func;
12337 return f != $ac_func;
12342 rm -f conftest.
$ac_objext conftest
$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try
='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 eval "$as_ac_var=yes"
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.
$ac_ext >&5
12359 eval "$as_ac_var=no"
12361 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12365 if test `eval echo '${'$as_ac_var'}'` = yes; then
12367 cat >>confdefs.h
<<_ACEOF
12368 #define CRAY_STACKSEG_END $ac_func
12377 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12378 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12379 if test "${ac_cv_c_stack_direction+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 if test "$cross_compiling" = yes; then
12383 ac_cv_c_stack_direction
=0
12385 cat >conftest.
$ac_ext <<_ACEOF
12386 #line $LINENO "configure"
12389 cat confdefs.h
>>conftest.
$ac_ext
12390 cat >>conftest.
$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12393 find_stack_direction ()
12395 static char *addr = 0;
12400 return find_stack_direction ();
12403 return (&dummy > addr) ? 1 : -1;
12409 exit (find_stack_direction () < 0);
12412 rm -f conftest
$ac_exeext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12414 (eval $ac_link) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_c_stack_direction
=1
12425 echo "$as_me: program exited with status $ac_status" >&5
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.
$ac_ext >&5
12429 ( exit $ac_status )
12430 ac_cv_c_stack_direction
=-1
12432 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12435 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12436 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12438 cat >>confdefs.h
<<_ACEOF
12439 #define STACK_DIRECTION $ac_cv_c_stack_direction
12446 # fmod, logb, and frexp are found in -lm on most systems.
12447 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12449 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12450 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12451 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 ac_check_lib_save_LIBS
=$LIBS
12456 cat >conftest.
$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12460 cat confdefs.h
>>conftest.
$ac_ext
12461 cat >>conftest.
$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12464 /* Override any gcc2 internal prototype to avoid an error. */
12468 /* We use char because int might match the return type of a gcc2
12469 builtin and then its argument prototype would still apply. */
12479 rm -f conftest.
$ac_objext conftest
$ac_exeext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12481 (eval $ac_link) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try
='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_lib_m_sqrt
=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.
$ac_ext >&5
12496 ac_cv_lib_m_sqrt
=no
12498 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12499 LIBS
=$ac_check_lib_save_LIBS
12501 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12502 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12503 if test $ac_cv_lib_m_sqrt = yes; then
12504 cat >>confdefs.h
<<_ACEOF
12505 #define HAVE_LIBM 1
12513 # Check for mail-locking functions in a "mail" library. Probably this should
12514 # have the same check as for liblockfile below.
12516 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12517 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12518 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 ac_check_lib_save_LIBS
=$LIBS
12522 LIBS
="-lmail $LIBS"
12523 cat >conftest.
$ac_ext <<_ACEOF
12524 #line $LINENO "configure"
12527 cat confdefs.h
>>conftest.
$ac_ext
12528 cat >>conftest.
$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12531 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12546 rm -f conftest.
$ac_objext conftest
$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548 (eval $ac_link) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try
='test -s conftest$ac_exeext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_lib_mail_maillock
=yes
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.
$ac_ext >&5
12563 ac_cv_lib_mail_maillock
=no
12565 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12566 LIBS
=$ac_check_lib_save_LIBS
12568 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12569 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12570 if test $ac_cv_lib_mail_maillock = yes; then
12571 cat >>confdefs.h
<<_ACEOF
12572 #define HAVE_LIBMAIL 1
12575 LIBS
="-lmail $LIBS"
12580 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12581 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12582 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 ac_check_lib_save_LIBS
=$LIBS
12586 LIBS
="-llockfile $LIBS"
12587 cat >conftest.
$ac_ext <<_ACEOF
12588 #line $LINENO "configure"
12591 cat confdefs.h
>>conftest.
$ac_ext
12592 cat >>conftest.
$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any gcc2 internal prototype to avoid an error. */
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12610 rm -f conftest.
$ac_objext conftest
$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
12616 { ac_try
='test -s conftest$ac_exeext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_cv_lib_lockfile_maillock
=yes
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.
$ac_ext >&5
12627 ac_cv_lib_lockfile_maillock
=no
12629 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12630 LIBS
=$ac_check_lib_save_LIBS
12632 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12633 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12634 if test $ac_cv_lib_lockfile_maillock = yes; then
12635 cat >>confdefs.h
<<_ACEOF
12636 #define HAVE_LIBLOCKFILE 1
12639 LIBS
="-llockfile $LIBS"
12643 # If we have the shared liblockfile, assume we must use it for mail
12644 # locking (e.g. Debian). If we couldn't link against liblockfile
12645 # (no liblockfile.a installed), ensure that we don't need to.
12646 if test "$ac_cv_lib_lockfile_maillock" = no
; then
12647 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12648 set dummy liblockfile.so
; ac_word
=$2
12649 echo "$as_me:$LINENO: checking for $ac_word" >&5
12650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12651 if test "${ac_cv_prog_liblockfile+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 if test -n "$liblockfile"; then
12655 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12658 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12659 for as_dir
in $as_dummy
12662 test -z "$as_dir" && as_dir
=.
12663 for ac_exec_ext
in '' $ac_executable_extensions; do
12664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665 ac_cv_prog_liblockfile
="yes"
12666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12675 liblockfile
=$ac_cv_prog_liblockfile
12676 if test -n "$liblockfile"; then
12677 echo "$as_me:$LINENO: result: $liblockfile" >&5
12678 echo "${ECHO_T}$liblockfile" >&6
12680 echo "$as_me:$LINENO: result: no" >&5
12681 echo "${ECHO_T}no" >&6
12684 if test $ac_cv_prog_liblockfile = yes; then
12685 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12686 This probably means that movemail could lose mail.
12687 There may be a \`development' package to install containing liblockfile." >&5
12688 echo "$as_me: 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." >&2;}
12691 { (exit 1); exit 1; }; }
12696 for ac_func
in touchlock
12698 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12699 echo "$as_me:$LINENO: checking for $ac_func" >&5
12700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12701 if eval "test \"\${$as_ac_var+set}\" = set"; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 cat >conftest.
$ac_ext <<_ACEOF
12705 #line $LINENO "configure"
12708 cat confdefs.h
>>conftest.
$ac_ext
12709 cat >>conftest.
$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 /* System header to define __stub macros and hopefully few prototypes,
12712 which can conflict with char $ac_func (); below.
12713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12714 <limits.h> exists even on freestanding compilers. */
12716 # include <limits.h>
12718 # include <assert.h>
12720 /* Override any gcc2 internal prototype to avoid an error. */
12725 /* We use char because int might match the return type of a gcc2
12726 builtin and then its argument prototype would still apply. */
12728 /* The GNU C library defines this for functions which it implements
12729 to always fail with ENOSYS. Some functions are actually named
12730 something starting with __ and the normal name is an alias. */
12731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12734 char (*f) () = $ac_func;
12743 return f != $ac_func;
12748 rm -f conftest.
$ac_objext conftest
$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try
='test -s conftest$ac_exeext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 eval "$as_ac_var=yes"
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.
$ac_ext >&5
12765 eval "$as_ac_var=no"
12767 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12771 if test `eval echo '${'$as_ac_var'}'` = yes; then
12772 cat >>confdefs.h
<<_ACEOF
12773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12780 for ac_header
in maillock.h
12782 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12784 echo "$as_me:$LINENO: checking for $ac_header" >&5
12785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12792 # Is the header compilable?
12793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12795 cat >conftest.
$ac_ext <<_ACEOF
12796 #line $LINENO "configure"
12799 cat confdefs.h
>>conftest.
$ac_ext
12800 cat >>conftest.
$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12802 $ac_includes_default
12803 #include <$ac_header>
12805 rm -f conftest.
$ac_objext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try
='test -s conftest.$ac_objext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_header_compiler
=yes
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.
$ac_ext >&5
12822 ac_header_compiler
=no
12824 rm -f conftest.
$ac_objext conftest.
$ac_ext
12825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12826 echo "${ECHO_T}$ac_header_compiler" >&6
12828 # Is the header present?
12829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12831 cat >conftest.
$ac_ext <<_ACEOF
12832 #line $LINENO "configure"
12835 cat confdefs.h
>>conftest.
$ac_ext
12836 cat >>conftest.
$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 #include <$ac_header>
12840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12841 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12843 grep -v '^ *+' conftest.er1
>conftest.err
12845 cat conftest.err
>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } >/dev
/null
; then
12848 if test -s conftest.err
; then
12849 ac_cpp_err
=$ac_c_preproc_warn_flag
12856 if test -z "$ac_cpp_err"; then
12857 ac_header_preproc
=yes
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.
$ac_ext >&5
12862 ac_header_preproc
=no
12864 rm -f conftest.err conftest.
$ac_ext
12865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12866 echo "${ECHO_T}$ac_header_preproc" >&6
12868 # So? What about this header?
12869 case $ac_header_compiler:$ac_header_preproc in
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12877 ## ------------------------------------ ##
12878 ## Report this to bug-autoconf@gnu.org. ##
12879 ## ------------------------------------ ##
12882 sed "s/^/$as_me: WARNING: /" >&2
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12893 ## ------------------------------------ ##
12894 ## Report this to bug-autoconf@gnu.org. ##
12895 ## ------------------------------------ ##
12898 sed "s/^/$as_me: WARNING: /" >&2
12901 echo "$as_me:$LINENO: checking for $ac_header" >&5
12902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 eval "$as_ac_Header=$ac_header_preproc"
12908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12913 cat >>confdefs.h
<<_ACEOF
12914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12989 for ac_func
in gethostname getdomainname dup2 \
12990 rename closedir mkdir
rmdir sysinfo getrusage \
12991 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
12992 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
12993 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12994 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
12995 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12996 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
12997 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
12999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13000 echo "$as_me:$LINENO: checking for $ac_func" >&5
13001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13002 if eval "test \"\${$as_ac_var+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 cat >conftest.
$ac_ext <<_ACEOF
13006 #line $LINENO "configure"
13009 cat confdefs.h
>>conftest.
$ac_ext
13010 cat >>conftest.
$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 /* System header to define __stub macros and hopefully few prototypes,
13013 which can conflict with char $ac_func (); below.
13014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13015 <limits.h> exists even on freestanding compilers. */
13017 # include <limits.h>
13019 # include <assert.h>
13021 /* Override any gcc2 internal prototype to avoid an error. */
13026 /* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13029 /* The GNU C library defines this for functions which it implements
13030 to always fail with ENOSYS. Some functions are actually named
13031 something starting with __ and the normal name is an alias. */
13032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13035 char (*f) () = $ac_func;
13044 return f != $ac_func;
13049 rm -f conftest.
$ac_objext conftest
$ac_exeext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try
='test -s conftest$ac_exeext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 eval "$as_ac_var=yes"
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.
$ac_ext >&5
13066 eval "$as_ac_var=no"
13068 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13072 if test `eval echo '${'$as_ac_var'}'` = yes; then
13073 cat >>confdefs.h
<<_ACEOF
13074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13082 for ac_header
in sys
/un.h
13084 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13086 echo "$as_me:$LINENO: checking for $ac_header" >&5
13087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13094 # Is the header compilable?
13095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13097 cat >conftest.
$ac_ext <<_ACEOF
13098 #line $LINENO "configure"
13101 cat confdefs.h
>>conftest.
$ac_ext
13102 cat >>conftest.
$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 $ac_includes_default
13105 #include <$ac_header>
13107 rm -f conftest.
$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109 (eval $ac_compile) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try
='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_header_compiler
=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.
$ac_ext >&5
13124 ac_header_compiler
=no
13126 rm -f conftest.
$ac_objext conftest.
$ac_ext
13127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13128 echo "${ECHO_T}$ac_header_compiler" >&6
13130 # Is the header present?
13131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13133 cat >conftest.
$ac_ext <<_ACEOF
13134 #line $LINENO "configure"
13137 cat confdefs.h
>>conftest.
$ac_ext
13138 cat >>conftest.
$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 #include <$ac_header>
13142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13143 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13145 grep -v '^ *+' conftest.er1
>conftest.err
13147 cat conftest.err
>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } >/dev
/null
; then
13150 if test -s conftest.err
; then
13151 ac_cpp_err
=$ac_c_preproc_warn_flag
13158 if test -z "$ac_cpp_err"; then
13159 ac_header_preproc
=yes
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.
$ac_ext >&5
13164 ac_header_preproc
=no
13166 rm -f conftest.err conftest.
$ac_ext
13167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13168 echo "${ECHO_T}$ac_header_preproc" >&6
13170 # So? What about this header?
13171 case $ac_header_compiler:$ac_header_preproc in
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13179 ## ------------------------------------ ##
13180 ## Report this to bug-autoconf@gnu.org. ##
13181 ## ------------------------------------ ##
13184 sed "s/^/$as_me: WARNING: /" >&2
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13195 ## ------------------------------------ ##
13196 ## Report this to bug-autoconf@gnu.org. ##
13197 ## ------------------------------------ ##
13200 sed "s/^/$as_me: WARNING: /" >&2
13203 echo "$as_me:$LINENO: checking for $ac_header" >&5
13204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 eval "$as_ac_Header=$ac_header_preproc"
13210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13215 cat >>confdefs.h
<<_ACEOF
13216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13226 for ac_header
in sys
/time.h unistd.h
13228 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13230 echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13238 # Is the header compilable?
13239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13241 cat >conftest.
$ac_ext <<_ACEOF
13242 #line $LINENO "configure"
13245 cat confdefs.h
>>conftest.
$ac_ext
13246 cat >>conftest.
$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 $ac_includes_default
13249 #include <$ac_header>
13251 rm -f conftest.
$ac_objext
13252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13253 (eval $ac_compile) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } &&
13257 { ac_try
='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_header_compiler
=yes
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.
$ac_ext >&5
13268 ac_header_compiler
=no
13270 rm -f conftest.
$ac_objext conftest.
$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13272 echo "${ECHO_T}$ac_header_compiler" >&6
13274 # Is the header present?
13275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13277 cat >conftest.
$ac_ext <<_ACEOF
13278 #line $LINENO "configure"
13281 cat confdefs.h
>>conftest.
$ac_ext
13282 cat >>conftest.
$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 #include <$ac_header>
13286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13287 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13289 grep -v '^ *+' conftest.er1
>conftest.err
13291 cat conftest.err
>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } >/dev
/null
; then
13294 if test -s conftest.err
; then
13295 ac_cpp_err
=$ac_c_preproc_warn_flag
13302 if test -z "$ac_cpp_err"; then
13303 ac_header_preproc
=yes
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.
$ac_ext >&5
13308 ac_header_preproc
=no
13310 rm -f conftest.err conftest.
$ac_ext
13311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13312 echo "${ECHO_T}$ac_header_preproc" >&6
13314 # So? What about this header?
13315 case $ac_header_compiler:$ac_header_preproc in
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13323 ## ------------------------------------ ##
13324 ## Report this to bug-autoconf@gnu.org. ##
13325 ## ------------------------------------ ##
13328 sed "s/^/$as_me: WARNING: /" >&2
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13339 ## ------------------------------------ ##
13340 ## Report this to bug-autoconf@gnu.org. ##
13341 ## ------------------------------------ ##
13344 sed "s/^/$as_me: WARNING: /" >&2
13347 echo "$as_me:$LINENO: checking for $ac_header" >&5
13348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 eval "$as_ac_Header=$ac_header_preproc"
13354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13359 cat >>confdefs.h
<<_ACEOF
13360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13368 for ac_func
in alarm
13370 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13371 echo "$as_me:$LINENO: checking for $ac_func" >&5
13372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13373 if eval "test \"\${$as_ac_var+set}\" = set"; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 cat >conftest.
$ac_ext <<_ACEOF
13377 #line $LINENO "configure"
13380 cat confdefs.h
>>conftest.
$ac_ext
13381 cat >>conftest.
$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 /* System header to define __stub macros and hopefully few prototypes,
13384 which can conflict with char $ac_func (); below.
13385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13386 <limits.h> exists even on freestanding compilers. */
13388 # include <limits.h>
13390 # include <assert.h>
13392 /* Override any gcc2 internal prototype to avoid an error. */
13397 /* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13400 /* The GNU C library defines this for functions which it implements
13401 to always fail with ENOSYS. Some functions are actually named
13402 something starting with __ and the normal name is an alias. */
13403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13406 char (*f) () = $ac_func;
13415 return f != $ac_func;
13420 rm -f conftest.
$ac_objext conftest
$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422 (eval $ac_link) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try
='test -s conftest$ac_exeext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 eval "$as_ac_var=yes"
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.
$ac_ext >&5
13437 eval "$as_ac_var=no"
13439 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13443 if test `eval echo '${'$as_ac_var'}'` = yes; then
13444 cat >>confdefs.h
<<_ACEOF
13445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13451 echo "$as_me:$LINENO: checking for working mktime" >&5
13452 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13453 if test "${ac_cv_func_working_mktime+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 if test "$cross_compiling" = yes; then
13457 ac_cv_func_working_mktime
=no
13459 cat >conftest.
$ac_ext <<_ACEOF
13460 #line $LINENO "configure"
13463 cat confdefs.h
>>conftest.
$ac_ext
13464 cat >>conftest.
$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 /* Test program from Paul Eggert and Tony Leneis. */
13467 #if TIME_WITH_SYS_TIME
13468 # include <sys/time.h>
13471 # if HAVE_SYS_TIME_H
13472 # include <sys/time.h>
13479 # include <unistd.h>
13483 # define alarm(X) /* empty */
13486 /* Work around redefinition to rpl_putenv by other config tests. */
13489 static time_t time_t_max;
13491 /* Values we'll use to set the TZ environment variable. */
13492 static const char *const tz_strings[] = {
13493 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
13494 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13496 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13498 /* Fail if mktime fails to convert a date in the spring-forward gap.
13499 Based on a problem report from Andreas Jaeger. */
13501 spring_forward_gap ()
13503 /* glibc (up to about 1998-10-07) failed this test. */
13506 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13507 instead of "TZ=America/Vancouver" in order to detect the bug even
13508 on systems that don't support the Olson extension, or don't have the
13509 full zoneinfo tables installed. */
13510 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13519 if (mktime (&tm) == (time_t)-1)
13528 if ((lt = localtime (&now)) && mktime (lt) != now)
13530 now = time_t_max - now;
13531 if ((lt = localtime (&now)) && mktime (lt) != now)
13538 /* Based on code from Ariel Faigon. */
13548 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13558 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13559 now = mktime (&tm);
13560 if (now != (time_t) -1)
13562 struct tm *lt = localtime (&now);
13564 && lt->tm_year == tm.tm_year
13565 && lt->tm_mon == tm.tm_mon
13566 && lt->tm_mday == tm.tm_mday
13567 && lt->tm_hour == tm.tm_hour
13568 && lt->tm_min == tm.tm_min
13569 && lt->tm_sec == tm.tm_sec
13570 && lt->tm_yday == tm.tm_yday
13571 && lt->tm_wday == tm.tm_wday
13572 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13573 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13584 /* This test makes some buggy mktime implementations loop.
13585 Give up after 60 seconds; a mktime slower than that
13586 isn't worth using anyway. */
13589 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13592 delta = time_t_max / 997; /* a suitable prime number */
13593 for (i = 0; i < N_STRINGS; i++)
13596 putenv (tz_strings[i]);
13598 for (t = 0; t <= time_t_max - delta; t += delta)
13600 mktime_test ((time_t) 60 * 60);
13601 mktime_test ((time_t) 60 * 60 * 24);
13603 for (j = 1; 0 < j; j *= 2)
13605 bigtime_test (j - 1);
13608 spring_forward_gap ();
13612 rm -f conftest
$ac_exeext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13614 (eval $ac_link) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_func_working_mktime
=yes
13625 echo "$as_me: program exited with status $ac_status" >&5
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.
$ac_ext >&5
13629 ( exit $ac_status )
13630 ac_cv_func_working_mktime
=no
13632 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13635 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13636 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13637 if test $ac_cv_func_working_mktime = no
; then
13638 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
13641 if test "$ac_cv_func_working_mktime" = no
; then
13643 cat >>confdefs.h
<<\_ACEOF
13644 #define BROKEN_MKTIME 1
13649 ac_have_func
=no
# yes means we've found a way to get the load average.
13651 # Make sure getloadavg.c is where it belongs, at configure-time.
13652 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13653 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13654 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13655 { (exit 1); exit 1; }; }
13659 # Check for getloadavg, but be sure not to touch the cache variable.
13660 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13661 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13662 if test "${ac_cv_func_getloadavg+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 cat >conftest.
$ac_ext <<_ACEOF
13666 #line $LINENO "configure"
13669 cat confdefs.h
>>conftest.
$ac_ext
13670 cat >>conftest.
$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 /* System header to define __stub macros and hopefully few prototypes,
13673 which can conflict with char getloadavg (); below.
13674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13675 <limits.h> exists even on freestanding compilers. */
13677 # include <limits.h>
13679 # include <assert.h>
13681 /* Override any gcc2 internal prototype to avoid an error. */
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13688 char getloadavg ();
13689 /* The GNU C library defines this for functions which it implements
13690 to always fail with ENOSYS. Some functions are actually named
13691 something starting with __ and the normal name is an alias. */
13692 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
13695 char (*f) () = getloadavg;
13704 return f != getloadavg;
13709 rm -f conftest.
$ac_objext conftest
$ac_exeext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711 (eval $ac_link) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try
='test -s conftest$ac_exeext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_func_getloadavg
=yes
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.
$ac_ext >&5
13726 ac_cv_func_getloadavg
=no
13728 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13730 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
13731 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
13732 if test $ac_cv_func_getloadavg = yes; then
13737 ) && ac_have_func
=yes
13739 # On HPUX9, an unprivileged user can get load averages through this function.
13741 for ac_func
in pstat_getdynamic
13743 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13744 echo "$as_me:$LINENO: checking for $ac_func" >&5
13745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13746 if eval "test \"\${$as_ac_var+set}\" = set"; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 cat >conftest.
$ac_ext <<_ACEOF
13750 #line $LINENO "configure"
13753 cat confdefs.h
>>conftest.
$ac_ext
13754 cat >>conftest.
$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 /* System header to define __stub macros and hopefully few prototypes,
13757 which can conflict with char $ac_func (); below.
13758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13759 <limits.h> exists even on freestanding compilers. */
13761 # include <limits.h>
13763 # include <assert.h>
13765 /* Override any gcc2 internal prototype to avoid an error. */
13770 /* We use char because int might match the return type of a gcc2
13771 builtin and then its argument prototype would still apply. */
13773 /* The GNU C library defines this for functions which it implements
13774 to always fail with ENOSYS. Some functions are actually named
13775 something starting with __ and the normal name is an alias. */
13776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13779 char (*f) () = $ac_func;
13788 return f != $ac_func;
13793 rm -f conftest.
$ac_objext conftest
$ac_exeext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13795 (eval $ac_link) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try
='test -s conftest$ac_exeext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 eval "$as_ac_var=yes"
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.
$ac_ext >&5
13810 eval "$as_ac_var=no"
13812 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13816 if test `eval echo '${'$as_ac_var'}'` = yes; then
13817 cat >>confdefs.h
<<_ACEOF
13818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13825 # Solaris has libkstat which does not require root.
13827 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
13828 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
13829 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 ac_check_lib_save_LIBS
=$LIBS
13833 LIBS
="-lkstat $LIBS"
13834 cat >conftest.
$ac_ext <<_ACEOF
13835 #line $LINENO "configure"
13838 cat confdefs.h
>>conftest.
$ac_ext
13839 cat >>conftest.
$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13842 /* Override any gcc2 internal prototype to avoid an error. */
13846 /* We use char because int might match the return type of a gcc2
13847 builtin and then its argument prototype would still apply. */
13848 char kstat_open ();
13857 rm -f conftest.
$ac_objext conftest
$ac_exeext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859 (eval $ac_link) 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } &&
13863 { ac_try
='test -s conftest$ac_exeext'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_cv_lib_kstat_kstat_open
=yes
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.
$ac_ext >&5
13874 ac_cv_lib_kstat_kstat_open
=no
13876 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13877 LIBS
=$ac_check_lib_save_LIBS
13879 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
13880 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
13881 if test $ac_cv_lib_kstat_kstat_open = yes; then
13882 cat >>confdefs.h
<<_ACEOF
13883 #define HAVE_LIBKSTAT 1
13886 LIBS
="-lkstat $LIBS"
13890 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
13892 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13893 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13894 # to get the right answer into the cache.
13895 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13896 if test $ac_have_func = no
; then
13897 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
13898 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
13899 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 ac_check_lib_save_LIBS
=$LIBS
13904 cat >conftest.
$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13908 cat confdefs.h
>>conftest.
$ac_ext
13909 cat >>conftest.
$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any gcc2 internal prototype to avoid an error. */
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13927 rm -f conftest.
$ac_objext conftest
$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try
='test -s conftest$ac_exeext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_lib_elf_elf_begin
=yes
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.
$ac_ext >&5
13944 ac_cv_lib_elf_elf_begin
=no
13946 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13947 LIBS
=$ac_check_lib_save_LIBS
13949 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
13950 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
13951 if test $ac_cv_lib_elf_elf_begin = yes; then
13956 if test $ac_have_func = no
; then
13957 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
13958 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
13959 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 ac_check_lib_save_LIBS
=$LIBS
13964 cat >conftest.
$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13968 cat confdefs.h
>>conftest.
$ac_ext
13969 cat >>conftest.
$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13972 /* Override any gcc2 internal prototype to avoid an error. */
13976 /* We use char because int might match the return type of a gcc2
13977 builtin and then its argument prototype would still apply. */
13987 rm -f conftest.
$ac_objext conftest
$ac_exeext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13989 (eval $ac_link) 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try
='test -s conftest$ac_exeext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_lib_kvm_kvm_open
=yes
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.
$ac_ext >&5
14004 ac_cv_lib_kvm_kvm_open
=no
14006 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14007 LIBS
=$ac_check_lib_save_LIBS
14009 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14010 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14011 if test $ac_cv_lib_kvm_kvm_open = yes; then
14015 # Check for the 4.4BSD definition of getloadavg.
14016 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14017 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14018 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 ac_check_lib_save_LIBS
=$LIBS
14022 LIBS
="-lutil $LIBS"
14023 cat >conftest.
$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14027 cat confdefs.h
>>conftest.
$ac_ext
14028 cat >>conftest.
$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14031 /* Override any gcc2 internal prototype to avoid an error. */
14035 /* We use char because int might match the return type of a gcc2
14036 builtin and then its argument prototype would still apply. */
14037 char getloadavg ();
14046 rm -f conftest.
$ac_objext conftest
$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try
='test -s conftest$ac_exeext'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 ac_cv_lib_util_getloadavg
=yes
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.
$ac_ext >&5
14063 ac_cv_lib_util_getloadavg
=no
14065 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14066 LIBS
=$ac_check_lib_save_LIBS
14068 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14069 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14070 if test $ac_cv_lib_util_getloadavg = yes; then
14071 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14076 if test $ac_have_func = no
; then
14077 # There is a commonly available library for RS/6000 AIX.
14078 # Since it is not a standard part of AIX, it might be installed locally.
14079 ac_getloadavg_LIBS
=$LIBS
14080 LIBS
="-L/usr/local/lib $LIBS"
14081 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14082 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14083 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 ac_check_lib_save_LIBS
=$LIBS
14087 LIBS
="-lgetloadavg $LIBS"
14088 cat >conftest.
$ac_ext <<_ACEOF
14089 #line $LINENO "configure"
14092 cat confdefs.h
>>conftest.
$ac_ext
14093 cat >>conftest.
$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14096 /* Override any gcc2 internal prototype to avoid an error. */
14100 /* We use char because int might match the return type of a gcc2
14101 builtin and then its argument prototype would still apply. */
14102 char getloadavg ();
14111 rm -f conftest.
$ac_objext conftest
$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try
='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_lib_getloadavg_getloadavg
=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.
$ac_ext >&5
14128 ac_cv_lib_getloadavg_getloadavg
=no
14130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14131 LIBS
=$ac_check_lib_save_LIBS
14133 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14134 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14135 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14136 LIBS
="-lgetloadavg $LIBS"
14138 LIBS
=$ac_getloadavg_LIBS
14143 # Make sure it is really in the library, if we think we found it,
14144 # otherwise set up the replacement function.
14146 for ac_func
in getloadavg
14148 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14149 echo "$as_me:$LINENO: checking for $ac_func" >&5
14150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14151 if eval "test \"\${$as_ac_var+set}\" = set"; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 cat >conftest.
$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14158 cat confdefs.h
>>conftest.
$ac_ext
14159 cat >>conftest.
$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 /* System header to define __stub macros and hopefully few prototypes,
14162 which can conflict with char $ac_func (); below.
14163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14164 <limits.h> exists even on freestanding compilers. */
14166 # include <limits.h>
14168 # include <assert.h>
14170 /* Override any gcc2 internal prototype to avoid an error. */
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14178 /* The GNU C library defines this for functions which it implements
14179 to always fail with ENOSYS. Some functions are actually named
14180 something starting with __ and the normal name is an alias. */
14181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14184 char (*f) () = $ac_func;
14193 return f != $ac_func;
14198 rm -f conftest.
$ac_objext conftest
$ac_exeext
14199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14200 (eval $ac_link) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try
='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 eval "$as_ac_var=yes"
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.
$ac_ext >&5
14215 eval "$as_ac_var=no"
14217 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14221 if test `eval echo '${'$as_ac_var'}'` = yes; then
14222 cat >>confdefs.h
<<_ACEOF
14223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14227 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
14229 cat >>confdefs.h
<<\_ACEOF
14230 #define C_GETLOADAVG 1
14233 # Figure out what our getloadavg.c needs.
14235 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14236 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14237 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14238 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14242 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14244 # Is the header compilable?
14245 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14246 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14247 cat >conftest.
$ac_ext <<_ACEOF
14248 #line $LINENO "configure"
14251 cat confdefs.h
>>conftest.
$ac_ext
14252 cat >>conftest.
$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 $ac_includes_default
14255 #include <sys/dg_sys_info.h>
14257 rm -f conftest.
$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try
='test -s conftest.$ac_objext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_header_compiler
=yes
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.
$ac_ext >&5
14274 ac_header_compiler
=no
14276 rm -f conftest.
$ac_objext conftest.
$ac_ext
14277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14278 echo "${ECHO_T}$ac_header_compiler" >&6
14280 # Is the header present?
14281 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14282 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14283 cat >conftest.
$ac_ext <<_ACEOF
14284 #line $LINENO "configure"
14287 cat confdefs.h
>>conftest.
$ac_ext
14288 cat >>conftest.
$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 #include <sys/dg_sys_info.h>
14292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14293 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14295 grep -v '^ *+' conftest.er1
>conftest.err
14297 cat conftest.err
>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } >/dev
/null
; then
14300 if test -s conftest.err
; then
14301 ac_cpp_err
=$ac_c_preproc_warn_flag
14308 if test -z "$ac_cpp_err"; then
14309 ac_header_preproc
=yes
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14314 ac_header_preproc
=no
14316 rm -f conftest.err conftest.
$ac_ext
14317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14318 echo "${ECHO_T}$ac_header_preproc" >&6
14320 # So? What about this header?
14321 case $ac_header_compiler:$ac_header_preproc in
14323 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14324 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14326 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14329 ## ------------------------------------ ##
14330 ## Report this to bug-autoconf@gnu.org. ##
14331 ## ------------------------------------ ##
14334 sed "s/^/$as_me: WARNING: /" >&2
14337 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14338 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14340 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14342 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14345 ## ------------------------------------ ##
14346 ## Report this to bug-autoconf@gnu.org. ##
14347 ## ------------------------------------ ##
14350 sed "s/^/$as_me: WARNING: /" >&2
14353 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14354 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14355 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14360 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14361 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14364 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14367 cat >>confdefs.h
<<\_ACEOF
14372 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14373 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14374 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 ac_check_lib_save_LIBS
=$LIBS
14379 cat >conftest.
$ac_ext <<_ACEOF
14380 #line $LINENO "configure"
14383 cat confdefs.h
>>conftest.
$ac_ext
14384 cat >>conftest.
$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 /* Override any gcc2 internal prototype to avoid an error. */
14391 /* We use char because int might match the return type of a gcc2
14392 builtin and then its argument prototype would still apply. */
14393 char dg_sys_info ();
14402 rm -f conftest.
$ac_objext conftest
$ac_exeext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404 (eval $ac_link) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try
='test -s conftest$ac_exeext'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_lib_dgc_dg_sys_info
=yes
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.
$ac_ext >&5
14419 ac_cv_lib_dgc_dg_sys_info
=no
14421 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14422 LIBS
=$ac_check_lib_save_LIBS
14424 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14425 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14426 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14427 cat >>confdefs.h
<<_ACEOF
14428 #define HAVE_LIBDGC 1
14439 if test "${ac_cv_header_locale_h+set}" = set; then
14440 echo "$as_me:$LINENO: checking for locale.h" >&5
14441 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14442 if test "${ac_cv_header_locale_h+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14446 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14448 # Is the header compilable?
14449 echo "$as_me:$LINENO: checking locale.h usability" >&5
14450 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14451 cat >conftest.
$ac_ext <<_ACEOF
14452 #line $LINENO "configure"
14455 cat confdefs.h
>>conftest.
$ac_ext
14456 cat >>conftest.
$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 $ac_includes_default
14459 #include <locale.h>
14461 rm -f conftest.
$ac_objext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463 (eval $ac_compile) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try
='test -s conftest.$ac_objext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_header_compiler
=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.
$ac_ext >&5
14478 ac_header_compiler
=no
14480 rm -f conftest.
$ac_objext conftest.
$ac_ext
14481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14482 echo "${ECHO_T}$ac_header_compiler" >&6
14484 # Is the header present?
14485 echo "$as_me:$LINENO: checking locale.h presence" >&5
14486 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14487 cat >conftest.
$ac_ext <<_ACEOF
14488 #line $LINENO "configure"
14491 cat confdefs.h
>>conftest.
$ac_ext
14492 cat >>conftest.
$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494 #include <locale.h>
14496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14497 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14499 grep -v '^ *+' conftest.er1
>conftest.err
14501 cat conftest.err
>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } >/dev
/null
; then
14504 if test -s conftest.err
; then
14505 ac_cpp_err
=$ac_c_preproc_warn_flag
14512 if test -z "$ac_cpp_err"; then
14513 ac_header_preproc
=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.
$ac_ext >&5
14518 ac_header_preproc
=no
14520 rm -f conftest.err conftest.
$ac_ext
14521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14522 echo "${ECHO_T}$ac_header_preproc" >&6
14524 # So? What about this header?
14525 case $ac_header_compiler:$ac_header_preproc in
14527 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14528 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14530 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14533 ## ------------------------------------ ##
14534 ## Report this to bug-autoconf@gnu.org. ##
14535 ## ------------------------------------ ##
14538 sed "s/^/$as_me: WARNING: /" >&2
14541 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
14542 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
14544 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14546 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14549 ## ------------------------------------ ##
14550 ## Report this to bug-autoconf@gnu.org. ##
14551 ## ------------------------------------ ##
14554 sed "s/^/$as_me: WARNING: /" >&2
14557 echo "$as_me:$LINENO: checking for locale.h" >&5
14558 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14559 if test "${ac_cv_header_locale_h+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 ac_cv_header_locale_h
=$ac_header_preproc
14564 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14565 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14571 for ac_func
in setlocale
14573 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14574 echo "$as_me:$LINENO: checking for $ac_func" >&5
14575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14576 if eval "test \"\${$as_ac_var+set}\" = set"; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 cat >conftest.
$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14583 cat confdefs.h
>>conftest.
$ac_ext
14584 cat >>conftest.
$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 /* System header to define __stub macros and hopefully few prototypes,
14587 which can conflict with char $ac_func (); below.
14588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14589 <limits.h> exists even on freestanding compilers. */
14591 # include <limits.h>
14593 # include <assert.h>
14595 /* Override any gcc2 internal prototype to avoid an error. */
14600 /* We use char because int might match the return type of a gcc2
14601 builtin and then its argument prototype would still apply. */
14603 /* The GNU C library defines this for functions which it implements
14604 to always fail with ENOSYS. Some functions are actually named
14605 something starting with __ and the normal name is an alias. */
14606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14609 char (*f) () = $ac_func;
14618 return f != $ac_func;
14623 rm -f conftest.
$ac_objext conftest
$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try
='test -s conftest$ac_exeext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 eval "$as_ac_var=yes"
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.
$ac_ext >&5
14640 eval "$as_ac_var=no"
14642 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14646 if test `eval echo '${'$as_ac_var'}'` = yes; then
14647 cat >>confdefs.h
<<_ACEOF
14648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14655 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14656 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14657 # Irix 4.0.5F has the header but not the library.
14658 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
14661 cat >>confdefs.h
<<\_ACEOF
14667 if test $ac_have_func = no
; then
14668 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14669 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14670 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14671 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14675 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14677 # Is the header compilable?
14678 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
14679 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
14680 cat >conftest.
$ac_ext <<_ACEOF
14681 #line $LINENO "configure"
14684 cat confdefs.h
>>conftest.
$ac_ext
14685 cat >>conftest.
$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 $ac_includes_default
14688 #include <inq_stats/cpustats.h>
14690 rm -f conftest.
$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692 (eval $ac_compile) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try
='test -s conftest.$ac_objext'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_header_compiler
=yes
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.
$ac_ext >&5
14707 ac_header_compiler
=no
14709 rm -f conftest.
$ac_objext conftest.
$ac_ext
14710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14711 echo "${ECHO_T}$ac_header_compiler" >&6
14713 # Is the header present?
14714 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
14715 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
14716 cat >conftest.
$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14720 cat confdefs.h
>>conftest.
$ac_ext
14721 cat >>conftest.
$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <inq_stats/cpustats.h>
14725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14728 grep -v '^ *+' conftest.er1
>conftest.err
14730 cat conftest.err
>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } >/dev
/null
; then
14733 if test -s conftest.err
; then
14734 ac_cpp_err
=$ac_c_preproc_warn_flag
14741 if test -z "$ac_cpp_err"; then
14742 ac_header_preproc
=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.
$ac_ext >&5
14747 ac_header_preproc
=no
14749 rm -f conftest.err conftest.
$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6
14753 # So? What about this header?
14754 case $ac_header_compiler:$ac_header_preproc in
14756 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14759 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14762 ## ------------------------------------ ##
14763 ## Report this to bug-autoconf@gnu.org. ##
14764 ## ------------------------------------ ##
14767 sed "s/^/$as_me: WARNING: /" >&2
14770 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
14771 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
14773 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14775 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14778 ## ------------------------------------ ##
14779 ## Report this to bug-autoconf@gnu.org. ##
14780 ## ------------------------------------ ##
14783 sed "s/^/$as_me: WARNING: /" >&2
14786 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14787 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14788 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
14793 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14794 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14797 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
14800 cat >>confdefs.h
<<\_ACEOF
14805 cat >>confdefs.h
<<\_ACEOF
14814 if test $ac_have_func = no
; then
14815 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14816 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
14817 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
14818 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
14822 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
14824 # Is the header compilable?
14825 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
14826 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
14827 cat >conftest.
$ac_ext <<_ACEOF
14828 #line $LINENO "configure"
14831 cat confdefs.h
>>conftest.
$ac_ext
14832 cat >>conftest.
$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 $ac_includes_default
14835 #include <sys/cpustats.h>
14837 rm -f conftest.
$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try
='test -s conftest.$ac_objext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_header_compiler
=yes
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.
$ac_ext >&5
14854 ac_header_compiler
=no
14856 rm -f conftest.
$ac_objext conftest.
$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14858 echo "${ECHO_T}$ac_header_compiler" >&6
14860 # Is the header present?
14861 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
14862 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
14863 cat >conftest.
$ac_ext <<_ACEOF
14864 #line $LINENO "configure"
14867 cat confdefs.h
>>conftest.
$ac_ext
14868 cat >>conftest.
$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 #include <sys/cpustats.h>
14872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14873 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14875 grep -v '^ *+' conftest.er1
>conftest.err
14877 cat conftest.err
>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } >/dev
/null
; then
14880 if test -s conftest.err
; then
14881 ac_cpp_err
=$ac_c_preproc_warn_flag
14888 if test -z "$ac_cpp_err"; then
14889 ac_header_preproc
=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.
$ac_ext >&5
14894 ac_header_preproc
=no
14896 rm -f conftest.err conftest.
$ac_ext
14897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898 echo "${ECHO_T}$ac_header_preproc" >&6
14900 # So? What about this header?
14901 case $ac_header_compiler:$ac_header_preproc in
14903 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14904 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
14906 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
14909 ## ------------------------------------ ##
14910 ## Report this to bug-autoconf@gnu.org. ##
14911 ## ------------------------------------ ##
14914 sed "s/^/$as_me: WARNING: /" >&2
14917 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
14918 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
14920 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
14922 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
14925 ## ------------------------------------ ##
14926 ## Report this to bug-autoconf@gnu.org. ##
14927 ## ------------------------------------ ##
14930 sed "s/^/$as_me: WARNING: /" >&2
14933 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
14934 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
14935 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
14940 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
14941 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
14944 if test $ac_cv_header_sys_cpustats_h = yes; then
14945 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
14954 if test $ac_have_func = no
; then
14956 for ac_header
in mach
/mach.h
14958 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14960 echo "$as_me:$LINENO: checking for $ac_header" >&5
14961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14968 # Is the header compilable?
14969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14971 cat >conftest.
$ac_ext <<_ACEOF
14972 #line $LINENO "configure"
14975 cat confdefs.h
>>conftest.
$ac_ext
14976 cat >>conftest.
$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 $ac_includes_default
14979 #include <$ac_header>
14981 rm -f conftest.
$ac_objext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try
='test -s conftest.$ac_objext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 ac_header_compiler
=yes
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.
$ac_ext >&5
14998 ac_header_compiler
=no
15000 rm -f conftest.
$ac_objext conftest.
$ac_ext
15001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15002 echo "${ECHO_T}$ac_header_compiler" >&6
15004 # Is the header present?
15005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15007 cat >conftest.
$ac_ext <<_ACEOF
15008 #line $LINENO "configure"
15011 cat confdefs.h
>>conftest.
$ac_ext
15012 cat >>conftest.
$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 #include <$ac_header>
15016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15019 grep -v '^ *+' conftest.er1
>conftest.err
15021 cat conftest.err
>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } >/dev
/null
; then
15024 if test -s conftest.err
; then
15025 ac_cpp_err
=$ac_c_preproc_warn_flag
15032 if test -z "$ac_cpp_err"; then
15033 ac_header_preproc
=yes
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.
$ac_ext >&5
15038 ac_header_preproc
=no
15040 rm -f conftest.err conftest.
$ac_ext
15041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15042 echo "${ECHO_T}$ac_header_preproc" >&6
15044 # So? What about this header?
15045 case $ac_header_compiler:$ac_header_preproc in
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15053 ## ------------------------------------ ##
15054 ## Report this to bug-autoconf@gnu.org. ##
15055 ## ------------------------------------ ##
15058 sed "s/^/$as_me: WARNING: /" >&2
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15069 ## ------------------------------------ ##
15070 ## Report this to bug-autoconf@gnu.org. ##
15071 ## ------------------------------------ ##
15074 sed "s/^/$as_me: WARNING: /" >&2
15077 echo "$as_me:$LINENO: checking for $ac_header" >&5
15078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 eval "$as_ac_Header=$ac_header_preproc"
15084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15089 cat >>confdefs.h
<<_ACEOF
15090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15100 for ac_header
in nlist.h
15102 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15104 echo "$as_me:$LINENO: checking for $ac_header" >&5
15105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15112 # Is the header compilable?
15113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15115 cat >conftest.
$ac_ext <<_ACEOF
15116 #line $LINENO "configure"
15119 cat confdefs.h
>>conftest.
$ac_ext
15120 cat >>conftest.
$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 $ac_includes_default
15123 #include <$ac_header>
15125 rm -f conftest.
$ac_objext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15127 (eval $ac_compile) 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try
='test -s conftest.$ac_objext'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_header_compiler
=yes
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.
$ac_ext >&5
15142 ac_header_compiler
=no
15144 rm -f conftest.
$ac_objext conftest.
$ac_ext
15145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15146 echo "${ECHO_T}$ac_header_compiler" >&6
15148 # Is the header present?
15149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15151 cat >conftest.
$ac_ext <<_ACEOF
15152 #line $LINENO "configure"
15155 cat confdefs.h
>>conftest.
$ac_ext
15156 cat >>conftest.
$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 #include <$ac_header>
15160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15161 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15163 grep -v '^ *+' conftest.er1
>conftest.err
15165 cat conftest.err
>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } >/dev
/null
; then
15168 if test -s conftest.err
; then
15169 ac_cpp_err
=$ac_c_preproc_warn_flag
15176 if test -z "$ac_cpp_err"; then
15177 ac_header_preproc
=yes
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.
$ac_ext >&5
15182 ac_header_preproc
=no
15184 rm -f conftest.err conftest.
$ac_ext
15185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15186 echo "${ECHO_T}$ac_header_preproc" >&6
15188 # So? What about this header?
15189 case $ac_header_compiler:$ac_header_preproc in
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15197 ## ------------------------------------ ##
15198 ## Report this to bug-autoconf@gnu.org. ##
15199 ## ------------------------------------ ##
15202 sed "s/^/$as_me: WARNING: /" >&2
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15213 ## ------------------------------------ ##
15214 ## Report this to bug-autoconf@gnu.org. ##
15215 ## ------------------------------------ ##
15218 sed "s/^/$as_me: WARNING: /" >&2
15221 echo "$as_me:$LINENO: checking for $ac_header" >&5
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 eval "$as_ac_Header=$ac_header_preproc"
15228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15233 cat >>confdefs.h
<<_ACEOF
15234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15236 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15237 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15238 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 cat >conftest.
$ac_ext <<_ACEOF
15242 #line $LINENO "configure"
15245 cat confdefs.h
>>conftest.
$ac_ext
15246 cat >>conftest.
$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15253 static struct nlist ac_aggr;
15254 if (ac_aggr.n_un.n_name)
15260 rm -f conftest.
$ac_objext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262 (eval $ac_compile) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try
='test -s conftest.$ac_objext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 ac_cv_member_struct_nlist_n_un_n_name
=yes
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.
$ac_ext >&5
15277 cat >conftest.
$ac_ext <<_ACEOF
15278 #line $LINENO "configure"
15281 cat confdefs.h
>>conftest.
$ac_ext
15282 cat >>conftest.
$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15289 static struct nlist ac_aggr;
15290 if (sizeof ac_aggr.n_un.n_name)
15296 rm -f conftest.
$ac_objext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15298 (eval $ac_compile) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try
='test -s conftest.$ac_objext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_member_struct_nlist_n_un_n_name
=yes
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.
$ac_ext >&5
15313 ac_cv_member_struct_nlist_n_un_n_name
=no
15315 rm -f conftest.
$ac_objext conftest.
$ac_ext
15317 rm -f conftest.
$ac_objext conftest.
$ac_ext
15319 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15320 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15321 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15323 cat >>confdefs.h
<<_ACEOF
15324 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15328 cat >>confdefs.h
<<\_ACEOF
15329 #define NLIST_NAME_UNION 1
15343 # Some definitions of getloadavg require that the program be installed setgid.
15344 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15345 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15346 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 cat >conftest.
$ac_ext <<_ACEOF
15350 #line $LINENO "configure"
15353 cat confdefs.h
>>conftest.
$ac_ext
15354 cat >>conftest.
$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15357 #ifdef LDAV_PRIVILEGED
15358 Yowza Am I SETGID yet
15361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15362 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
15363 ac_cv_func_getloadavg_setgid
=yes
15365 ac_cv_func_getloadavg_setgid
=no
15370 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15371 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15372 if test $ac_cv_func_getloadavg_setgid = yes; then
15375 cat >>confdefs.h
<<\_ACEOF
15376 #define GETLOADAVG_PRIVILEGED 1
15383 if test $ac_cv_func_getloadavg_setgid = yes; then
15384 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15385 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15386 if test "${ac_cv_group_kmem+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15390 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
15391 # If we got an error (system does not support symlinks), try without -L.
15392 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
15393 ac_cv_group_kmem
=`echo $ac_ls_output \
15394 | sed -ne 's/[ ][ ]*/ /g;
15395 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15399 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15400 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15401 KMEM_GROUP
=$ac_cv_group_kmem
15403 if test "x$ac_save_LIBS" = x
; then
15404 GETLOADAVG_LIBS
=$LIBS
15406 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15412 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15413 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15414 if test "${ac_cv_sys_largefile_source+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 ac_cv_sys_largefile_source
=no
15419 cat >conftest.
$ac_ext <<_ACEOF
15420 #line $LINENO "configure"
15423 cat confdefs.h
>>conftest.
$ac_ext
15424 cat >>conftest.
$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15435 rm -f conftest.
$ac_objext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15437 (eval $ac_compile) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try
='test -s conftest.$ac_objext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.
$ac_ext >&5
15453 rm -f conftest.
$ac_objext conftest.
$ac_ext
15454 cat >conftest.
$ac_ext <<_ACEOF
15455 #line $LINENO "configure"
15458 cat confdefs.h
>>conftest.
$ac_ext
15459 cat >>conftest.
$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 #define _LARGEFILE_SOURCE 1
15471 rm -f conftest.
$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473 (eval $ac_compile) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try
='test -s conftest.$ac_objext'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_sys_largefile_source
=1; break
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.
$ac_ext >&5
15489 rm -f conftest.
$ac_objext conftest.
$ac_ext
15493 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15494 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15495 if test "$ac_cv_sys_largefile_source" != no
; then
15497 cat >>confdefs.h
<<_ACEOF
15498 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15504 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15505 # in glibc 2.1.3, but that breaks too many other things.
15506 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15507 echo "$as_me:$LINENO: checking for fseeko" >&5
15508 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15509 if test "${ac_cv_func_fseeko+set}" = set; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 cat >conftest.
$ac_ext <<_ACEOF
15513 #line $LINENO "configure"
15516 cat confdefs.h
>>conftest.
$ac_ext
15517 cat >>conftest.
$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15523 return fseeko && fseeko (stdin, 0, 0);
15528 rm -f conftest.
$ac_objext conftest
$ac_exeext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try
='test -s conftest$ac_exeext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 ac_cv_func_fseeko
=yes
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.
$ac_ext >&5
15545 ac_cv_func_fseeko
=no
15547 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15549 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15550 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15551 if test $ac_cv_func_fseeko = yes; then
15553 cat >>confdefs.h
<<\_ACEOF
15554 #define HAVE_FSEEKO 1
15560 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15561 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
15562 if test "${ac_cv_func_getpgrp_void+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 # Use it with a single arg.
15566 cat >conftest.
$ac_ext <<_ACEOF
15567 #line $LINENO "configure"
15570 cat confdefs.h
>>conftest.
$ac_ext
15571 cat >>conftest.
$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 $ac_includes_default
15582 rm -f conftest.
$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try
='test -s conftest.$ac_objext'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_cv_func_getpgrp_void
=no
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.
$ac_ext >&5
15599 ac_cv_func_getpgrp_void
=yes
15601 rm -f conftest.
$ac_objext conftest.
$ac_ext
15604 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15605 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
15606 if test $ac_cv_func_getpgrp_void = yes; then
15608 cat >>confdefs.h
<<\_ACEOF
15609 #define GETPGRP_VOID 1
15616 for ac_func
in strftime
15618 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15619 echo "$as_me:$LINENO: checking for $ac_func" >&5
15620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15621 if eval "test \"\${$as_ac_var+set}\" = set"; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 cat >conftest.
$ac_ext <<_ACEOF
15625 #line $LINENO "configure"
15628 cat confdefs.h
>>conftest.
$ac_ext
15629 cat >>conftest.
$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 /* System header to define __stub macros and hopefully few prototypes,
15632 which can conflict with char $ac_func (); below.
15633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634 <limits.h> exists even on freestanding compilers. */
15636 # include <limits.h>
15638 # include <assert.h>
15640 /* Override any gcc2 internal prototype to avoid an error. */
15645 /* We use char because int might match the return type of a gcc2
15646 builtin and then its argument prototype would still apply. */
15648 /* The GNU C library defines this for functions which it implements
15649 to always fail with ENOSYS. Some functions are actually named
15650 something starting with __ and the normal name is an alias. */
15651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15654 char (*f) () = $ac_func;
15663 return f != $ac_func;
15668 rm -f conftest.
$ac_objext conftest
$ac_exeext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670 (eval $ac_link) 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
15674 { ac_try
='test -s conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 eval "$as_ac_var=yes"
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.
$ac_ext >&5
15685 eval "$as_ac_var=no"
15687 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15691 if test `eval echo '${'$as_ac_var'}'` = yes; then
15692 cat >>confdefs.h
<<_ACEOF
15693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15697 # strftime is in -lintl on SCO UNIX.
15698 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15699 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15700 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 ac_check_lib_save_LIBS
=$LIBS
15704 LIBS
="-lintl $LIBS"
15705 cat >conftest.
$ac_ext <<_ACEOF
15706 #line $LINENO "configure"
15709 cat confdefs.h
>>conftest.
$ac_ext
15710 cat >>conftest.
$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15713 /* Override any gcc2 internal prototype to avoid an error. */
15717 /* We use char because int might match the return type of a gcc2
15718 builtin and then its argument prototype would still apply. */
15728 rm -f conftest.
$ac_objext conftest
$ac_exeext
15729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15730 (eval $ac_link) 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try
='test -s conftest$ac_exeext'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_cv_lib_intl_strftime
=yes
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.
$ac_ext >&5
15745 ac_cv_lib_intl_strftime
=no
15747 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15748 LIBS
=$ac_check_lib_save_LIBS
15750 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15751 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15752 if test $ac_cv_lib_intl_strftime = yes; then
15753 cat >>confdefs.h
<<\_ACEOF
15754 #define HAVE_STRFTIME 1
15757 LIBS
="-lintl $LIBS"
15766 for ac_func
in grantpt
15768 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15769 echo "$as_me:$LINENO: checking for $ac_func" >&5
15770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15771 if eval "test \"\${$as_ac_var+set}\" = set"; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 cat >conftest.
$ac_ext <<_ACEOF
15775 #line $LINENO "configure"
15778 cat confdefs.h
>>conftest.
$ac_ext
15779 cat >>conftest.
$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* System header to define __stub macros and hopefully few prototypes,
15782 which can conflict with char $ac_func (); below.
15783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15784 <limits.h> exists even on freestanding compilers. */
15786 # include <limits.h>
15788 # include <assert.h>
15790 /* Override any gcc2 internal prototype to avoid an error. */
15795 /* We use char because int might match the return type of a gcc2
15796 builtin and then its argument prototype would still apply. */
15798 /* The GNU C library defines this for functions which it implements
15799 to always fail with ENOSYS. Some functions are actually named
15800 something starting with __ and the normal name is an alias. */
15801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15804 char (*f) () = $ac_func;
15813 return f != $ac_func;
15818 rm -f conftest.
$ac_objext conftest
$ac_exeext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15820 (eval $ac_link) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try
='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 eval "$as_ac_var=yes"
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.
$ac_ext >&5
15835 eval "$as_ac_var=no"
15837 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15841 if test `eval echo '${'$as_ac_var'}'` = yes; then
15842 cat >>confdefs.h
<<_ACEOF
15843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15850 # PTY-related GNU extensions.
15852 for ac_func
in getpt
15854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15855 echo "$as_me:$LINENO: checking for $ac_func" >&5
15856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_var+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 cat >conftest.
$ac_ext <<_ACEOF
15861 #line $LINENO "configure"
15864 cat confdefs.h
>>conftest.
$ac_ext
15865 cat >>conftest.
$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 /* System header to define __stub macros and hopefully few prototypes,
15868 which can conflict with char $ac_func (); below.
15869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15870 <limits.h> exists even on freestanding compilers. */
15872 # include <limits.h>
15874 # include <assert.h>
15876 /* Override any gcc2 internal prototype to avoid an error. */
15881 /* We use char because int might match the return type of a gcc2
15882 builtin and then its argument prototype would still apply. */
15884 /* The GNU C library defines this for functions which it implements
15885 to always fail with ENOSYS. Some functions are actually named
15886 something starting with __ and the normal name is an alias. */
15887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15890 char (*f) () = $ac_func;
15899 return f != $ac_func;
15904 rm -f conftest.
$ac_objext conftest
$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906 (eval $ac_link) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try
='test -s conftest$ac_exeext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 eval "$as_ac_var=yes"
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.
$ac_ext >&5
15921 eval "$as_ac_var=no"
15923 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15927 if test `eval echo '${'$as_ac_var'}'` = yes; then
15928 cat >>confdefs.h
<<_ACEOF
15929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15936 # Check this now, so that we will NOT find the above functions in ncurses.
15937 # That is because we have not set up to link ncurses in lib-src.
15938 # It's better to believe a function is not available
15939 # than to expect to find it in ncurses.
15941 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
15942 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
15943 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 ac_check_lib_save_LIBS
=$LIBS
15947 LIBS
="-lncurses $LIBS"
15948 cat >conftest.
$ac_ext <<_ACEOF
15949 #line $LINENO "configure"
15952 cat confdefs.h
>>conftest.
$ac_ext
15953 cat >>conftest.
$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15956 /* Override any gcc2 internal prototype to avoid an error. */
15960 /* We use char because int might match the return type of a gcc2
15961 builtin and then its argument prototype would still apply. */
15971 rm -f conftest.
$ac_objext conftest
$ac_exeext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973 (eval $ac_link) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try
='test -s conftest$ac_exeext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_cv_lib_ncurses_tparm
=yes
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.
$ac_ext >&5
15988 ac_cv_lib_ncurses_tparm
=no
15990 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15991 LIBS
=$ac_check_lib_save_LIBS
15993 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
15994 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
15995 if test $ac_cv_lib_ncurses_tparm = yes; then
15996 cat >>confdefs.h
<<_ACEOF
15997 #define HAVE_LIBNCURSES 1
16000 LIBS
="-lncurses $LIBS"
16005 # Do we need the Hesiod library to provide the support routines?
16006 if test "$with_hesiod" = yes ; then
16007 # Don't set $LIBS here -- see comments above.
16009 echo "$as_me:$LINENO: checking for res_send" >&5
16010 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16011 if test "${ac_cv_func_res_send+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 cat >conftest.
$ac_ext <<_ACEOF
16015 #line $LINENO "configure"
16018 cat confdefs.h
>>conftest.
$ac_ext
16019 cat >>conftest.
$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 /* System header to define __stub macros and hopefully few prototypes,
16022 which can conflict with char res_send (); below.
16023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16024 <limits.h> exists even on freestanding compilers. */
16026 # include <limits.h>
16028 # include <assert.h>
16030 /* Override any gcc2 internal prototype to avoid an error. */
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16038 /* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041 #if defined (__stub_res_send) || defined (__stub___res_send)
16044 char (*f) () = res_send;
16053 return f != res_send;
16058 rm -f conftest.
$ac_objext conftest
$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try
='test -s conftest$ac_exeext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_cv_func_res_send
=yes
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.
$ac_ext >&5
16075 ac_cv_func_res_send
=no
16077 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16079 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16080 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16081 if test $ac_cv_func_res_send = yes; then
16084 echo "$as_me:$LINENO: checking for __res_send" >&5
16085 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16086 if test "${ac_cv_func___res_send+set}" = set; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 cat >conftest.
$ac_ext <<_ACEOF
16090 #line $LINENO "configure"
16093 cat confdefs.h
>>conftest.
$ac_ext
16094 cat >>conftest.
$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 /* System header to define __stub macros and hopefully few prototypes,
16097 which can conflict with char __res_send (); below.
16098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16099 <limits.h> exists even on freestanding compilers. */
16101 # include <limits.h>
16103 # include <assert.h>
16105 /* Override any gcc2 internal prototype to avoid an error. */
16110 /* We use char because int might match the return type of a gcc2
16111 builtin and then its argument prototype would still apply. */
16112 char __res_send ();
16113 /* The GNU C library defines this for functions which it implements
16114 to always fail with ENOSYS. Some functions are actually named
16115 something starting with __ and the normal name is an alias. */
16116 #if defined (__stub___res_send) || defined (__stub_____res_send)
16119 char (*f) () = __res_send;
16128 return f != __res_send;
16133 rm -f conftest.
$ac_objext conftest
$ac_exeext
16134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16135 (eval $ac_link) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } &&
16139 { ac_try
='test -s conftest$ac_exeext'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_cv_func___res_send
=yes
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.
$ac_ext >&5
16150 ac_cv_func___res_send
=no
16152 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16154 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16155 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16156 if test $ac_cv_func___res_send = yes; then
16159 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16160 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16161 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 ac_check_lib_save_LIBS
=$LIBS
16165 LIBS
="-lresolv $LIBS"
16166 cat >conftest.
$ac_ext <<_ACEOF
16167 #line $LINENO "configure"
16170 cat confdefs.h
>>conftest.
$ac_ext
16171 cat >>conftest.
$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16174 /* Override any gcc2 internal prototype to avoid an error. */
16178 /* We use char because int might match the return type of a gcc2
16179 builtin and then its argument prototype would still apply. */
16189 rm -f conftest.
$ac_objext conftest
$ac_exeext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16191 (eval $ac_link) 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try
='test -s conftest$ac_exeext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_lib_resolv_res_send
=yes
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.
$ac_ext >&5
16206 ac_cv_lib_resolv_res_send
=no
16208 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16209 LIBS
=$ac_check_lib_save_LIBS
16211 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16212 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16213 if test $ac_cv_lib_resolv_res_send = yes; then
16216 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16217 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16218 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 ac_check_lib_save_LIBS
=$LIBS
16222 LIBS
="-lresolv $LIBS"
16223 cat >conftest.
$ac_ext <<_ACEOF
16224 #line $LINENO "configure"
16227 cat confdefs.h
>>conftest.
$ac_ext
16228 cat >>conftest.
$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16231 /* Override any gcc2 internal prototype to avoid an error. */
16235 /* We use char because int might match the return type of a gcc2
16236 builtin and then its argument prototype would still apply. */
16237 char __res_send ();
16246 rm -f conftest.
$ac_objext conftest
$ac_exeext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16248 (eval $ac_link) 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try
='test -s conftest$ac_exeext'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_lib_resolv___res_send
=yes
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.
$ac_ext >&5
16263 ac_cv_lib_resolv___res_send
=no
16265 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16266 LIBS
=$ac_check_lib_save_LIBS
16268 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16269 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16270 if test $ac_cv_lib_resolv___res_send = yes; then
16280 if test "$resolv" = yes ; then
16283 cat >>confdefs.h
<<\_ACEOF
16284 #define HAVE_LIBRESOLV 1
16290 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16291 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16292 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 cat >conftest.
$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16299 cat confdefs.h
>>conftest.
$ac_ext
16300 cat >>conftest.
$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 /* System header to define __stub macros and hopefully few prototypes,
16303 which can conflict with char hes_getmailhost (); below.
16304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16305 <limits.h> exists even on freestanding compilers. */
16307 # include <limits.h>
16309 # include <assert.h>
16311 /* Override any gcc2 internal prototype to avoid an error. */
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16318 char hes_getmailhost ();
16319 /* The GNU C library defines this for functions which it implements
16320 to always fail with ENOSYS. Some functions are actually named
16321 something starting with __ and the normal name is an alias. */
16322 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
16325 char (*f) () = hes_getmailhost;
16334 return f != hes_getmailhost;
16339 rm -f conftest.
$ac_objext conftest
$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try
='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_func_hes_getmailhost
=yes
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.
$ac_ext >&5
16356 ac_cv_func_hes_getmailhost
=no
16358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
16361 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
16362 if test $ac_cv_func_hes_getmailhost = yes; then
16365 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
16366 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
16367 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 ac_check_lib_save_LIBS
=$LIBS
16371 LIBS
="-lhesiod $RESOLVLIB $LIBS"
16372 cat >conftest.
$ac_ext <<_ACEOF
16373 #line $LINENO "configure"
16376 cat confdefs.h
>>conftest.
$ac_ext
16377 cat >>conftest.
$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16380 /* Override any gcc2 internal prototype to avoid an error. */
16384 /* We use char because int might match the return type of a gcc2
16385 builtin and then its argument prototype would still apply. */
16386 char hes_getmailhost ();
16390 hes_getmailhost ();
16395 rm -f conftest.
$ac_objext conftest
$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try
='test -s conftest$ac_exeext'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_cv_lib_hesiod_hes_getmailhost
=yes
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.
$ac_ext >&5
16412 ac_cv_lib_hesiod_hes_getmailhost
=no
16414 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16415 LIBS
=$ac_check_lib_save_LIBS
16417 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16418 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
16419 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
16421 cat >>confdefs.h
<<\_ACEOF
16422 #define HAVE_LIBHESIOD 1
16433 # These tell us which Kerberos-related libraries to use.
16434 if test "${with_kerberos+set}" = set; then
16436 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
16437 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
16438 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 ac_check_lib_save_LIBS
=$LIBS
16442 LIBS
="-lcom_err $LIBS"
16443 cat >conftest.
$ac_ext <<_ACEOF
16444 #line $LINENO "configure"
16447 cat confdefs.h
>>conftest.
$ac_ext
16448 cat >>conftest.
$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16451 /* Override any gcc2 internal prototype to avoid an error. */
16455 /* We use char because int might match the return type of a gcc2
16456 builtin and then its argument prototype would still apply. */
16466 rm -f conftest.
$ac_objext conftest
$ac_exeext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16468 (eval $ac_link) 2>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try
='test -s conftest$ac_exeext'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 ac_cv_lib_com_err_com_err
=yes
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.
$ac_ext >&5
16483 ac_cv_lib_com_err_com_err
=no
16485 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16486 LIBS
=$ac_check_lib_save_LIBS
16488 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
16489 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
16490 if test $ac_cv_lib_com_err_com_err = yes; then
16491 cat >>confdefs.h
<<_ACEOF
16492 #define HAVE_LIBCOM_ERR 1
16495 LIBS
="-lcom_err $LIBS"
16500 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16501 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
16502 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 ac_check_lib_save_LIBS
=$LIBS
16506 LIBS
="-lk5crypto $LIBS"
16507 cat >conftest.
$ac_ext <<_ACEOF
16508 #line $LINENO "configure"
16511 cat confdefs.h
>>conftest.
$ac_ext
16512 cat >>conftest.
$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16515 /* Override any gcc2 internal prototype to avoid an error. */
16519 /* We use char because int might match the return type of a gcc2
16520 builtin and then its argument prototype would still apply. */
16521 char mit_des_cbc_encrypt ();
16525 mit_des_cbc_encrypt ();
16530 rm -f conftest.
$ac_objext conftest
$ac_exeext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try
='test -s conftest$ac_exeext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.
$ac_ext >&5
16547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
16549 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16550 LIBS
=$ac_check_lib_save_LIBS
16552 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16553 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
16554 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
16555 cat >>confdefs.h
<<_ACEOF
16556 #define HAVE_LIBK5CRYPTO 1
16559 LIBS
="-lk5crypto $LIBS"
16564 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16565 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
16566 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 ac_check_lib_save_LIBS
=$LIBS
16570 LIBS
="-lcrypto $LIBS"
16571 cat >conftest.
$ac_ext <<_ACEOF
16572 #line $LINENO "configure"
16575 cat confdefs.h
>>conftest.
$ac_ext
16576 cat >>conftest.
$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16579 /* Override any gcc2 internal prototype to avoid an error. */
16583 /* We use char because int might match the return type of a gcc2
16584 builtin and then its argument prototype would still apply. */
16585 char mit_des_cbc_encrypt ();
16589 mit_des_cbc_encrypt ();
16594 rm -f conftest.
$ac_objext conftest
$ac_exeext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16596 (eval $ac_link) 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try
='test -s conftest$ac_exeext'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; }; then
16606 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.
$ac_ext >&5
16611 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
16613 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16614 LIBS
=$ac_check_lib_save_LIBS
16616 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16617 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
16618 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
16619 cat >>confdefs.h
<<_ACEOF
16620 #define HAVE_LIBCRYPTO 1
16623 LIBS
="-lcrypto $LIBS"
16628 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
16629 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
16630 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 ac_check_lib_save_LIBS
=$LIBS
16634 LIBS
="-lkrb5 $LIBS"
16635 cat >conftest.
$ac_ext <<_ACEOF
16636 #line $LINENO "configure"
16639 cat confdefs.h
>>conftest.
$ac_ext
16640 cat >>conftest.
$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16643 /* Override any gcc2 internal prototype to avoid an error. */
16647 /* We use char because int might match the return type of a gcc2
16648 builtin and then its argument prototype would still apply. */
16649 char krb5_init_context ();
16653 krb5_init_context ();
16658 rm -f conftest.
$ac_objext conftest
$ac_exeext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660 (eval $ac_link) 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try
='test -s conftest$ac_exeext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_cv_lib_krb5_krb5_init_context
=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.
$ac_ext >&5
16675 ac_cv_lib_krb5_krb5_init_context
=no
16677 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16678 LIBS
=$ac_check_lib_save_LIBS
16680 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16681 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
16682 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
16683 cat >>confdefs.h
<<_ACEOF
16684 #define HAVE_LIBKRB5 1
16687 LIBS
="-lkrb5 $LIBS"
16691 if test "${with_kerberos5+set}" != set; then
16693 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
16694 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
16695 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 ac_check_lib_save_LIBS
=$LIBS
16699 LIBS
="-ldes425 $LIBS"
16700 cat >conftest.
$ac_ext <<_ACEOF
16701 #line $LINENO "configure"
16704 cat confdefs.h
>>conftest.
$ac_ext
16705 cat >>conftest.
$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16708 /* Override any gcc2 internal prototype to avoid an error. */
16712 /* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16714 char des_cbc_encrypt ();
16718 des_cbc_encrypt ();
16723 rm -f conftest.
$ac_objext conftest
$ac_exeext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16725 (eval $ac_link) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try
='test -s conftest$ac_exeext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_lib_des425_des_cbc_encrypt
=yes
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.
$ac_ext >&5
16740 ac_cv_lib_des425_des_cbc_encrypt
=no
16742 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16743 LIBS
=$ac_check_lib_save_LIBS
16745 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16746 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
16747 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
16748 cat >>confdefs.h
<<_ACEOF
16749 #define HAVE_LIBDES425 1
16752 LIBS
="-ldes425 $LIBS"
16756 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16757 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
16758 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 ac_check_lib_save_LIBS
=$LIBS
16763 cat >conftest.
$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16767 cat confdefs.h
>>conftest.
$ac_ext
16768 cat >>conftest.
$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16771 /* Override any gcc2 internal prototype to avoid an error. */
16775 /* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16777 char des_cbc_encrypt ();
16781 des_cbc_encrypt ();
16786 rm -f conftest.
$ac_objext conftest
$ac_exeext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788 (eval $ac_link) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try
='test -s conftest$ac_exeext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_lib_des_des_cbc_encrypt
=yes
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.
$ac_ext >&5
16803 ac_cv_lib_des_des_cbc_encrypt
=no
16805 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16806 LIBS
=$ac_check_lib_save_LIBS
16808 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16809 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
16810 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16811 cat >>confdefs.h
<<_ACEOF
16812 #define HAVE_LIBDES 1
16822 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
16823 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
16824 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 ac_check_lib_save_LIBS
=$LIBS
16828 LIBS
="-lkrb4 $LIBS"
16829 cat >conftest.
$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16833 cat confdefs.h
>>conftest.
$ac_ext
16834 cat >>conftest.
$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16837 /* Override any gcc2 internal prototype to avoid an error. */
16841 /* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16843 char krb_get_cred ();
16852 rm -f conftest.
$ac_objext conftest
$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try
='test -s conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_lib_krb4_krb_get_cred
=yes
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.
$ac_ext >&5
16869 ac_cv_lib_krb4_krb_get_cred
=no
16871 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16872 LIBS
=$ac_check_lib_save_LIBS
16874 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16875 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
16876 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
16877 cat >>confdefs.h
<<_ACEOF
16878 #define HAVE_LIBKRB4 1
16881 LIBS
="-lkrb4 $LIBS"
16885 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
16886 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
16887 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 ac_check_lib_save_LIBS
=$LIBS
16892 cat >conftest.
$ac_ext <<_ACEOF
16893 #line $LINENO "configure"
16896 cat confdefs.h
>>conftest.
$ac_ext
16897 cat >>conftest.
$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16900 /* Override any gcc2 internal prototype to avoid an error. */
16904 /* We use char because int might match the return type of a gcc2
16905 builtin and then its argument prototype would still apply. */
16906 char krb_get_cred ();
16915 rm -f conftest.
$ac_objext conftest
$ac_exeext
16916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16917 (eval $ac_link) 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try
='test -s conftest$ac_exeext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_lib_krb_krb_get_cred
=yes
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.
$ac_ext >&5
16932 ac_cv_lib_krb_krb_get_cred
=no
16934 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16935 LIBS
=$ac_check_lib_save_LIBS
16937 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
16938 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
16939 if test $ac_cv_lib_krb_krb_get_cred = yes; then
16940 cat >>confdefs.h
<<_ACEOF
16941 #define HAVE_LIBKRB 1
16952 if test "${with_kerberos5+set}" = set; then
16954 for ac_header
in krb5.h
16956 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16966 # Is the header compilable?
16967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969 cat >conftest.
$ac_ext <<_ACEOF
16970 #line $LINENO "configure"
16973 cat confdefs.h
>>conftest.
$ac_ext
16974 cat >>conftest.
$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 $ac_includes_default
16977 #include <$ac_header>
16979 rm -f conftest.
$ac_objext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try
='test -s conftest.$ac_objext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_header_compiler
=yes
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.
$ac_ext >&5
16996 ac_header_compiler
=no
16998 rm -f conftest.
$ac_objext conftest.
$ac_ext
16999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17000 echo "${ECHO_T}$ac_header_compiler" >&6
17002 # Is the header present?
17003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17005 cat >conftest.
$ac_ext <<_ACEOF
17006 #line $LINENO "configure"
17009 cat confdefs.h
>>conftest.
$ac_ext
17010 cat >>conftest.
$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 #include <$ac_header>
17014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17017 grep -v '^ *+' conftest.er1
>conftest.err
17019 cat conftest.err
>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } >/dev
/null
; then
17022 if test -s conftest.err
; then
17023 ac_cpp_err
=$ac_c_preproc_warn_flag
17030 if test -z "$ac_cpp_err"; then
17031 ac_header_preproc
=yes
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.
$ac_ext >&5
17036 ac_header_preproc
=no
17038 rm -f conftest.err conftest.
$ac_ext
17039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17040 echo "${ECHO_T}$ac_header_preproc" >&6
17042 # So? What about this header?
17043 case $ac_header_compiler:$ac_header_preproc in
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17051 ## ------------------------------------ ##
17052 ## Report this to bug-autoconf@gnu.org. ##
17053 ## ------------------------------------ ##
17056 sed "s/^/$as_me: WARNING: /" >&2
17059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17067 ## ------------------------------------ ##
17068 ## Report this to bug-autoconf@gnu.org. ##
17069 ## ------------------------------------ ##
17072 sed "s/^/$as_me: WARNING: /" >&2
17075 echo "$as_me:$LINENO: checking for $ac_header" >&5
17076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 eval "$as_ac_Header=$ac_header_preproc"
17082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17087 cat >>confdefs.h
<<_ACEOF
17088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17097 for ac_header
in des.h
17099 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17101 echo "$as_me:$LINENO: checking for $ac_header" >&5
17102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17109 # Is the header compilable?
17110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17112 cat >conftest.
$ac_ext <<_ACEOF
17113 #line $LINENO "configure"
17116 cat confdefs.h
>>conftest.
$ac_ext
17117 cat >>conftest.
$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 $ac_includes_default
17120 #include <$ac_header>
17122 rm -f conftest.
$ac_objext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17124 (eval $ac_compile) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try
='test -s conftest.$ac_objext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_header_compiler
=yes
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.
$ac_ext >&5
17139 ac_header_compiler
=no
17141 rm -f conftest.
$ac_objext conftest.
$ac_ext
17142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17143 echo "${ECHO_T}$ac_header_compiler" >&6
17145 # Is the header present?
17146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17148 cat >conftest.
$ac_ext <<_ACEOF
17149 #line $LINENO "configure"
17152 cat confdefs.h
>>conftest.
$ac_ext
17153 cat >>conftest.
$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 #include <$ac_header>
17157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17158 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17160 grep -v '^ *+' conftest.er1
>conftest.err
17162 cat conftest.err
>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } >/dev
/null
; then
17165 if test -s conftest.err
; then
17166 ac_cpp_err
=$ac_c_preproc_warn_flag
17173 if test -z "$ac_cpp_err"; then
17174 ac_header_preproc
=yes
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.
$ac_ext >&5
17179 ac_header_preproc
=no
17181 rm -f conftest.err conftest.
$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17183 echo "${ECHO_T}$ac_header_preproc" >&6
17185 # So? What about this header?
17186 case $ac_header_compiler:$ac_header_preproc in
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17194 ## ------------------------------------ ##
17195 ## Report this to bug-autoconf@gnu.org. ##
17196 ## ------------------------------------ ##
17199 sed "s/^/$as_me: WARNING: /" >&2
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17210 ## ------------------------------------ ##
17211 ## Report this to bug-autoconf@gnu.org. ##
17212 ## ------------------------------------ ##
17215 sed "s/^/$as_me: WARNING: /" >&2
17218 echo "$as_me:$LINENO: checking for $ac_header" >&5
17219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 eval "$as_ac_Header=$ac_header_preproc"
17225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17230 cat >>confdefs.h
<<_ACEOF
17231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17236 for ac_header
in kerberosIV
/des.h
17238 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17240 echo "$as_me:$LINENO: checking for $ac_header" >&5
17241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17248 # Is the header compilable?
17249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17251 cat >conftest.
$ac_ext <<_ACEOF
17252 #line $LINENO "configure"
17255 cat confdefs.h
>>conftest.
$ac_ext
17256 cat >>conftest.
$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 $ac_includes_default
17259 #include <$ac_header>
17261 rm -f conftest.
$ac_objext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17263 (eval $ac_compile) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
17267 { ac_try
='test -s conftest.$ac_objext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_header_compiler
=yes
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.
$ac_ext >&5
17278 ac_header_compiler
=no
17280 rm -f conftest.
$ac_objext conftest.
$ac_ext
17281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17282 echo "${ECHO_T}$ac_header_compiler" >&6
17284 # Is the header present?
17285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17287 cat >conftest.
$ac_ext <<_ACEOF
17288 #line $LINENO "configure"
17291 cat confdefs.h
>>conftest.
$ac_ext
17292 cat >>conftest.
$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 #include <$ac_header>
17296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17297 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17299 grep -v '^ *+' conftest.er1
>conftest.err
17301 cat conftest.err
>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } >/dev
/null
; then
17304 if test -s conftest.err
; then
17305 ac_cpp_err
=$ac_c_preproc_warn_flag
17312 if test -z "$ac_cpp_err"; then
17313 ac_header_preproc
=yes
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.
$ac_ext >&5
17318 ac_header_preproc
=no
17320 rm -f conftest.err conftest.
$ac_ext
17321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17322 echo "${ECHO_T}$ac_header_preproc" >&6
17324 # So? What about this header?
17325 case $ac_header_compiler:$ac_header_preproc in
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17333 ## ------------------------------------ ##
17334 ## Report this to bug-autoconf@gnu.org. ##
17335 ## ------------------------------------ ##
17338 sed "s/^/$as_me: WARNING: /" >&2
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17349 ## ------------------------------------ ##
17350 ## Report this to bug-autoconf@gnu.org. ##
17351 ## ------------------------------------ ##
17354 sed "s/^/$as_me: WARNING: /" >&2
17357 echo "$as_me:$LINENO: checking for $ac_header" >&5
17358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 eval "$as_ac_Header=$ac_header_preproc"
17364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17369 cat >>confdefs.h
<<_ACEOF
17370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17375 for ac_header
in kerberos
/des.h
17377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17379 echo "$as_me:$LINENO: checking for $ac_header" >&5
17380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17387 # Is the header compilable?
17388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17390 cat >conftest.
$ac_ext <<_ACEOF
17391 #line $LINENO "configure"
17394 cat confdefs.h
>>conftest.
$ac_ext
17395 cat >>conftest.
$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 $ac_includes_default
17398 #include <$ac_header>
17400 rm -f conftest.
$ac_objext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17402 (eval $ac_compile) 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
17406 { ac_try
='test -s conftest.$ac_objext'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_header_compiler
=yes
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.
$ac_ext >&5
17417 ac_header_compiler
=no
17419 rm -f conftest.
$ac_objext conftest.
$ac_ext
17420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17421 echo "${ECHO_T}$ac_header_compiler" >&6
17423 # Is the header present?
17424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17426 cat >conftest.
$ac_ext <<_ACEOF
17427 #line $LINENO "configure"
17430 cat confdefs.h
>>conftest.
$ac_ext
17431 cat >>conftest.
$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <$ac_header>
17435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17436 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17438 grep -v '^ *+' conftest.er1
>conftest.err
17440 cat conftest.err
>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } >/dev
/null
; then
17443 if test -s conftest.err
; then
17444 ac_cpp_err
=$ac_c_preproc_warn_flag
17451 if test -z "$ac_cpp_err"; then
17452 ac_header_preproc
=yes
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.
$ac_ext >&5
17457 ac_header_preproc
=no
17459 rm -f conftest.err conftest.
$ac_ext
17460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17461 echo "${ECHO_T}$ac_header_preproc" >&6
17463 # So? What about this header?
17464 case $ac_header_compiler:$ac_header_preproc in
17466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17472 ## ------------------------------------ ##
17473 ## Report this to bug-autoconf@gnu.org. ##
17474 ## ------------------------------------ ##
17477 sed "s/^/$as_me: WARNING: /" >&2
17480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17488 ## ------------------------------------ ##
17489 ## Report this to bug-autoconf@gnu.org. ##
17490 ## ------------------------------------ ##
17493 sed "s/^/$as_me: WARNING: /" >&2
17496 echo "$as_me:$LINENO: checking for $ac_header" >&5
17497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 eval "$as_ac_Header=$ac_header_preproc"
17503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17508 cat >>confdefs.h
<<_ACEOF
17509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17525 for ac_header
in krb.h
17527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17529 echo "$as_me:$LINENO: checking for $ac_header" >&5
17530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17537 # Is the header compilable?
17538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17540 cat >conftest.
$ac_ext <<_ACEOF
17541 #line $LINENO "configure"
17544 cat confdefs.h
>>conftest.
$ac_ext
17545 cat >>conftest.
$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 $ac_includes_default
17548 #include <$ac_header>
17550 rm -f conftest.
$ac_objext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17552 (eval $ac_compile) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try
='test -s conftest.$ac_objext'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562 ac_header_compiler
=yes
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.
$ac_ext >&5
17567 ac_header_compiler
=no
17569 rm -f conftest.
$ac_objext conftest.
$ac_ext
17570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17571 echo "${ECHO_T}$ac_header_compiler" >&6
17573 # Is the header present?
17574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17576 cat >conftest.
$ac_ext <<_ACEOF
17577 #line $LINENO "configure"
17580 cat confdefs.h
>>conftest.
$ac_ext
17581 cat >>conftest.
$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17583 #include <$ac_header>
17585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17586 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17588 grep -v '^ *+' conftest.er1
>conftest.err
17590 cat conftest.err
>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } >/dev
/null
; then
17593 if test -s conftest.err
; then
17594 ac_cpp_err
=$ac_c_preproc_warn_flag
17601 if test -z "$ac_cpp_err"; then
17602 ac_header_preproc
=yes
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.
$ac_ext >&5
17607 ac_header_preproc
=no
17609 rm -f conftest.err conftest.
$ac_ext
17610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17611 echo "${ECHO_T}$ac_header_preproc" >&6
17613 # So? What about this header?
17614 case $ac_header_compiler:$ac_header_preproc in
17616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17622 ## ------------------------------------ ##
17623 ## Report this to bug-autoconf@gnu.org. ##
17624 ## ------------------------------------ ##
17627 sed "s/^/$as_me: WARNING: /" >&2
17630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17638 ## ------------------------------------ ##
17639 ## Report this to bug-autoconf@gnu.org. ##
17640 ## ------------------------------------ ##
17643 sed "s/^/$as_me: WARNING: /" >&2
17646 echo "$as_me:$LINENO: checking for $ac_header" >&5
17647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 eval "$as_ac_Header=$ac_header_preproc"
17653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17658 cat >>confdefs.h
<<_ACEOF
17659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17664 for ac_header
in kerberosIV
/krb.h
17666 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17668 echo "$as_me:$LINENO: checking for $ac_header" >&5
17669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17676 # Is the header compilable?
17677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17679 cat >conftest.
$ac_ext <<_ACEOF
17680 #line $LINENO "configure"
17683 cat confdefs.h
>>conftest.
$ac_ext
17684 cat >>conftest.
$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 $ac_includes_default
17687 #include <$ac_header>
17689 rm -f conftest.
$ac_objext
17690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17691 (eval $ac_compile) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try
='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 ac_header_compiler
=yes
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.
$ac_ext >&5
17706 ac_header_compiler
=no
17708 rm -f conftest.
$ac_objext conftest.
$ac_ext
17709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17710 echo "${ECHO_T}$ac_header_compiler" >&6
17712 # Is the header present?
17713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17715 cat >conftest.
$ac_ext <<_ACEOF
17716 #line $LINENO "configure"
17719 cat confdefs.h
>>conftest.
$ac_ext
17720 cat >>conftest.
$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17722 #include <$ac_header>
17724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17725 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17727 grep -v '^ *+' conftest.er1
>conftest.err
17729 cat conftest.err
>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } >/dev
/null
; then
17732 if test -s conftest.err
; then
17733 ac_cpp_err
=$ac_c_preproc_warn_flag
17740 if test -z "$ac_cpp_err"; then
17741 ac_header_preproc
=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.
$ac_ext >&5
17746 ac_header_preproc
=no
17748 rm -f conftest.err conftest.
$ac_ext
17749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17750 echo "${ECHO_T}$ac_header_preproc" >&6
17752 # So? What about this header?
17753 case $ac_header_compiler:$ac_header_preproc in
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17761 ## ------------------------------------ ##
17762 ## Report this to bug-autoconf@gnu.org. ##
17763 ## ------------------------------------ ##
17766 sed "s/^/$as_me: WARNING: /" >&2
17769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17777 ## ------------------------------------ ##
17778 ## Report this to bug-autoconf@gnu.org. ##
17779 ## ------------------------------------ ##
17782 sed "s/^/$as_me: WARNING: /" >&2
17785 echo "$as_me:$LINENO: checking for $ac_header" >&5
17786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 eval "$as_ac_Header=$ac_header_preproc"
17792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17797 cat >>confdefs.h
<<_ACEOF
17798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17803 for ac_header
in kerberos
/krb.h
17805 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17807 echo "$as_me:$LINENO: checking for $ac_header" >&5
17808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17815 # Is the header compilable?
17816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17818 cat >conftest.
$ac_ext <<_ACEOF
17819 #line $LINENO "configure"
17822 cat confdefs.h
>>conftest.
$ac_ext
17823 cat >>conftest.
$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 $ac_includes_default
17826 #include <$ac_header>
17828 rm -f conftest.
$ac_objext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17830 (eval $ac_compile) 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try
='test -s conftest.$ac_objext'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_header_compiler
=yes
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.
$ac_ext >&5
17845 ac_header_compiler
=no
17847 rm -f conftest.
$ac_objext conftest.
$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17849 echo "${ECHO_T}$ac_header_compiler" >&6
17851 # Is the header present?
17852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17854 cat >conftest.
$ac_ext <<_ACEOF
17855 #line $LINENO "configure"
17858 cat confdefs.h
>>conftest.
$ac_ext
17859 cat >>conftest.
$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17861 #include <$ac_header>
17863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17864 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17866 grep -v '^ *+' conftest.er1
>conftest.err
17868 cat conftest.err
>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } >/dev
/null
; then
17871 if test -s conftest.err
; then
17872 ac_cpp_err
=$ac_c_preproc_warn_flag
17879 if test -z "$ac_cpp_err"; then
17880 ac_header_preproc
=yes
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.
$ac_ext >&5
17885 ac_header_preproc
=no
17887 rm -f conftest.err conftest.
$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17889 echo "${ECHO_T}$ac_header_preproc" >&6
17891 # So? What about this header?
17892 case $ac_header_compiler:$ac_header_preproc in
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17900 ## ------------------------------------ ##
17901 ## Report this to bug-autoconf@gnu.org. ##
17902 ## ------------------------------------ ##
17905 sed "s/^/$as_me: WARNING: /" >&2
17908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17916 ## ------------------------------------ ##
17917 ## Report this to bug-autoconf@gnu.org. ##
17918 ## ------------------------------------ ##
17921 sed "s/^/$as_me: WARNING: /" >&2
17924 echo "$as_me:$LINENO: checking for $ac_header" >&5
17925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 eval "$as_ac_Header=$ac_header_preproc"
17931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17936 cat >>confdefs.h
<<_ACEOF
17937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17954 for ac_header
in com_err.h
17956 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17958 echo "$as_me:$LINENO: checking for $ac_header" >&5
17959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17966 # Is the header compilable?
17967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17969 cat >conftest.
$ac_ext <<_ACEOF
17970 #line $LINENO "configure"
17973 cat confdefs.h
>>conftest.
$ac_ext
17974 cat >>conftest.
$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 $ac_includes_default
17977 #include <$ac_header>
17979 rm -f conftest.
$ac_objext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17981 (eval $ac_compile) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try
='test -s conftest.$ac_objext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 ac_header_compiler
=yes
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.
$ac_ext >&5
17996 ac_header_compiler
=no
17998 rm -f conftest.
$ac_objext conftest.
$ac_ext
17999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18000 echo "${ECHO_T}$ac_header_compiler" >&6
18002 # Is the header present?
18003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18005 cat >conftest.
$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18009 cat confdefs.h
>>conftest.
$ac_ext
18010 cat >>conftest.
$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 #include <$ac_header>
18014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18017 grep -v '^ *+' conftest.er1
>conftest.err
18019 cat conftest.err
>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } >/dev
/null
; then
18022 if test -s conftest.err
; then
18023 ac_cpp_err
=$ac_c_preproc_warn_flag
18030 if test -z "$ac_cpp_err"; then
18031 ac_header_preproc
=yes
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.
$ac_ext >&5
18036 ac_header_preproc
=no
18038 rm -f conftest.err conftest.
$ac_ext
18039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18040 echo "${ECHO_T}$ac_header_preproc" >&6
18042 # So? What about this header?
18043 case $ac_header_compiler:$ac_header_preproc in
18045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18051 ## ------------------------------------ ##
18052 ## Report this to bug-autoconf@gnu.org. ##
18053 ## ------------------------------------ ##
18056 sed "s/^/$as_me: WARNING: /" >&2
18059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18067 ## ------------------------------------ ##
18068 ## Report this to bug-autoconf@gnu.org. ##
18069 ## ------------------------------------ ##
18072 sed "s/^/$as_me: WARNING: /" >&2
18075 echo "$as_me:$LINENO: checking for $ac_header" >&5
18076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 eval "$as_ac_Header=$ac_header_preproc"
18082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18087 cat >>confdefs.h
<<_ACEOF
18088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18097 # Solaris requires -lintl if you want strerror (which calls dgettext)
18098 # to return localized messages.
18100 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18101 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18102 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 ac_check_lib_save_LIBS
=$LIBS
18106 LIBS
="-lintl $LIBS"
18107 cat >conftest.
$ac_ext <<_ACEOF
18108 #line $LINENO "configure"
18111 cat confdefs.h
>>conftest.
$ac_ext
18112 cat >>conftest.
$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18115 /* Override any gcc2 internal prototype to avoid an error. */
18119 /* We use char because int might match the return type of a gcc2
18120 builtin and then its argument prototype would still apply. */
18130 rm -f conftest.
$ac_objext conftest
$ac_exeext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18132 (eval $ac_link) 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try
='test -s conftest$ac_exeext'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; }; then
18142 ac_cv_lib_intl_dgettext
=yes
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.
$ac_ext >&5
18147 ac_cv_lib_intl_dgettext
=no
18149 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18150 LIBS
=$ac_check_lib_save_LIBS
18152 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
18153 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
18154 if test $ac_cv_lib_intl_dgettext = yes; then
18155 cat >>confdefs.h
<<_ACEOF
18156 #define HAVE_LIBINTL 1
18159 LIBS
="-lintl $LIBS"
18164 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
18165 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
18166 if test "${emacs_cv_localtime_cache+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 if test x
$ac_cv_func_tzset = xyes
; then
18170 if test "$cross_compiling" = yes; then
18171 # If we have tzset, assume the worst when cross-compiling.
18172 emacs_cv_localtime_cache
=yes
18174 cat >conftest.
$ac_ext <<_ACEOF
18175 #line $LINENO "configure"
18178 cat confdefs.h
>>conftest.
$ac_ext
18179 cat >>conftest.
$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18182 extern char **environ;
18186 for (to = from = environ; (*to = *from); from++)
18187 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
18190 char TZ_GMT0[] = "TZ=GMT0";
18191 char TZ_PST8[] = "TZ=PST8";
18194 time_t now = time ((time_t *) 0);
18195 int hour_GMT0, hour_unset;
18196 if (putenv (TZ_GMT0) != 0)
18198 hour_GMT0 = localtime (&now)->tm_hour;
18200 hour_unset = localtime (&now)->tm_hour;
18201 if (putenv (TZ_PST8) != 0)
18203 if (localtime (&now)->tm_hour == hour_GMT0)
18206 if (localtime (&now)->tm_hour != hour_unset)
18211 rm -f conftest
$ac_exeext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18213 (eval $ac_link) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 emacs_cv_localtime_cache
=no
18224 echo "$as_me: program exited with status $ac_status" >&5
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.
$ac_ext >&5
18228 ( exit $ac_status )
18229 emacs_cv_localtime_cache
=yes
18231 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18234 # If we lack tzset, report that localtime does not cache TZ,
18235 # since we can't invalidate the cache if we don't have tzset.
18236 emacs_cv_localtime_cache
=no
18239 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
18240 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
18241 if test $emacs_cv_localtime_cache = yes; then
18243 cat >>confdefs.h
<<\_ACEOF
18244 #define LOCALTIME_CACHE 1
18249 if test "x$HAVE_TIMEVAL" = xyes
; then
18251 for ac_func
in gettimeofday
18253 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18254 echo "$as_me:$LINENO: checking for $ac_func" >&5
18255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18256 if eval "test \"\${$as_ac_var+set}\" = set"; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 cat >conftest.
$ac_ext <<_ACEOF
18260 #line $LINENO "configure"
18263 cat confdefs.h
>>conftest.
$ac_ext
18264 cat >>conftest.
$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* System header to define __stub macros and hopefully few prototypes,
18267 which can conflict with char $ac_func (); below.
18268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18269 <limits.h> exists even on freestanding compilers. */
18271 # include <limits.h>
18273 # include <assert.h>
18275 /* Override any gcc2 internal prototype to avoid an error. */
18280 /* We use char because int might match the return type of a gcc2
18281 builtin and then its argument prototype would still apply. */
18283 /* The GNU C library defines this for functions which it implements
18284 to always fail with ENOSYS. Some functions are actually named
18285 something starting with __ and the normal name is an alias. */
18286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18289 char (*f) () = $ac_func;
18298 return f != $ac_func;
18303 rm -f conftest.
$ac_objext conftest
$ac_exeext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try
='test -s conftest$ac_exeext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 eval "$as_ac_var=yes"
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.
$ac_ext >&5
18320 eval "$as_ac_var=no"
18322 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18326 if test `eval echo '${'$as_ac_var'}'` = yes; then
18327 cat >>confdefs.h
<<_ACEOF
18328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18334 if test $ac_cv_func_gettimeofday = yes; then
18335 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
18336 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
18337 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 cat >conftest.
$ac_ext <<_ACEOF
18341 #line $LINENO "configure"
18344 cat confdefs.h
>>conftest.
$ac_ext
18345 cat >>conftest.
$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18348 #ifdef TIME_WITH_SYS_TIME
18349 #include <sys/time.h>
18352 #ifdef HAVE_SYS_TIME_H
18353 #include <sys/time.h>
18361 struct timeval time;
18362 gettimeofday (&time, 0);
18367 rm -f conftest.
$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } &&
18373 { ac_try
='test -s conftest.$ac_objext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 emacs_cv_gettimeofday_two_arguments
=yes
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.
$ac_ext >&5
18384 emacs_cv_gettimeofday_two_arguments
=no
18386 rm -f conftest.
$ac_objext conftest.
$ac_ext
18388 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
18389 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
18390 if test $emacs_cv_gettimeofday_two_arguments = no
; then
18392 cat >>confdefs.h
<<\_ACEOF
18393 #define GETTIMEOFDAY_ONE_ARGUMENT 1
18400 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18401 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18402 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
18403 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 cat >conftest.
$ac_ext <<_ACEOF
18407 #line $LINENO "configure"
18410 cat confdefs.h
>>conftest.
$ac_ext
18411 cat >>conftest.
$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <sys/types.h>
18414 #include <$ac_cv_struct_tm>
18420 static struct tm ac_aggr;
18421 if (ac_aggr.tm_zone)
18427 rm -f conftest.
$ac_objext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18429 (eval $ac_compile) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
18433 { ac_try
='test -s conftest.$ac_objext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_member_struct_tm_tm_zone
=yes
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.
$ac_ext >&5
18444 cat >conftest.
$ac_ext <<_ACEOF
18445 #line $LINENO "configure"
18448 cat confdefs.h
>>conftest.
$ac_ext
18449 cat >>conftest.
$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 #include <sys/types.h>
18452 #include <$ac_cv_struct_tm>
18458 static struct tm ac_aggr;
18459 if (sizeof ac_aggr.tm_zone)
18465 rm -f conftest.
$ac_objext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18467 (eval $ac_compile) 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try
='test -s conftest.$ac_objext'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_member_struct_tm_tm_zone
=yes
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.
$ac_ext >&5
18482 ac_cv_member_struct_tm_tm_zone
=no
18484 rm -f conftest.
$ac_objext conftest.
$ac_ext
18486 rm -f conftest.
$ac_objext conftest.
$ac_ext
18488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
18490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18492 cat >>confdefs.h
<<_ACEOF
18493 #define HAVE_STRUCT_TM_TM_ZONE 1
18499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18501 cat >>confdefs.h
<<\_ACEOF
18502 #define HAVE_TM_ZONE 1
18506 echo "$as_me:$LINENO: checking for tzname" >&5
18507 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18508 if test "${ac_cv_var_tzname+set}" = set; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 cat >conftest.
$ac_ext <<_ACEOF
18512 #line $LINENO "configure"
18515 cat confdefs.h
>>conftest.
$ac_ext
18516 cat >>conftest.
$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18519 #ifndef tzname /* For SGI. */
18520 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
18531 rm -f conftest.
$ac_objext conftest
$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533 (eval $ac_link) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try
='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_var_tzname
=yes
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.
$ac_ext >&5
18548 ac_cv_var_tzname
=no
18550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18552 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18553 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18554 if test $ac_cv_var_tzname = yes; then
18556 cat >>confdefs.h
<<\_ACEOF
18557 #define HAVE_TZNAME 1
18564 if test "$ac_cv_func_gettimeofday" = yes; then
18565 echo "$as_me:$LINENO: checking for struct timezone" >&5
18566 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
18567 if test "${emacs_cv_struct_timezone+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 cat >conftest.
$ac_ext <<_ACEOF
18571 #line $LINENO "configure"
18574 cat confdefs.h
>>conftest.
$ac_ext
18575 cat >>conftest.
$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18577 #include <sys/time.h>
18581 struct timezone tz;
18586 rm -f conftest.
$ac_objext
18587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try
='test -s conftest.$ac_objext'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; }; then
18598 if test "$cross_compiling" = yes; then
18599 emacs_cv_struct_timezone
=yes
18601 cat >conftest.
$ac_ext <<_ACEOF
18602 #line $LINENO "configure"
18605 cat confdefs.h
>>conftest.
$ac_ext
18606 cat >>conftest.
$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18609 #ifdef TIME_WITH_SYS_TIME
18610 #include <sys/time.h>
18613 #ifdef HAVE_SYS_TIME_H
18614 #include <sys/time.h>
18620 struct timeval time;
18621 struct timezone dummy;
18622 exit (gettimeofday (&time, &dummy));
18625 rm -f conftest
$ac_exeext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18627 (eval $ac_link) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 emacs_cv_struct_timezone
=yes
18638 echo "$as_me: program exited with status $ac_status" >&5
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.
$ac_ext >&5
18642 ( exit $ac_status )
18643 emacs_cv_struct_timezone
=no
18645 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.
$ac_ext >&5
18651 emacs_cv_struct_timezone
=no
18653 rm -f conftest.
$ac_objext conftest.
$ac_ext
18655 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
18656 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
18660 echo "$as_me:$LINENO: checking for socket" >&5
18661 echo $ECHO_N "checking for socket... $ECHO_C" >&6
18662 if test "${ac_cv_func_socket+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 cat >conftest.
$ac_ext <<_ACEOF
18666 #line $LINENO "configure"
18669 cat confdefs.h
>>conftest.
$ac_ext
18670 cat >>conftest.
$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char socket (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18677 # include <limits.h>
18679 # include <assert.h>
18681 /* Override any gcc2 internal prototype to avoid an error. */
18686 /* We use char because int might match the return type of a gcc2
18687 builtin and then its argument prototype would still apply. */
18689 /* The GNU C library defines this for functions which it implements
18690 to always fail with ENOSYS. Some functions are actually named
18691 something starting with __ and the normal name is an alias. */
18692 #if defined (__stub_socket) || defined (__stub___socket)
18695 char (*f) () = socket;
18704 return f != socket;
18709 rm -f conftest.
$ac_objext conftest
$ac_exeext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18711 (eval $ac_link) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try
='test -s conftest$ac_exeext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_func_socket
=yes
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.
$ac_ext >&5
18726 ac_cv_func_socket
=no
18728 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18730 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18731 echo "${ECHO_T}$ac_cv_func_socket" >&6
18732 if test $ac_cv_func_socket = yes; then
18738 if test $ok_so_far = yes; then
18739 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18740 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
18741 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
18742 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
18746 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
18748 # Is the header compilable?
18749 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
18750 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
18751 cat >conftest.
$ac_ext <<_ACEOF
18752 #line $LINENO "configure"
18755 cat confdefs.h
>>conftest.
$ac_ext
18756 cat >>conftest.
$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 $ac_includes_default
18759 #include <netinet/in.h>
18761 rm -f conftest.
$ac_objext
18762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18763 (eval $ac_compile) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
18767 { ac_try
='test -s conftest.$ac_objext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_header_compiler
=yes
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.
$ac_ext >&5
18778 ac_header_compiler
=no
18780 rm -f conftest.
$ac_objext conftest.
$ac_ext
18781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18782 echo "${ECHO_T}$ac_header_compiler" >&6
18784 # Is the header present?
18785 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
18786 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
18787 cat >conftest.
$ac_ext <<_ACEOF
18788 #line $LINENO "configure"
18791 cat confdefs.h
>>conftest.
$ac_ext
18792 cat >>conftest.
$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 #include <netinet/in.h>
18796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18799 grep -v '^ *+' conftest.er1
>conftest.err
18801 cat conftest.err
>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } >/dev
/null
; then
18804 if test -s conftest.err
; then
18805 ac_cpp_err
=$ac_c_preproc_warn_flag
18812 if test -z "$ac_cpp_err"; then
18813 ac_header_preproc
=yes
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.
$ac_ext >&5
18818 ac_header_preproc
=no
18820 rm -f conftest.err conftest.
$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18822 echo "${ECHO_T}$ac_header_preproc" >&6
18824 # So? What about this header?
18825 case $ac_header_compiler:$ac_header_preproc in
18827 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
18828 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
18830 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
18833 ## ------------------------------------ ##
18834 ## Report this to bug-autoconf@gnu.org. ##
18835 ## ------------------------------------ ##
18838 sed "s/^/$as_me: WARNING: /" >&2
18841 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
18842 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
18843 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
18844 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
18845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
18846 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
18849 ## ------------------------------------ ##
18850 ## Report this to bug-autoconf@gnu.org. ##
18851 ## ------------------------------------ ##
18854 sed "s/^/$as_me: WARNING: /" >&2
18857 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
18858 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
18859 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 ac_cv_header_netinet_in_h
=$ac_header_preproc
18864 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
18865 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
18868 if test $ac_cv_header_netinet_in_h = yes; then
18876 if test $ok_so_far = yes; then
18877 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18878 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18879 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
18880 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
18884 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
18886 # Is the header compilable?
18887 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
18888 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
18889 cat >conftest.
$ac_ext <<_ACEOF
18890 #line $LINENO "configure"
18893 cat confdefs.h
>>conftest.
$ac_ext
18894 cat >>conftest.
$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 $ac_includes_default
18897 #include <arpa/inet.h>
18899 rm -f conftest.
$ac_objext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try
='test -s conftest.$ac_objext'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 ac_header_compiler
=yes
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.
$ac_ext >&5
18916 ac_header_compiler
=no
18918 rm -f conftest.
$ac_objext conftest.
$ac_ext
18919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18920 echo "${ECHO_T}$ac_header_compiler" >&6
18922 # Is the header present?
18923 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
18924 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
18925 cat >conftest.
$ac_ext <<_ACEOF
18926 #line $LINENO "configure"
18929 cat confdefs.h
>>conftest.
$ac_ext
18930 cat >>conftest.
$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include <arpa/inet.h>
18934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18935 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18937 grep -v '^ *+' conftest.er1
>conftest.err
18939 cat conftest.err
>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } >/dev
/null
; then
18942 if test -s conftest.err
; then
18943 ac_cpp_err
=$ac_c_preproc_warn_flag
18950 if test -z "$ac_cpp_err"; then
18951 ac_header_preproc
=yes
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.
$ac_ext >&5
18956 ac_header_preproc
=no
18958 rm -f conftest.err conftest.
$ac_ext
18959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18960 echo "${ECHO_T}$ac_header_preproc" >&6
18962 # So? What about this header?
18963 case $ac_header_compiler:$ac_header_preproc in
18965 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
18966 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18967 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
18968 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
18971 ## ------------------------------------ ##
18972 ## Report this to bug-autoconf@gnu.org. ##
18973 ## ------------------------------------ ##
18976 sed "s/^/$as_me: WARNING: /" >&2
18979 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
18980 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
18982 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
18984 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
18987 ## ------------------------------------ ##
18988 ## Report this to bug-autoconf@gnu.org. ##
18989 ## ------------------------------------ ##
18992 sed "s/^/$as_me: WARNING: /" >&2
18995 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18996 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
18997 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 ac_cv_header_arpa_inet_h
=$ac_header_preproc
19002 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19003 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19006 if test $ac_cv_header_arpa_inet_h = yes; then
19014 if test $ok_so_far = yes; then
19016 cat >>confdefs.h
<<\_ACEOF
19017 #define HAVE_INET_SOCKETS 1
19023 for ac_header
in sys
/ioctl.h
19025 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19027 echo "$as_me:$LINENO: checking for $ac_header" >&5
19028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19035 # Is the header compilable?
19036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19038 cat >conftest.
$ac_ext <<_ACEOF
19039 #line $LINENO "configure"
19042 cat confdefs.h
>>conftest.
$ac_ext
19043 cat >>conftest.
$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 $ac_includes_default
19046 #include <$ac_header>
19048 rm -f conftest.
$ac_objext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19050 (eval $ac_compile) 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try
='test -s conftest.$ac_objext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_header_compiler
=yes
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.
$ac_ext >&5
19065 ac_header_compiler
=no
19067 rm -f conftest.
$ac_objext conftest.
$ac_ext
19068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19069 echo "${ECHO_T}$ac_header_compiler" >&6
19071 # Is the header present?
19072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19074 cat >conftest.
$ac_ext <<_ACEOF
19075 #line $LINENO "configure"
19078 cat confdefs.h
>>conftest.
$ac_ext
19079 cat >>conftest.
$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 #include <$ac_header>
19083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19084 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19086 grep -v '^ *+' conftest.er1
>conftest.err
19088 cat conftest.err
>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } >/dev
/null
; then
19091 if test -s conftest.err
; then
19092 ac_cpp_err
=$ac_c_preproc_warn_flag
19099 if test -z "$ac_cpp_err"; then
19100 ac_header_preproc
=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.
$ac_ext >&5
19105 ac_header_preproc
=no
19107 rm -f conftest.err conftest.
$ac_ext
19108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19109 echo "${ECHO_T}$ac_header_preproc" >&6
19111 # So? What about this header?
19112 case $ac_header_compiler:$ac_header_preproc in
19114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19120 ## ------------------------------------ ##
19121 ## Report this to bug-autoconf@gnu.org. ##
19122 ## ------------------------------------ ##
19125 sed "s/^/$as_me: WARNING: /" >&2
19128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19136 ## ------------------------------------ ##
19137 ## Report this to bug-autoconf@gnu.org. ##
19138 ## ------------------------------------ ##
19141 sed "s/^/$as_me: WARNING: /" >&2
19144 echo "$as_me:$LINENO: checking for $ac_header" >&5
19145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 eval "$as_ac_Header=$ac_header_preproc"
19151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19156 cat >>confdefs.h
<<_ACEOF
19157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19165 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
19167 cat >>confdefs.h
<<\_ACEOF
19168 #define HAVE_AIX_SMT_EXP 1
19173 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
19174 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
19175 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
19176 echo "$as_me:$LINENO: result: yes" >&5
19177 echo "${ECHO_T}yes" >&6
19179 cat >>confdefs.h
<<\_ACEOF
19180 #define HAVE_DEV_PTMX 1
19184 echo "$as_me:$LINENO: result: no" >&5
19185 echo "${ECHO_T}no" >&6
19188 echo "$as_me:$LINENO: checking for pid_t" >&5
19189 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19190 if test "${ac_cv_type_pid_t+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 cat >conftest.
$ac_ext <<_ACEOF
19194 #line $LINENO "configure"
19197 cat confdefs.h
>>conftest.
$ac_ext
19198 cat >>conftest.
$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 $ac_includes_default
19206 if (sizeof (pid_t))
19212 rm -f conftest.
$ac_objext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19214 (eval $ac_compile) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try
='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_type_pid_t
=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.
$ac_ext >&5
19229 ac_cv_type_pid_t
=no
19231 rm -f conftest.
$ac_objext conftest.
$ac_ext
19233 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19234 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19235 if test $ac_cv_type_pid_t = yes; then
19239 cat >>confdefs.h
<<_ACEOF
19247 for ac_header
in unistd.h vfork.h
19249 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19251 echo "$as_me:$LINENO: checking for $ac_header" >&5
19252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19259 # Is the header compilable?
19260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19262 cat >conftest.
$ac_ext <<_ACEOF
19263 #line $LINENO "configure"
19266 cat confdefs.h
>>conftest.
$ac_ext
19267 cat >>conftest.
$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 $ac_includes_default
19270 #include <$ac_header>
19272 rm -f conftest.
$ac_objext
19273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19274 (eval $ac_compile) 2>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try
='test -s conftest.$ac_objext'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 ac_header_compiler
=yes
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.
$ac_ext >&5
19289 ac_header_compiler
=no
19291 rm -f conftest.
$ac_objext conftest.
$ac_ext
19292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19293 echo "${ECHO_T}$ac_header_compiler" >&6
19295 # Is the header present?
19296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19298 cat >conftest.
$ac_ext <<_ACEOF
19299 #line $LINENO "configure"
19302 cat confdefs.h
>>conftest.
$ac_ext
19303 cat >>conftest.
$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 #include <$ac_header>
19307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19308 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19310 grep -v '^ *+' conftest.er1
>conftest.err
19312 cat conftest.err
>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } >/dev
/null
; then
19315 if test -s conftest.err
; then
19316 ac_cpp_err
=$ac_c_preproc_warn_flag
19323 if test -z "$ac_cpp_err"; then
19324 ac_header_preproc
=yes
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.
$ac_ext >&5
19329 ac_header_preproc
=no
19331 rm -f conftest.err conftest.
$ac_ext
19332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19333 echo "${ECHO_T}$ac_header_preproc" >&6
19335 # So? What about this header?
19336 case $ac_header_compiler:$ac_header_preproc in
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19344 ## ------------------------------------ ##
19345 ## Report this to bug-autoconf@gnu.org. ##
19346 ## ------------------------------------ ##
19349 sed "s/^/$as_me: WARNING: /" >&2
19352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19360 ## ------------------------------------ ##
19361 ## Report this to bug-autoconf@gnu.org. ##
19362 ## ------------------------------------ ##
19365 sed "s/^/$as_me: WARNING: /" >&2
19368 echo "$as_me:$LINENO: checking for $ac_header" >&5
19369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 eval "$as_ac_Header=$ac_header_preproc"
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19380 cat >>confdefs.h
<<_ACEOF
19381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19390 for ac_func
in fork vfork
19392 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19393 echo "$as_me:$LINENO: checking for $ac_func" >&5
19394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19395 if eval "test \"\${$as_ac_var+set}\" = set"; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 cat >conftest.
$ac_ext <<_ACEOF
19399 #line $LINENO "configure"
19402 cat confdefs.h
>>conftest.
$ac_ext
19403 cat >>conftest.
$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char $ac_func (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19410 # include <limits.h>
19412 # include <assert.h>
19414 /* Override any gcc2 internal prototype to avoid an error. */
19419 /* We use char because int might match the return type of a gcc2
19420 builtin and then its argument prototype would still apply. */
19422 /* The GNU C library defines this for functions which it implements
19423 to always fail with ENOSYS. Some functions are actually named
19424 something starting with __ and the normal name is an alias. */
19425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19428 char (*f) () = $ac_func;
19437 return f != $ac_func;
19442 rm -f conftest.
$ac_objext conftest
$ac_exeext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19444 (eval $ac_link) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try
='test -s conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 eval "$as_ac_var=yes"
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.
$ac_ext >&5
19459 eval "$as_ac_var=no"
19461 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19465 if test `eval echo '${'$as_ac_var'}'` = yes; then
19466 cat >>confdefs.h
<<_ACEOF
19467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19473 if test "x$ac_cv_func_fork" = xyes
; then
19474 echo "$as_me:$LINENO: checking for working fork" >&5
19475 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19476 if test "${ac_cv_func_fork_works+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 if test "$cross_compiling" = yes; then
19480 ac_cv_func_fork_works
=cross
19482 cat >conftest.
$ac_ext <<_ACEOF
19483 /* By Ruediger Kuhlmann. */
19484 #include <sys/types.h>
19486 # include <unistd.h>
19488 /* Some systems only have a dummy stub for fork() */
19496 rm -f conftest
$ac_exeext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19498 (eval $ac_link) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507 ac_cv_func_fork_works
=yes
19509 echo "$as_me: program exited with status $ac_status" >&5
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.
$ac_ext >&5
19513 ( exit $ac_status )
19514 ac_cv_func_fork_works
=no
19516 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19519 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19520 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19523 ac_cv_func_fork_works
=$ac_cv_func_fork
19525 if test "x$ac_cv_func_fork_works" = xcross
; then
19527 *-*-amigaos* |
*-*-msdosdjgpp*)
19528 # Override, as these systems have only a dummy fork() stub
19529 ac_cv_func_fork_works
=no
19532 ac_cv_func_fork_works
=yes
19535 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19536 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19538 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19539 if test "x$ac_cv_func_vfork" = xyes
; then
19540 echo "$as_me:$LINENO: checking for working vfork" >&5
19541 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19542 if test "${ac_cv_func_vfork_works+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 if test "$cross_compiling" = yes; then
19546 ac_cv_func_vfork_works
=cross
19548 cat >conftest.
$ac_ext <<_ACEOF
19549 #line $LINENO "configure"
19552 cat confdefs.h
>>conftest.
$ac_ext
19553 cat >>conftest.
$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 /* Thanks to Paul Eggert for this test. */
19557 #include <stdlib.h>
19558 #include <sys/types.h>
19559 #include <sys/stat.h>
19560 #include <sys/wait.h>
19562 # include <unistd.h>
19565 # include <vfork.h>
19567 /* On some sparc systems, changes by the child to local and incoming
19568 argument registers are propagated back to the parent. The compiler
19569 is told about this with #include <vfork.h>, but some compilers
19570 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19571 static variable whose address is put into a register that is
19572 clobbered by the vfork. */
19575 sparc_address_test (int arg)
19577 sparc_address_test (arg) int arg;
19580 static pid_t child;
19598 pid_t parent = getpid ();
19601 sparc_address_test (0);
19606 /* Here is another test for sparc vfork register problems. This
19607 test uses lots of local variables, at least as many local
19608 variables as main has allocated so far including compiler
19609 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19610 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19611 reuse the register of parent for one of the local variables,
19612 since it will think that parent can't possibly be used any more
19613 in this routine. Assigning to the local variable will thus
19614 munge parent in the parent process. */
19616 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19617 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19618 /* Convince the compiler that p..p7 are live; otherwise, it might
19619 use the same hardware register for all 8 local variables. */
19620 if (p != p1 || p != p2 || p != p3 || p != p4
19621 || p != p5 || p != p6 || p != p7)
19624 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19625 from child file descriptors. If the child closes a descriptor
19626 before it execs or exits, this munges the parent's descriptor
19627 as well. Test for this by closing stdout in the child. */
19628 _exit(close(fileno(stdout)) != 0);
19633 while (wait(&status) != child)
19636 /* Was there some problem with vforking? */
19639 /* Did the child fail? (This shouldn't happen.) */
19642 /* Did the vfork/compiler bug occur? */
19643 || parent != getpid()
19645 /* Did the file descriptor bug occur? */
19646 || fstat(fileno(stdout), &st) != 0
19651 rm -f conftest
$ac_exeext
19652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19653 (eval $ac_link) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_func_vfork_works
=yes
19664 echo "$as_me: program exited with status $ac_status" >&5
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.
$ac_ext >&5
19668 ( exit $ac_status )
19669 ac_cv_func_vfork_works
=no
19671 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19674 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19675 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19678 if test "x$ac_cv_func_fork_works" = xcross
; then
19679 ac_cv_func_vfork_works
=ac_cv_func_vfork
19680 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19681 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19684 if test "x$ac_cv_func_vfork_works" = xyes
; then
19686 cat >>confdefs.h
<<\_ACEOF
19687 #define HAVE_WORKING_VFORK 1
19692 cat >>confdefs.h
<<\_ACEOF
19697 if test "x$ac_cv_func_fork_works" = xyes
; then
19699 cat >>confdefs.h
<<\_ACEOF
19700 #define HAVE_WORKING_FORK 1
19706 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
19707 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
19708 if test "${emacs_cv_langinfo_codeset+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 cat >conftest.
$ac_ext <<_ACEOF
19712 #line $LINENO "configure"
19715 cat confdefs.h
>>conftest.
$ac_ext
19716 cat >>conftest.
$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 #include <langinfo.h>
19722 char* cs = nl_langinfo(CODESET);
19727 rm -f conftest.
$ac_objext conftest
$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try
='test -s conftest$ac_exeext'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 emacs_cv_langinfo_codeset
=yes
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.
$ac_ext >&5
19744 emacs_cv_langinfo_codeset
=no
19746 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19749 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
19750 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
19751 if test $emacs_cv_langinfo_codeset = yes; then
19753 cat >>confdefs.h
<<\_ACEOF
19754 #define HAVE_LANGINFO_CODESET 1
19759 echo "$as_me:$LINENO: checking for size_t" >&5
19760 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19761 if test "${ac_cv_type_size_t+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 cat >conftest.
$ac_ext <<_ACEOF
19765 #line $LINENO "configure"
19768 cat confdefs.h
>>conftest.
$ac_ext
19769 cat >>conftest.
$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19771 $ac_includes_default
19777 if (sizeof (size_t))
19783 rm -f conftest.
$ac_objext
19784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19785 (eval $ac_compile) 2>&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
19789 { ac_try
='test -s conftest.$ac_objext'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 ac_cv_type_size_t
=yes
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.
$ac_ext >&5
19800 ac_cv_type_size_t
=no
19802 rm -f conftest.
$ac_objext conftest.
$ac_ext
19804 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19805 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19806 if test $ac_cv_type_size_t = yes; then
19808 cat >>confdefs.h
<<_ACEOF
19809 #define HAVE_SIZE_T 1
19816 echo "$as_me:$LINENO: checking for mbstate_t" >&5
19817 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
19818 if test "${ac_cv_type_mbstate_t+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 cat >conftest.
$ac_ext <<_ACEOF
19822 #line $LINENO "configure"
19825 cat confdefs.h
>>conftest.
$ac_ext
19826 cat >>conftest.
$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 $ac_includes_default
19829 # include <wchar.h>
19833 mbstate_t x; return sizeof x;
19838 rm -f conftest.
$ac_objext
19839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19840 (eval $ac_compile) 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try
='test -s conftest.$ac_objext'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; }; then
19850 ac_cv_type_mbstate_t
=yes
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.
$ac_ext >&5
19855 ac_cv_type_mbstate_t
=no
19857 rm -f conftest.
$ac_objext conftest.
$ac_ext
19859 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
19860 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
19861 if test $ac_cv_type_mbstate_t = yes; then
19863 cat >>confdefs.h
<<\_ACEOF
19864 #define HAVE_MBSTATE_T 1
19869 cat >>confdefs.h
<<\_ACEOF
19870 #define mbstate_t int
19875 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
19876 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
19877 if test "${emacs_cv_c_restrict+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 cat >conftest.
$ac_ext <<_ACEOF
19881 #line $LINENO "configure"
19884 cat confdefs.h
>>conftest.
$ac_ext
19885 cat >>conftest.
$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 void fred (int *restrict x);
19896 rm -f conftest.
$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898 (eval $ac_compile) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try
='test -s conftest.$ac_objext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 emacs_cv_c_restrict
=yes
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.
$ac_ext >&5
19913 cat >conftest.
$ac_ext <<_ACEOF
19914 #line $LINENO "configure"
19917 cat confdefs.h
>>conftest.
$ac_ext
19918 cat >>conftest.
$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 void fred (int *__restrict x);
19929 rm -f conftest.
$ac_objext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19931 (eval $ac_compile) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try
='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 emacs_cv_c_restrict
=__restrict
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.
$ac_ext >&5
19946 emacs_cv_c_restrict
=no
19948 rm -f conftest.
$ac_objext conftest.
$ac_ext
19950 rm -f conftest.
$ac_objext conftest.
$ac_ext
19952 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
19953 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
19954 case "$emacs_cv_c_restrict" in
19955 yes) emacs_restrict
=restrict
;;
19956 no
) emacs_restrict
="";;
19957 *) emacs_restrict
="$emacs_cv_c_restrict";;
19959 if test "$emacs_restrict" != __restrict
; then
19961 cat >>confdefs.h
<<_ACEOF
19962 #define __restrict $emacs_restrict
19967 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
19968 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
19969 if test "${emacs_cv_c_restrict_arr+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 cat >conftest.
$ac_ext <<_ACEOF
19973 #line $LINENO "configure"
19976 cat confdefs.h
>>conftest.
$ac_ext
19977 cat >>conftest.
$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979 void fred (int x[__restrict]);
19988 rm -f conftest.
$ac_objext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990 (eval $ac_compile) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try
='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 emacs_cv_c_restrict_arr
=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.
$ac_ext >&5
20005 emacs_cv_c_restrict_arr
=no
20007 rm -f conftest.
$ac_objext conftest.
$ac_ext
20009 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
20010 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
20011 if test "$emacs_cv_c_restrict_arr" = yes; then
20013 cat >>confdefs.h
<<\_ACEOF
20014 #define __restrict_arr __restrict
20021 # Set up the CFLAGS for real compilation, so we can substitute it.
20022 CFLAGS
="$REAL_CFLAGS"
20023 CPPFLAGS
="$REAL_CPPFLAGS"
20025 #### Find out which version of Emacs this is.
20026 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
20027 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
20028 if test x
"${version}" = x
; then
20029 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
20030 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
20031 { (exit 1); exit 1; }; }
20034 ### Specify what sort of things we'll be editing into Makefile and config.h.
20035 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20071 cat >>confdefs.h
<<_ACEOF
20072 #define EMACS_CONFIGURATION "${canonical}"
20076 cat >>confdefs.h
<<_ACEOF
20077 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20081 cat >>confdefs.h
<<_ACEOF
20082 #define config_machfile "${machfile}"
20086 cat >>confdefs.h
<<_ACEOF
20087 #define config_opsysfile "${opsysfile}"
20091 cat >>confdefs.h
<<_ACEOF
20092 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
20096 cat >>confdefs.h
<<_ACEOF
20097 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
20101 cat >>confdefs.h
<<_ACEOF
20102 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
20106 cat >>confdefs.h
<<_ACEOF
20107 #define UNEXEC_SRC ${UNEXEC_SRC}
20111 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20113 cat >>confdefs.h
<<\_ACEOF
20114 #define HAVE_X_WINDOWS 1
20118 if test "${USE_X_TOOLKIT}" != "none" ; then
20120 cat >>confdefs.h
<<\_ACEOF
20121 #define USE_X_TOOLKIT 1
20125 if test "${HAVE_X11}" = "yes" ; then
20127 cat >>confdefs.h
<<\_ACEOF
20132 if test "${HAVE_XFREE386}" = "yes" ; then
20134 cat >>confdefs.h
<<\_ACEOF
20135 #define HAVE_XFREE386 1
20139 if test "${HAVE_MENUS}" = "yes" ; then
20141 cat >>confdefs.h
<<\_ACEOF
20142 #define HAVE_MENUS 1
20146 if test "${GNU_MALLOC}" = "yes" ; then
20148 cat >>confdefs.h
<<\_ACEOF
20149 #define GNU_MALLOC 1
20153 if test "${REL_ALLOC}" = "yes" ; then
20155 cat >>confdefs.h
<<\_ACEOF
20156 #define REL_ALLOC 1
20165 #### Report on what we decided to do.
20166 #### Report GTK as a toolkit, even if it doesn't use Xt.
20167 #### It makes printing result more understandable as using GTK sets
20168 #### toolkit_scroll_bars to yes by default.
20169 if test "${HAVE_GTK}" = "yes"; then
20174 Configured for \`${canonical}'.
20176 Where should the build process find the source code? ${srcdir}
20177 What operating system and machine description files should Emacs use?
20178 \`${opsysfile}' and \`${machfile}'
20179 What compiler should emacs be built with? ${CC} ${CFLAGS}
20180 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20181 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20182 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20183 What window system should Emacs use? ${window_system}
20184 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20186 if test -n "${x_includes}"; then
20187 echo " Where do we find X Windows header files? ${x_includes}"
20189 echo " Where do we find X Windows header files? Standard dirs"
20191 if test -n "${x_libraries}"; then
20192 echo " Where do we find X Windows libraries? ${x_libraries}"
20194 echo " Where do we find X Windows libraries? Standard dirs"
20197 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20198 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20199 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20200 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20201 echo " Does Emacs use -lungif? ${HAVE_GIF}"
20202 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20203 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20206 if test $USE_XASSERTS = yes; then
20207 echo " Compiling with asserts turned on."
20208 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
20214 # Remove any trailing slashes in these variables.
20215 test "${prefix}" != NONE
&&
20216 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20217 test "${exec_prefix}" != NONE
&&
20218 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20220 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
20221 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
20222 ## from Makefile.c can correctly provide the arg `-traditional' to the
20225 cat >conftest.
$ac_ext <<_ACEOF
20226 #line $LINENO "configure"
20229 cat confdefs.h
>>conftest.
$ac_ext
20230 cat >>conftest.
$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20235 $EGREP "yes..yes" >/dev
/null
2>&1; then
20236 CPP_NEED_TRADITIONAL
=no
20238 CPP_NEED_TRADITIONAL
=yes
20243 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"
20244 ac_config_commands
="$ac_config_commands default"
20245 cat >confcache
<<\_ACEOF
20246 # This file is a shell script that caches the results of configure
20247 # tests run on this system so they can be shared between configure
20248 # scripts and configure runs, see configure's option --config-cache.
20249 # It is not useful on other systems. If it contains results you don't
20250 # want to keep, you may remove or edit it.
20252 # config.status only pays attention to the cache file if you give it
20253 # the --recheck option to rerun configure.
20255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20257 # following values.
20261 # The following way of writing the cache mishandles newlines in values,
20262 # but we know of no workaround that is simple, portable, and efficient.
20263 # So, don't put newlines in cache variables' values.
20264 # Ultrix sh set writes to stderr and can't be redirected directly,
20265 # and sets the high bit in the cache file unless we assign to the vars.
20268 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20270 # `set' does not quote correctly, so add quotes (double-quote
20271 # substitution turns \\\\ into \\, and sed turns \\ into \).
20274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20277 # `set' quotes correctly as required by POSIX, so do not add quotes.
20279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20288 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20290 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
20291 if test -w $cache_file; then
20292 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20293 cat confcache
>$cache_file
20295 echo "not updating unwritable cache $cache_file"
20300 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20301 # Let make expand exec_prefix.
20302 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20304 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20305 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20306 # trailing colons and then remove the whole line if VPATH becomes empty
20307 # (actually we leave an empty line to preserve line numbers).
20308 if test "x$srcdir" = x.
; then
20309 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
20310 s/:*\$(srcdir):*/:/;
20311 s/:*\${srcdir}:*/:/;
20313 s/^\([^=]*=[ ]*\):*/\1/;
20319 DEFS
=-DHAVE_CONFIG_H
20323 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20324 # 1. Remove the extension, and $U if already installed.
20325 ac_i
=`echo "$ac_i" |
20326 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20328 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
20329 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
20331 LIBOBJS
=$ac_libobjs
20333 LTLIBOBJS
=$ac_ltlibobjs
20337 : ${CONFIG_STATUS=./config.status}
20338 ac_clean_files_save
=$ac_clean_files
20339 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20340 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20341 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20342 cat >$CONFIG_STATUS <<_ACEOF
20344 # Generated by $as_me.
20345 # Run this file to recreate the current configuration.
20346 # Compiler output produced by configure, useful for debugging
20347 # configure, is in config.log if it exists.
20350 ac_cs_recheck=false
20352 SHELL=\${CONFIG_SHELL-$SHELL}
20355 cat >>$CONFIG_STATUS <<\_ACEOF
20356 ## --------------------- ##
20357 ## M4sh Initialization. ##
20358 ## --------------------- ##
20360 # Be Bourne compatible
20361 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20364 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20365 # is contrary to our usage. Disable this feature.
20366 alias -g '${1+"$@"}'='"$@"'
20367 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
20371 # Support unset when possible.
20372 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
20379 # Work around bugs in pre-3.0 UWIN ksh.
20380 $as_unset ENV MAIL MAILPATH
20387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20389 LC_TELEPHONE LC_TIME
20391 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
20392 eval $as_var=C
; export $as_var
20398 # Required to use basename.
20399 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20405 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
20406 as_basename
=basename
20412 # Name of the executable.
20413 as_me
=`$as_basename "$0" ||
20414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20415 X"$0" : 'X\(//\)$' \| \
20416 X"$0" : 'X\(/\)$' \| \
20417 . : '\(.\)' 2>/dev/null ||
20419 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20420 /^X\/\(\/\/\)$/{ s//\1/; q; }
20421 /^X\/\(\/\).*/{ s//\1/; q; }
20425 # PATH needs CR, and LINENO needs CR and PATH.
20426 # Avoid depending upon Character Ranges.
20427 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20428 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20429 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20430 as_cr_digits
='0123456789'
20431 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20433 # The user is always right.
20434 if test "${PATH_SEPARATOR+set}" != set; then
20435 echo "#! /bin/sh" >conf$$.sh
20436 echo "exit 0" >>conf$$.sh
20438 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20447 as_lineno_1
=$LINENO
20448 as_lineno_2
=$LINENO
20449 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
20450 test "x$as_lineno_1" != "x$as_lineno_2" &&
20451 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
20452 # Find who we are. Look in the path if we contain no path at all
20455 *[\\/]* ) as_myself
=$0 ;;
20456 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20457 for as_dir
in $PATH
20460 test -z "$as_dir" && as_dir
=.
20461 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20466 # We did not find ourselves, most probably we were run as `sh COMMAND'
20467 # in which case we are not to be found in the path.
20468 if test "x$as_myself" = x
; then
20471 if test ! -f "$as_myself"; then
20472 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20473 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20474 { (exit 1); exit 1; }; }
20476 case $CONFIG_SHELL in
20478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20479 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
20482 test -z "$as_dir" && as_dir
=.
20483 for as_base
in sh bash ksh sh5
; do
20486 if ("$as_dir/$as_base" -c '
20487 as_lineno_1=$LINENO
20488 as_lineno_2=$LINENO
20489 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20490 test "x$as_lineno_1" != "x$as_lineno_2" &&
20491 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
20492 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
20493 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
20494 CONFIG_SHELL
=$as_dir/$as_base
20495 export CONFIG_SHELL
20496 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20505 # uniformly replaced by the line number. The first 'sed' inserts a
20506 # line-number line before each line; the second 'sed' does the real
20507 # work. The second script uses 'N' to pair each line-number line
20508 # with the numbered line, and appends trailing '-' during
20509 # substitution so that $LINENO is not a special case at line end.
20510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20511 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20512 sed '=' <$as_myself |
20517 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20520 s,^['$as_cr_digits']*\n,,
20521 ' >$as_me.lineno
&&
20522 chmod +x
$as_me.lineno ||
20523 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20524 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20525 { (exit 1); exit 1; }; }
20527 # Don't try to exec as it changes $[0], causing all sort of problems
20528 # (the dirname of $[0] is not the place where we might find the
20529 # original and so on. Autoconf is especially sensible to this).
20531 # Exit status is that of the last command.
20536 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20537 *c
*,-n*) ECHO_N
= ECHO_C
='
20539 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
20540 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20543 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20549 rm -f conf$$ conf$$.exe conf$$.
file
20551 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20552 # We could just check for DJGPP; but this test a) works b) is more generic
20553 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20554 if test -f conf$$.exe
; then
20555 # Don't use ln at all; we don't have any links
20560 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20565 rm -f conf$$ conf$$.exe conf$$.
file
20567 if mkdir
-p .
2>/dev
/null
; then
20573 as_executable_p
="test -f"
20575 # Sed expression to map a string onto a valid CPP name.
20576 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20578 # Sed expression to map a string onto a valid variable name.
20579 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20583 # We need space, tab and new line, in precisely that order.
20593 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20594 # report actual input values of CONFIG_FILES etc. instead of their
20595 # values after options handling. Logging --version etc. is OK.
20599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20600 ## Running $as_me. ##
20605 This file was extended by $as_me, which was
20606 generated by GNU Autoconf 2.57. Invocation command line was
20608 CONFIG_FILES = $CONFIG_FILES
20609 CONFIG_HEADERS = $CONFIG_HEADERS
20610 CONFIG_LINKS = $CONFIG_LINKS
20611 CONFIG_COMMANDS = $CONFIG_COMMANDS
20615 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20619 # Files that config.status was made for.
20620 if test -n "$ac_config_files"; then
20621 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20624 if test -n "$ac_config_headers"; then
20625 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20628 if test -n "$ac_config_links"; then
20629 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20632 if test -n "$ac_config_commands"; then
20633 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20636 cat >>$CONFIG_STATUS <<\_ACEOF
20639 \`$as_me' instantiates files from templates according to the
20640 current configuration.
20642 Usage: $0 [OPTIONS] [FILE]...
20644 -h, --help print this help, then exit
20645 -V, --version print version number, then exit
20646 -q, --quiet do not print progress messages
20647 -d, --debug don't remove temporary files
20648 --recheck update $as_me by reconfiguring in the same conditions
20649 --file=FILE[:TEMPLATE]
20650 instantiate the configuration file FILE
20651 --header=FILE[:TEMPLATE]
20652 instantiate the configuration header FILE
20654 Configuration files:
20657 Configuration headers:
20660 Configuration commands:
20663 Report bugs to <bug-autoconf@gnu.org>."
20666 cat >>$CONFIG_STATUS <<_ACEOF
20669 configured by $0, generated by GNU Autoconf 2.57,
20670 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20672 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20673 Free Software Foundation, Inc.
20674 This config.status script is free software; the Free Software Foundation
20675 gives unlimited permission to copy, distribute and modify it."
20680 cat >>$CONFIG_STATUS <<\_ACEOF
20681 # If no file are specified by the user, then we need to provide default
20682 # value. By we need to know if files were specified by the user.
20688 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20689 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20697 *) # This is not an option, so the user has probably given explicit
20700 ac_need_defaults
=false
;;
20704 # Handling of the options.
20706 cat >>$CONFIG_STATUS <<\_ACEOF
20707 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20709 --version |
--vers* |
-V )
20710 echo "$ac_cs_version"; exit 0 ;;
20712 # Conflict between --help and --header
20713 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20714 Try \`$0 --help' for more information." >&5
20715 echo "$as_me: error: ambiguous option: $1
20716 Try \`$0 --help' for more information." >&2;}
20717 { (exit 1); exit 1; }; };;
20718 --help |
--hel |
-h )
20719 echo "$ac_cs_usage"; exit 0 ;;
20720 --debug |
--d* |
-d )
20722 --file |
--fil |
--fi |
--f )
20724 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20725 ac_need_defaults
=false
;;
20726 --header |
--heade |
--head |
--hea )
20728 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20729 ac_need_defaults
=false
;;
20730 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20731 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20734 # This is an error.
20735 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20736 Try \`$0 --help' for more information." >&5
20737 echo "$as_me: error: unrecognized option: $1
20738 Try \`$0 --help' for more information." >&2;}
20739 { (exit 1); exit 1; }; } ;;
20741 *) ac_config_targets
="$ac_config_targets $1" ;;
20747 ac_configure_extra_args
=
20749 if $ac_cs_silent; then
20751 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20755 cat >>$CONFIG_STATUS <<_ACEOF
20756 if \$ac_cs_recheck; then
20757 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20758 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20763 cat >>$CONFIG_STATUS <<_ACEOF
20765 # INIT-COMMANDS section.
20768 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
20774 cat >>$CONFIG_STATUS <<\_ACEOF
20775 for ac_config_target
in $ac_config_targets
20777 case "$ac_config_target" in
20778 # Handling of arguments.
20779 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20780 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
20781 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20782 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
20783 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20784 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
20785 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20786 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
20787 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
20788 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20789 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
20790 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20791 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20792 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20793 { (exit 1); exit 1; }; };;
20797 # If the user did not use the arguments to specify the items to instantiate,
20798 # then the envvar interface is used. Set only those that are not.
20799 # We use the long form for the default assignment because of an extremely
20800 # bizarre bug on SunOS 4.1.3.
20801 if $ac_need_defaults; then
20802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20807 # Have a temporary directory for convenience. Make it in the build tree
20808 # simply because there is no reason to put it here, and in addition,
20809 # creating and moving files from /tmp can sometimes cause problems.
20810 # Create a temporary directory, and hook for its removal unless debugging.
20813 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20814 trap '{ (exit 1); exit 1; }' 1 2 13 15
20817 # Create a (secure) tmp directory for tmp files.
20820 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20821 test -n "$tmp" && test -d "$tmp"
20824 tmp
=.
/confstat$$
-$RANDOM
20825 (umask 077 && mkdir
$tmp)
20828 echo "$me: cannot create a temporary directory in ." >&2
20829 { (exit 1); exit 1; }
20834 cat >>$CONFIG_STATUS <<_ACEOF
20837 # CONFIG_FILES section.
20840 # No need to generate the scripts if there are no CONFIG_FILES.
20841 # This happens for instance when ./config.status config.h
20842 if test -n "\$CONFIG_FILES"; then
20843 # Protect against being on the right side of a sed subst in config.status.
20844 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20845 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20846 s,@SHELL@,$SHELL,;t t
20847 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20848 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20849 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20850 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20851 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20852 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20853 s,@exec_prefix@,$exec_prefix,;t t
20854 s,@prefix@,$prefix,;t t
20855 s,@program_transform_name@,$program_transform_name,;t t
20856 s,@bindir@,$bindir,;t t
20857 s,@sbindir@,$sbindir,;t t
20858 s,@libexecdir@,$libexecdir,;t t
20859 s,@datadir@,$datadir,;t t
20860 s,@sysconfdir@,$sysconfdir,;t t
20861 s,@sharedstatedir@,$sharedstatedir,;t t
20862 s,@localstatedir@,$localstatedir,;t t
20863 s,@libdir@,$libdir,;t t
20864 s,@includedir@,$includedir,;t t
20865 s,@oldincludedir@,$oldincludedir,;t t
20866 s,@infodir@,$infodir,;t t
20867 s,@mandir@,$mandir,;t t
20868 s,@build_alias@,$build_alias,;t t
20869 s,@host_alias@,$host_alias,;t t
20870 s,@target_alias@,$target_alias,;t t
20871 s,@DEFS@,$DEFS,;t t
20872 s,@ECHO_C@,$ECHO_C,;t t
20873 s,@ECHO_N@,$ECHO_N,;t t
20874 s,@ECHO_T@,$ECHO_T,;t t
20875 s,@LIBS@,$LIBS,;t t
20876 s,@MAINT@,$MAINT,;t t
20877 s,@build@,$build,;t t
20878 s,@build_cpu@,$build_cpu,;t t
20879 s,@build_vendor@,$build_vendor,;t t
20880 s,@build_os@,$build_os,;t t
20881 s,@host@,$host,;t t
20882 s,@host_cpu@,$host_cpu,;t t
20883 s,@host_vendor@,$host_vendor,;t t
20884 s,@host_os@,$host_os,;t t
20886 s,@CFLAGS@,$CFLAGS,;t t
20887 s,@LDFLAGS@,$LDFLAGS,;t t
20888 s,@CPPFLAGS@,$CPPFLAGS,;t t
20889 s,@ac_ct_CC@,$ac_ct_CC,;t t
20890 s,@EXEEXT@,$EXEEXT,;t t
20891 s,@OBJEXT@,$OBJEXT,;t t
20892 s,@LN_S@,$LN_S,;t t
20894 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20895 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20896 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20897 s,@RANLIB@,$RANLIB,;t t
20898 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20899 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
20900 s,@EGREP@,$EGREP,;t t
20901 s,@LIBSOUND@,$LIBSOUND,;t t
20902 s,@SET_MAKE@,$SET_MAKE,;t t
20903 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20904 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20905 s,@GTK_LIBS@,$GTK_LIBS,;t t
20906 s,@ALLOCA@,$ALLOCA,;t t
20907 s,@liblockfile@,$liblockfile,;t t
20908 s,@LIBOBJS@,$LIBOBJS,;t t
20909 s,@NEED_SETGID@,$NEED_SETGID,;t t
20910 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
20911 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
20912 s,@version@,$version,;t t
20913 s,@configuration@,$configuration,;t t
20914 s,@canonical@,$canonical,;t t
20915 s,@srcdir@,$srcdir,;t t
20916 s,@lispdir@,$lispdir,;t t
20917 s,@locallisppath@,$locallisppath,;t t
20918 s,@lisppath@,$lisppath,;t t
20919 s,@x_default_search_path@,$x_default_search_path,;t t
20920 s,@etcdir@,$etcdir,;t t
20921 s,@archlibdir@,$archlibdir,;t t
20922 s,@docdir@,$docdir,;t t
20923 s,@bitmapdir@,$bitmapdir,;t t
20924 s,@gamedir@,$gamedir,;t t
20925 s,@gameuser@,$gameuser,;t t
20926 s,@c_switch_system@,$c_switch_system,;t t
20927 s,@c_switch_machine@,$c_switch_machine,;t t
20928 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
20929 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
20930 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
20931 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
20932 s,@machfile@,$machfile,;t t
20933 s,@opsysfile@,$opsysfile,;t t
20934 s,@carbon_appdir@,$carbon_appdir,;t t
20935 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20940 cat >>$CONFIG_STATUS <<\_ACEOF
20941 # Split the substitutions into bite-sized pieces for seds with
20942 # small command number limits, like on Digital OSF/1 and HP-UX.
20943 ac_max_sed_lines
=48
20944 ac_sed_frag
=1 # Number of current file.
20945 ac_beg
=1 # First line for current file.
20946 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20949 while $ac_more_lines; do
20950 if test $ac_beg -gt 1; then
20951 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20953 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20955 if test ! -s $tmp/subs.frag
; then
20956 ac_more_lines
=false
20958 # The purpose of the label and of the branching condition is to
20959 # speed up the sed processing (if there are no `@' at all, there
20960 # is no need to browse any of the substitutions).
20961 # These are the two extra sed commands mentioned above.
20963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20964 if test -z "$ac_sed_cmds"; then
20965 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20967 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20969 ac_sed_frag
=`expr $ac_sed_frag + 1`
20971 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20974 if test -z "$ac_sed_cmds"; then
20977 fi # test -n "$CONFIG_FILES"
20980 cat >>$CONFIG_STATUS <<\_ACEOF
20981 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20984 - |
*:- |
*:-:* ) # input from stdin
20986 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20987 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20988 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20989 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20990 * ) ac_file_in
=$ac_file.
in ;;
20993 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20994 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$ac_file" : 'X\(//\)[^/]' \| \
20997 X"$ac_file" : 'X\(//\)$' \| \
20998 X"$ac_file" : 'X\(/\)' \| \
20999 . : '\(.\)' 2>/dev/null ||
21001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21003 /^X\(\/\/\)$/{ s//\1/; q; }
21004 /^X\(\/\).*/{ s//\1/; q; }
21006 { if $as_mkdir_p; then
21011 while test ! -d "$as_dir"; do
21012 as_dirs
="$as_dir $as_dirs"
21013 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21015 X"$as_dir" : 'X\(//\)[^/]' \| \
21016 X"$as_dir" : 'X\(//\)$' \| \
21017 X"$as_dir" : 'X\(/\)' \| \
21018 . : '\(.\)' 2>/dev/null ||
21020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21022 /^X\(\/\/\)$/{ s//\1/; q; }
21023 /^X\(\/\).*/{ s//\1/; q; }
21026 test ! -n "$as_dirs" || mkdir
$as_dirs
21027 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21029 { (exit 1); exit 1; }; }; }
21033 if test "$ac_dir" != .
; then
21034 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21035 # A "../" for each directory in $ac_dir_suffix.
21036 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21038 ac_dir_suffix
= ac_top_builddir
=
21042 .
) # No --srcdir option. We are building in place.
21044 if test -z "$ac_top_builddir"; then
21047 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21049 [\\/]* | ?
:[\\/]* ) # Absolute path.
21050 ac_srcdir
=$srcdir$ac_dir_suffix;
21051 ac_top_srcdir
=$srcdir ;;
21052 *) # Relative path.
21053 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21054 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21056 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21058 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
21059 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21060 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21061 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21065 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21066 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
21069 if test x
"$ac_file" != x-
; then
21070 { echo "$as_me:$LINENO: creating $ac_file" >&5
21071 echo "$as_me: creating $ac_file" >&6;}
21074 # Let's still pretend it is `configure' which instantiates (i.e., don't
21075 # use $as_me), people would be surprised to read:
21076 # /* config.h. Generated by config.status. */
21077 if test x
"$ac_file" = x-
; then
21080 configure_input
="$ac_file. "
21082 configure_input
=$configure_input"Generated from `echo $ac_file_in |
21083 sed 's,.*/,,'` by configure."
21085 # First look for the input files in the build tree, otherwise in the
21087 ac_file_inputs
=`IFS=:
21088 for f in $ac_file_in; do
21090 -) echo $tmp/stdin ;;
21092 # Absolute (can't be DOS-style, as IFS=:)
21093 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21094 echo "$as_me: error: cannot find input file: $f" >&2;}
21095 { (exit 1); exit 1; }; }
21098 if test -f "$f"; then
21101 elif test -f "$srcdir/$f"; then
21106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21107 echo "$as_me: error: cannot find input file: $f" >&2;}
21108 { (exit 1); exit 1; }; }
21111 done` ||
{ (exit 1); exit 1; }
21113 cat >>$CONFIG_STATUS <<_ACEOF
21117 cat >>$CONFIG_STATUS <<\_ACEOF
21119 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21120 s
,@configure_input@
,$configure_input,;t t
21121 s
,@srcdir@
,$ac_srcdir,;t t
21122 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
21123 s
,@top_srcdir@
,$ac_top_srcdir,;t t
21124 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
21125 s
,@builddir@
,$ac_builddir,;t t
21126 s
,@abs_builddir@
,$ac_abs_builddir,;t t
21127 s
,@top_builddir@
,$ac_top_builddir,;t t
21128 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
21129 s
,@INSTALL@
,$ac_INSTALL,;t t
21130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21132 if test x"$ac_file" != x-; then
21133 mv $tmp/out $ac_file
21141 cat >>$CONFIG_STATUS <<\_ACEOF
21144 # CONFIG_HEADER section.
21147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
21148 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21150 # ac_d sets the value in "#define NAME VALUE" lines.
21151 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21152 ac_dB
='[ ].*$,\1#\2'
21155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21156 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21157 ac_uB
='$,\1#\2define\3'
21161 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
21162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21164 - |
*:- |
*:-:* ) # input from stdin
21166 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21167 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21168 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21169 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21170 * ) ac_file_in
=$ac_file.
in ;;
21173 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
21174 echo "$as_me: creating $ac_file" >&6;}
21176 # First look for the input files in the build tree, otherwise in the
21178 ac_file_inputs
=`IFS=:
21179 for f in $ac_file_in; do
21181 -) echo $tmp/stdin ;;
21183 # Absolute (can't be DOS-style, as IFS=:)
21184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21185 echo "$as_me: error: cannot find input file: $f" >&2;}
21186 { (exit 1); exit 1; }; }
21189 if test -f "$f"; then
21192 elif test -f "$srcdir/$f"; then
21197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21198 echo "$as_me: error: cannot find input file: $f" >&2;}
21199 { (exit 1); exit 1; }; }
21202 done` ||
{ (exit 1); exit 1; }
21203 # Remove the trailing spaces.
21204 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21209 # `conftest.undefs', that substitutes the proper values into
21210 # config.h.in to produce config.h. The first handles `#define'
21211 # templates, and the second `#undef' templates.
21212 # And first: Protect against being on the right side of a sed subst in
21213 # config.status. Protect against being in an unquoted here document
21214 # in config.status.
21215 rm -f conftest.defines conftest.undefs
21216 # Using a here document instead of a string reduces the quoting nightmare.
21217 # Putting comments in sed scripts is not portable.
21219 # `end' is used to avoid that the second main sed command (meant for
21220 # 0-ary CPP macros) applies to n-ary macro definitions.
21221 # See the Autoconf documentation for `clear'.
21222 cat >confdef2sed.
sed <<\_ACEOF
21227 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21229 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21232 # If some macros were called several times there might be several times
21233 # the same #defines, which is useless. Nevertheless, we may not want to
21234 # sort them, since we want the *last* AC-DEFINE to be honored.
21235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21237 rm -f confdef2sed.sed
21239 # This sed command replaces #undef with comments. This is necessary, for
21240 # example, in the case of _POSIX_SOURCE, which is predefined and required
21241 # on some systems where configure will not decide to define it.
21242 cat >>conftest.undefs <<\_ACEOF
21243 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21246 # Break up conftest.defines because some shells have a limit on the size
21247 # of here documents, and old seds have small limits too (100 cmds).
21248 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21249 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21250 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21251 echo ' :' >>$CONFIG_STATUS
21252 rm -f conftest.tail
21253 while grep . conftest.defines >/dev/null
21255 # Write a limited-size here document to $tmp/defines.sed.
21256 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21257 # Speed up: don't consider the non `#define' lines.
21258 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21259 # Work around the forget-to-reset-the-flag bug.
21260 echo 't clr' >>$CONFIG_STATUS
21261 echo ': clr' >>$CONFIG_STATUS
21262 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
21264 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21266 mv $tmp/out $tmp/in
21268 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
21269 rm -f conftest.defines
21270 mv conftest.
tail conftest.defines
21272 rm -f conftest.defines
21273 echo ' fi # grep' >>$CONFIG_STATUS
21274 echo >>$CONFIG_STATUS
21276 # Break up conftest.undefs because some shells have a limit on the size
21277 # of here documents, and old seds have small limits too (100 cmds).
21278 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21279 rm -f conftest.
tail
21280 while grep . conftest.undefs
>/dev
/null
21282 # Write a limited-size here document to $tmp/undefs.sed.
21283 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21284 # Speed up: don't consider the non
`#undef'
21285 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21286 # Work around the forget-to-reset-the-flag bug.
21287 echo 't clr' >>$CONFIG_STATUS
21288 echo ': clr' >>$CONFIG_STATUS
21289 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21291 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21293 mv $tmp/out $tmp/in
21295 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21296 rm -f conftest.undefs
21297 mv conftest.tail conftest.undefs
21299 rm -f conftest.undefs
21301 cat >>$CONFIG_STATUS <<\_ACEOF
21302 # Let's still pretend it is `configure
' which instantiates (i.e., don't
21303 # use $as_me), people would be surprised to read:
21304 # /* config.h. Generated by config.status. */
21305 if test x
"$ac_file" = x-
; then
21306 echo "/* Generated by configure. */" >$tmp/config.h
21308 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21310 cat $tmp/in >>$tmp/config.h
21312 if test x
"$ac_file" != x-
; then
21313 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
21314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21315 echo "$as_me: $ac_file is unchanged" >&6;}
21317 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21319 X"$ac_file" : 'X\(//\)[^/]' \| \
21320 X"$ac_file" : 'X\(//\)$' \| \
21321 X"$ac_file" : 'X\(/\)' \| \
21322 . : '\(.\)' 2>/dev/null ||
21324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21326 /^X\(\/\/\)$/{ s//\1/; q; }
21327 /^X\(\/\).*/{ s//\1/; q; }
21329 { if $as_mkdir_p; then
21334 while test ! -d "$as_dir"; do
21335 as_dirs
="$as_dir $as_dirs"
21336 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21338 X"$as_dir" : 'X\(//\)[^/]' \| \
21339 X"$as_dir" : 'X\(//\)$' \| \
21340 X"$as_dir" : 'X\(/\)' \| \
21341 . : '\(.\)' 2>/dev/null ||
21343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21345 /^X\(\/\/\)$/{ s//\1/; q; }
21346 /^X\(\/\).*/{ s//\1/; q; }
21349 test ! -n "$as_dirs" || mkdir
$as_dirs
21350 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21352 { (exit 1); exit 1; }; }; }
21355 mv $tmp/config.h
$ac_file
21359 rm -f $tmp/config.h
21363 cat >>$CONFIG_STATUS <<\_ACEOF
21366 # CONFIG_COMMANDS section.
21368 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
21369 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
21370 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21371 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
21372 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21373 X"$ac_dest" : 'X\(//\)[^/]' \| \
21374 X"$ac_dest" : 'X\(//\)$' \| \
21375 X"$ac_dest" : 'X\(/\)' \| \
21376 . : '\(.\)' 2>/dev/null ||
21378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21380 /^X\(\/\/\)$/{ s//\1/; q; }
21381 /^X\(\/\).*/{ s//\1/; q; }
21385 if test "$ac_dir" != .
; then
21386 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21387 # A "../" for each directory in $ac_dir_suffix.
21388 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21390 ac_dir_suffix
= ac_top_builddir
=
21394 .
) # No --srcdir option. We are building in place.
21396 if test -z "$ac_top_builddir"; then
21399 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21401 [\\/]* | ?
:[\\/]* ) # Absolute path.
21402 ac_srcdir
=$srcdir$ac_dir_suffix;
21403 ac_top_srcdir
=$srcdir ;;
21404 *) # Relative path.
21405 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21406 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21408 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21410 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
21411 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21412 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21413 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21416 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21417 echo "$as_me: executing $ac_dest commands" >&6;}
21421 ### Make the necessary directories, if they don't exist.
21422 for dir
in etc lisp
; do
21423 test -d ${dir} || mkdir
${dir}
21426 # Build src/Makefile from ${srcdir}/src/Makefile.c
21427 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
21428 # This must be done after src/config.h is built, since we rely on that file.
21430 # Now get this: Some word that is part of the ${srcdir} directory name
21431 # or the ${configuration} value might, just might, happen to be an
21432 # identifier like `sun4' or `i386' or something, and be predefined by
21433 # the C preprocessor to some helpful value like 1, or maybe the empty
21434 # string. Needless to say consequent macro substitutions are less
21435 # than conducive to the makefile finding the correct directory.
21436 undefs
="`echo $top_srcdir $configuration $canonical |
21437 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
21438 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
21441 echo creating src
/epaths.h
21442 ${MAKE-make} epaths-force
21444 # As of 2000-11-19, newest development versions of GNU cpp preprocess
21445 # `..' to `. .' unless invoked with -traditional
21447 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
21448 CPPFLAGS
="$CPPFLAGS -traditional"
21451 echo creating lib-src
/Makefile
21453 rm -f junk.c junk1.c junk2.c
21454 sed -e '/start of cpp stuff/q' \
21455 < Makefile.c
> junk1.c
21456 sed -e '1,/start of cpp stuff/d'\
21457 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
21458 < Makefile.c
> junk.c
21459 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
21460 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
21461 cat junk1.c junk2.c
> Makefile.new
21462 rm -f junk.c junk1.c junk2.c
21463 chmod 444 Makefile.new
21464 mv -f Makefile.new Makefile
21467 echo creating src
/Makefile
21469 rm -f junk.c junk1.c junk2.c
21470 sed -e '/start of cpp stuff/q' \
21471 < Makefile.c
> junk1.c
21472 sed -e '1,/start of cpp stuff/d'\
21473 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
21474 < Makefile.c
> junk.c
21475 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
21476 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
21477 cat junk1.c junk2.c
> Makefile.new
21478 rm -f junk.c junk1.c junk2.c
21479 chmod 444 Makefile.new
21480 mv -f Makefile.new Makefile
21483 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21484 echo creating src
/.gdbinit
21485 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21488 # This is how we know whether to re-run configure in certain cases.
21489 touch src
/config.stamp
21496 cat >>$CONFIG_STATUS <<\_ACEOF
21498 { (exit 0); exit 0; }
21500 chmod +x
$CONFIG_STATUS
21501 ac_clean_files
=$ac_clean_files_save
21504 # configure is writing to config.log, and then calls config.status.
21505 # config.status does its own redirection, appending to config.log.
21506 # Unfortunately, on DOS this fails, as config.log is still kept open
21507 # by configure, so config.status won't be able to write to it; its
21508 # output is simply discarded. So we exec the FD to /dev/null,
21509 # effectively closing config.log, so it can be properly (re)opened and
21510 # appended to by config.status. When coming back to configure, we
21511 # need to make the FD available again.
21512 if test "$no_create" != yes; then
21514 ac_config_status_args
=
21515 test "$silent" = yes &&
21516 ac_config_status_args
="$ac_config_status_args --quiet"
21518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21521 # would make configure fail if this is the last instruction.
21522 $ac_cs_success ||
{ (exit 1); exit 1; }