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 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 --disable-largefile omit support
for large files
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc don
't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP
mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version
5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server
host
868 --without-sound don
't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don
't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
884 Some influential environment variables
:
885 CC C compiler
command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
888 nonstandard directory
<lib dir
>
889 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
890 headers
in a nonstandard directory
<include dir
>
893 Use these variables to override the choices made by
`configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
983 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
984 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
985 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
986 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
987 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
989 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
990 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
992 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
993 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
994 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
995 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
996 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
997 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
998 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1031 ac_must_keep_next=false
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 -* ) ac_must_keep_next=true ;;
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close
' the trap.
1078 trap 'exit_status
=$?
1079 # Save into config.log some information that might help in debugging.
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1089 # The following way of writing the cache mishandles newlines in values,
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1112 for ac_var
in $ac_subst_vars
1114 eval ac_val
=$
`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1119 if test -n "$ac_subst_files"; then
1126 for ac_var
in $ac_subst_files
1128 eval ac_val
=$
`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -s confdefs.h
; then
1141 sed "/^$/d" confdefs.h |
sort
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1148 rm -f core core.
* *.core
&&
1149 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's
/^
/|
/' "$ac_site_file" >&5
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1224 # Check that the precious variables saved in the cache have kept the same
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1237 ac_cache_corrupted=: ;;
1239 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1246 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1271 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1278 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it
if useless.
1309 cat <<\_ACEOF
>conftest.
sed
1310 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1312 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1316 lispdir
='${datadir}/emacs/${version}/lisp'
1317 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath
='${locallisppath}:${lispdir}'
1320 etcdir
='${datadir}/emacs/${version}/etc'
1321 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir
='${datadir}/emacs/${version}/etc'
1323 gamedir
='${localstatedir}/games/emacs'
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h
<<\_ACEOF
1339 #define MAIL_USE_POP 1
1345 cat >>confdefs.h
<<\_ACEOF
1346 #define MAIL_USE_POP 1
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval
="$with_kerberos"
1355 cat >>confdefs.h
<<\_ACEOF
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval
="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1368 cat >>confdefs.h
<<\_ACEOF
1375 cat >>confdefs.h
<<\_ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval
="$with_hesiod"
1385 cat >>confdefs.h
<<\_ACEOF
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval
="$with_sound"
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval
="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye |
yes ) val
=athena
;;
1405 l | lu | luc | luci | lucid
) val
=lucid
;;
1406 a |
at | ath | athe | athen | athena
) val
=athena
;;
1407 m | mo | mot | moti | motif
) val
=motif
;;
1408 g | gt | gtk
) val
=gtk
;;
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval
="$with_jpeg"
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval
="$with_tiff"
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval
="$with_pkg_config_prog"
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval
="$with_toolkit_scroll_bars"
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval
="$with_carbon"
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval
="$enable_carbon_app"
1485 carbon_appdir_x
=${enableval}
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1506 srcdir
="`(cd ${srcdir}; pwd)`"
1509 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1528 extrasub
='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1541 ### Canonicalize the configuration name.
1544 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1545 if test -f $ac_dir/install-sh
; then
1547 ac_install_sh
="$ac_aux_dir/install-sh -c"
1549 elif test -f $ac_dir/install.sh
; then
1551 ac_install_sh
="$ac_aux_dir/install.sh -c"
1553 elif test -f $ac_dir/shtool
; then
1555 ac_install_sh
="$ac_aux_dir/shtool install -c"
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_build_alias
=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias
=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1595 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 ac_cv_host_alias
=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias
=$ac_cv_build_alias
1608 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1617 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 configuration
=${host_alias-$host}
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1650 machine
='' opsys
='' unported
=no
1651 case "${canonical}" in
1656 case "${canonical}" in
1657 alpha
*-*-freebsd*) machine
=alpha
;;
1658 i
[3456]86-*-freebsd*) machine
=intel386
;;
1665 case "${canonical}" in
1666 alpha
*-*-netbsd*) machine
=alpha
;;
1667 i
[3456]86-*-netbsd*) machine
=intel386
;;
1669 # This is somewhat bogus.
1670 machine
=hp9000s300
;;
1671 powerpc-apple-netbsd
*) machine
=macppc
;;
1672 mips-
*-netbsd*) machine
=pmax
;;
1673 mipsel-
*-netbsd*) machine
=pmax
;;
1674 mipseb-
*-netbsd*) machine
=pmax
;;
1675 ns32k-
*-netbsd*) machine
=ns32000
;;
1676 powerpc-
*-netbsd*) machine
=macppc
;;
1677 sparc
*-*-netbsd*) machine
=sparc
;;
1678 vax-
*-netbsd*) machine
=vax
;;
1679 arm-
*-netbsd*) machine
=arm
;;
1686 case "${canonical}" in
1687 alpha
*-*-openbsd*) machine
=alpha
;;
1688 i386-
*-openbsd*) machine
=intel386
;;
1689 m68k-
*-openbsd*) machine
=hp9000s300
;;
1690 mipsel-
*-openbsd*) machine
=pmax
;;
1691 ns32k-
*-openbsd*) machine
=ns32000
;;
1692 sparc-
*-openbsd*) machine
=sparc
;;
1693 vax-
*-openbsd*) machine
=vax
;;
1698 arm-acorn-riscix1.1
* )
1699 machine
=acorn opsys
=riscix1-1
1701 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine
=acorn opsys
=riscix12
1710 case "${canonical}" in
1711 i
[345]86-*-bsdi*) machine
=intel386
;;
1712 sparc-
*-bsdi*) machine
=sparc
;;
1713 powerpc-
*-bsdi*) machine
=macppc
;;
1715 case "${canonical}" in
1716 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1717 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1718 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1719 *-*-bsdi3* ) opsys
=bsdos3
;;
1720 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1731 machine
=alliant4 opsys
=bsd4-2
1734 machine
=alliant-2800 opsys
=bsd4-3
1737 ## Alpha (DEC) machines.
1739 machine
=alpha opsys
=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1742 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP
=/usr
/bin
/cpp
1748 case "${canonical}" in
1749 alpha
*-dec-osf[5-9]*)
1754 alpha
*-*-linux-gnu* )
1755 machine
=alpha opsys
=gnu-linux
1759 machine
=arm opsys
=gnu-linux
1764 machine
=macppc opsys
=gnu-linux
1769 machine
=altos opsys
=usg5-2
1774 machine
=amdahl opsys
=usg5-2-2
1777 ## Apollo, Domain/OS
1779 machine
=apollo opsys
=bsd4-3
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1784 machine
=att3b opsys
=usg5-2-2
1787 ## AT&T 3b1 - The Mighty Unix PC!
1789 machine
=7300 opsys
=usg5-2-2
1794 machine
=ibmrs6000 opsys
=aix3-2
1799 machine
=dpx2 opsys
=usg5-3
1804 machine
=sps7 opsys
=usg5-2
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd
* )
1814 machine
=celerity opsys
=bsd4-2
1818 ## What operating systems does this chip run that Emacs has been
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1827 mips-compaq-nonstopux
* )
1828 machine
=nonstopux opsys
=nonstopux
1832 *-convex-bsd* |
*-convex-convexos* )
1833 machine
=convex opsys
=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP
="cc -E -P"
1839 i
[3456]86-cubix-sysv* )
1840 machine
=intel386 opsys
=usg5-3
1844 cydra
*-cydrome-sysv* )
1845 machine
=cydra5 opsys
=usg5-3
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1855 machine
=aviion opsys
=dgux4
1857 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine
=aviion opsys
=dgux5-4-3
1862 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1863 machine
=aviion opsys
=dgux5-4r2
1866 machine
=aviion opsys
=dgux
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i
[345]86-dg-dguxR4* )
1873 machine
=aviion-intel opsys
=dgux4
1877 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1878 machine
=pmax opsys
=bsd4-2
1880 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1881 machine
=pmax opsys
=bsd4-3
1884 machine
=pmax opsys
=ultrix4-3
1887 machine
=pmax opsys
=osf1
1889 mips-dec-mach_bsd4.3
* )
1890 machine
=pmax opsys
=mach-bsd4-3
1893 ## Motorola Delta machines
1894 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1895 machine
=delta opsys
=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1898 if test -s /etc
/167config
1899 then CC
="gnucc -m68040"
1900 else CC
="gnucc -m68881"
1903 if test -z "`type gcc | grep 'not found'`"
1909 m88k-motorola-sysv4
* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine
=delta88k opsys
=usg5-4-2
1916 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1917 machine
=delta88k opsys
=usg5-3
1922 machine
=dual opsys
=usg5-2
1924 m68
*-dual-uniplus* )
1925 machine
=dual opsys
=unipl5-2
1930 machine
=elxsi opsys
=usg5-2
1935 machine
=ns16000 opsys
=umax
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1941 ## Gould Power Node and NP1
1943 machine
=gould opsys
=bsd4-2
1946 machine
=gould opsys
=bsd4-3
1949 machine
=gould-np1 opsys
=bsd4-3
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1958 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1960 NON_GNU_CPP
="/lib/cpp"
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1964 machine
=nh3000 opsys
=cxux
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix
)
1968 machine
=nh6000 opsys
=powerunix
1969 NON_GNU_CPP
="cc -Xo -E -P"
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1
-hitachi-hiuxmpp* )
1973 machine
=sr2k opsys
=hiuxmpp
1975 hppa1.1
-hitachi-hiuxwe2* )
1976 machine
=sr2k opsys
=hiuxwe2
1979 xps
*-honeywell-sysv* )
1980 machine
=xps100 opsys
=usg5-2
1983 ## HP 9000 series 200 or 300
1985 machine
=hp9000s300 opsys
=bsd4-3
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1993 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1994 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1995 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1996 *) machine
=hp9000s300 opsys
=hpux
;;
2000 ## HP 9000 series 700 and 800, running HP/UX
2002 machine
=hp800 opsys
=hpux
2005 machine
=hp800 opsys
=hpux8
2007 hppa
*-hp-hpux9shr* )
2008 machine
=hp800 opsys
=hpux9shr
2011 machine
=hp800 opsys
=hpux9
2013 hppa
*-hp-hpux10.2
* )
2014 machine
=hp800 opsys
=hpux10-20
2017 machine
=hp800 opsys
=hpux10
2019 hppa
*-hp-hpux1[1-9]* )
2020 machine
=hp800 opsys
=hpux11
2023 hppa
*-*-linux-gnu* )
2024 machine
=hp800 opsys
=gnu-linux
2027 ## HP 9000 series 700 and 800, running HP/UX
2029 ## Cross-compilation? Nah!
2030 case "`uname -r`" in
2031 ## Someone's system reports A.B8.05 for this.
2032 ## I wonder what other possibilities there are.
2033 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2034 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2035 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2036 *) machine
=hp800 opsys
=hpux10
;;
2040 machine
=hp800 opsys
=nextstep
2045 machine
=orion opsys
=bsd4-2
2047 clipper-orion-bsd
* )
2048 machine
=orion105 opsys
=bsd4-2
2052 i
[3456]86-ibm-aix1.1
* )
2053 machine
=ibmps2-aix opsys
=usg5-2-2
2055 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2056 machine
=ibmps2-aix opsys
=usg5-3
2059 machine
=ibm370aix opsys
=usg5-3
2062 machine
=ibms390 opsys
=gnu-linux
2064 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2065 machine
=ibmrs6000 opsys
=aix3-1
2067 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2068 machine
=ibmrs6000 opsys
=aix3-2-5
2070 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2071 machine
=ibmrs6000 opsys
=aix4-1
2073 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2074 machine
=ibmrs6000 opsys
=aix4-2
2076 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2077 machine
=ibmrs6000 opsys
=aix4-2
2079 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2080 machine
=ibmrs6000 opsys
=aix4
2082 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2083 machine
=ibmrs6000 opsys
=aix4-1
2085 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2086 machine
=ibmrs6000 opsys
=aix3-2
2089 machine
=ibmrt opsys
=bsd4-3
2092 machine
=ibmrt opsys
=bsd4-2
2095 machine
=ibmrt opsys
=bsd4-3
2098 machine
=ibmrt opsys
=bsd4-2
2101 machine
=ibmrt opsys
=bsd4-3
2104 machine
=ibmrt opsys
=bsd4-3
2107 machine
=ibmrt-aix opsys
=usg5-2-2
2110 ## Integrated Solutions `Optimum V'
2112 machine
=isi-ov opsys
=bsd4-2
2115 machine
=isi-ov opsys
=bsd4-3
2118 ## Intel 386 machines where we do care about the manufacturer
2119 i
[3456]86-intsys-sysv* )
2120 machine
=is386 opsys
=usg5-2-2
2124 i
[3456]86-prime-sysv* )
2125 machine
=i386 opsys
=usg5-3
2128 ## Sequent Symmetry running Dynix
2129 i
[3456]86-sequent-bsd* )
2130 machine
=symmetry opsys
=bsd4-3
2133 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2134 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2135 machine
=sequent-ptx opsys
=ptx4
2136 NON_GNU_CPP
=/lib
/cpp
2139 ## Sequent Symmetry running DYNIX/ptx
2140 ## Use the old cpp rather than the newer ANSI one.
2141 i
[3456]86-sequent-ptx* )
2142 machine
=sequent-ptx opsys
=ptx
2143 NON_GNU_CPP
="/lib/cpp"
2146 ## ncr machine running svr4.3.
2147 i
[3456]86-ncr-sysv4.3
)
2148 machine
=ncr386 opsys
=usg5-4-3
2151 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2152 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2153 i
[3456]86-ncr-sysv* )
2154 machine
=ncr386 opsys
=usg5-4-2
2157 ## Intel Paragon OSF/1
2159 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2164 machine
=i860 opsys
=usg5-4
2165 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2166 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2169 ## Macintosh PowerPC
2170 powerpc
*-*-linux-gnu* )
2171 machine
=macppc opsys
=gnu-linux
2174 ## Masscomp machines
2175 m68
*-masscomp-rtu* )
2176 machine
=masscomp opsys
=rtu
2179 ## Megatest machines
2180 m68
*-megatest-bsd* )
2181 machine
=mega68 opsys
=bsd4-2
2184 ## Workstations sold by MIPS
2185 ## This is not necessarily all workstations using the MIPS processor -
2186 ## Irises are produced by SGI, and DECstations by DEC.
2188 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2189 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2190 ## it gives for choosing between the alternatives seems to be "Use
2191 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2192 ## the BSD world." I'll assume that these are instructions for
2193 ## handling two odd situations, and that every other situation
2194 ## should use mips.h and usg5-2-2, they being listed first.
2197 ## Fall through to the general code at the bottom to decide on the OS.
2199 mips-mips-riscos4
* )
2200 machine
=mips4 opsys
=bsd4-3
2201 NON_GNU_CC
="cc -systype bsd43"
2202 NON_GNU_CPP
="cc -systype bsd43 -E"
2204 mips-mips-riscos5
* )
2205 machine
=mips4 opsys
=riscos5
2206 NON_GNU_CC
="cc -systype bsd43"
2207 NON_GNU_CPP
="cc -systype bsd43 -E"
2210 machine
=mips opsys
=bsd4-3
2213 machine
=mips opsys
=usg5-2-2
2217 m68
*-next-* | m68k-
*-nextstep* )
2218 machine
=m68k opsys
=nextstep
2221 ## The complete machine from National Semiconductor
2223 machine
=ns32000 opsys
=usg5-2
2227 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2228 machine
=tower32 opsys
=usg5-2-2
2230 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2231 machine
=tower32v3 opsys
=usg5-3
2236 machine
=ews4800 opsys
=ux4800
2239 ## Nixdorf Targon 31
2240 m68
*-nixdorf-sysv* )
2241 machine
=targon31 opsys
=usg5-2-2
2246 machine
=nu opsys
=usg5-2
2251 machine
=plexus opsys
=usg5-2
2255 ## I don't really have any idea what sort of processor the Pyramid has,
2256 ## so I'm assuming it is its own architecture.
2257 pyramid-pyramid-bsd
* )
2258 machine
=pyramid opsys
=bsd4-2
2262 ns32k-sequent-bsd4.2
* )
2263 machine
=sequent opsys
=bsd4-2
2265 ns32k-sequent-bsd4.3
* )
2266 machine
=sequent opsys
=bsd4-3
2270 mips-siemens-sysv
* | mips-sni-sysv
*)
2271 machine
=mips-siemens opsys
=usg5-4
2272 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2273 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2276 ## Silicon Graphics machines
2277 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2279 machine
=irist opsys
=iris3-5
2281 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2282 machine
=irist opsys
=iris3-6
2286 machine
=iris4d opsys
=irix3-3
2289 machine
=iris4d opsys
=irix4-0
2292 machine
=iris4d opsys
=irix6-5
2293 # Without defining _LANGUAGE_C, things get masked out in the headers
2294 # so that, for instance, grepping for `free' in stdlib.h fails and
2295 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2296 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2297 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2300 machine
=iris4d opsys
=irix6-0
2301 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2302 # but presumably it does no harm.
2303 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2304 # -32 probably isn't necessary in later v.6s -- anyone know which?
2305 NON_GCC_TEST_OPTIONS
=-32
2307 mips-sgi-irix5.
[01]* )
2308 machine
=iris4d opsys
=irix5-0
2310 mips-sgi-irix5
* | mips-sgi-irix
* )
2311 machine
=iris4d opsys
=irix5-2
2316 machine
=news opsys
=bsd4-2
2319 machine
=news opsys
=bsd4-3
2321 m68
*-sony-newsos3* | m68
*-sony-news3*)
2322 machine
=news opsys
=bsd4-3
2324 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2325 machine
=news-risc opsys
=bsd4-3
2327 mips-sony-newsos6
* )
2328 machine
=news-r6 opsys
=newsos6
2331 machine
=news-risc opsys
=newsos5
2336 machine
=stride opsys
=usg5-2
2340 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2341 machine
=sparc opsys
=gnu-linux
2344 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2345 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2346 | rs6000-
*-solaris2*)
2347 case "${canonical}" in
2348 m68
*-sunos1* ) machine
=sun1
;;
2349 m68
*-sunos2* ) machine
=sun2
;;
2350 m68
* ) machine
=sun3
;;
2351 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2352 i
[3456]86-*-* ) machine
=intel386
;;
2353 powerpcle
* ) machine
=powerpcle
;;
2354 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2355 sparc
* ) machine
=sparc
;;
2358 case "${canonical}" in
2359 ## The Sun386 didn't get past 4.0.
2360 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2361 *-sunos4.0
* ) opsys
=sunos4-0
;;
2362 *-sunos4.1.
[3-9]*noshare
)
2363 ## This name is sunos413 instead of sunos4-1-3
2364 ## to avoid a file name conflict on MSDOS.
2366 NON_GNU_CPP
=/usr
/lib
/cpp
2367 NON_GCC_TEST_OPTIONS
=-Bstatic
2368 GCC_TEST_OPTIONS
=-static
2370 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2372 NON_GNU_CPP
=/usr
/lib
/cpp
2374 *-sunos4* |
*-sunos )
2376 NON_GCC_TEST_OPTIONS
=-Bstatic
2377 GCC_TEST_OPTIONS
=-static
2379 *-sunos5.3
* |
*-solaris2.3
* )
2381 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2383 *-sunos5.4
* |
*-solaris2.4
* )
2385 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2388 *-sunos5.5
* |
*-solaris2.5
* )
2390 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2393 *-sunos5.6
* |
*-solaris2.6
* )
2395 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2398 *-sunos5* |
*-solaris* )
2400 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2404 ## Watch out for a compiler that we know will not work.
2405 case "${canonical}" in
2406 *-solaris* |
*-sunos5* )
2407 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2408 ## /usr/ucb/cc doesn't work;
2409 ## we should find some other compiler that does work.
2417 machine
=sparc opsys
=nextstep
2421 m68
*-tadpole-sysv* )
2422 machine
=tad68k opsys
=usg5-3
2426 tahoe-tahoe-bsd4.2
* )
2427 machine
=tahoe opsys
=bsd4-2
2429 tahoe-tahoe-bsd4.3
* )
2430 machine
=tahoe opsys
=bsd4-3
2433 ## Tandem Integrity S2
2435 machine
=tandem-s2 opsys
=usg5-3
2439 m88k-tektronix-sysv3
* )
2440 machine
=tekxd88 opsys
=usg5-3
2443 ## Tektronix 16000 box (6130?)
2444 ns16k-tektronix-bsd
* )
2445 machine
=ns16000 opsys
=bsd4-2
2448 ## src/m/tek4300.h hints that this is a m68k machine.
2449 m68
*-tektronix-bsd* )
2450 machine
=tek4300 opsys
=bsd4-3
2454 ## We seem to have lost the machine-description file titan.h!
2456 machine
=titan opsys
=usg5-3
2459 ## Ustation E30 (SS5E)
2460 m68
*-unisys-uniplus* )
2461 machine
=ustation opsystem
=unipl5-2
2467 case "${canonical}" in
2468 *-bsd4.1
* ) opsys
=bsd4-1
;;
2469 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2470 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2471 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2472 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2473 *-vms* ) opsys
=vms
;;
2479 ns16k-whitechapel-
* )
2481 ## We don't know what sort of OS runs on these; we'll let the
2482 ## operating system guessing code below try.
2487 machine
=wicat opsys
=usg5-2
2492 machine
=ia64 opsys
=gnu-linux
2495 ## Intel 386 machines where we don't care about the manufacturer
2498 case "${canonical}" in
2499 *-cygwin ) opsys
=cygwin
;;
2500 *-lynxos* ) opsys
=lynxos
;;
2501 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2502 *-isc2.2
* ) opsys
=isc2-2
;;
2503 *-isc4.0
* ) opsys
=isc4-0
;;
2504 *-isc4.
* ) opsys
=isc4-1
2505 GCC_TEST_OPTIONS
=-posix
2506 NON_GCC_TEST_OPTIONS
=-Xp
2508 *-isc* ) opsys
=isc3-0
;;
2509 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2510 *-esix* ) opsys
=esix
;;
2511 *-xenix* ) opsys
=xenix
;;
2512 *-linux-gnu* ) opsys
=gnu-linux
;;
2513 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2514 *-sco3.2v5
* ) opsys
=sco5
2515 NON_GNU_CPP
=/lib
/cpp
2516 # Prevent -belf from being passed to $CPP.
2517 # /lib/cpp does not accept it.
2518 OVERRIDE_CPPFLAGS
=" "
2520 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2521 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2522 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2523 *-386bsd* ) opsys
=386bsd
;;
2524 *-nextstep* ) opsys
=nextstep
;;
2525 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2529 ## m68k Linux-based GNU system
2531 machine
=m68k opsys
=gnu-linux
2534 ## Mips Linux-based GNU system
2535 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2536 machine
=mips opsys
=gnu-linux
2540 sparc-fujitsu-sysv4
* )
2541 machine
=sparc opsys
=uxpds
2542 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2547 f301-fujitsu-uxpv4.1
)
2548 machine
=f301 opsys
=uxpv
2551 ## Darwin / Mac OS X
2552 powerpc-apple-darwin
* )
2553 machine
=powermac opsys
=darwin
2554 # Define CPP as follows to make autoconf work correctly.
2555 CPP
="cc -E -traditional-cpp"
2558 ## AMD x86-64 Linux-based GNU system
2559 x86_64-
*-linux-gnu* )
2560 machine
=amdx86-64 opsys
=gnu-linux
2568 ### If the code above didn't choose an operating system, just choose
2569 ### an operating system based on the configuration name. You really
2570 ### only want to use this when you have no idea what the right
2571 ### operating system is; if you know what operating systems a machine
2572 ### runs, it's cleaner to make it explicit in the case statement
2574 if test x
"${opsys}" = x
; then
2575 case "${canonical}" in
2576 *-gnu* ) opsys
=gnu
;;
2577 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2578 *-bsd4.2
) opsys
=bsd4-2
;;
2579 *-bsd4.3
) opsys
=bsd4-3
;;
2580 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2581 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2582 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2583 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2584 *-sysv4.2uw
* ) opsys
=unixware
;;
2585 *-sysv5uw* ) opsys
=unixware
;;
2586 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2587 *-sysv4.1
* |
*-sysvr4.1
* )
2588 NON_GNU_CPP
=/usr
/lib
/cpp
2590 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2591 if [ x
$NON_GNU_CPP = x
]; then
2592 if [ -f /usr
/ccs
/lib
/cpp
]; then
2593 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2595 NON_GNU_CPP
=/lib
/cpp
2599 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2608 if test $unported = yes; then
2609 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2610 Check \`etc/MACHINES' for recognized configuration names." >&5
2611 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2612 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2613 { (exit 1); exit 1; }; }
2616 machfile
="m/${machine}.h"
2617 opsysfile
="s/${opsys}.h"
2620 #### Choose a compiler.
2621 test -n "$CC" && cc_specified
=yes
2623 # Save the value of CFLAGS that the user specified.
2624 SPECIFIED_CFLAGS
="$CFLAGS"
2627 "yes" ) CC
="gcc" GCC
=yes ;;
2628 "no" ) : ${CC=cc} ;;
2632 ac_cpp
='$CPP $CPPFLAGS'
2633 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2638 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2639 echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC
="$CC" # Let the user override the test.
2647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir
=.
2652 for ac_exec_ext
in '' $ac_executable_extensions; do
2653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$CC"; then
2665 echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6
2668 echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6
2673 if test -z "$ac_cv_prog_CC"; then
2675 # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy 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_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC
="$ac_ct_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_ac_ct_CC
="gcc"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2702 if test -n "$ac_ct_CC"; then
2703 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2704 echo "${ECHO_T}$ac_ct_CC" >&6
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2715 if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2718 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2719 echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC
="$CC" # Let the user override the test.
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir
=.
2732 for ac_exec_ext
in '' $ac_executable_extensions; do
2733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$CC"; then
2745 echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6
2748 echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2753 if test -z "$ac_cv_prog_CC"; then
2755 # Extract the first word of "cc", so it can be a program name with args.
2756 set dummy 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_ac_ct_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC
="$ac_ct_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_ac_ct_CC
="cc"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2784 echo "${ECHO_T}$ac_ct_CC" >&6
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2796 if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798 set dummy cc
; ac_word
=$2
2799 echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC
="$CC" # Let the user override the test.
2808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir
=.
2813 for ac_exec_ext
in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected
=yes
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy
$ac_cv_prog_CC
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2835 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2841 if test -n "$CC"; then
2842 echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2855 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC
="$CC" # Let the user override the test.
2864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir
=.
2869 for ac_exec_ext
in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test -n "$CC"; then
2882 echo "$as_me:$LINENO: result: $CC" >&5
2883 echo "${ECHO_T}$CC" >&6
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2889 test -n "$CC" && break
2892 if test -z "$CC"; then
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy
$ac_prog; ac_word
=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$ac_ct_CC"; then
2904 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir
=.
2911 for ac_exec_ext
in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_ac_ct_CC
="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2925 echo "${ECHO_T}$ac_ct_CC" >&6
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 test -n "$ac_ct_CC" && break
2940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: no acceptable C compiler found in \$PATH
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2946 # Provide some information about the compiler.
2947 echo "$as_me:$LINENO:" \
2948 "checking for C compiler version" >&5
2949 ac_compiler
=`set X $ac_compile; echo $2`
2950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2951 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2956 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2961 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2966 cat >conftest.
$ac_ext <<_ACEOF
2967 #line $LINENO "configure"
2970 cat confdefs.h
>>conftest.
$ac_ext
2971 cat >>conftest.
$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2982 ac_clean_files_save
=$ac_clean_files
2983 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2984 # Try to create an executable without -o first, disregard a.out.
2985 # It will help us diagnose broken compilers, and finding out an intuition
2987 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2988 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2989 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2990 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2991 (eval $ac_link_default) 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; then
2995 # Find the output, starting from the most likely. This scheme is
2996 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2999 # Be careful to initialize this variable, since it used to be cached.
3000 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3002 # b.out is created by i960 compilers.
3003 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3005 test -f "$ac_file" ||
continue
3007 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3010 # This is the source file.
3013 # We found the default executable, but exeext='' is most
3017 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 # FIXME: I believe we export ac_cv_exeext for Libtool,
3019 # but it would be cool to find out if it's true. Does anybody
3020 # maintain Libtool? --akim.
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.
$ac_ext >&5
3031 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: C compiler cannot create executables
3034 See \`config.log' for more details." >&2;}
3035 { (exit 77); exit 77; }; }
3038 ac_exeext
=$ac_cv_exeext
3039 echo "$as_me:$LINENO: result: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6
3042 # Check the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3045 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3046 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3047 # If not cross compiling, check that we can run a simple program.
3048 if test "$cross_compiling" != yes; then
3049 if { ac_try
='./$ac_file'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3057 if test "$cross_compiling" = maybe
; then
3060 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot run C compiled programs.
3064 If you meant to cross compile, use \`--host'.
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3070 echo "$as_me:$LINENO: result: yes" >&5
3071 echo "${ECHO_T}yes" >&6
3073 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3074 ac_clean_files
=$ac_clean_files_save
3075 # Check the compiler produces executables we can run. If not, either
3076 # the compiler is broken, or we cross compile.
3077 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3079 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3080 echo "${ECHO_T}$cross_compiling" >&6
3082 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085 (eval $ac_link) 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; then
3089 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3090 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3091 # work properly (i.e., refer to `conftest.exe'), while it won't with
3093 for ac_file
in conftest.exe conftest conftest.
*; do
3094 test -f "$ac_file" ||
continue
3096 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3097 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3111 rm -f conftest
$ac_cv_exeext
3112 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3113 echo "${ECHO_T}$ac_cv_exeext" >&6
3115 rm -f conftest.
$ac_ext
3116 EXEEXT
=$ac_cv_exeext
3118 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3119 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3120 if test "${ac_cv_objext+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 cat >conftest.
$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3127 cat confdefs.h
>>conftest.
$ac_ext
3128 cat >>conftest.
$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3139 rm -f conftest.o conftest.obj
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3147 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3148 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.
$ac_ext >&5
3156 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3163 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3165 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3166 echo "${ECHO_T}$ac_cv_objext" >&6
3167 OBJEXT
=$ac_cv_objext
3169 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3170 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3171 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 cat >conftest.
$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3178 cat confdefs.h
>>conftest.
$ac_ext
3179 cat >>conftest.
$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3193 rm -f conftest.
$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try
='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.
$ac_ext >&5
3212 rm -f conftest.
$ac_objext conftest.
$ac_ext
3213 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3216 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3217 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3218 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3219 ac_test_CFLAGS
=${CFLAGS+set}
3220 ac_save_CFLAGS
=$CFLAGS
3222 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3224 if test "${ac_cv_prog_cc_g+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 cat >conftest.
$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3231 cat confdefs.h
>>conftest.
$ac_ext
3232 cat >>conftest.
$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3243 rm -f conftest.
$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try
='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.
$ac_ext >&5
3262 rm -f conftest.
$ac_objext conftest.
$ac_ext
3264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3266 if test "$ac_test_CFLAGS" = set; then
3267 CFLAGS
=$ac_save_CFLAGS
3268 elif test $ac_cv_prog_cc_g = yes; then
3269 if test "$GCC" = yes; then
3275 if test "$GCC" = yes; then
3281 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3282 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 ac_cv_prog_cc_stdc
=no
3288 cat >conftest.
$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3292 cat confdefs.h
>>conftest.
$ac_ext
3293 cat >>conftest.
$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3313 s = g (p, va_arg (v,int));
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 # Don't try gcc -ansi; that turns off useful extensions and
3332 # breaks some systems' header files.
3333 # AIX -qlanglvl=ansi
3334 # Ultrix and OSF/1 -std1
3335 # HP-UX 10.20 and later -Ae
3336 # HP-UX older versions -Aa -D_HPUX_SOURCE
3337 # SVR4 -Xc -D__EXTENSIONS__
3338 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 CC
="$ac_save_CC $ac_arg"
3341 rm -f conftest.
$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cc_stdc
=$ac_arg
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3360 rm -f conftest.
$ac_objext
3362 rm -f conftest.
$ac_ext conftest.
$ac_objext
3367 case "x$ac_cv_prog_cc_stdc" in
3369 echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6 ;;
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3374 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3377 # Some people use a C++ compiler to compile C. Since we use `exit',
3378 # in C++ we need to declare it. In case someone uses the same compiler
3379 # for both compiling C and C++ we need to have the C++ compiler decide
3380 # the declaration of exit, since it's the most demanding environment.
3381 cat >conftest.
$ac_ext <<_ACEOF
3386 rm -f conftest.
$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try
='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 for ac_declaration
in \
3400 '#include <stdlib.h>' \
3401 'extern "C" void std::exit (int) throw (); using std::exit;' \
3402 'extern "C" void std::exit (int); using std::exit;' \
3403 'extern "C" void exit (int) throw ();' \
3404 'extern "C" void exit (int);' \
3407 cat >conftest.
$ac_ext <<_ACEOF
3408 #line $LINENO "configure"
3411 cat confdefs.h
>>conftest.
$ac_ext
3412 cat >>conftest.
$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
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
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.
$ac_ext >&5
3443 rm -f conftest.
$ac_objext conftest.
$ac_ext
3444 cat >conftest.
$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3448 cat confdefs.h
>>conftest.
$ac_ext
3449 cat >>conftest.
$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3460 rm -f conftest.
$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try
='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.
$ac_ext >&5
3478 rm -f conftest.
$ac_objext conftest.
$ac_ext
3481 if test -n "$ac_declaration"; then
3482 echo '#ifdef __cplusplus' >>confdefs.h
3483 echo $ac_declaration >>confdefs.h
3484 echo '#endif' >>confdefs.h
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.
$ac_ext >&5
3492 rm -f conftest.
$ac_objext conftest.
$ac_ext
3494 ac_cpp
='$CPP $CPPFLAGS'
3495 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3500 # On Suns, sometimes $CPP names a directory.
3501 if test -n "$CPP" && test -d "$CPP"; then
3505 #### Some systems specify a CPP to use unless we are using GCC.
3506 #### Now that we know whether we are using GCC, we can decide whether
3507 #### to use that one.
3508 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3513 #### Some systems specify a CC to use unless we are using GCC.
3514 #### Now that we know whether we are using GCC, we can decide whether
3515 #### to use that one.
3516 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3517 test x
$cc_specified != xyes
3522 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3524 CC
="$CC $GCC_TEST_OPTIONS"
3527 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3529 CC
="$CC $NON_GCC_TEST_OPTIONS"
3532 #### Some other nice autoconf tests.
3534 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3535 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3537 if test "$LN_S" = "ln -s"; then
3538 echo "$as_me:$LINENO: result: yes" >&5
3539 echo "${ECHO_T}yes" >&6
3541 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3542 echo "${ECHO_T}no, using $LN_S" >&6
3546 ac_cpp
='$CPP $CPPFLAGS'
3547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3552 # On Suns, sometimes $CPP names a directory.
3553 if test -n "$CPP" && test -d "$CPP"; then
3556 if test -z "$CPP"; then
3557 if test "${ac_cv_prog_CPP+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 # Double quotes because CPP needs to be expanded
3561 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3564 for ac_c_preproc_warn_flag
in '' yes
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
3572 cat >conftest.
$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
3576 cat confdefs.h
>>conftest.
$ac_ext
3577 cat >>conftest.
$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3587 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3589 grep -v '^ *+' conftest.er1
>conftest.err
3591 cat conftest.err
>&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev
/null
; then
3594 if test -s conftest.err
; then
3595 ac_cpp_err
=$ac_c_preproc_warn_flag
3602 if test -z "$ac_cpp_err"; then
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.
$ac_ext >&5
3608 # Broken: fails on valid input.
3611 rm -f conftest.err conftest.
$ac_ext
3613 # OK, works on sane cases. Now check whether non-existent headers
3614 # can be detected and how.
3615 cat >conftest.
$ac_ext <<_ACEOF
3616 #line $LINENO "configure"
3619 cat confdefs.h
>>conftest.
$ac_ext
3620 cat >>conftest.
$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.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
3641 # Broken: success on invalid input.
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.
$ac_ext >&5
3647 # Passes both tests.
3651 rm -f conftest.err conftest.
$ac_ext
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.
$ac_ext
3656 if $ac_preproc_ok; then
3668 echo "$as_me:$LINENO: result: $CPP" >&5
3669 echo "${ECHO_T}$CPP" >&6
3671 for ac_c_preproc_warn_flag
in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat >conftest.
$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3683 cat confdefs.h
>>conftest.
$ac_ext
3684 cat >>conftest.
$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3687 # include <limits.h>
3689 # include <assert.h>
3693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3694 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1
>conftest.err
3698 cat conftest.err
>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev
/null
; then
3701 if test -s conftest.err
; then
3702 ac_cpp_err
=$ac_c_preproc_warn_flag
3709 if test -z "$ac_cpp_err"; then
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.
$ac_ext >&5
3715 # Broken: fails on valid input.
3718 rm -f conftest.err conftest.
$ac_ext
3720 # OK, works on sane cases. Now check whether non-existent headers
3721 # can be detected and how.
3722 cat >conftest.
$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3726 cat confdefs.h
>>conftest.
$ac_ext
3727 cat >>conftest.
$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.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
3748 # Broken: success on invalid input.
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.
$ac_ext >&5
3754 # Passes both tests.
3758 rm -f conftest.err conftest.
$ac_ext
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.
$ac_ext
3763 if $ac_preproc_ok; then
3766 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3769 See \`config.log' for more details." >&2;}
3770 { (exit 1); exit 1; }; }
3774 ac_cpp
='$CPP $CPPFLAGS'
3775 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3779 # Find a good install program. We prefer a C program (faster),
3780 # so one script is as good as another. But avoid the broken or
3781 # incompatible versions:
3782 # SysV /etc/install, /usr/sbin/install
3783 # SunOS /usr/etc/install
3784 # IRIX /sbin/install
3786 # AmigaOS /C/install, which installs bootblocks on floppy discs
3787 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3790 # ./install, which can be erroneously created by make from ./install.sh.
3791 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3792 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3793 if test -z "$INSTALL"; then
3794 if test "${ac_cv_path_install+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir
=.
3802 # Account for people who put trailing slashes in PATH elements.
3804 .
/ | .
// |
/cC
/* | \
3805 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3808 # OSF1 and SCO ODT 3.0 have their own names for install.
3809 # Don't use installbsd from OSF since it installs stuff as root
3811 for ac_prog
in ginstall scoinst
install; do
3812 for ac_exec_ext
in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3814 if test $ac_prog = install &&
3815 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3816 # AIX install. It has an incompatible calling convention.
3818 elif test $ac_prog = install &&
3819 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3820 # program-specific install script used by HP pwplus--don't use.
3823 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3835 if test "${ac_cv_path_install+set}" = set; then
3836 INSTALL
=$ac_cv_path_install
3838 # As a last resort, use the slow shell script. We don't cache a
3839 # path for INSTALL within a source directory, because that will
3840 # break other packages using the cache if that directory is
3841 # removed, or if the path is relative.
3842 INSTALL
=$ac_install_sh
3845 echo "$as_me:$LINENO: result: $INSTALL" >&5
3846 echo "${ECHO_T}$INSTALL" >&6
3848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849 # It thinks the first close brace ends the variable substitution.
3850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3854 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3856 if test "x$RANLIB" = x
; then
3857 if test -n "$ac_tool_prefix"; then
3858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3859 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_RANLIB+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 if test -n "$RANLIB"; then
3866 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir
=.
3873 for ac_exec_ext
in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 RANLIB
=$ac_cv_prog_RANLIB
3885 if test -n "$RANLIB"; then
3886 echo "$as_me:$LINENO: result: $RANLIB" >&5
3887 echo "${ECHO_T}$RANLIB" >&6
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3894 if test -z "$ac_cv_prog_RANLIB"; then
3895 ac_ct_RANLIB
=$RANLIB
3896 # Extract the first word of "ranlib", so it can be a program name with args.
3897 set dummy 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_ac_ct_RANLIB+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 if test -n "$ac_ct_RANLIB"; then
3904 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_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_ac_ct_RANLIB
="ranlib"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3923 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3924 if test -n "$ac_ct_RANLIB"; then
3925 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3926 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 RANLIB
=$ac_ct_RANLIB
3934 RANLIB
="$ac_cv_prog_RANLIB"
3938 # Extract the first word of "install-info", so it can be a program name with args.
3939 set dummy install-info
; ac_word
=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 case $INSTALL_INFO in
3947 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3954 test -z "$as_dir" && as_dir
=.
3955 for ac_exec_ext
in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3969 if test -n "$INSTALL_INFO"; then
3970 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3971 echo "${ECHO_T}$INSTALL_INFO" >&6
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3977 # Extract the first word of "install-info", so it can be a program name with args.
3978 set dummy install-info
; ac_word
=$2
3979 echo "$as_me:$LINENO: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 case $INSTALL_INFO in
3986 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 for as_dir
in /usr
/sbin
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4008 if test -n "$INSTALL_INFO"; then
4009 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4010 echo "${ECHO_T}$INSTALL_INFO" >&6
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4016 # Extract the first word of "install-info", so it can be a program name with args.
4017 set dummy install-info
; ac_word
=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 case $INSTALL_INFO in
4025 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir
=.
4033 for ac_exec_ext
in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4046 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4048 if test -n "$INSTALL_INFO"; then
4049 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4050 echo "${ECHO_T}$INSTALL_INFO" >&6
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4058 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4060 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4063 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4065 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4070 echo "$as_me:$LINENO: checking for egrep" >&5
4071 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4072 if test "${ac_cv_prog_egrep+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4076 then ac_cv_prog_egrep
='grep -E'
4077 else ac_cv_prog_egrep
='egrep'
4080 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4081 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4082 EGREP
=$ac_cv_prog_egrep
4086 echo "$as_me:$LINENO: checking for AIX" >&5
4087 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4088 cat >conftest.
$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4092 cat confdefs.h
>>conftest.
$ac_ext
4093 cat >>conftest.
$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "yes" >/dev
/null
2>&1; then
4102 echo "$as_me:$LINENO: result: yes" >&5
4103 echo "${ECHO_T}yes" >&6
4104 cat >>confdefs.h
<<\_ACEOF
4105 #define _ALL_SOURCE 1
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4116 #### Extract some information from the operating system and machine files.
4118 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4119 - which libraries the lib-src programs will want, and
4120 - whether the GNU malloc routines are usable..." >&5
4121 echo "$as_me: checking the machine- and system-dependent files to find out
4122 - which libraries the lib-src programs will want, and
4123 - whether the GNU malloc routines are usable..." >&6;}
4125 ### First figure out CFLAGS (which we use for running the compiler here)
4126 ### and REAL_CFLAGS (which we use for real compilation).
4127 ### The two are the same except on a few systems, where they are made
4128 ### different to work around various lossages. For example,
4129 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4130 ### as implying static linking.
4132 ### If the CFLAGS env var is specified, we use that value
4133 ### instead of the default.
4135 ### It's not important that this name contain the PID; you can't run
4136 ### two configures in the same directory and have anything work
4138 tempcname
="conftest.c"
4141 #include "'${srcdir}'/src/'${opsysfile}'"
4142 #include "'${srcdir}'/src/'${machfile}'"
4143 #ifndef LIBS_MACHINE
4144 #define LIBS_MACHINE
4149 #ifndef C_SWITCH_SYSTEM
4150 #define C_SWITCH_SYSTEM
4152 #ifndef C_SWITCH_MACHINE
4153 #define C_SWITCH_MACHINE
4155 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4156 configure___ c_switch_system=C_SWITCH_SYSTEM
4157 configure___ c_switch_machine=C_SWITCH_MACHINE
4160 #define LIB_X11_LIB -lX11
4163 #ifndef LIBX11_MACHINE
4164 #define LIBX11_MACHINE
4167 #ifndef LIBX11_SYSTEM
4168 #define LIBX11_SYSTEM
4170 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4173 configure___ unexec=UNEXEC
4175 configure___ unexec=unexec.o
4178 #ifdef SYSTEM_MALLOC
4179 configure___ system_malloc=yes
4181 configure___ system_malloc=no
4184 #ifdef USE_MMAP_FOR_BUFFERS
4185 configure___ use_mmap_for_buffers=yes
4187 configure___ use_mmap_for_buffers=no
4190 #ifndef C_DEBUG_SWITCH
4191 #define C_DEBUG_SWITCH -g
4194 #ifndef C_OPTIMIZE_SWITCH
4196 #define C_OPTIMIZE_SWITCH -O2
4198 #define C_OPTIMIZE_SWITCH -O
4202 #ifndef LD_SWITCH_MACHINE
4203 #define LD_SWITCH_MACHINE
4206 #ifndef LD_SWITCH_SYSTEM
4207 #define LD_SWITCH_SYSTEM
4210 #ifndef LD_SWITCH_X_SITE_AUX
4211 #define LD_SWITCH_X_SITE_AUX
4214 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4215 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4217 #ifdef THIS_IS_CONFIGURE
4219 /* Get the CFLAGS for tests in configure. */
4221 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4223 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4226 #else /* not THIS_IS_CONFIGURE */
4228 /* Get the CFLAGS for real compilation. */
4230 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4232 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4235 #endif /* not THIS_IS_CONFIGURE */
4238 # The value of CPP is a quoted variable reference, so we need to do this
4239 # to get its actual value...
4240 CPP
=`eval "echo $CPP"`
4241 eval `${CPP} -Isrc ${tempcname} \
4242 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4243 if test "x$SPECIFIED_CFLAGS" = x
; then
4244 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4245 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4247 REAL_CFLAGS
="$CFLAGS"
4251 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4253 ### Make sure subsequent tests use flags consistent with the build flags.
4255 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4256 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4258 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4264 cat >>confdefs.h
<<\_ACEOF
4265 #define _GNU_SOURCE 1
4270 # Check whether --enable-largefile or --disable-largefile was given.
4271 if test "${enable_largefile+set}" = set; then
4272 enableval
="$enable_largefile"
4275 if test "$enable_largefile" != no
; then
4277 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4278 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4279 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 ac_cv_sys_largefile_CC
=no
4283 if test "$GCC" != yes; then
4286 # IRIX 6.2 and later do not support large files by default,
4287 # so use the C compiler's -n32 option if that helps.
4288 cat >conftest.
$ac_ext <<_ACEOF
4289 #line $LINENO "configure"
4292 cat confdefs.h
>>conftest.
$ac_ext
4293 cat >>conftest.
$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <sys/types.h>
4296 /* Check that off_t can represent 2**63 - 1 correctly.
4297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4298 since some C++ compilers masquerading as C compilers
4299 incorrectly reject 9223372036854775807. */
4300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4302 && LARGE_OFF_T % 2147483647 == 1)
4312 rm -f conftest.
$ac_objext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try
='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.
$ac_ext >&5
4330 rm -f conftest.
$ac_objext
4332 rm -f conftest.
$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try
='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_sys_largefile_CC
=' -n32'; break
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.
$ac_ext >&5
4350 rm -f conftest.
$ac_objext
4354 rm -f conftest.
$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4358 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4359 if test "$ac_cv_sys_largefile_CC" != no
; then
4360 CC
=$CC$ac_cv_sys_largefile_CC
4363 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4364 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4365 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 ac_cv_sys_file_offset_bits
=no
4370 cat >conftest.
$ac_ext <<_ACEOF
4371 #line $LINENO "configure"
4374 cat confdefs.h
>>conftest.
$ac_ext
4375 cat >>conftest.
$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <sys/types.h>
4378 /* Check that off_t can represent 2**63 - 1 correctly.
4379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4380 since some C++ compilers masquerading as C compilers
4381 incorrectly reject 9223372036854775807. */
4382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4384 && LARGE_OFF_T % 2147483647 == 1)
4394 rm -f conftest.
$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try
='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.
$ac_ext >&5
4412 rm -f conftest.
$ac_objext conftest.
$ac_ext
4413 cat >conftest.
$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #define _FILE_OFFSET_BITS 64
4421 #include <sys/types.h>
4422 /* Check that off_t can represent 2**63 - 1 correctly.
4423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424 since some C++ compilers masquerading as C compilers
4425 incorrectly reject 9223372036854775807. */
4426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428 && LARGE_OFF_T % 2147483647 == 1)
4438 rm -f conftest.
$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try
='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_sys_file_offset_bits
=64; break
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.
$ac_ext >&5
4456 rm -f conftest.
$ac_objext conftest.
$ac_ext
4460 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4461 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4462 if test "$ac_cv_sys_file_offset_bits" != no
; then
4464 cat >>confdefs.h
<<_ACEOF
4465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4470 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4471 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4472 if test "${ac_cv_sys_large_files+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 ac_cv_sys_large_files
=no
4477 cat >conftest.
$ac_ext <<_ACEOF
4478 #line $LINENO "configure"
4481 cat confdefs.h
>>conftest.
$ac_ext
4482 cat >>conftest.
$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <sys/types.h>
4485 /* Check that off_t can represent 2**63 - 1 correctly.
4486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4487 since some C++ compilers masquerading as C compilers
4488 incorrectly reject 9223372036854775807. */
4489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4491 && LARGE_OFF_T % 2147483647 == 1)
4501 rm -f conftest.
$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try
='test -s conftest.$ac_objext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.
$ac_ext >&5
4519 rm -f conftest.
$ac_objext conftest.
$ac_ext
4520 cat >conftest.
$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4524 cat confdefs.h
>>conftest.
$ac_ext
4525 cat >>conftest.
$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #define _LARGE_FILES 1
4528 #include <sys/types.h>
4529 /* Check that off_t can represent 2**63 - 1 correctly.
4530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4531 since some C++ compilers masquerading as C compilers
4532 incorrectly reject 9223372036854775807. */
4533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4535 && LARGE_OFF_T % 2147483647 == 1)
4545 rm -f conftest.
$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try
='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_sys_large_files
=1; break
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.
$ac_ext >&5
4563 rm -f conftest.
$ac_objext conftest.
$ac_ext
4567 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4568 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4569 if test "$ac_cv_sys_large_files" != no
; then
4571 cat >>confdefs.h
<<_ACEOF
4572 #define _LARGE_FILES $ac_cv_sys_large_files
4580 if test "${with_sound}" != "no"; then
4581 # Sound support for GNU/Linux and the free BSDs.
4582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4584 if test "${ac_cv_header_stdc+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 cat >conftest.
$ac_ext <<_ACEOF
4588 #line $LINENO "configure"
4591 cat confdefs.h
>>conftest.
$ac_ext
4592 cat >>conftest.
$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4607 rm -f conftest.
$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try
='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_header_stdc
=yes
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4624 ac_cv_header_stdc
=no
4626 rm -f conftest.
$ac_objext conftest.
$ac_ext
4628 if test $ac_cv_header_stdc = yes; then
4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630 cat >conftest.
$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4634 cat confdefs.h
>>conftest.
$ac_ext
4635 cat >>conftest.
$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 $EGREP "memchr" >/dev
/null
2>&1; then
4644 ac_cv_header_stdc
=no
4650 if test $ac_cv_header_stdc = yes; then
4651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4652 cat >conftest.
$ac_ext <<_ACEOF
4653 #line $LINENO "configure"
4656 cat confdefs.h
>>conftest.
$ac_ext
4657 cat >>conftest.
$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "free" >/dev
/null
2>&1; then
4666 ac_cv_header_stdc
=no
4672 if test $ac_cv_header_stdc = yes; then
4673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674 if test "$cross_compiling" = yes; then
4677 cat >conftest.
$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4681 cat confdefs.h
>>conftest.
$ac_ext
4682 cat >>conftest.
$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4685 #if ((' ' & 0x0FF) == 0x020)
4686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4689 # define ISLOWER(c) \
4690 (('a' <= (c) && (c) <= 'i') \
4691 || ('j' <= (c) && (c) <= 'r') \
4692 || ('s' <= (c) && (c) <= 'z'))
4693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 for (i = 0; i < 256; i++)
4702 if (XOR (islower (i), ISLOWER (i))
4703 || toupper (i) != TOUPPER (i))
4708 rm -f conftest
$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4721 echo "$as_me: program exited with status $ac_status" >&5
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4726 ac_cv_header_stdc
=no
4728 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4734 if test $ac_cv_header_stdc = yes; then
4736 cat >>confdefs.h
<<\_ACEOF
4737 #define STDC_HEADERS 1
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4753 inttypes.h stdint.h unistd.h
4755 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 cat >conftest.
$ac_ext <<_ACEOF
4762 #line $LINENO "configure"
4765 cat confdefs.h
>>conftest.
$ac_ext
4766 cat >>conftest.
$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4770 #include <$ac_header>
4772 rm -f conftest.
$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try
='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 eval "$as_ac_Header=yes"
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.
$ac_ext >&5
4789 eval "$as_ac_Header=no"
4791 rm -f conftest.
$ac_objext conftest.
$ac_ext
4793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4796 cat >>confdefs.h
<<_ACEOF
4797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4808 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4810 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4812 echo "$as_me:$LINENO: checking for $ac_header" >&5
4813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4820 # Is the header compilable?
4821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4823 cat >conftest.
$ac_ext <<_ACEOF
4824 #line $LINENO "configure"
4827 cat confdefs.h
>>conftest.
$ac_ext
4828 cat >>conftest.
$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_includes_default
4831 #include <$ac_header>
4833 rm -f conftest.
$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try
='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_header_compiler
=yes
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.
$ac_ext >&5
4850 ac_header_compiler
=no
4852 rm -f conftest.
$ac_objext conftest.
$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4854 echo "${ECHO_T}$ac_header_compiler" >&6
4856 # Is the header present?
4857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4859 cat >conftest.
$ac_ext <<_ACEOF
4860 #line $LINENO "configure"
4863 cat confdefs.h
>>conftest.
$ac_ext
4864 cat >>conftest.
$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <$ac_header>
4868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4871 grep -v '^ *+' conftest.er1
>conftest.err
4873 cat conftest.err
>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev
/null
; then
4876 if test -s conftest.err
; then
4877 ac_cpp_err
=$ac_c_preproc_warn_flag
4884 if test -z "$ac_cpp_err"; then
4885 ac_header_preproc
=yes
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4890 ac_header_preproc
=no
4892 rm -f conftest.err conftest.
$ac_ext
4893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4894 echo "${ECHO_T}$ac_header_preproc" >&6
4896 # So? What about this header?
4897 case $ac_header_compiler:$ac_header_preproc in
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905 ## ------------------------------------ ##
4906 ## Report this to bug-autoconf@gnu.org. ##
4907 ## ------------------------------------ ##
4910 sed "s/^/$as_me: WARNING: /" >&2
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4921 ## ------------------------------------ ##
4922 ## Report this to bug-autoconf@gnu.org. ##
4923 ## ------------------------------------ ##
4926 sed "s/^/$as_me: WARNING: /" >&2
4929 echo "$as_me:$LINENO: checking for $ac_header" >&5
4930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 eval "$as_ac_Header=$ac_header_preproc"
4936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4941 cat >>confdefs.h
<<_ACEOF
4942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4949 # Emulation library used on NetBSD.
4950 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4951 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4952 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 ac_check_lib_save_LIBS
=$LIBS
4956 LIBS
="-lossaudio $LIBS"
4957 cat >conftest.
$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4961 cat confdefs.h
>>conftest.
$ac_ext
4962 cat >>conftest.
$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4980 rm -f conftest.
$ac_objext conftest
$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try
='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_lib_ossaudio__oss_ioctl
=yes
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.
$ac_ext >&5
4997 ac_cv_lib_ossaudio__oss_ioctl
=no
4999 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5000 LIBS
=$ac_check_lib_save_LIBS
5002 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5003 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5004 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5036 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5037 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5038 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5039 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5041 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5043 echo "$as_me:$LINENO: checking for $ac_header" >&5
5044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5051 # Is the header compilable?
5052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5054 cat >conftest.
$ac_ext <<_ACEOF
5055 #line $LINENO "configure"
5058 cat confdefs.h
>>conftest.
$ac_ext
5059 cat >>conftest.
$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5062 #include <$ac_header>
5064 rm -f conftest.
$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try
='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_header_compiler
=yes
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.
$ac_ext >&5
5081 ac_header_compiler
=no
5083 rm -f conftest.
$ac_objext conftest.
$ac_ext
5084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5085 echo "${ECHO_T}$ac_header_compiler" >&6
5087 # Is the header present?
5088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5090 cat >conftest.
$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5094 cat confdefs.h
>>conftest.
$ac_ext
5095 cat >>conftest.
$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 #include <$ac_header>
5099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5102 grep -v '^ *+' conftest.er1
>conftest.err
5104 cat conftest.err
>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev
/null
; then
5107 if test -s conftest.err
; then
5108 ac_cpp_err
=$ac_c_preproc_warn_flag
5115 if test -z "$ac_cpp_err"; then
5116 ac_header_preproc
=yes
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.
$ac_ext >&5
5121 ac_header_preproc
=no
5123 rm -f conftest.err conftest.
$ac_ext
5124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5125 echo "${ECHO_T}$ac_header_preproc" >&6
5127 # So? What about this header?
5128 case $ac_header_compiler:$ac_header_preproc in
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5136 ## ------------------------------------ ##
5137 ## Report this to bug-autoconf@gnu.org. ##
5138 ## ------------------------------------ ##
5141 sed "s/^/$as_me: WARNING: /" >&2
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5152 ## ------------------------------------ ##
5153 ## Report this to bug-autoconf@gnu.org. ##
5154 ## ------------------------------------ ##
5157 sed "s/^/$as_me: WARNING: /" >&2
5160 echo "$as_me:$LINENO: checking for $ac_header" >&5
5161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 eval "$as_ac_Header=$ac_header_preproc"
5167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5172 cat >>confdefs.h
<<_ACEOF
5173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5181 for ac_header
in term.h
5183 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5184 echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 cat >conftest.
$ac_ext <<_ACEOF
5190 #line $LINENO "configure"
5193 cat confdefs.h
>>conftest.
$ac_ext
5194 cat >>conftest.
$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 #include <$ac_header>
5198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5201 grep -v '^ *+' conftest.er1
>conftest.err
5203 cat conftest.err
>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev
/null
; then
5206 if test -s conftest.err
; then
5207 ac_cpp_err
=$ac_c_preproc_warn_flag
5214 if test -z "$ac_cpp_err"; then
5215 eval "$as_ac_Header=yes"
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.
$ac_ext >&5
5220 eval "$as_ac_Header=no"
5222 rm -f conftest.err conftest.
$ac_ext
5224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5227 cat >>confdefs.h
<<_ACEOF
5228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5235 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5237 if test "${ac_cv_header_stdc+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 cat >conftest.
$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5244 cat confdefs.h
>>conftest.
$ac_ext
5245 cat >>conftest.
$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5260 rm -f conftest.
$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try
='test -s conftest.$ac_objext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 ac_cv_header_stdc
=yes
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.
$ac_ext >&5
5277 ac_cv_header_stdc
=no
5279 rm -f conftest.
$ac_objext conftest.
$ac_ext
5281 if test $ac_cv_header_stdc = yes; then
5282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5283 cat >conftest.
$ac_ext <<_ACEOF
5284 #line $LINENO "configure"
5287 cat confdefs.h
>>conftest.
$ac_ext
5288 cat >>conftest.
$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 $EGREP "memchr" >/dev
/null
2>&1; then
5297 ac_cv_header_stdc
=no
5303 if test $ac_cv_header_stdc = yes; then
5304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5305 cat >conftest.
$ac_ext <<_ACEOF
5306 #line $LINENO "configure"
5309 cat confdefs.h
>>conftest.
$ac_ext
5310 cat >>conftest.
$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5316 $EGREP "free" >/dev
/null
2>&1; then
5319 ac_cv_header_stdc
=no
5325 if test $ac_cv_header_stdc = yes; then
5326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5327 if test "$cross_compiling" = yes; then
5330 cat >conftest.
$ac_ext <<_ACEOF
5331 #line $LINENO "configure"
5334 cat confdefs.h
>>conftest.
$ac_ext
5335 cat >>conftest.
$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5338 #if ((' ' & 0x0FF) == 0x020)
5339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5342 # define ISLOWER(c) \
5343 (('a' <= (c) && (c) <= 'i') \
5344 || ('j' <= (c) && (c) <= 'r') \
5345 || ('s' <= (c) && (c) <= 'z'))
5346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5354 for (i = 0; i < 256; i++)
5355 if (XOR (islower (i), ISLOWER (i))
5356 || toupper (i) != TOUPPER (i))
5361 rm -f conftest
$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5374 echo "$as_me: program exited with status $ac_status" >&5
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.
$ac_ext >&5
5379 ac_cv_header_stdc
=no
5381 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5385 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5386 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5387 if test $ac_cv_header_stdc = yes; then
5389 cat >>confdefs.h
<<\_ACEOF
5390 #define STDC_HEADERS 1
5395 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5396 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5397 if test "${ac_cv_header_time+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 cat >conftest.
$ac_ext <<_ACEOF
5401 #line $LINENO "configure"
5404 cat confdefs.h
>>conftest.
$ac_ext
5405 cat >>conftest.
$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <sys/types.h>
5408 #include <sys/time.h>
5414 if ((struct tm *) 0)
5420 rm -f conftest.
$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try
='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_cv_header_time
=yes
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.
$ac_ext >&5
5437 ac_cv_header_time
=no
5439 rm -f conftest.
$ac_objext conftest.
$ac_ext
5441 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5442 echo "${ECHO_T}$ac_cv_header_time" >&6
5443 if test $ac_cv_header_time = yes; then
5445 cat >>confdefs.h
<<\_ACEOF
5446 #define TIME_WITH_SYS_TIME 1
5451 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5452 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5453 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 cat >conftest.
$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5460 cat confdefs.h
>>conftest.
$ac_ext
5461 cat >>conftest.
$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5468 char *p = (char *) sys_siglist;
5475 rm -f conftest.
$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } &&
5481 { ac_try
='test -s conftest.$ac_objext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_have_decl_sys_siglist
=yes
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.
$ac_ext >&5
5492 ac_cv_have_decl_sys_siglist
=no
5494 rm -f conftest.
$ac_objext conftest.
$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5497 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5498 if test $ac_cv_have_decl_sys_siglist = yes; then
5500 cat >>confdefs.h
<<_ACEOF
5501 #define HAVE_DECL_SYS_SIGLIST 1
5506 cat >>confdefs.h
<<_ACEOF
5507 #define HAVE_DECL_SYS_SIGLIST 0
5514 if test $ac_cv_have_decl_sys_siglist != yes; then
5515 # For Tru64, at least:
5516 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5517 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5518 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 cat >conftest.
$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 $ac_includes_default
5532 #ifndef __sys_siglist
5533 char *p = (char *) __sys_siglist;
5540 rm -f conftest.
$ac_objext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try
='test -s conftest.$ac_objext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_have_decl___sys_siglist
=yes
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.
$ac_ext >&5
5557 ac_cv_have_decl___sys_siglist
=no
5559 rm -f conftest.
$ac_objext conftest.
$ac_ext
5561 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5562 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5563 if test $ac_cv_have_decl___sys_siglist = yes; then
5565 cat >>confdefs.h
<<_ACEOF
5566 #define HAVE_DECL___SYS_SIGLIST 1
5571 cat >>confdefs.h
<<_ACEOF
5572 #define HAVE_DECL___SYS_SIGLIST 0
5579 if test $ac_cv_have_decl___sys_siglist = yes; then
5581 cat >>confdefs.h
<<\_ACEOF
5582 #define sys_siglist __sys_siglist
5587 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5588 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5589 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 cat >conftest.
$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5596 cat confdefs.h
>>conftest.
$ac_ext
5597 cat >>conftest.
$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #include <sys/types.h>
5600 #include <sys/wait.h>
5602 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5605 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5613 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5618 rm -f conftest.
$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try
='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_cv_header_sys_wait_h
=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.
$ac_ext >&5
5635 ac_cv_header_sys_wait_h
=no
5637 rm -f conftest.
$ac_objext conftest.
$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5640 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5641 if test $ac_cv_header_sys_wait_h = yes; then
5643 cat >>confdefs.h
<<\_ACEOF
5644 #define HAVE_SYS_WAIT_H 1
5650 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5651 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5652 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 cat >conftest.
$ac_ext <<_ACEOF
5656 #line $LINENO "configure"
5659 cat confdefs.h
>>conftest.
$ac_ext
5660 cat >>conftest.
$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #ifdef TIME_WITH_SYS_TIME
5663 #include <sys/time.h>
5666 #ifdef HAVE_SYS_TIME_H
5667 #include <sys/time.h>
5678 static struct utimbuf x; x.actime = x.modtime;
5683 rm -f conftest.
$ac_objext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685 (eval $ac_compile) 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try
='test -s conftest.$ac_objext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 emacs_cv_struct_utimbuf
=yes
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.
$ac_ext >&5
5700 emacs_cv_struct_utimbuf
=no
5702 rm -f conftest.
$ac_objext conftest.
$ac_ext
5704 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5705 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5706 if test $emacs_cv_struct_utimbuf = yes; then
5708 cat >>confdefs.h
<<\_ACEOF
5709 #define HAVE_STRUCT_UTIMBUF 1
5714 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5715 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5716 if test "${ac_cv_type_signal+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 cat >conftest.
$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5723 cat confdefs.h
>>conftest.
$ac_ext
5724 cat >>conftest.
$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #include <sys/types.h>
5732 extern "C" void (*signal (int, void (*)(int)))(int);
5734 void (*signal ()) ();
5745 rm -f conftest.
$ac_objext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747 (eval $ac_compile) 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try
='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_type_signal
=void
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.
$ac_ext >&5
5762 ac_cv_type_signal
=int
5764 rm -f conftest.
$ac_objext conftest.
$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5767 echo "${ECHO_T}$ac_cv_type_signal" >&6
5769 cat >>confdefs.h
<<_ACEOF
5770 #define RETSIGTYPE $ac_cv_type_signal
5775 echo "$as_me:$LINENO: checking for speed_t" >&5
5776 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5777 if test "${emacs_cv_speed_t+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 cat >conftest.
$ac_ext <<_ACEOF
5781 #line $LINENO "configure"
5784 cat confdefs.h
>>conftest.
$ac_ext
5785 cat >>conftest.
$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 #include <termios.h>
5796 rm -f conftest.
$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try
='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 emacs_cv_speed_t
=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.
$ac_ext >&5
5815 rm -f conftest.
$ac_objext conftest.
$ac_ext
5817 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5818 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5819 if test $emacs_cv_speed_t = yes; then
5821 cat >>confdefs.h
<<\_ACEOF
5822 #define HAVE_SPEED_T 1
5827 echo "$as_me:$LINENO: checking for struct timeval" >&5
5828 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5829 if test "${emacs_cv_struct_timeval+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 cat >conftest.
$ac_ext <<_ACEOF
5833 #line $LINENO "configure"
5836 cat confdefs.h
>>conftest.
$ac_ext
5837 cat >>conftest.
$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #ifdef TIME_WITH_SYS_TIME
5840 #include <sys/time.h>
5843 #ifdef HAVE_SYS_TIME_H
5844 #include <sys/time.h>
5852 static struct timeval x; x.tv_sec = x.tv_usec;
5857 rm -f conftest.
$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try
='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 emacs_cv_struct_timeval
=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.
$ac_ext >&5
5874 emacs_cv_struct_timeval
=no
5876 rm -f conftest.
$ac_objext conftest.
$ac_ext
5878 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5879 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5880 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5881 if test $emacs_cv_struct_timeval = yes; then
5883 cat >>confdefs.h
<<\_ACEOF
5884 #define HAVE_TIMEVAL 1
5889 echo "$as_me:$LINENO: checking for struct exception" >&5
5890 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5891 if test "${emacs_cv_struct_exception+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 cat >conftest.
$ac_ext <<_ACEOF
5895 #line $LINENO "configure"
5898 cat confdefs.h
>>conftest.
$ac_ext
5899 cat >>conftest.
$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5905 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5910 rm -f conftest.
$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try
='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 emacs_cv_struct_exception
=yes
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.
$ac_ext >&5
5927 emacs_cv_struct_exception
=no
5929 rm -f conftest.
$ac_objext conftest.
$ac_ext
5931 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5932 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5933 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5934 if test $emacs_cv_struct_exception != yes; then
5936 cat >>confdefs.h
<<\_ACEOF
5937 #define NO_MATHERR 1
5942 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5943 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5944 if test "${ac_cv_struct_tm+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 cat >conftest.
$ac_ext <<_ACEOF
5948 #line $LINENO "configure"
5951 cat confdefs.h
>>conftest.
$ac_ext
5952 cat >>conftest.
$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <sys/types.h>
5960 struct tm *tp; tp->tm_sec;
5965 rm -f conftest.
$ac_objext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967 (eval $ac_compile) 2>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try
='test -s conftest.$ac_objext'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_struct_tm
=time.h
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.
$ac_ext >&5
5982 ac_cv_struct_tm
=sys
/time.h
5984 rm -f conftest.
$ac_objext conftest.
$ac_ext
5986 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5987 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5988 if test $ac_cv_struct_tm = sys
/time.h
; then
5990 cat >>confdefs.h
<<\_ACEOF
5991 #define TM_IN_SYS_TIME 1
5996 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5997 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5998 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 cat >conftest.
$ac_ext <<_ACEOF
6002 #line $LINENO "configure"
6005 cat confdefs.h
>>conftest.
$ac_ext
6006 cat >>conftest.
$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <sys/types.h>
6009 #include <$ac_cv_struct_tm>
6015 static struct tm ac_aggr;
6016 if (ac_aggr.tm_zone)
6022 rm -f conftest.
$ac_objext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6024 (eval $ac_compile) 2>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try
='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_member_struct_tm_tm_zone
=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.
$ac_ext >&5
6039 cat >conftest.
$ac_ext <<_ACEOF
6040 #line $LINENO "configure"
6043 cat confdefs.h
>>conftest.
$ac_ext
6044 cat >>conftest.
$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #include <sys/types.h>
6047 #include <$ac_cv_struct_tm>
6053 static struct tm ac_aggr;
6054 if (sizeof ac_aggr.tm_zone)
6060 rm -f conftest.
$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 (eval $ac_compile) 2>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -s conftest.$ac_objext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_cv_member_struct_tm_tm_zone
=yes
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.
$ac_ext >&5
6077 ac_cv_member_struct_tm_tm_zone
=no
6079 rm -f conftest.
$ac_objext conftest.
$ac_ext
6081 rm -f conftest.
$ac_objext conftest.
$ac_ext
6083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6084 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6085 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6087 cat >>confdefs.h
<<_ACEOF
6088 #define HAVE_STRUCT_TM_TM_ZONE 1
6094 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6096 cat >>confdefs.h
<<\_ACEOF
6097 #define HAVE_TM_ZONE 1
6101 echo "$as_me:$LINENO: checking for tzname" >&5
6102 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6103 if test "${ac_cv_var_tzname+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 cat >conftest.
$ac_ext <<_ACEOF
6107 #line $LINENO "configure"
6110 cat confdefs.h
>>conftest.
$ac_ext
6111 cat >>conftest.
$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6114 #ifndef tzname /* For SGI. */
6115 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6126 rm -f conftest.
$ac_objext conftest
$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128 (eval $ac_link) 2>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try
='test -s conftest$ac_exeext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_var_tzname
=yes
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.
$ac_ext >&5
6145 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6148 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6149 if test $ac_cv_var_tzname = yes; then
6151 cat >>confdefs.h
<<\_ACEOF
6152 #define HAVE_TZNAME 1
6158 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6159 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6160 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 cat >conftest.
$ac_ext <<_ACEOF
6164 #line $LINENO "configure"
6167 cat confdefs.h
>>conftest.
$ac_ext
6168 cat >>conftest.
$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6175 static struct tm ac_aggr;
6176 if (ac_aggr.tm_gmtoff)
6182 rm -f conftest.
$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184 (eval $ac_compile) 2>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 ac_cv_member_struct_tm_tm_gmtoff
=yes
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.
$ac_ext >&5
6199 cat >conftest.
$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6203 cat confdefs.h
>>conftest.
$ac_ext
6204 cat >>conftest.
$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6211 static struct tm ac_aggr;
6212 if (sizeof ac_aggr.tm_gmtoff)
6218 rm -f conftest.
$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220 (eval $ac_compile) 2>&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try
='test -s conftest.$ac_objext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_cv_member_struct_tm_tm_gmtoff
=yes
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.
$ac_ext >&5
6235 ac_cv_member_struct_tm_tm_gmtoff
=no
6237 rm -f conftest.
$ac_objext conftest.
$ac_ext
6239 rm -f conftest.
$ac_objext conftest.
$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6242 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6243 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6245 cat >>confdefs.h
<<\_ACEOF
6246 #define HAVE_TM_GMTOFF 1
6253 echo "$as_me:$LINENO: checking for function prototypes" >&5
6254 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6255 if test "$ac_cv_prog_cc_stdc" != no
; then
6256 echo "$as_me:$LINENO: result: yes" >&5
6257 echo "${ECHO_T}yes" >&6
6259 cat >>confdefs.h
<<\_ACEOF
6260 #define PROTOTYPES 1
6264 cat >>confdefs.h
<<\_ACEOF
6265 #define __PROTOTYPES 1
6269 echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6273 echo "$as_me:$LINENO: checking for working volatile" >&5
6274 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6275 if test "${ac_cv_c_volatile+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 cat >conftest.
$ac_ext <<_ACEOF
6279 #line $LINENO "configure"
6282 cat confdefs.h
>>conftest.
$ac_ext
6283 cat >>conftest.
$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6296 rm -f conftest.
$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try
='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_c_volatile
=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.
$ac_ext >&5
6315 rm -f conftest.
$ac_objext conftest.
$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6318 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6319 if test $ac_cv_c_volatile = no
; then
6321 cat >>confdefs.h
<<\_ACEOF
6327 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6328 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6329 if test "${ac_cv_c_const+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 cat >conftest.
$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6336 cat confdefs.h
>>conftest.
$ac_ext
6337 cat >>conftest.
$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6343 /* FIXME: Include the comments suggested by Paul. */
6345 /* Ultrix mips cc rejects this. */
6346 typedef int charset[2];
6348 /* SunOS 4.1.1 cc rejects this. */
6349 char const *const *ccp;
6351 /* NEC SVR4.0.2 mips cc rejects this. */
6352 struct point {int x, y;};
6353 static struct point const zero = {0,0};
6354 /* AIX XL C 1.02.0.0 rejects this.
6355 It does not let you subtract one const X* pointer from another in
6356 an arm of an if-expression whose if-part is not a constant
6358 const char *g = "string";
6359 ccp = &g + (g ? g-g : 0);
6360 /* HPUX 7.0 cc rejects these. */
6363 ccp = (char const *const *) p;
6364 { /* SCO 3.2v4 cc rejects this. */
6366 char const *s = 0 ? (char *) 0 : (char const *) 0;
6370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6372 const int *foo = &x[0];
6375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6376 typedef const int *iptr;
6380 { /* AIX XL C 1.02.0.0 rejects this saying
6381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6382 struct s { int j; const int *ap[3]; };
6383 struct s *b; b->j = 5;
6385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6394 rm -f conftest.
$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try
='test -s conftest.$ac_objext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.
$ac_ext >&5
6413 rm -f conftest.
$ac_objext conftest.
$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6416 echo "${ECHO_T}$ac_cv_c_const" >&6
6417 if test $ac_cv_c_const = no
; then
6419 cat >>confdefs.h
<<\_ACEOF
6425 echo "$as_me:$LINENO: checking for void * support" >&5
6426 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6427 if test "${emacs_cv_void_star+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 cat >conftest.
$ac_ext <<_ACEOF
6431 #line $LINENO "configure"
6434 cat confdefs.h
>>conftest.
$ac_ext
6435 cat >>conftest.
$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6446 rm -f conftest.
$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try
='test -s conftest.$ac_objext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 emacs_cv_void_star
=yes
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.
$ac_ext >&5
6463 emacs_cv_void_star
=no
6465 rm -f conftest.
$ac_objext conftest.
$ac_ext
6467 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6468 echo "${ECHO_T}$emacs_cv_void_star" >&6
6469 if test $emacs_cv_void_star = yes; then
6470 cat >>confdefs.h
<<\_ACEOF
6471 #define POINTER_TYPE void
6475 cat >>confdefs.h
<<\_ACEOF
6476 #define POINTER_TYPE char
6483 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6484 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6485 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6486 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 cat >conftest.
make <<\_ACEOF
6491 @
echo 'ac_maketemp="$(MAKE)"'
6493 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6494 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6495 if test -n "$ac_maketemp"; then
6496 eval ac_cv_prog_make_
${ac_make}_set
=yes
6498 eval ac_cv_prog_make_
${ac_make}_set
=no
6502 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6503 echo "$as_me:$LINENO: result: yes" >&5
6504 echo "${ECHO_T}yes" >&6
6507 echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6509 SET_MAKE
="MAKE=${MAKE-make}"
6513 echo "$as_me:$LINENO: checking for long file names" >&5
6514 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6515 if test "${ac_cv_sys_long_file_names+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_cv_sys_long_file_names
=yes
6519 # Test for long file names in all the places we know might matter:
6520 # . the current directory, where building will happen
6521 # $prefix/lib where we will be installing things
6522 # $exec_prefix/lib likewise
6523 # eval it to expand exec_prefix.
6524 # $TMPDIR if set, where it might want to write temporary files
6525 # if $TMPDIR is not set:
6526 # /tmp where it might want to write temporary files
6529 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6532 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6534 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6535 test -d $ac_dir ||
continue
6536 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6537 ac_xdir
=$ac_dir/cf$$
6538 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6539 ac_tf1
=$ac_xdir/conftest9012345
6540 ac_tf2
=$ac_xdir/conftest9012346
6541 (echo 1 >$ac_tf1) 2>/dev
/null
6542 (echo 2 >$ac_tf2) 2>/dev
/null
6543 ac_val
=`cat $ac_tf1 2>/dev/null`
6544 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6545 ac_cv_sys_long_file_names
=no
6546 rm -rf $ac_xdir 2>/dev
/null
6549 rm -rf $ac_xdir 2>/dev
/null
6552 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6553 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6554 if test $ac_cv_sys_long_file_names = yes; then
6556 cat >>confdefs.h
<<\_ACEOF
6557 #define HAVE_LONG_FILE_NAMES 1
6563 #### Choose a window system.
6565 echo "$as_me:$LINENO: checking for X" >&5
6566 echo $ECHO_N "checking for X... $ECHO_C" >&6
6569 # Check whether --with-x or --without-x was given.
6570 if test "${with_x+set}" = set; then
6574 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6575 if test "x$with_x" = xno
; then
6576 # The user explicitly disabled X.
6579 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6580 # Both variables are already set.
6583 if test "${ac_cv_have_x+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 # One or both of the vars are not set, and there is no cached value.
6587 ac_x_includes
=no ac_x_libraries
=no
6589 if mkdir conftest.dir
; then
6591 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6592 cat >Imakefile
<<'_ACEOF'
6594 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6596 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6597 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6598 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6599 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6600 for ac_extension
in a so sl
; do
6601 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6602 test -f $ac_im_libdir/libX11.
$ac_extension; then
6603 ac_im_usrlibdir
=$ac_im_libdir; break
6606 # Screen out bogus values from the imake configuration. They are
6607 # bogus both because they are the default anyway, and because
6608 # using them would break gcc on systems where it needs fixed includes.
6609 case $ac_im_incroot in
6611 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6613 case $ac_im_usrlibdir in
6615 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6622 # Standard set of common directories for X headers.
6623 # Check X11 before X11Rn because it is often a symlink to the current release.
6635 /usr/local/X11/include
6636 /usr/local/X11R6/include
6637 /usr/local/X11R5/include
6638 /usr/local/X11R4/include
6640 /usr/local/include/X11
6641 /usr/local/include/X11R6
6642 /usr/local/include/X11R5
6643 /usr/local/include/X11R4
6647 /usr/XFree86/include/X11
6651 /usr/unsupported/include
6653 /usr/local/x11r5/include
6654 /usr/lpp/Xamples/include
6656 /usr/openwin/include
6657 /usr/openwin/share/include'
6659 if test "$ac_x_includes" = no
; then
6660 # Guess where to find include files, by looking for Intrinsic.h.
6661 # First, try using that file with no special directory specified.
6662 cat >conftest.
$ac_ext <<_ACEOF
6663 #line $LINENO "configure"
6666 cat confdefs.h
>>conftest.
$ac_ext
6667 cat >>conftest.
$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <X11/Intrinsic.h>
6671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6674 grep -v '^ *+' conftest.er1
>conftest.err
6676 cat conftest.err
>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } >/dev
/null
; then
6679 if test -s conftest.err
; then
6680 ac_cpp_err
=$ac_c_preproc_warn_flag
6687 if test -z "$ac_cpp_err"; then
6688 # We can compile using X headers with no special include directory.
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.
$ac_ext >&5
6694 for ac_dir
in $ac_x_header_dirs; do
6695 if test -r "$ac_dir/X11/Intrinsic.h"; then
6696 ac_x_includes
=$ac_dir
6701 rm -f conftest.err conftest.
$ac_ext
6702 fi # $ac_x_includes = no
6704 if test "$ac_x_libraries" = no
; then
6705 # Check for the libraries.
6706 # See if we find them without any special options.
6707 # Don't add to $LIBS permanently.
6710 cat >conftest.
$ac_ext <<_ACEOF
6711 #line $LINENO "configure"
6714 cat confdefs.h
>>conftest.
$ac_ext
6715 cat >>conftest.
$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #include <X11/Intrinsic.h>
6726 rm -f conftest.
$ac_objext conftest
$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728 (eval $ac_link) 2>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try
='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6739 # We can link X programs with no special library path.
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.
$ac_ext >&5
6746 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6748 # Don't even attempt the hair of trying to link an X program!
6749 for ac_extension
in a so sl
; do
6750 if test -r $ac_dir/libXt.
$ac_extension; then
6751 ac_x_libraries
=$ac_dir
6757 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6758 fi # $ac_x_libraries = no
6760 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6761 # Didn't find X anywhere. Cache the known absence of X.
6762 ac_cv_have_x
="have_x=no"
6764 # Record where we found X for the cache.
6765 ac_cv_have_x
="have_x=yes \
6766 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6771 eval "$ac_cv_have_x"
6774 if test "$have_x" != yes; then
6775 echo "$as_me:$LINENO: result: $have_x" >&5
6776 echo "${ECHO_T}$have_x" >&6
6779 # If each of the values was on the command line, it overrides each guess.
6780 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6781 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6782 # Update the cache value to reflect the command line values.
6783 ac_cv_have_x
="have_x=yes \
6784 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6785 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6786 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6789 if test "$no_x" = yes; then
6795 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6796 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6797 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6798 x_default_search_path
=""
6799 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6801 ${x_library}/X11/%L/%T/%N%C%S:\
6802 ${x_library}/X11/%l/%T/%N%C%S:\
6803 ${x_library}/X11/%T/%N%C%S:\
6804 ${x_library}/X11/%L/%T/%N%S:\
6805 ${x_library}/X11/%l/%T/%N%S:\
6806 ${x_library}/X11/%T/%N%S"
6807 if test x
"${x_default_search_path}" = x
; then
6808 x_default_search_path
=${x_search_path}
6810 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6814 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6815 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6818 if test x
"${x_includes}" = x
; then
6819 bitmapdir
=/usr
/include
/X11
/bitmaps
6821 # accumulate include directories that have X11 bitmap subdirectories
6823 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6824 if test -d "${bmd}/X11/bitmaps"; then
6825 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6827 if test -d "${bmd}/bitmaps"; then
6828 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6831 if test ${bmd_acc} != "dummyval"; then
6832 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6836 case "${window_system}" in
6840 case "${with_x_toolkit}" in
6841 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6842 motif
) USE_X_TOOLKIT
=MOTIF
;;
6844 USE_X_TOOLKIT
=none
;;
6845 no
) USE_X_TOOLKIT
=none
;;
6846 * ) USE_X_TOOLKIT
=maybe
;;
6856 ### If we're using X11, we should use the X menu package.
6859 yes ) HAVE_MENUS
=yes ;;
6862 if test "${opsys}" = "hpux9"; then
6863 case "${x_libraries}" in
6865 opsysfile
="s/hpux9-x11r4.h"
6870 if test "${opsys}" = "hpux9shr"; then
6871 case "${x_libraries}" in
6873 opsysfile
="s/hpux9shxr4.h"
6878 ### Compute the unexec source name from the object name.
6879 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6881 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6882 # Assume not, until told otherwise.
6885 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6886 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6887 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 cat >conftest.
$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6894 cat confdefs.h
>>conftest.
$ac_ext
6895 cat >>conftest.
$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 /* System header to define __stub macros and hopefully few prototypes,
6898 which can conflict with char malloc_get_state (); below.
6899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6900 <limits.h> exists even on freestanding compilers. */
6902 # include <limits.h>
6904 # include <assert.h>
6906 /* Override any gcc2 internal prototype to avoid an error. */
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6913 char malloc_get_state ();
6914 /* The GNU C library defines this for functions which it implements
6915 to always fail with ENOSYS. Some functions are actually named
6916 something starting with __ and the normal name is an alias. */
6917 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6920 char (*f) () = malloc_get_state;
6929 return f != malloc_get_state;
6934 rm -f conftest.
$ac_objext conftest
$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try
='test -s conftest$ac_exeext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 ac_cv_func_malloc_get_state
=yes
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.
$ac_ext >&5
6951 ac_cv_func_malloc_get_state
=no
6953 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6955 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6956 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6957 if test $ac_cv_func_malloc_get_state = yes; then
6963 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6964 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6965 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.
$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6972 cat confdefs.h
>>conftest.
$ac_ext
6973 cat >>conftest.
$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 /* System header to define __stub macros and hopefully few prototypes,
6976 which can conflict with char malloc_set_state (); below.
6977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978 <limits.h> exists even on freestanding compilers. */
6980 # include <limits.h>
6982 # include <assert.h>
6984 /* Override any gcc2 internal prototype to avoid an error. */
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6991 char malloc_set_state ();
6992 /* The GNU C library defines this for functions which it implements
6993 to always fail with ENOSYS. Some functions are actually named
6994 something starting with __ and the normal name is an alias. */
6995 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6998 char (*f) () = malloc_set_state;
7007 return f != malloc_set_state;
7012 rm -f conftest.
$ac_objext conftest
$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014 (eval $ac_link) 2>&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try
='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_cv_func_malloc_set_state
=yes
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.
$ac_ext >&5
7029 ac_cv_func_malloc_set_state
=no
7031 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7033 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7034 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7035 if test $ac_cv_func_malloc_set_state = yes; then
7041 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7042 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7043 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.
$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7050 cat confdefs.h
>>conftest.
$ac_ext
7051 cat >>conftest.
$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 extern void (* __after_morecore_hook)();
7057 __after_morecore_hook = 0
7062 rm -f conftest.
$ac_objext conftest
$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try
='test -s conftest$ac_exeext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 emacs_cv_var___after_morecore_hook
=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.
$ac_ext >&5
7079 emacs_cv_var___after_morecore_hook
=no
7081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7083 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7084 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7085 if test $emacs_cv_var___after_morecore_hook = no
; then
7088 if test "${system_malloc}" = "yes"; then
7091 (The GNU allocators don't work with this system configuration.)"
7093 if test "$doug_lea_malloc" = "yes" ; then
7094 if test "$GNU_MALLOC" = yes ; then
7096 (Using Doug Lea's new malloc from the GNU C Library.)"
7099 cat >>confdefs.h
<<\_ACEOF
7100 #define DOUG_LEA_MALLOC 1
7105 if test x
"${REL_ALLOC}" = x
; then
7106 REL_ALLOC
=${GNU_MALLOC}
7112 for ac_header
in stdlib.h unistd.h
7114 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7116 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7124 # Is the header compilable?
7125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7127 cat >conftest.
$ac_ext <<_ACEOF
7128 #line $LINENO "configure"
7131 cat confdefs.h
>>conftest.
$ac_ext
7132 cat >>conftest.
$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 $ac_includes_default
7135 #include <$ac_header>
7137 rm -f conftest.
$ac_objext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try
='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 ac_header_compiler
=yes
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.
$ac_ext >&5
7154 ac_header_compiler
=no
7156 rm -f conftest.
$ac_objext conftest.
$ac_ext
7157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7158 echo "${ECHO_T}$ac_header_compiler" >&6
7160 # Is the header present?
7161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7163 cat >conftest.
$ac_ext <<_ACEOF
7164 #line $LINENO "configure"
7167 cat confdefs.h
>>conftest.
$ac_ext
7168 cat >>conftest.
$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 #include <$ac_header>
7172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7173 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7175 grep -v '^ *+' conftest.er1
>conftest.err
7177 cat conftest.err
>&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } >/dev
/null
; then
7180 if test -s conftest.err
; then
7181 ac_cpp_err
=$ac_c_preproc_warn_flag
7188 if test -z "$ac_cpp_err"; then
7189 ac_header_preproc
=yes
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.
$ac_ext >&5
7194 ac_header_preproc
=no
7196 rm -f conftest.err conftest.
$ac_ext
7197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7198 echo "${ECHO_T}$ac_header_preproc" >&6
7200 # So? What about this header?
7201 case $ac_header_compiler:$ac_header_preproc in
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7209 ## ------------------------------------ ##
7210 ## Report this to bug-autoconf@gnu.org. ##
7211 ## ------------------------------------ ##
7214 sed "s/^/$as_me: WARNING: /" >&2
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7225 ## ------------------------------------ ##
7226 ## Report this to bug-autoconf@gnu.org. ##
7227 ## ------------------------------------ ##
7230 sed "s/^/$as_me: WARNING: /" >&2
7233 echo "$as_me:$LINENO: checking for $ac_header" >&5
7234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 eval "$as_ac_Header=$ac_header_preproc"
7240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7245 cat >>confdefs.h
<<_ACEOF
7246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7254 for ac_func
in getpagesize
7256 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7257 echo "$as_me:$LINENO: checking for $ac_func" >&5
7258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7259 if eval "test \"\${$as_ac_var+set}\" = set"; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 cat >conftest.
$ac_ext <<_ACEOF
7263 #line $LINENO "configure"
7266 cat confdefs.h
>>conftest.
$ac_ext
7267 cat >>conftest.
$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 /* System header to define __stub macros and hopefully few prototypes,
7270 which can conflict with char $ac_func (); below.
7271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7272 <limits.h> exists even on freestanding compilers. */
7274 # include <limits.h>
7276 # include <assert.h>
7278 /* Override any gcc2 internal prototype to avoid an error. */
7283 /* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7286 /* The GNU C library defines this for functions which it implements
7287 to always fail with ENOSYS. Some functions are actually named
7288 something starting with __ and the normal name is an alias. */
7289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7292 char (*f) () = $ac_func;
7301 return f != $ac_func;
7306 rm -f conftest.
$ac_objext conftest
$ac_exeext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308 (eval $ac_link) 2>&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try
='test -s conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 eval "$as_ac_var=yes"
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.
$ac_ext >&5
7323 eval "$as_ac_var=no"
7325 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7329 if test `eval echo '${'$as_ac_var'}'` = yes; then
7330 cat >>confdefs.h
<<_ACEOF
7331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7337 echo "$as_me:$LINENO: checking for working mmap" >&5
7338 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7339 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 if test "$cross_compiling" = yes; then
7343 ac_cv_func_mmap_fixed_mapped
=no
7345 cat >conftest.
$ac_ext <<_ACEOF
7346 #line $LINENO "configure"
7349 cat confdefs.h
>>conftest.
$ac_ext
7350 cat >>conftest.
$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7352 $ac_includes_default
7353 /* malloc might have been renamed as rpl_malloc. */
7356 /* Thanks to Mike Haertel and Jim Avera for this test.
7357 Here is a matrix of mmap possibilities:
7358 mmap private not fixed
7359 mmap private fixed at somewhere currently unmapped
7360 mmap private fixed at somewhere already mapped
7361 mmap shared not fixed
7362 mmap shared fixed at somewhere currently unmapped
7363 mmap shared fixed at somewhere already mapped
7364 For private mappings, we should verify that changes cannot be read()
7365 back from the file, nor mmap's back from the file at a different
7366 address. (There have been systems where private was not correctly
7367 implemented like the infamous i386 svr4.0, and systems where the
7368 VM page cache was not coherent with the file system buffer cache
7369 like early versions of FreeBSD and possibly contemporary NetBSD.)
7370 For shared mappings, we should conversely verify that changes get
7371 propagated back to all the places they're supposed to be.
7373 Grep wants private fixed already mapped.
7374 The main things grep needs to know about mmap are:
7375 * does it exist and is it safe to write into the mmap'd area
7376 * how to use it (BSD variants) */
7379 #include <sys/mman.h>
7381 #if !STDC_HEADERS && !HAVE_STDLIB_H
7385 /* This mess was copied from the GNU getpagesize.h. */
7386 #if !HAVE_GETPAGESIZE
7387 /* Assume that all systems that can run configure have sys/param.h. */
7388 # if !HAVE_SYS_PARAM_H
7389 # define HAVE_SYS_PARAM_H 1
7392 # ifdef _SC_PAGESIZE
7393 # define getpagesize() sysconf(_SC_PAGESIZE)
7394 # else /* no _SC_PAGESIZE */
7395 # if HAVE_SYS_PARAM_H
7396 # include <sys/param.h>
7397 # ifdef EXEC_PAGESIZE
7398 # define getpagesize() EXEC_PAGESIZE
7399 # else /* no EXEC_PAGESIZE */
7401 # define getpagesize() NBPG * CLSIZE
7404 # endif /* no CLSIZE */
7405 # else /* no NBPG */
7407 # define getpagesize() NBPC
7408 # else /* no NBPC */
7410 # define getpagesize() PAGESIZE
7411 # endif /* PAGESIZE */
7412 # endif /* no NBPC */
7413 # endif /* no NBPG */
7414 # endif /* no EXEC_PAGESIZE */
7415 # else /* no HAVE_SYS_PARAM_H */
7416 # define getpagesize() 8192 /* punt totally */
7417 # endif /* no HAVE_SYS_PARAM_H */
7418 # endif /* no _SC_PAGESIZE */
7420 #endif /* no HAVE_GETPAGESIZE */
7425 char *data, *data2, *data3;
7429 pagesize = getpagesize ();
7431 /* First, make a file with some known garbage in it. */
7432 data = (char *) malloc (pagesize);
7435 for (i = 0; i < pagesize; ++i)
7436 *(data + i) = rand ();
7438 fd = creat ("conftest.mmap", 0600);
7441 if (write (fd, data, pagesize) != pagesize)
7445 /* Next, try to mmap the file at a fixed address which already has
7446 something else allocated at it. If we can, also make sure that
7447 we see the same garbage. */
7448 fd = open ("conftest.mmap", O_RDWR);
7451 data2 = (char *) malloc (2 * pagesize);
7454 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7455 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7456 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7458 for (i = 0; i < pagesize; ++i)
7459 if (*(data + i) != *(data2 + i))
7462 /* Finally, make sure that changes to the mapped area do not
7463 percolate back to the file as seen by read(). (This is a bug on
7464 some variants of i386 svr4.0.) */
7465 for (i = 0; i < pagesize; ++i)
7466 *(data2 + i) = *(data2 + i) + 1;
7467 data3 = (char *) malloc (pagesize);
7470 if (read (fd, data3, pagesize) != pagesize)
7472 for (i = 0; i < pagesize; ++i)
7473 if (*(data + i) != *(data3 + i))
7479 rm -f conftest
$ac_exeext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7481 (eval $ac_link) 2>&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_func_mmap_fixed_mapped
=yes
7492 echo "$as_me: program exited with status $ac_status" >&5
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.
$ac_ext >&5
7497 ac_cv_func_mmap_fixed_mapped
=no
7499 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7502 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7503 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7504 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7506 cat >>confdefs.h
<<\_ACEOF
7513 if test $use_mmap_for_buffers = yes; then
7517 LIBS
="$libsrc_libs $LIBS"
7520 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7521 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7522 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_check_lib_save_LIBS
=$LIBS
7527 cat >conftest.
$ac_ext <<_ACEOF
7528 #line $LINENO "configure"
7531 cat confdefs.h
>>conftest.
$ac_ext
7532 cat >>conftest.
$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7535 /* Override any gcc2 internal prototype to avoid an error. */
7539 /* We use char because int might match the return type of a gcc2
7540 builtin and then its argument prototype would still apply. */
7550 rm -f conftest.
$ac_objext conftest
$ac_exeext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552 (eval $ac_link) 2>&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
7556 { ac_try
='test -s conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_lib_dnet_dnet_ntoa
=yes
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.
$ac_ext >&5
7567 ac_cv_lib_dnet_dnet_ntoa
=no
7569 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7570 LIBS
=$ac_check_lib_save_LIBS
7572 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7573 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7574 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7575 cat >>confdefs.h
<<_ACEOF
7576 #define HAVE_LIBDNET 1
7584 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7585 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7586 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_check_lib_save_LIBS
=$LIBS
7591 cat >conftest.
$ac_ext <<_ACEOF
7592 #line $LINENO "configure"
7595 cat confdefs.h
>>conftest.
$ac_ext
7596 cat >>conftest.
$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7608 rm -f conftest.
$ac_objext conftest
$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try
='test -s conftest$ac_exeext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 ac_cv_lib_Xbsd_main
=yes
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.
$ac_ext >&5
7625 ac_cv_lib_Xbsd_main
=no
7627 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7628 LIBS
=$ac_check_lib_save_LIBS
7630 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7631 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7632 if test $ac_cv_lib_Xbsd_main = yes; then
7633 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7638 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7639 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7640 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 ac_check_lib_save_LIBS
=$LIBS
7644 LIBS
="-lpthreads $LIBS"
7645 cat >conftest.
$ac_ext <<_ACEOF
7646 #line $LINENO "configure"
7649 cat confdefs.h
>>conftest.
$ac_ext
7650 cat >>conftest.
$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7653 /* Override any gcc2 internal prototype to avoid an error. */
7657 /* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7668 rm -f conftest.
$ac_objext conftest
$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try
='test -s conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 ac_cv_lib_pthreads_cma_open
=yes
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.
$ac_ext >&5
7685 ac_cv_lib_pthreads_cma_open
=no
7687 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7688 LIBS
=$ac_check_lib_save_LIBS
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7691 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7692 if test $ac_cv_lib_pthreads_cma_open = yes; then
7693 cat >>confdefs.h
<<_ACEOF
7694 #define HAVE_LIBPTHREADS 1
7697 LIBS
="-lpthreads $LIBS"
7702 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7703 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7704 if test -d /usr
/X386
/include
; then
7706 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7710 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7711 echo "${ECHO_T}$HAVE_XFREE386" >&6
7716 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7717 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7718 if test "${gdb_cv_bigtoc+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7724 *) gdb_cv_bigtoc
=-bbigtoc ;;
7727 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7728 cat >conftest.
$ac_ext <<_ACEOF
7729 #line $LINENO "configure"
7732 cat confdefs.h
>>conftest.
$ac_ext
7733 cat >>conftest.
$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7744 rm -f conftest.
$ac_objext conftest
$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try
='test -s conftest$ac_exeext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.
$ac_ext >&5
7763 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7766 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7767 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7771 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7772 # used for the tests that follow. We set them back to REAL_CFLAGS and
7773 # REAL_CPPFLAGS later on.
7775 REAL_CPPFLAGS
="$CPPFLAGS"
7777 if test "${HAVE_X11}" = "yes"; then
7778 DEFS
="$C_SWITCH_X_SITE $DEFS"
7779 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7781 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7782 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7784 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7785 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7786 # but it's more convenient here to set LD_RUN_PATH
7787 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7788 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7789 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7793 if test "${opsys}" = "gnu-linux"; then
7794 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7795 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7796 cat >conftest.
$ac_ext <<_ACEOF
7797 #line $LINENO "configure"
7800 cat confdefs.h
>>conftest.
$ac_ext
7801 cat >>conftest.
$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7807 XOpenDisplay ("foo");
7812 rm -f conftest.
$ac_objext conftest
$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try
='test -s conftest$ac_exeext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 xlinux_first_failure
=no
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.
$ac_ext >&5
7829 xlinux_first_failure
=yes
7831 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7832 if test "${xlinux_first_failure}" = "yes"; then
7833 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7834 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7835 OLD_CPPFLAGS
="$CPPFLAGS"
7837 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7838 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7839 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7840 LIBS
="$LIBS -b i486-linuxaout"
7841 cat >conftest.
$ac_ext <<_ACEOF
7842 #line $LINENO "configure"
7845 cat confdefs.h
>>conftest.
$ac_ext
7846 cat >>conftest.
$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7852 XOpenDisplay ("foo");
7857 rm -f conftest.
$ac_objext conftest
$ac_exeext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859 (eval $ac_link) 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try
='test -s conftest$ac_exeext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 xlinux_second_failure
=no
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.
$ac_ext >&5
7874 xlinux_second_failure
=yes
7876 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7877 if test "${xlinux_second_failure}" = "yes"; then
7878 # If we get the same failure with -b, there is no use adding -b.
7879 # So take it out. This plays safe.
7880 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7881 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7882 CPPFLAGS
="$OLD_CPPFLAGS"
7884 echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7887 echo "$as_me:$LINENO: result: yes" >&5
7888 echo "${ECHO_T}yes" >&6
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7896 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7897 # header files included from there.
7898 echo "$as_me:$LINENO: checking for Xkb" >&5
7899 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7900 cat >conftest.
$ac_ext <<_ACEOF
7901 #line $LINENO "configure"
7904 cat confdefs.h
>>conftest.
$ac_ext
7905 cat >>conftest.
$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 #include <X11/Xlib.h>
7908 #include <X11/XKBlib.h>
7912 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7917 rm -f conftest.
$ac_objext conftest
$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try
='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.
$ac_ext >&5
7936 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7937 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7938 echo "${ECHO_T}$emacs_xkb" >&6
7939 if test $emacs_xkb = yes; then
7941 cat >>confdefs.h
<<\_ACEOF
7942 #define HAVE_XKBGETKEYBOARD 1
7951 for ac_func
in XrmSetDatabase XScreenResourceString \
7952 XScreenNumberOfScreen XSetWMProtocols
7954 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7955 echo "$as_me:$LINENO: checking for $ac_func" >&5
7956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7957 if eval "test \"\${$as_ac_var+set}\" = set"; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 cat >conftest.
$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7964 cat confdefs.h
>>conftest.
$ac_ext
7965 cat >>conftest.
$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 /* System header to define __stub macros and hopefully few prototypes,
7968 which can conflict with char $ac_func (); below.
7969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7970 <limits.h> exists even on freestanding compilers. */
7972 # include <limits.h>
7974 # include <assert.h>
7976 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7990 char (*f) () = $ac_func;
7999 return f != $ac_func;
8004 rm -f conftest.
$ac_objext conftest
$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try
='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 eval "$as_ac_var=yes"
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.
$ac_ext >&5
8021 eval "$as_ac_var=no"
8023 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8027 if test `eval echo '${'$as_ac_var'}'` = yes; then
8028 cat >>confdefs.h
<<_ACEOF
8029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8037 if test "${window_system}" = "x11"; then
8038 echo "$as_me:$LINENO: checking X11 version 6" >&5
8039 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8040 if test "${emacs_cv_x11_version_6+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 cat >conftest.
$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8047 cat confdefs.h
>>conftest.
$ac_ext
8048 cat >>conftest.
$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <X11/Xlib.h>
8054 #if XlibSpecificationRelease < 6
8062 rm -f conftest.
$ac_objext conftest
$ac_exeext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8064 (eval $ac_link) 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try
='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 emacs_cv_x11_version_6
=yes
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.
$ac_ext >&5
8079 emacs_cv_x11_version_6
=no
8081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8084 if test $emacs_cv_x11_version_6 = yes; then
8085 echo "$as_me:$LINENO: result: 6 or newer" >&5
8086 echo "${ECHO_T}6 or newer" >&6
8088 cat >>confdefs.h
<<\_ACEOF
8089 #define HAVE_X11R6 1
8093 echo "$as_me:$LINENO: result: before 6" >&5
8094 echo "${ECHO_T}before 6" >&6
8098 if test "${window_system}" = "x11"; then
8099 echo "$as_me:$LINENO: checking X11 version 5" >&5
8100 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8101 if test "${emacs_cv_x11_version_5+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 cat >conftest.
$ac_ext <<_ACEOF
8105 #line $LINENO "configure"
8108 cat confdefs.h
>>conftest.
$ac_ext
8109 cat >>conftest.
$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 #include <X11/Xlib.h>
8115 #if XlibSpecificationRelease < 5
8123 rm -f conftest.
$ac_objext conftest
$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try
='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 emacs_cv_x11_version_5
=yes
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.
$ac_ext >&5
8140 emacs_cv_x11_version_5
=no
8142 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8145 if test $emacs_cv_x11_version_5 = yes; then
8146 echo "$as_me:$LINENO: result: 5 or newer" >&5
8147 echo "${ECHO_T}5 or newer" >&6
8150 cat >>confdefs.h
<<\_ACEOF
8151 #define HAVE_X11R5 1
8156 echo "$as_me:$LINENO: result: before 5" >&5
8157 echo "${ECHO_T}before 5" >&6
8164 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8165 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8166 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8167 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8168 { (exit 1); exit 1; }; };
8172 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8174 if test "X${with_pkg_config_prog}" != X
; then
8175 PKG_CONFIG
="${with_pkg_config_prog}"
8180 if test -z "$PKG_CONFIG"; then
8181 # Extract the first word of "pkg-config", so it can be a program name with args.
8182 set dummy pkg-config
; ac_word
=$2
8183 echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir
=.
8198 for ac_exec_ext
in '' $ac_executable_extensions; do
8199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8211 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8213 if test -n "$PKG_CONFIG"; then
8214 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8215 echo "${ECHO_T}$PKG_CONFIG" >&6
8217 echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8223 if test "$PKG_CONFIG" = "no" ; then
8224 echo "*** The pkg-config script could not be found. Make sure it is"
8225 echo "*** in your path, or give the full path to pkg-config with"
8226 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8227 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8229 PKG_CONFIG_MIN_VERSION
=0.9.0
8230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8231 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8232 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8234 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8235 echo "$as_me:$LINENO: result: yes" >&5
8236 echo "${ECHO_T}yes" >&6
8239 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8240 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8241 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8242 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8243 echo "${ECHO_T}$GTK_CFLAGS" >&6
8245 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8246 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8247 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8248 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8249 echo "${ECHO_T}$GTK_LIBS" >&6
8253 ## If we have a custom action on failure, don't print errors, but
8254 ## do set a variable so people can do so.
8255 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8256 echo $GTK_PKG_ERRORS
8262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8267 if test $succeeded = yes; then
8270 { { 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
8271 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;}
8272 { (exit 1); exit 1; }; }
8277 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8280 cat >>confdefs.h
<<\_ACEOF
8286 with_toolkit_scroll_bars
=yes
8289 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8290 if test x
"${HAVE_X11R5}" = xyes
; then
8291 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8292 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8293 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 cat >conftest.
$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8300 cat confdefs.h
>>conftest.
$ac_ext
8301 cat >>conftest.
$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8304 #include <X11/Intrinsic.h>
8305 #include <X11/Xaw/Simple.h>
8314 rm -f conftest.
$ac_objext conftest
$ac_exeext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try
='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 emacs_cv_x11_version_5_with_xaw
=yes
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.
$ac_ext >&5
8331 emacs_cv_x11_version_5_with_xaw
=no
8333 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8336 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8337 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8338 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8341 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8342 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8350 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8352 if test "${USE_X_TOOLKIT}" != "none"; then
8353 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8354 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8355 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 cat >conftest.
$ac_ext <<_ACEOF
8359 #line $LINENO "configure"
8362 cat confdefs.h
>>conftest.
$ac_ext
8363 cat >>conftest.
$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 #include <X11/Intrinsic.h>
8369 #if XtSpecificationRelease < 6
8377 rm -f conftest.
$ac_objext conftest
$ac_exeext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379 (eval $ac_link) 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try
='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 emacs_cv_x11_toolkit_version_6
=yes
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.
$ac_ext >&5
8394 emacs_cv_x11_toolkit_version_6
=no
8396 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8399 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8400 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8401 echo "$as_me:$LINENO: result: 6 or newer" >&5
8402 echo "${ECHO_T}6 or newer" >&6
8404 cat >>confdefs.h
<<\_ACEOF
8405 #define HAVE_X11XTR6 1
8409 echo "$as_me:$LINENO: result: before 6" >&5
8410 echo "${ECHO_T}before 6" >&6
8414 if test x
$HAVE_X11XTR6 = xyes
; then
8415 LIBS
="-lXt -lSM -lICE $LIBS"
8420 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8421 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8422 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 ac_check_lib_save_LIBS
=$LIBS
8427 cat >conftest.
$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8431 cat confdefs.h
>>conftest.
$ac_ext
8432 cat >>conftest.
$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8435 /* Override any gcc2 internal prototype to avoid an error. */
8439 /* We use char because int might match the return type of a gcc2
8440 builtin and then its argument prototype would still apply. */
8441 char XmuConvertStandardSelection ();
8445 XmuConvertStandardSelection ();
8450 rm -f conftest.
$ac_objext conftest
$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452 (eval $ac_link) 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try
='test -s conftest$ac_exeext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.
$ac_ext >&5
8467 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8469 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8470 LIBS
=$ac_check_lib_save_LIBS
8472 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8473 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8474 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8475 cat >>confdefs.h
<<_ACEOF
8476 #define HAVE_LIBXMU 1
8483 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8486 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8487 if test "${HAVE_X11}" = "yes"; then
8488 if test "${USE_X_TOOLKIT}" != "none"; then
8490 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8491 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8492 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 ac_check_lib_save_LIBS
=$LIBS
8497 cat >conftest.
$ac_ext <<_ACEOF
8498 #line $LINENO "configure"
8501 cat confdefs.h
>>conftest.
$ac_ext
8502 cat >>conftest.
$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8505 /* Override any gcc2 internal prototype to avoid an error. */
8509 /* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8511 char XShapeQueryExtension ();
8515 XShapeQueryExtension ();
8520 rm -f conftest.
$ac_objext conftest
$ac_exeext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522 (eval $ac_link) 2>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try
='test -s conftest$ac_exeext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.
$ac_ext >&5
8537 ac_cv_lib_Xext_XShapeQueryExtension
=no
8539 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8540 LIBS
=$ac_check_lib_save_LIBS
8542 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8543 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8544 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8545 cat >>confdefs.h
<<_ACEOF
8546 #define HAVE_LIBXEXT 1
8556 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8557 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8558 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8559 if test "${emacs_cv_lesstif+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 # We put this in CFLAGS temporarily to precede other -I options
8563 # that might be in CFLAGS temporarily.
8564 # We put this in CPPFLAGS where it precedes the other -I options.
8565 OLD_CPPFLAGS
=$CPPFLAGS
8567 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8568 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8569 cat >conftest.
$ac_ext <<_ACEOF
8570 #line $LINENO "configure"
8573 cat confdefs.h
>>conftest.
$ac_ext
8574 cat >>conftest.
$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8585 rm -f conftest.
$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try
='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 emacs_cv_lesstif
=yes
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.
$ac_ext >&5
8604 rm -f conftest.
$ac_objext conftest.
$ac_ext
8606 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8607 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8608 if test $emacs_cv_lesstif = yes; then
8609 # Make sure this -I option remains in CPPFLAGS after it is set
8610 # back to REAL_CPPFLAGS.
8611 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8612 # have those other -I options anyway. Ultimately, having this
8613 # directory ultimately in CPPFLAGS will be enough.
8614 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8615 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8618 CPPFLAGS
=$OLD_CPPFLAGS
8620 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8621 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8622 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 cat >conftest.
$ac_ext <<_ACEOF
8626 #line $LINENO "configure"
8629 cat confdefs.h
>>conftest.
$ac_ext
8630 cat >>conftest.
$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8636 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8639 Motif version prior to 2.1.
8645 rm -f conftest.
$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647 (eval $ac_compile) 2>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try
='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 emacs_cv_motif_version_2_1
=yes
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.
$ac_ext >&5
8662 emacs_cv_motif_version_2_1
=no
8664 rm -f conftest.
$ac_objext conftest.
$ac_ext
8666 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8667 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8668 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8669 if test $emacs_cv_motif_version_2_1 = yes; then
8672 cat >>confdefs.h
<<\_ACEOF
8673 #define HAVE_MOTIF_2_1 1
8676 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8677 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8678 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 ac_check_lib_save_LIBS
=$LIBS
8683 cat >conftest.
$ac_ext <<_ACEOF
8684 #line $LINENO "configure"
8687 cat confdefs.h
>>conftest.
$ac_ext
8688 cat >>conftest.
$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8691 /* Override any gcc2 internal prototype to avoid an error. */
8695 /* We use char because int might match the return type of a gcc2
8696 builtin and then its argument prototype would still apply. */
8697 char XpCreateContext ();
8706 rm -f conftest.
$ac_objext conftest
$ac_exeext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try
='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_cv_lib_Xp_XpCreateContext
=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.
$ac_ext >&5
8723 ac_cv_lib_Xp_XpCreateContext
=no
8725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8726 LIBS
=$ac_check_lib_save_LIBS
8728 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8729 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8730 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8734 if test ${HAVE_LIBXP} = yes; then
8736 cat >>confdefs.h
<<\_ACEOF
8737 #define HAVE_LIBXP 1
8744 ### Is -lXaw3d available?
8746 if test "${HAVE_X11}" = "yes"; then
8747 if test "${USE_X_TOOLKIT}" != "none"; then
8748 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8749 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8750 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 cat >conftest.
$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8757 cat confdefs.h
>>conftest.
$ac_ext
8758 cat >>conftest.
$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 #include <X11/Xaw3d/Scrollbar.h>
8762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8763 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8765 grep -v '^ *+' conftest.er1
>conftest.err
8767 cat conftest.err
>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } >/dev
/null
; then
8770 if test -s conftest.err
; then
8771 ac_cpp_err
=$ac_c_preproc_warn_flag
8778 if test -z "$ac_cpp_err"; then
8779 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.
$ac_ext >&5
8784 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8786 rm -f conftest.err conftest.
$ac_ext
8788 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8789 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8790 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8791 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8792 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8793 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 ac_check_lib_save_LIBS
=$LIBS
8797 LIBS
="-lXaw3d $LIBS"
8798 cat >conftest.
$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8802 cat confdefs.h
>>conftest.
$ac_ext
8803 cat >>conftest.
$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 /* Override any gcc2 internal prototype to avoid an error. */
8810 /* We use char because int might match the return type of a gcc2
8811 builtin and then its argument prototype would still apply. */
8812 char XawScrollbarSetThumb ();
8816 XawScrollbarSetThumb ();
8821 rm -f conftest.
$ac_objext conftest
$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try
='test -s conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.
$ac_ext >&5
8838 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8840 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8841 LIBS
=$ac_check_lib_save_LIBS
8843 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8844 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8845 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8852 if test "${HAVE_XAW3D}" = "yes"; then
8854 cat >>confdefs.h
<<\_ACEOF
8855 #define HAVE_XAW3D 1
8864 USE_TOOLKIT_SCROLL_BARS
=no
8865 if test "${with_toolkit_scroll_bars}" != "no"; then
8866 if test "${USE_X_TOOLKIT}" != "none"; then
8867 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8868 cat >>confdefs.h
<<\_ACEOF
8869 #define USE_TOOLKIT_SCROLL_BARS 1
8873 USE_TOOLKIT_SCROLL_BARS
=yes
8874 elif test "${HAVE_XAW3D}" = "yes"; then
8875 cat >>confdefs.h
<<\_ACEOF
8876 #define USE_TOOLKIT_SCROLL_BARS 1
8879 USE_TOOLKIT_SCROLL_BARS
=yes
8881 elif test "${HAVE_GTK}" = "yes"; then
8882 cat >>confdefs.h
<<\_ACEOF
8883 #define USE_TOOLKIT_SCROLL_BARS 1
8886 USE_TOOLKIT_SCROLL_BARS
=yes
8891 if test "${with_xim}" != "no"; then
8893 cat >>confdefs.h
<<\_ACEOF
8898 if test "$GCC" = yes; then
8899 CFLAGS
="$CFLAGS --pedantic-errors"
8901 cat >conftest.
$ac_ext <<_ACEOF
8902 #line $LINENO "configure"
8905 cat confdefs.h
>>conftest.
$ac_ext
8906 cat >>conftest.
$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 #include <X11/Xlib.h>
8910 #include <X11/Xresource.h>
8919 XPointer *client_data;
8921 /* If we're not using GCC, it's probably not XFree86, and this is
8922 probably right, but we can't use something like --pedantic-errors. */
8923 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8924 char*, XIMProc, XPointer*);
8926 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8932 rm -f conftest.
$ac_objext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8934 (eval $ac_compile) 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try
='test -s conftest.$ac_objext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 emacs_cv_arg6_star
=yes
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.
$ac_ext >&5
8950 rm -f conftest.
$ac_objext conftest.
$ac_ext
8952 if test "$emacs_cv_arg6_star" = yes; then
8953 cat >>confdefs.h
<<\_ACEOF
8954 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8958 cat >>confdefs.h
<<\_ACEOF
8959 #define XRegisterIMInstantiateCallback_arg6 XPointer
8966 ### Use -lXpm if available, unless `--with-xpm=no'.
8968 if test "${HAVE_X11}" = "yes"; then
8969 if test "${with_xpm}" != "no"; then
8970 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8971 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8972 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8973 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8977 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8979 # Is the header compilable?
8980 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8981 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8982 cat >conftest.
$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8986 cat confdefs.h
>>conftest.
$ac_ext
8987 cat >>conftest.
$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 $ac_includes_default
8990 #include <X11/xpm.h>
8992 rm -f conftest.
$ac_objext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8994 (eval $ac_compile) 2>&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try
='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_header_compiler
=yes
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.
$ac_ext >&5
9009 ac_header_compiler
=no
9011 rm -f conftest.
$ac_objext conftest.
$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013 echo "${ECHO_T}$ac_header_compiler" >&6
9015 # Is the header present?
9016 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9017 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9018 cat >conftest.
$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9022 cat confdefs.h
>>conftest.
$ac_ext
9023 cat >>conftest.
$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 #include <X11/xpm.h>
9027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9028 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9030 grep -v '^ *+' conftest.er1
>conftest.err
9032 cat conftest.err
>&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } >/dev
/null
; then
9035 if test -s conftest.err
; then
9036 ac_cpp_err
=$ac_c_preproc_warn_flag
9043 if test -z "$ac_cpp_err"; then
9044 ac_header_preproc
=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.
$ac_ext >&5
9049 ac_header_preproc
=no
9051 rm -f conftest.err conftest.
$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053 echo "${ECHO_T}$ac_header_preproc" >&6
9055 # So? What about this header?
9056 case $ac_header_compiler:$ac_header_preproc in
9058 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9059 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9061 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9064 ## ------------------------------------ ##
9065 ## Report this to bug-autoconf@gnu.org. ##
9066 ## ------------------------------------ ##
9069 sed "s/^/$as_me: WARNING: /" >&2
9072 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9073 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9075 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9077 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9080 ## ------------------------------------ ##
9081 ## Report this to bug-autoconf@gnu.org. ##
9082 ## ------------------------------------ ##
9085 sed "s/^/$as_me: WARNING: /" >&2
9088 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9089 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9090 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9095 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9096 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9099 if test $ac_cv_header_X11_xpm_h = yes; then
9100 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9101 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9102 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 ac_check_lib_save_LIBS
=$LIBS
9106 LIBS
="-lXpm -lX11 $LIBS"
9107 cat >conftest.
$ac_ext <<_ACEOF
9108 #line $LINENO "configure"
9111 cat confdefs.h
>>conftest.
$ac_ext
9112 cat >>conftest.
$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9115 /* Override any gcc2 internal prototype to avoid an error. */
9119 /* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9121 char XpmReadFileToPixmap ();
9125 XpmReadFileToPixmap ();
9130 rm -f conftest.
$ac_objext conftest
$ac_exeext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try
='test -s conftest$ac_exeext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.
$ac_ext >&5
9147 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9149 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9150 LIBS
=$ac_check_lib_save_LIBS
9152 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9153 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9154 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9161 if test "${HAVE_XPM}" = "yes"; then
9162 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9163 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9164 cat >conftest.
$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9168 cat confdefs.h
>>conftest.
$ac_ext
9169 cat >>conftest.
$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 #include "X11/xpm.h"
9172 #ifndef XpmReturnAllocPixels
9173 no_return_alloc_pixels
9177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9178 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9186 if test "${HAVE_XPM}" = "yes"; then
9187 echo "$as_me:$LINENO: result: yes" >&5
9188 echo "${ECHO_T}yes" >&6
9190 echo "$as_me:$LINENO: result: no" >&5
9191 echo "${ECHO_T}no" >&6
9196 if test "${HAVE_XPM}" = "yes"; then
9198 cat >>confdefs.h
<<\_ACEOF
9205 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9207 if test "${HAVE_X11}" = "yes"; then
9208 if test "${with_jpeg}" != "no"; then
9209 if test "${ac_cv_header_jerror_h+set}" = set; then
9210 echo "$as_me:$LINENO: checking for jerror.h" >&5
9211 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9212 if test "${ac_cv_header_jerror_h+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9216 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9218 # Is the header compilable?
9219 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9220 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9221 cat >conftest.
$ac_ext <<_ACEOF
9222 #line $LINENO "configure"
9225 cat confdefs.h
>>conftest.
$ac_ext
9226 cat >>conftest.
$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 $ac_includes_default
9231 rm -f conftest.
$ac_objext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233 (eval $ac_compile) 2>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try
='test -s conftest.$ac_objext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 ac_header_compiler
=yes
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9248 ac_header_compiler
=no
9250 rm -f conftest.
$ac_objext conftest.
$ac_ext
9251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9252 echo "${ECHO_T}$ac_header_compiler" >&6
9254 # Is the header present?
9255 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9256 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9257 cat >conftest.
$ac_ext <<_ACEOF
9258 #line $LINENO "configure"
9261 cat confdefs.h
>>conftest.
$ac_ext
9262 cat >>conftest.
$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9267 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9269 grep -v '^ *+' conftest.er1
>conftest.err
9271 cat conftest.err
>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } >/dev
/null
; then
9274 if test -s conftest.err
; then
9275 ac_cpp_err
=$ac_c_preproc_warn_flag
9282 if test -z "$ac_cpp_err"; then
9283 ac_header_preproc
=yes
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.
$ac_ext >&5
9288 ac_header_preproc
=no
9290 rm -f conftest.err conftest.
$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc in
9297 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9300 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9303 ## ------------------------------------ ##
9304 ## Report this to bug-autoconf@gnu.org. ##
9305 ## ------------------------------------ ##
9308 sed "s/^/$as_me: WARNING: /" >&2
9311 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9312 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9314 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9315 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9316 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9319 ## ------------------------------------ ##
9320 ## Report this to bug-autoconf@gnu.org. ##
9321 ## ------------------------------------ ##
9324 sed "s/^/$as_me: WARNING: /" >&2
9327 echo "$as_me:$LINENO: checking for jerror.h" >&5
9328 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9329 if test "${ac_cv_header_jerror_h+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 ac_cv_header_jerror_h
=$ac_header_preproc
9334 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9335 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9338 if test $ac_cv_header_jerror_h = yes; then
9339 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9340 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9341 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 ac_check_lib_save_LIBS
=$LIBS
9346 cat >conftest.
$ac_ext <<_ACEOF
9347 #line $LINENO "configure"
9350 cat confdefs.h
>>conftest.
$ac_ext
9351 cat >>conftest.
$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9354 /* Override any gcc2 internal prototype to avoid an error. */
9358 /* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */
9360 char jpeg_destroy_compress ();
9364 jpeg_destroy_compress ();
9369 rm -f conftest.
$ac_objext conftest
$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371 (eval $ac_link) 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try
='test -s conftest$ac_exeext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.
$ac_ext >&5
9386 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9388 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9389 LIBS
=$ac_check_lib_save_LIBS
9391 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9392 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9393 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9403 if test "${HAVE_JPEG}" = "yes"; then
9404 cat >>confdefs.h
<<\_ACEOF
9408 cat >conftest.
$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9412 cat confdefs.h
>>conftest.
$ac_ext
9413 cat >>conftest.
$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 #include <jpeglib.h>
9416 version=JPEG_LIB_VERSION
9419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9420 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9421 cat >>confdefs.h
<<\_ACEOF
9426 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9427 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9435 ### Use -lpng if available, unless `--with-png=no'.
9437 if test "${HAVE_X11}" = "yes"; then
9438 if test "${with_png}" != "no"; then
9439 if test "${ac_cv_header_png_h+set}" = set; then
9440 echo "$as_me:$LINENO: checking for png.h" >&5
9441 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9442 if test "${ac_cv_header_png_h+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9446 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9448 # Is the header compilable?
9449 echo "$as_me:$LINENO: checking png.h usability" >&5
9450 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9451 cat >conftest.
$ac_ext <<_ACEOF
9452 #line $LINENO "configure"
9455 cat confdefs.h
>>conftest.
$ac_ext
9456 cat >>conftest.
$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 $ac_includes_default
9461 rm -f conftest.
$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try
='test -s conftest.$ac_objext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_header_compiler
=yes
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.
$ac_ext >&5
9478 ac_header_compiler
=no
9480 rm -f conftest.
$ac_objext conftest.
$ac_ext
9481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9482 echo "${ECHO_T}$ac_header_compiler" >&6
9484 # Is the header present?
9485 echo "$as_me:$LINENO: checking png.h presence" >&5
9486 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9487 cat >conftest.
$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9491 cat confdefs.h
>>conftest.
$ac_ext
9492 cat >>conftest.
$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9497 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9499 grep -v '^ *+' conftest.er1
>conftest.err
9501 cat conftest.err
>&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } >/dev
/null
; then
9504 if test -s conftest.err
; then
9505 ac_cpp_err
=$ac_c_preproc_warn_flag
9512 if test -z "$ac_cpp_err"; then
9513 ac_header_preproc
=yes
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.
$ac_ext >&5
9518 ac_header_preproc
=no
9520 rm -f conftest.err conftest.
$ac_ext
9521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9522 echo "${ECHO_T}$ac_header_preproc" >&6
9524 # So? What about this header?
9525 case $ac_header_compiler:$ac_header_preproc in
9527 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9528 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9530 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9533 ## ------------------------------------ ##
9534 ## Report this to bug-autoconf@gnu.org. ##
9535 ## ------------------------------------ ##
9538 sed "s/^/$as_me: WARNING: /" >&2
9541 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9542 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9543 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9544 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9546 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9549 ## ------------------------------------ ##
9550 ## Report this to bug-autoconf@gnu.org. ##
9551 ## ------------------------------------ ##
9554 sed "s/^/$as_me: WARNING: /" >&2
9557 echo "$as_me:$LINENO: checking for png.h" >&5
9558 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9559 if test "${ac_cv_header_png_h+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 ac_cv_header_png_h
=$ac_header_preproc
9564 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9565 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9568 if test $ac_cv_header_png_h = yes; then
9569 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9570 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9571 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 ac_check_lib_save_LIBS
=$LIBS
9575 LIBS
="-lpng -lz -lm $LIBS"
9576 cat >conftest.
$ac_ext <<_ACEOF
9577 #line $LINENO "configure"
9580 cat confdefs.h
>>conftest.
$ac_ext
9581 cat >>conftest.
$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9584 /* Override any gcc2 internal prototype to avoid an error. */
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9590 char png_get_channels ();
9594 png_get_channels ();
9599 rm -f conftest.
$ac_objext conftest
$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try
='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_cv_lib_png_png_get_channels
=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.
$ac_ext >&5
9616 ac_cv_lib_png_png_get_channels
=no
9618 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9619 LIBS
=$ac_check_lib_save_LIBS
9621 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9622 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9623 if test $ac_cv_lib_png_png_get_channels = yes; then
9632 if test "${HAVE_PNG}" = "yes"; then
9634 cat >>confdefs.h
<<\_ACEOF
9641 ### Use -ltiff if available, unless `--with-tiff=no'.
9643 if test "${HAVE_X11}" = "yes"; then
9644 if test "${with_tiff}" != "no"; then
9645 if test "${ac_cv_header_tiffio_h+set}" = set; then
9646 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9647 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9648 if test "${ac_cv_header_tiffio_h+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9652 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9654 # Is the header compilable?
9655 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9656 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9657 cat >conftest.
$ac_ext <<_ACEOF
9658 #line $LINENO "configure"
9661 cat confdefs.h
>>conftest.
$ac_ext
9662 cat >>conftest.
$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 $ac_includes_default
9667 rm -f conftest.
$ac_objext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try
='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_header_compiler
=yes
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.
$ac_ext >&5
9684 ac_header_compiler
=no
9686 rm -f conftest.
$ac_objext conftest.
$ac_ext
9687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9688 echo "${ECHO_T}$ac_header_compiler" >&6
9690 # Is the header present?
9691 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9692 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9693 cat >conftest.
$ac_ext <<_ACEOF
9694 #line $LINENO "configure"
9697 cat confdefs.h
>>conftest.
$ac_ext
9698 cat >>conftest.
$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9703 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9705 grep -v '^ *+' conftest.er1
>conftest.err
9707 cat conftest.err
>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } >/dev
/null
; then
9710 if test -s conftest.err
; then
9711 ac_cpp_err
=$ac_c_preproc_warn_flag
9718 if test -z "$ac_cpp_err"; then
9719 ac_header_preproc
=yes
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.
$ac_ext >&5
9724 ac_header_preproc
=no
9726 rm -f conftest.err conftest.
$ac_ext
9727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9728 echo "${ECHO_T}$ac_header_preproc" >&6
9730 # So? What about this header?
9731 case $ac_header_compiler:$ac_header_preproc in
9733 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9734 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9736 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9739 ## ------------------------------------ ##
9740 ## Report this to bug-autoconf@gnu.org. ##
9741 ## ------------------------------------ ##
9744 sed "s/^/$as_me: WARNING: /" >&2
9747 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9748 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9750 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9752 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9755 ## ------------------------------------ ##
9756 ## Report this to bug-autoconf@gnu.org. ##
9757 ## ------------------------------------ ##
9760 sed "s/^/$as_me: WARNING: /" >&2
9763 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9764 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9765 if test "${ac_cv_header_tiffio_h+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 ac_cv_header_tiffio_h
=$ac_header_preproc
9770 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9771 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9774 if test $ac_cv_header_tiffio_h = yes; then
9776 # At least one tiff package requires the jpeg library.
9777 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9778 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9779 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9780 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 ac_check_lib_save_LIBS
=$LIBS
9784 LIBS
="-ltiff $tifflibs $LIBS"
9785 cat >conftest.
$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9789 cat confdefs.h
>>conftest.
$ac_ext
9790 cat >>conftest.
$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 /* Override any gcc2 internal prototype to avoid an error. */
9797 /* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799 char TIFFGetVersion ();
9808 rm -f conftest.
$ac_objext conftest
$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try
='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_lib_tiff_TIFFGetVersion
=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.
$ac_ext >&5
9825 ac_cv_lib_tiff_TIFFGetVersion
=no
9827 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9828 LIBS
=$ac_check_lib_save_LIBS
9830 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9831 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9832 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9841 if test "${HAVE_TIFF}" = "yes"; then
9843 cat >>confdefs.h
<<\_ACEOF
9850 ### Use -lgif if available, unless `--with-gif=no'.
9852 if test "${HAVE_X11}" = "yes"; then
9853 if test "${with_gif}" != "no"; then
9854 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9855 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9856 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9857 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9861 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9863 # Is the header compilable?
9864 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9865 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9866 cat >conftest.
$ac_ext <<_ACEOF
9867 #line $LINENO "configure"
9870 cat confdefs.h
>>conftest.
$ac_ext
9871 cat >>conftest.
$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 $ac_includes_default
9874 #include <gif_lib.h>
9876 rm -f conftest.
$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try
='test -s conftest.$ac_objext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_header_compiler
=yes
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.
$ac_ext >&5
9893 ac_header_compiler
=no
9895 rm -f conftest.
$ac_objext conftest.
$ac_ext
9896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9897 echo "${ECHO_T}$ac_header_compiler" >&6
9899 # Is the header present?
9900 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9901 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9902 cat >conftest.
$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9906 cat confdefs.h
>>conftest.
$ac_ext
9907 cat >>conftest.
$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 #include <gif_lib.h>
9911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9912 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9914 grep -v '^ *+' conftest.er1
>conftest.err
9916 cat conftest.err
>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } >/dev
/null
; then
9919 if test -s conftest.err
; then
9920 ac_cpp_err
=$ac_c_preproc_warn_flag
9927 if test -z "$ac_cpp_err"; then
9928 ac_header_preproc
=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.
$ac_ext >&5
9933 ac_header_preproc
=no
9935 rm -f conftest.err conftest.
$ac_ext
9936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9937 echo "${ECHO_T}$ac_header_preproc" >&6
9939 # So? What about this header?
9940 case $ac_header_compiler:$ac_header_preproc in
9942 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9943 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9945 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9948 ## ------------------------------------ ##
9949 ## Report this to bug-autoconf@gnu.org. ##
9950 ## ------------------------------------ ##
9953 sed "s/^/$as_me: WARNING: /" >&2
9956 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9957 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9959 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9961 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9964 ## ------------------------------------ ##
9965 ## Report this to bug-autoconf@gnu.org. ##
9966 ## ------------------------------------ ##
9969 sed "s/^/$as_me: WARNING: /" >&2
9972 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9973 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9974 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_cv_header_gif_lib_h
=$ac_header_preproc
9979 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9980 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9983 if test $ac_cv_header_gif_lib_h = yes; then
9984 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9985 # Earlier versions can crash Emacs.
9986 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9987 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9988 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 ac_check_lib_save_LIBS
=$LIBS
9992 LIBS
="-lungif $LIBS"
9993 cat >conftest.
$ac_ext <<_ACEOF
9994 #line $LINENO "configure"
9997 cat confdefs.h
>>conftest.
$ac_ext
9998 cat >>conftest.
$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10001 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007 char EGifPutExtensionLast ();
10011 EGifPutExtensionLast ();
10016 rm -f conftest.
$ac_objext conftest
$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try
='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.
$ac_ext >&5
10033 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10035 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10036 LIBS
=$ac_check_lib_save_LIBS
10038 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10039 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10040 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10049 if test "${HAVE_GIF}" = "yes"; then
10051 cat >>confdefs.h
<<\_ACEOF
10058 ### Use Mac OS X Carbon API to implement GUI.
10060 if test "${with_carbon}" != "no"; then
10061 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10062 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10063 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10064 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10068 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10070 # Is the header compilable?
10071 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10072 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10073 cat >conftest.
$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10077 cat confdefs.h
>>conftest.
$ac_ext
10078 cat >>conftest.
$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 #include <Carbon/Carbon.h>
10083 rm -f conftest.
$ac_objext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try
='test -s conftest.$ac_objext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_header_compiler
=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.
$ac_ext >&5
10100 ac_header_compiler
=no
10102 rm -f conftest.
$ac_objext conftest.
$ac_ext
10103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10104 echo "${ECHO_T}$ac_header_compiler" >&6
10106 # Is the header present?
10107 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10108 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10109 cat >conftest.
$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10113 cat confdefs.h
>>conftest.
$ac_ext
10114 cat >>conftest.
$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <Carbon/Carbon.h>
10118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10119 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10121 grep -v '^ *+' conftest.er1
>conftest.err
10123 cat conftest.err
>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } >/dev
/null
; then
10126 if test -s conftest.err
; then
10127 ac_cpp_err
=$ac_c_preproc_warn_flag
10134 if test -z "$ac_cpp_err"; then
10135 ac_header_preproc
=yes
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.
$ac_ext >&5
10140 ac_header_preproc
=no
10142 rm -f conftest.err conftest.
$ac_ext
10143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10144 echo "${ECHO_T}$ac_header_preproc" >&6
10146 # So? What about this header?
10147 case $ac_header_compiler:$ac_header_preproc in
10149 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10150 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10152 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10155 ## ------------------------------------ ##
10156 ## Report this to bug-autoconf@gnu.org. ##
10157 ## ------------------------------------ ##
10160 sed "s/^/$as_me: WARNING: /" >&2
10163 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10164 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10166 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10168 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10171 ## ------------------------------------ ##
10172 ## Report this to bug-autoconf@gnu.org. ##
10173 ## ------------------------------------ ##
10176 sed "s/^/$as_me: WARNING: /" >&2
10179 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10180 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10181 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10186 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10187 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10190 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10197 if test "${HAVE_CARBON}" = "yes"; then
10199 cat >>confdefs.h
<<\_ACEOF
10200 #define HAVE_CARBON 1
10204 ## Specify the install directory
10206 if test "${carbon_appdir_x}" != ""; then
10207 case ${carbon_appdir_x} in
10208 y | ye |
yes) carbon_appdir
=/Applications
;;
10209 * ) carbon_appdir
=${carbon_appdir_x} ;;
10212 # We also have mouse menus.
10216 ### Use session management (-lSM -lICE) if available
10218 if test "${HAVE_X11}" = "yes"; then
10219 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10220 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10221 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10222 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10226 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10228 # Is the header compilable?
10229 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10230 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10231 cat >conftest.
$ac_ext <<_ACEOF
10232 #line $LINENO "configure"
10235 cat confdefs.h
>>conftest.
$ac_ext
10236 cat >>conftest.
$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 $ac_includes_default
10239 #include <X11/SM/SMlib.h>
10241 rm -f conftest.
$ac_objext
10242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10243 (eval $ac_compile) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try
='test -s conftest.$ac_objext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_header_compiler
=yes
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.
$ac_ext >&5
10258 ac_header_compiler
=no
10260 rm -f conftest.
$ac_objext conftest.
$ac_ext
10261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10262 echo "${ECHO_T}$ac_header_compiler" >&6
10264 # Is the header present?
10265 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10266 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10267 cat >conftest.
$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10271 cat confdefs.h
>>conftest.
$ac_ext
10272 cat >>conftest.
$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <X11/SM/SMlib.h>
10276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10277 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10279 grep -v '^ *+' conftest.er1
>conftest.err
10281 cat conftest.err
>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } >/dev
/null
; then
10284 if test -s conftest.err
; then
10285 ac_cpp_err
=$ac_c_preproc_warn_flag
10292 if test -z "$ac_cpp_err"; then
10293 ac_header_preproc
=yes
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.
$ac_ext >&5
10298 ac_header_preproc
=no
10300 rm -f conftest.err conftest.
$ac_ext
10301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10302 echo "${ECHO_T}$ac_header_preproc" >&6
10304 # So? What about this header?
10305 case $ac_header_compiler:$ac_header_preproc in
10307 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10308 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10309 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10310 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10313 ## ------------------------------------ ##
10314 ## Report this to bug-autoconf@gnu.org. ##
10315 ## ------------------------------------ ##
10318 sed "s/^/$as_me: WARNING: /" >&2
10321 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10322 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10323 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10324 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10326 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10329 ## ------------------------------------ ##
10330 ## Report this to bug-autoconf@gnu.org. ##
10331 ## ------------------------------------ ##
10334 sed "s/^/$as_me: WARNING: /" >&2
10337 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10338 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10339 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10344 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10348 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10349 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10350 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10351 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 ac_check_lib_save_LIBS
=$LIBS
10356 cat >conftest.
$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10360 cat confdefs.h
>>conftest.
$ac_ext
10361 cat >>conftest.
$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10364 /* Override any gcc2 internal prototype to avoid an error. */
10368 /* We use char because int might match the return type of a gcc2
10369 builtin and then its argument prototype would still apply. */
10370 char SmcOpenConnection ();
10374 SmcOpenConnection ();
10379 rm -f conftest.
$ac_objext conftest
$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try
='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 ac_cv_lib_SM_SmcOpenConnection
=yes
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.
$ac_ext >&5
10396 ac_cv_lib_SM_SmcOpenConnection
=no
10398 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10399 LIBS
=$ac_check_lib_save_LIBS
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10402 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10403 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10413 if test "${HAVE_X_SM}" = "yes"; then
10415 cat >>confdefs.h
<<\_ACEOF
10416 #define HAVE_X_SM 1
10421 *) LIBS
="-lSM -lICE $LIBS" ;;
10426 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10427 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10428 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10429 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 cat >conftest.
$ac_ext <<_ACEOF
10433 #line $LINENO "configure"
10436 cat confdefs.h
>>conftest.
$ac_ext
10437 cat >>conftest.
$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10448 rm -f conftest.
$ac_objext conftest
$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try
='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 emacs_cv_netdb_declares_h_errno
=yes
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.
$ac_ext >&5
10465 emacs_cv_netdb_declares_h_errno
=no
10467 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10469 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10470 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10471 if test $emacs_cv_netdb_declares_h_errno = yes; then
10473 cat >>confdefs.h
<<\_ACEOF
10474 #define HAVE_H_ERRNO 1
10479 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10480 # for constant arguments. Useless!
10481 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10482 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10483 if test "${ac_cv_working_alloca_h+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 cat >conftest.
$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10490 cat confdefs.h
>>conftest.
$ac_ext
10491 cat >>conftest.
$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 #include <alloca.h>
10497 char *p = (char *) alloca (2 * sizeof (int));
10502 rm -f conftest.
$ac_objext conftest
$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try
='test -s conftest$ac_exeext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 ac_cv_working_alloca_h
=yes
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.
$ac_ext >&5
10519 ac_cv_working_alloca_h
=no
10521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10523 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10524 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10525 if test $ac_cv_working_alloca_h = yes; then
10527 cat >>confdefs.h
<<\_ACEOF
10528 #define HAVE_ALLOCA_H 1
10533 echo "$as_me:$LINENO: checking for alloca" >&5
10534 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10535 if test "${ac_cv_func_alloca_works+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 cat >conftest.
$ac_ext <<_ACEOF
10539 #line $LINENO "configure"
10542 cat confdefs.h
>>conftest.
$ac_ext
10543 cat >>conftest.
$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10546 # define alloca __builtin_alloca
10549 # include <malloc.h>
10550 # define alloca _alloca
10553 # include <alloca.h>
10558 # ifndef alloca /* predefined by HP cc +Olibcalls */
10569 char *p = (char *) alloca (1);
10574 rm -f conftest.
$ac_objext conftest
$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try
='test -s conftest$ac_exeext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_cv_func_alloca_works
=yes
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.
$ac_ext >&5
10591 ac_cv_func_alloca_works
=no
10593 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10595 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10596 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10598 if test $ac_cv_func_alloca_works = yes; then
10600 cat >>confdefs.h
<<\_ACEOF
10601 #define HAVE_ALLOCA 1
10605 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10606 # that cause trouble. Some versions do not even contain alloca or
10607 # contain a buggy version. If you still want to use their alloca,
10608 # use ar to extract alloca.o from them instead of compiling alloca.c.
10610 ALLOCA
=alloca.
$ac_objext
10612 cat >>confdefs.h
<<\_ACEOF
10617 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10618 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10619 if test "${ac_cv_os_cray+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 cat >conftest.
$ac_ext <<_ACEOF
10623 #line $LINENO "configure"
10626 cat confdefs.h
>>conftest.
$ac_ext
10627 cat >>conftest.
$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 #if defined(CRAY) && ! defined(CRAY2)
10636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10637 $EGREP "webecray" >/dev
/null
2>&1; then
10645 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10646 echo "${ECHO_T}$ac_cv_os_cray" >&6
10647 if test $ac_cv_os_cray = yes; then
10648 for ac_func
in _getb67 GETB67 getb67
; do
10649 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10650 echo "$as_me:$LINENO: checking for $ac_func" >&5
10651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10652 if eval "test \"\${$as_ac_var+set}\" = set"; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 cat >conftest.
$ac_ext <<_ACEOF
10656 #line $LINENO "configure"
10659 cat confdefs.h
>>conftest.
$ac_ext
10660 cat >>conftest.
$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 /* System header to define __stub macros and hopefully few prototypes,
10663 which can conflict with char $ac_func (); below.
10664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10665 <limits.h> exists even on freestanding compilers. */
10667 # include <limits.h>
10669 # include <assert.h>
10671 /* Override any gcc2 internal prototype to avoid an error. */
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10685 char (*f) () = $ac_func;
10694 return f != $ac_func;
10699 rm -f conftest.
$ac_objext conftest
$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try
='test -s conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 eval "$as_ac_var=yes"
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.
$ac_ext >&5
10716 eval "$as_ac_var=no"
10718 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10722 if test `eval echo '${'$as_ac_var'}'` = yes; then
10724 cat >>confdefs.h
<<_ACEOF
10725 #define CRAY_STACKSEG_END $ac_func
10734 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10735 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10736 if test "${ac_cv_c_stack_direction+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 if test "$cross_compiling" = yes; then
10740 ac_cv_c_stack_direction
=0
10742 cat >conftest.
$ac_ext <<_ACEOF
10743 #line $LINENO "configure"
10746 cat confdefs.h
>>conftest.
$ac_ext
10747 cat >>conftest.
$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10750 find_stack_direction ()
10752 static char *addr = 0;
10757 return find_stack_direction ();
10760 return (&dummy > addr) ? 1 : -1;
10766 exit (find_stack_direction () < 0);
10769 rm -f conftest
$ac_exeext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771 (eval $ac_link) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_cv_c_stack_direction
=1
10782 echo "$as_me: program exited with status $ac_status" >&5
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.
$ac_ext >&5
10786 ( exit $ac_status )
10787 ac_cv_c_stack_direction
=-1
10789 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10793 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10795 cat >>confdefs.h
<<_ACEOF
10796 #define STACK_DIRECTION $ac_cv_c_stack_direction
10803 # fmod, logb, and frexp are found in -lm on most systems.
10804 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10806 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10807 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10808 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 ac_check_lib_save_LIBS
=$LIBS
10813 cat >conftest.
$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10817 cat confdefs.h
>>conftest.
$ac_ext
10818 cat >>conftest.
$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10836 rm -f conftest.
$ac_objext conftest
$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try
='test -s conftest$ac_exeext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_lib_m_sqrt
=yes
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.
$ac_ext >&5
10853 ac_cv_lib_m_sqrt
=no
10855 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10856 LIBS
=$ac_check_lib_save_LIBS
10858 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10859 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10860 if test $ac_cv_lib_m_sqrt = yes; then
10861 cat >>confdefs.h
<<_ACEOF
10862 #define HAVE_LIBM 1
10870 # Check for mail-locking functions in a "mail" library. Probably this should
10871 # have the same check as for liblockfile below.
10873 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10874 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10875 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 ac_check_lib_save_LIBS
=$LIBS
10879 LIBS
="-lmail $LIBS"
10880 cat >conftest.
$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10884 cat confdefs.h
>>conftest.
$ac_ext
10885 cat >>conftest.
$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 /* Override any gcc2 internal prototype to avoid an error. */
10892 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10903 rm -f conftest.
$ac_objext conftest
$ac_exeext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10905 (eval $ac_link) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try
='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_lib_mail_maillock
=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.
$ac_ext >&5
10920 ac_cv_lib_mail_maillock
=no
10922 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10923 LIBS
=$ac_check_lib_save_LIBS
10925 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10926 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10927 if test $ac_cv_lib_mail_maillock = yes; then
10928 cat >>confdefs.h
<<_ACEOF
10929 #define HAVE_LIBMAIL 1
10932 LIBS
="-lmail $LIBS"
10937 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10938 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10939 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 ac_check_lib_save_LIBS
=$LIBS
10943 LIBS
="-llockfile $LIBS"
10944 cat >conftest.
$ac_ext <<_ACEOF
10945 #line $LINENO "configure"
10948 cat confdefs.h
>>conftest.
$ac_ext
10949 cat >>conftest.
$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10952 /* Override any gcc2 internal prototype to avoid an error. */
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10967 rm -f conftest.
$ac_objext conftest
$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try
='test -s conftest$ac_exeext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_lib_lockfile_maillock
=yes
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.
$ac_ext >&5
10984 ac_cv_lib_lockfile_maillock
=no
10986 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10987 LIBS
=$ac_check_lib_save_LIBS
10989 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10990 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10991 if test $ac_cv_lib_lockfile_maillock = yes; then
10992 cat >>confdefs.h
<<_ACEOF
10993 #define HAVE_LIBLOCKFILE 1
10996 LIBS
="-llockfile $LIBS"
11000 # If we have the shared liblockfile, assume we must use it for mail
11001 # locking (e.g. Debian). If we couldn't link against liblockfile
11002 # (no liblockfile.a installed), ensure that we don't need to.
11003 if test "$ac_cv_lib_lockfile_maillock" = no
; then
11004 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11005 set dummy liblockfile.so
; ac_word
=$2
11006 echo "$as_me:$LINENO: checking for $ac_word" >&5
11007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11008 if test "${ac_cv_prog_liblockfile+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 if test -n "$liblockfile"; then
11012 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11015 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11016 for as_dir
in $as_dummy
11019 test -z "$as_dir" && as_dir
=.
11020 for ac_exec_ext
in '' $ac_executable_extensions; do
11021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022 ac_cv_prog_liblockfile
="yes"
11023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11029 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11032 liblockfile
=$ac_cv_prog_liblockfile
11033 if test -n "$liblockfile"; then
11034 echo "$as_me:$LINENO: result: $liblockfile" >&5
11035 echo "${ECHO_T}$liblockfile" >&6
11037 echo "$as_me:$LINENO: result: no" >&5
11038 echo "${ECHO_T}no" >&6
11041 if test $ac_cv_prog_liblockfile = yes; then
11042 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11043 This probably means that movemail could lose mail.
11044 There may be a \`development' package to install containing liblockfile." >&5
11045 echo "$as_me: error: Shared liblockfile found but can't link against it.
11046 This probably means that movemail could lose mail.
11047 There may be a \`development' package to install containing liblockfile." >&2;}
11048 { (exit 1); exit 1; }; }
11053 for ac_func
in touchlock
11055 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056 echo "$as_me:$LINENO: checking for $ac_func" >&5
11057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11058 if eval "test \"\${$as_ac_var+set}\" = set"; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 cat >conftest.
$ac_ext <<_ACEOF
11062 #line $LINENO "configure"
11065 cat confdefs.h
>>conftest.
$ac_ext
11066 cat >>conftest.
$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 /* System header to define __stub macros and hopefully few prototypes,
11069 which can conflict with char $ac_func (); below.
11070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11071 <limits.h> exists even on freestanding compilers. */
11073 # include <limits.h>
11075 # include <assert.h>
11077 /* Override any gcc2 internal prototype to avoid an error. */
11082 /* We use char because int might match the return type of a gcc2
11083 builtin and then its argument prototype would still apply. */
11085 /* The GNU C library defines this for functions which it implements
11086 to always fail with ENOSYS. Some functions are actually named
11087 something starting with __ and the normal name is an alias. */
11088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11091 char (*f) () = $ac_func;
11100 return f != $ac_func;
11105 rm -f conftest.
$ac_objext conftest
$ac_exeext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11107 (eval $ac_link) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try
='test -s conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 eval "$as_ac_var=yes"
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.
$ac_ext >&5
11122 eval "$as_ac_var=no"
11124 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11128 if test `eval echo '${'$as_ac_var'}'` = yes; then
11129 cat >>confdefs.h
<<_ACEOF
11130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11137 for ac_header
in maillock.h
11139 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11141 echo "$as_me:$LINENO: checking for $ac_header" >&5
11142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11149 # Is the header compilable?
11150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11152 cat >conftest.
$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11156 cat confdefs.h
>>conftest.
$ac_ext
11157 cat >>conftest.
$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 $ac_includes_default
11160 #include <$ac_header>
11162 rm -f conftest.
$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } &&
11168 { ac_try
='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_header_compiler
=yes
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.
$ac_ext >&5
11179 ac_header_compiler
=no
11181 rm -f conftest.
$ac_objext conftest.
$ac_ext
11182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183 echo "${ECHO_T}$ac_header_compiler" >&6
11185 # Is the header present?
11186 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11188 cat >conftest.
$ac_ext <<_ACEOF
11189 #line $LINENO "configure"
11192 cat confdefs.h
>>conftest.
$ac_ext
11193 cat >>conftest.
$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 #include <$ac_header>
11197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11198 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11200 grep -v '^ *+' conftest.er1
>conftest.err
11202 cat conftest.err
>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } >/dev
/null
; then
11205 if test -s conftest.err
; then
11206 ac_cpp_err
=$ac_c_preproc_warn_flag
11213 if test -z "$ac_cpp_err"; then
11214 ac_header_preproc
=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.
$ac_ext >&5
11219 ac_header_preproc
=no
11221 rm -f conftest.err conftest.
$ac_ext
11222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11223 echo "${ECHO_T}$ac_header_preproc" >&6
11225 # So? What about this header?
11226 case $ac_header_compiler:$ac_header_preproc in
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11234 ## ------------------------------------ ##
11235 ## Report this to bug-autoconf@gnu.org. ##
11236 ## ------------------------------------ ##
11239 sed "s/^/$as_me: WARNING: /" >&2
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11250 ## ------------------------------------ ##
11251 ## Report this to bug-autoconf@gnu.org. ##
11252 ## ------------------------------------ ##
11255 sed "s/^/$as_me: WARNING: /" >&2
11258 echo "$as_me:$LINENO: checking for $ac_header" >&5
11259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 eval "$as_ac_Header=$ac_header_preproc"
11265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11270 cat >>confdefs.h
<<_ACEOF
11271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11346 for ac_func
in gethostname getdomainname dup2 \
11347 rename closedir mkdir
rmdir sysinfo \
11348 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11349 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11350 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11351 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11352 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11353 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11354 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11356 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 cat >conftest.
$ac_ext <<_ACEOF
11363 #line $LINENO "configure"
11366 cat confdefs.h
>>conftest.
$ac_ext
11367 cat >>conftest.
$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 /* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char $ac_func (); below.
11371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11372 <limits.h> exists even on freestanding compilers. */
11374 # include <limits.h>
11376 # include <assert.h>
11378 /* Override any gcc2 internal prototype to avoid an error. */
11383 /* We use char because int might match the return type of a gcc2
11384 builtin and then its argument prototype would still apply. */
11386 /* The GNU C library defines this for functions which it implements
11387 to always fail with ENOSYS. Some functions are actually named
11388 something starting with __ and the normal name is an alias. */
11389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11392 char (*f) () = $ac_func;
11401 return f != $ac_func;
11406 rm -f conftest.
$ac_objext conftest
$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try
='test -s conftest$ac_exeext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 eval "$as_ac_var=yes"
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.
$ac_ext >&5
11423 eval "$as_ac_var=no"
11425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11429 if test `eval echo '${'$as_ac_var'}'` = yes; then
11430 cat >>confdefs.h
<<_ACEOF
11431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11439 for ac_header
in sys
/un.h
11441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11443 echo "$as_me:$LINENO: checking for $ac_header" >&5
11444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11451 # Is the header compilable?
11452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11454 cat >conftest.
$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11458 cat confdefs.h
>>conftest.
$ac_ext
11459 cat >>conftest.
$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 $ac_includes_default
11462 #include <$ac_header>
11464 rm -f conftest.
$ac_objext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11466 (eval $ac_compile) 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try
='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 ac_header_compiler
=yes
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.
$ac_ext >&5
11481 ac_header_compiler
=no
11483 rm -f conftest.
$ac_objext conftest.
$ac_ext
11484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11485 echo "${ECHO_T}$ac_header_compiler" >&6
11487 # Is the header present?
11488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11490 cat >conftest.
$ac_ext <<_ACEOF
11491 #line $LINENO "configure"
11494 cat confdefs.h
>>conftest.
$ac_ext
11495 cat >>conftest.
$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 #include <$ac_header>
11499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11500 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11502 grep -v '^ *+' conftest.er1
>conftest.err
11504 cat conftest.err
>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } >/dev
/null
; then
11507 if test -s conftest.err
; then
11508 ac_cpp_err
=$ac_c_preproc_warn_flag
11515 if test -z "$ac_cpp_err"; then
11516 ac_header_preproc
=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.
$ac_ext >&5
11521 ac_header_preproc
=no
11523 rm -f conftest.err conftest.
$ac_ext
11524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11525 echo "${ECHO_T}$ac_header_preproc" >&6
11527 # So? What about this header?
11528 case $ac_header_compiler:$ac_header_preproc in
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536 ## ------------------------------------ ##
11537 ## Report this to bug-autoconf@gnu.org. ##
11538 ## ------------------------------------ ##
11541 sed "s/^/$as_me: WARNING: /" >&2
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11552 ## ------------------------------------ ##
11553 ## Report this to bug-autoconf@gnu.org. ##
11554 ## ------------------------------------ ##
11557 sed "s/^/$as_me: WARNING: /" >&2
11560 echo "$as_me:$LINENO: checking for $ac_header" >&5
11561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 eval "$as_ac_Header=$ac_header_preproc"
11567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11572 cat >>confdefs.h
<<_ACEOF
11573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583 for ac_header
in sys
/time.h unistd.h
11585 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11587 echo "$as_me:$LINENO: checking for $ac_header" >&5
11588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11595 # Is the header compilable?
11596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11598 cat >conftest.
$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11602 cat confdefs.h
>>conftest.
$ac_ext
11603 cat >>conftest.
$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #include <$ac_header>
11608 rm -f conftest.
$ac_objext
11609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11610 (eval $ac_compile) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try
='test -s conftest.$ac_objext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 ac_header_compiler
=yes
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.
$ac_ext >&5
11625 ac_header_compiler
=no
11627 rm -f conftest.
$ac_objext conftest.
$ac_ext
11628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11629 echo "${ECHO_T}$ac_header_compiler" >&6
11631 # Is the header present?
11632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11634 cat >conftest.
$ac_ext <<_ACEOF
11635 #line $LINENO "configure"
11638 cat confdefs.h
>>conftest.
$ac_ext
11639 cat >>conftest.
$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 #include <$ac_header>
11643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11644 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11646 grep -v '^ *+' conftest.er1
>conftest.err
11648 cat conftest.err
>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } >/dev
/null
; then
11651 if test -s conftest.err
; then
11652 ac_cpp_err
=$ac_c_preproc_warn_flag
11659 if test -z "$ac_cpp_err"; then
11660 ac_header_preproc
=yes
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.
$ac_ext >&5
11665 ac_header_preproc
=no
11667 rm -f conftest.err conftest.
$ac_ext
11668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11669 echo "${ECHO_T}$ac_header_preproc" >&6
11671 # So? What about this header?
11672 case $ac_header_compiler:$ac_header_preproc in
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11680 ## ------------------------------------ ##
11681 ## Report this to bug-autoconf@gnu.org. ##
11682 ## ------------------------------------ ##
11685 sed "s/^/$as_me: WARNING: /" >&2
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11696 ## ------------------------------------ ##
11697 ## Report this to bug-autoconf@gnu.org. ##
11698 ## ------------------------------------ ##
11701 sed "s/^/$as_me: WARNING: /" >&2
11704 echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 eval "$as_ac_Header=$ac_header_preproc"
11711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11716 cat >>confdefs.h
<<_ACEOF
11717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11725 for ac_func
in alarm
11727 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11728 echo "$as_me:$LINENO: checking for $ac_func" >&5
11729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11730 if eval "test \"\${$as_ac_var+set}\" = set"; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 cat >conftest.
$ac_ext <<_ACEOF
11734 #line $LINENO "configure"
11737 cat confdefs.h
>>conftest.
$ac_ext
11738 cat >>conftest.
$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11745 # include <limits.h>
11747 # include <assert.h>
11749 /* Override any gcc2 internal prototype to avoid an error. */
11754 /* We use char because int might match the return type of a gcc2
11755 builtin and then its argument prototype would still apply. */
11757 /* The GNU C library defines this for functions which it implements
11758 to always fail with ENOSYS. Some functions are actually named
11759 something starting with __ and the normal name is an alias. */
11760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11763 char (*f) () = $ac_func;
11772 return f != $ac_func;
11777 rm -f conftest.
$ac_objext conftest
$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779 (eval $ac_link) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try
='test -s conftest$ac_exeext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 eval "$as_ac_var=yes"
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.
$ac_ext >&5
11794 eval "$as_ac_var=no"
11796 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11800 if test `eval echo '${'$as_ac_var'}'` = yes; then
11801 cat >>confdefs.h
<<_ACEOF
11802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11808 echo "$as_me:$LINENO: checking for working mktime" >&5
11809 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11810 if test "${ac_cv_func_working_mktime+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 if test "$cross_compiling" = yes; then
11814 ac_cv_func_working_mktime
=no
11816 cat >conftest.
$ac_ext <<_ACEOF
11817 #line $LINENO "configure"
11820 cat confdefs.h
>>conftest.
$ac_ext
11821 cat >>conftest.
$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 /* Test program from Paul Eggert and Tony Leneis. */
11824 #if TIME_WITH_SYS_TIME
11825 # include <sys/time.h>
11828 # if HAVE_SYS_TIME_H
11829 # include <sys/time.h>
11836 # include <unistd.h>
11840 # define alarm(X) /* empty */
11843 /* Work around redefinition to rpl_putenv by other config tests. */
11846 static time_t time_t_max;
11848 /* Values we'll use to set the TZ environment variable. */
11849 static const char *const tz_strings[] = {
11850 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11851 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11853 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11855 /* Fail if mktime fails to convert a date in the spring-forward gap.
11856 Based on a problem report from Andreas Jaeger. */
11858 spring_forward_gap ()
11860 /* glibc (up to about 1998-10-07) failed this test. */
11863 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11864 instead of "TZ=America/Vancouver" in order to detect the bug even
11865 on systems that don't support the Olson extension, or don't have the
11866 full zoneinfo tables installed. */
11867 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11876 if (mktime (&tm) == (time_t)-1)
11885 if ((lt = localtime (&now)) && mktime (lt) != now)
11887 now = time_t_max - now;
11888 if ((lt = localtime (&now)) && mktime (lt) != now)
11895 /* Based on code from Ariel Faigon. */
11905 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11915 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11916 now = mktime (&tm);
11917 if (now != (time_t) -1)
11919 struct tm *lt = localtime (&now);
11921 && lt->tm_year == tm.tm_year
11922 && lt->tm_mon == tm.tm_mon
11923 && lt->tm_mday == tm.tm_mday
11924 && lt->tm_hour == tm.tm_hour
11925 && lt->tm_min == tm.tm_min
11926 && lt->tm_sec == tm.tm_sec
11927 && lt->tm_yday == tm.tm_yday
11928 && lt->tm_wday == tm.tm_wday
11929 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11930 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11941 /* This test makes some buggy mktime implementations loop.
11942 Give up after 60 seconds; a mktime slower than that
11943 isn't worth using anyway. */
11946 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11949 delta = time_t_max / 997; /* a suitable prime number */
11950 for (i = 0; i < N_STRINGS; i++)
11953 putenv (tz_strings[i]);
11955 for (t = 0; t <= time_t_max - delta; t += delta)
11957 mktime_test ((time_t) 60 * 60);
11958 mktime_test ((time_t) 60 * 60 * 24);
11960 for (j = 1; 0 < j; j *= 2)
11962 bigtime_test (j - 1);
11965 spring_forward_gap ();
11969 rm -f conftest
$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_func_working_mktime
=yes
11982 echo "$as_me: program exited with status $ac_status" >&5
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.
$ac_ext >&5
11986 ( exit $ac_status )
11987 ac_cv_func_working_mktime
=no
11989 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11992 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11993 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11994 if test $ac_cv_func_working_mktime = no
; then
11995 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11998 if test "$ac_cv_func_working_mktime" = no
; then
12000 cat >>confdefs.h
<<\_ACEOF
12001 #define BROKEN_MKTIME 1
12006 ac_have_func
=no
# yes means we've found a way to get the load average.
12008 # Make sure getloadavg.c is where it belongs, at configure-time.
12009 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12010 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12011 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12012 { (exit 1); exit 1; }; }
12016 # Check for getloadavg, but be sure not to touch the cache variable.
12017 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12018 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12019 if test "${ac_cv_func_getloadavg+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 cat >conftest.
$ac_ext <<_ACEOF
12023 #line $LINENO "configure"
12026 cat confdefs.h
>>conftest.
$ac_ext
12027 cat >>conftest.
$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 /* System header to define __stub macros and hopefully few prototypes,
12030 which can conflict with char getloadavg (); below.
12031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12032 <limits.h> exists even on freestanding compilers. */
12034 # include <limits.h>
12036 # include <assert.h>
12038 /* Override any gcc2 internal prototype to avoid an error. */
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12045 char getloadavg ();
12046 /* The GNU C library defines this for functions which it implements
12047 to always fail with ENOSYS. Some functions are actually named
12048 something starting with __ and the normal name is an alias. */
12049 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12052 char (*f) () = getloadavg;
12061 return f != getloadavg;
12066 rm -f conftest.
$ac_objext conftest
$ac_exeext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068 (eval $ac_link) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try
='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 ac_cv_func_getloadavg
=yes
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.
$ac_ext >&5
12083 ac_cv_func_getloadavg
=no
12085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12087 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12088 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12089 if test $ac_cv_func_getloadavg = yes; then
12094 ) && ac_have_func
=yes
12096 # On HPUX9, an unprivileged user can get load averages through this function.
12098 for ac_func
in pstat_getdynamic
12100 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12101 echo "$as_me:$LINENO: checking for $ac_func" >&5
12102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12103 if eval "test \"\${$as_ac_var+set}\" = set"; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 cat >conftest.
$ac_ext <<_ACEOF
12107 #line $LINENO "configure"
12110 cat confdefs.h
>>conftest.
$ac_ext
12111 cat >>conftest.
$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 /* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12118 # include <limits.h>
12120 # include <assert.h>
12122 /* Override any gcc2 internal prototype to avoid an error. */
12127 /* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12130 /* The GNU C library defines this for functions which it implements
12131 to always fail with ENOSYS. Some functions are actually named
12132 something starting with __ and the normal name is an alias. */
12133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12136 char (*f) () = $ac_func;
12145 return f != $ac_func;
12150 rm -f conftest.
$ac_objext conftest
$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try
='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 eval "$as_ac_var=yes"
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.
$ac_ext >&5
12167 eval "$as_ac_var=no"
12169 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12173 if test `eval echo '${'$as_ac_var'}'` = yes; then
12174 cat >>confdefs.h
<<_ACEOF
12175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 # Solaris has libkstat which does not require root.
12184 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12185 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12186 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 ac_check_lib_save_LIBS
=$LIBS
12190 LIBS
="-lkstat $LIBS"
12191 cat >conftest.
$ac_ext <<_ACEOF
12192 #line $LINENO "configure"
12195 cat confdefs.h
>>conftest.
$ac_ext
12196 cat >>conftest.
$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 /* Override any gcc2 internal prototype to avoid an error. */
12203 /* We use char because int might match the return type of a gcc2
12204 builtin and then its argument prototype would still apply. */
12205 char kstat_open ();
12214 rm -f conftest.
$ac_objext conftest
$ac_exeext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216 (eval $ac_link) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try
='test -s conftest$ac_exeext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_lib_kstat_kstat_open
=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.
$ac_ext >&5
12231 ac_cv_lib_kstat_kstat_open
=no
12233 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12234 LIBS
=$ac_check_lib_save_LIBS
12236 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12237 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12238 if test $ac_cv_lib_kstat_kstat_open = yes; then
12239 cat >>confdefs.h
<<_ACEOF
12240 #define HAVE_LIBKSTAT 1
12243 LIBS
="-lkstat $LIBS"
12247 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12249 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12250 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12251 # to get the right answer into the cache.
12252 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12253 if test $ac_have_func = no
; then
12254 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12255 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12256 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 ac_check_lib_save_LIBS
=$LIBS
12261 cat >conftest.
$ac_ext <<_ACEOF
12262 #line $LINENO "configure"
12265 cat confdefs.h
>>conftest.
$ac_ext
12266 cat >>conftest.
$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12269 /* Override any gcc2 internal prototype to avoid an error. */
12273 /* We use char because int might match the return type of a gcc2
12274 builtin and then its argument prototype would still apply. */
12284 rm -f conftest.
$ac_objext conftest
$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286 (eval $ac_link) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try
='test -s conftest$ac_exeext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_lib_elf_elf_begin
=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.
$ac_ext >&5
12301 ac_cv_lib_elf_elf_begin
=no
12303 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12304 LIBS
=$ac_check_lib_save_LIBS
12306 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12307 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12308 if test $ac_cv_lib_elf_elf_begin = yes; then
12313 if test $ac_have_func = no
; then
12314 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12315 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12316 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 ac_check_lib_save_LIBS
=$LIBS
12321 cat >conftest.
$ac_ext <<_ACEOF
12322 #line $LINENO "configure"
12325 cat confdefs.h
>>conftest.
$ac_ext
12326 cat >>conftest.
$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 /* Override any gcc2 internal prototype to avoid an error. */
12333 /* We use char because int might match the return type of a gcc2
12334 builtin and then its argument prototype would still apply. */
12344 rm -f conftest.
$ac_objext conftest
$ac_exeext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346 (eval $ac_link) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try
='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_lib_kvm_kvm_open
=yes
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.
$ac_ext >&5
12361 ac_cv_lib_kvm_kvm_open
=no
12363 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12364 LIBS
=$ac_check_lib_save_LIBS
12366 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12367 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12368 if test $ac_cv_lib_kvm_kvm_open = yes; then
12372 # Check for the 4.4BSD definition of getloadavg.
12373 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12374 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12375 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 ac_check_lib_save_LIBS
=$LIBS
12379 LIBS
="-lutil $LIBS"
12380 cat >conftest.
$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12384 cat confdefs.h
>>conftest.
$ac_ext
12385 cat >>conftest.
$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char getloadavg ();
12403 rm -f conftest.
$ac_objext conftest
$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try
='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_cv_lib_util_getloadavg
=yes
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.
$ac_ext >&5
12420 ac_cv_lib_util_getloadavg
=no
12422 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12423 LIBS
=$ac_check_lib_save_LIBS
12425 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12426 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12427 if test $ac_cv_lib_util_getloadavg = yes; then
12428 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12433 if test $ac_have_func = no
; then
12434 # There is a commonly available library for RS/6000 AIX.
12435 # Since it is not a standard part of AIX, it might be installed locally.
12436 ac_getloadavg_LIBS
=$LIBS
12437 LIBS
="-L/usr/local/lib $LIBS"
12438 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12439 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12440 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 ac_check_lib_save_LIBS
=$LIBS
12444 LIBS
="-lgetloadavg $LIBS"
12445 cat >conftest.
$ac_ext <<_ACEOF
12446 #line $LINENO "configure"
12449 cat confdefs.h
>>conftest.
$ac_ext
12450 cat >>conftest.
$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12453 /* Override any gcc2 internal prototype to avoid an error. */
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12459 char getloadavg ();
12468 rm -f conftest.
$ac_objext conftest
$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try
='test -s conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_lib_getloadavg_getloadavg
=yes
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.
$ac_ext >&5
12485 ac_cv_lib_getloadavg_getloadavg
=no
12487 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12488 LIBS
=$ac_check_lib_save_LIBS
12490 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12491 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12492 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12493 LIBS
="-lgetloadavg $LIBS"
12495 LIBS
=$ac_getloadavg_LIBS
12500 # Make sure it is really in the library, if we think we found it,
12501 # otherwise set up the replacement function.
12503 for ac_func
in getloadavg
12505 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12506 echo "$as_me:$LINENO: checking for $ac_func" >&5
12507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12508 if eval "test \"\${$as_ac_var+set}\" = set"; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 cat >conftest.
$ac_ext <<_ACEOF
12512 #line $LINENO "configure"
12515 cat confdefs.h
>>conftest.
$ac_ext
12516 cat >>conftest.
$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 /* System header to define __stub macros and hopefully few prototypes,
12519 which can conflict with char $ac_func (); below.
12520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12521 <limits.h> exists even on freestanding compilers. */
12523 # include <limits.h>
12525 # include <assert.h>
12527 /* Override any gcc2 internal prototype to avoid an error. */
12532 /* We use char because int might match the return type of a gcc2
12533 builtin and then its argument prototype would still apply. */
12535 /* The GNU C library defines this for functions which it implements
12536 to always fail with ENOSYS. Some functions are actually named
12537 something starting with __ and the normal name is an alias. */
12538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12541 char (*f) () = $ac_func;
12550 return f != $ac_func;
12555 rm -f conftest.
$ac_objext conftest
$ac_exeext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557 (eval $ac_link) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try
='test -s conftest$ac_exeext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 eval "$as_ac_var=yes"
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.
$ac_ext >&5
12572 eval "$as_ac_var=no"
12574 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12578 if test `eval echo '${'$as_ac_var'}'` = yes; then
12579 cat >>confdefs.h
<<_ACEOF
12580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12584 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12586 cat >>confdefs.h
<<\_ACEOF
12587 #define C_GETLOADAVG 1
12590 # Figure out what our getloadavg.c needs.
12592 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12593 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12594 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12595 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12599 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12601 # Is the header compilable?
12602 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12603 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12604 cat >conftest.
$ac_ext <<_ACEOF
12605 #line $LINENO "configure"
12608 cat confdefs.h
>>conftest.
$ac_ext
12609 cat >>conftest.
$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12611 $ac_includes_default
12612 #include <sys/dg_sys_info.h>
12614 rm -f conftest.
$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try
='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_header_compiler
=yes
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.
$ac_ext >&5
12631 ac_header_compiler
=no
12633 rm -f conftest.
$ac_objext conftest.
$ac_ext
12634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12635 echo "${ECHO_T}$ac_header_compiler" >&6
12637 # Is the header present?
12638 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12639 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12640 cat >conftest.
$ac_ext <<_ACEOF
12641 #line $LINENO "configure"
12644 cat confdefs.h
>>conftest.
$ac_ext
12645 cat >>conftest.
$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 #include <sys/dg_sys_info.h>
12649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12650 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12652 grep -v '^ *+' conftest.er1
>conftest.err
12654 cat conftest.err
>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } >/dev
/null
; then
12657 if test -s conftest.err
; then
12658 ac_cpp_err
=$ac_c_preproc_warn_flag
12665 if test -z "$ac_cpp_err"; then
12666 ac_header_preproc
=yes
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.
$ac_ext >&5
12671 ac_header_preproc
=no
12673 rm -f conftest.err conftest.
$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675 echo "${ECHO_T}$ac_header_preproc" >&6
12677 # So? What about this header?
12678 case $ac_header_compiler:$ac_header_preproc in
12680 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12681 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12683 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12686 ## ------------------------------------ ##
12687 ## Report this to bug-autoconf@gnu.org. ##
12688 ## ------------------------------------ ##
12691 sed "s/^/$as_me: WARNING: /" >&2
12694 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12695 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12697 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12702 ## ------------------------------------ ##
12703 ## Report this to bug-autoconf@gnu.org. ##
12704 ## ------------------------------------ ##
12707 sed "s/^/$as_me: WARNING: /" >&2
12710 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12711 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12712 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12717 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12718 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12721 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12724 cat >>confdefs.h
<<\_ACEOF
12729 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12730 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12731 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 ac_check_lib_save_LIBS
=$LIBS
12736 cat >conftest.
$ac_ext <<_ACEOF
12737 #line $LINENO "configure"
12740 cat confdefs.h
>>conftest.
$ac_ext
12741 cat >>conftest.
$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12744 /* Override any gcc2 internal prototype to avoid an error. */
12748 /* We use char because int might match the return type of a gcc2
12749 builtin and then its argument prototype would still apply. */
12750 char dg_sys_info ();
12759 rm -f conftest.
$ac_objext conftest
$ac_exeext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12761 (eval $ac_link) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try
='test -s conftest$ac_exeext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 ac_cv_lib_dgc_dg_sys_info
=yes
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.
$ac_ext >&5
12776 ac_cv_lib_dgc_dg_sys_info
=no
12778 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12779 LIBS
=$ac_check_lib_save_LIBS
12781 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12782 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12783 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12784 cat >>confdefs.h
<<_ACEOF
12785 #define HAVE_LIBDGC 1
12796 if test "${ac_cv_header_locale_h+set}" = set; then
12797 echo "$as_me:$LINENO: checking for locale.h" >&5
12798 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12799 if test "${ac_cv_header_locale_h+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12803 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12805 # Is the header compilable?
12806 echo "$as_me:$LINENO: checking locale.h usability" >&5
12807 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12808 cat >conftest.
$ac_ext <<_ACEOF
12809 #line $LINENO "configure"
12812 cat confdefs.h
>>conftest.
$ac_ext
12813 cat >>conftest.
$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 $ac_includes_default
12816 #include <locale.h>
12818 rm -f conftest.
$ac_objext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try
='test -s conftest.$ac_objext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 ac_header_compiler
=yes
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.
$ac_ext >&5
12835 ac_header_compiler
=no
12837 rm -f conftest.
$ac_objext conftest.
$ac_ext
12838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12839 echo "${ECHO_T}$ac_header_compiler" >&6
12841 # Is the header present?
12842 echo "$as_me:$LINENO: checking locale.h presence" >&5
12843 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12844 cat >conftest.
$ac_ext <<_ACEOF
12845 #line $LINENO "configure"
12848 cat confdefs.h
>>conftest.
$ac_ext
12849 cat >>conftest.
$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 #include <locale.h>
12853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12854 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12856 grep -v '^ *+' conftest.er1
>conftest.err
12858 cat conftest.err
>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } >/dev
/null
; then
12861 if test -s conftest.err
; then
12862 ac_cpp_err
=$ac_c_preproc_warn_flag
12869 if test -z "$ac_cpp_err"; then
12870 ac_header_preproc
=yes
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.
$ac_ext >&5
12875 ac_header_preproc
=no
12877 rm -f conftest.err conftest.
$ac_ext
12878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12879 echo "${ECHO_T}$ac_header_preproc" >&6
12881 # So? What about this header?
12882 case $ac_header_compiler:$ac_header_preproc in
12884 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12885 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12886 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12887 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12890 ## ------------------------------------ ##
12891 ## Report this to bug-autoconf@gnu.org. ##
12892 ## ------------------------------------ ##
12895 sed "s/^/$as_me: WARNING: /" >&2
12898 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12899 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12901 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12903 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12906 ## ------------------------------------ ##
12907 ## Report this to bug-autoconf@gnu.org. ##
12908 ## ------------------------------------ ##
12911 sed "s/^/$as_me: WARNING: /" >&2
12914 echo "$as_me:$LINENO: checking for locale.h" >&5
12915 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12916 if test "${ac_cv_header_locale_h+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 ac_cv_header_locale_h
=$ac_header_preproc
12921 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12922 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12928 for ac_func
in setlocale
12930 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12931 echo "$as_me:$LINENO: checking for $ac_func" >&5
12932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12933 if eval "test \"\${$as_ac_var+set}\" = set"; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 cat >conftest.
$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12940 cat confdefs.h
>>conftest.
$ac_ext
12941 cat >>conftest.
$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 /* System header to define __stub macros and hopefully few prototypes,
12944 which can conflict with char $ac_func (); below.
12945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12946 <limits.h> exists even on freestanding compilers. */
12948 # include <limits.h>
12950 # include <assert.h>
12952 /* Override any gcc2 internal prototype to avoid an error. */
12957 /* We use char because int might match the return type of a gcc2
12958 builtin and then its argument prototype would still apply. */
12960 /* The GNU C library defines this for functions which it implements
12961 to always fail with ENOSYS. Some functions are actually named
12962 something starting with __ and the normal name is an alias. */
12963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12966 char (*f) () = $ac_func;
12975 return f != $ac_func;
12980 rm -f conftest.
$ac_objext conftest
$ac_exeext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12982 (eval $ac_link) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try
='test -s conftest$ac_exeext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 eval "$as_ac_var=yes"
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.
$ac_ext >&5
12997 eval "$as_ac_var=no"
12999 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13003 if test `eval echo '${'$as_ac_var'}'` = yes; then
13004 cat >>confdefs.h
<<_ACEOF
13005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13013 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13014 # Irix 4.0.5F has the header but not the library.
13015 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13018 cat >>confdefs.h
<<\_ACEOF
13024 if test $ac_have_func = no
; then
13025 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13026 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13027 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13028 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13032 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13034 # Is the header compilable?
13035 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13036 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13037 cat >conftest.
$ac_ext <<_ACEOF
13038 #line $LINENO "configure"
13041 cat confdefs.h
>>conftest.
$ac_ext
13042 cat >>conftest.
$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 $ac_includes_default
13045 #include <inq_stats/cpustats.h>
13047 rm -f conftest.
$ac_objext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 (eval $ac_compile) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try
='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_header_compiler
=yes
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.
$ac_ext >&5
13064 ac_header_compiler
=no
13066 rm -f conftest.
$ac_objext conftest.
$ac_ext
13067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13068 echo "${ECHO_T}$ac_header_compiler" >&6
13070 # Is the header present?
13071 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13072 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13073 cat >conftest.
$ac_ext <<_ACEOF
13074 #line $LINENO "configure"
13077 cat confdefs.h
>>conftest.
$ac_ext
13078 cat >>conftest.
$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 #include <inq_stats/cpustats.h>
13082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13083 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13085 grep -v '^ *+' conftest.er1
>conftest.err
13087 cat conftest.err
>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } >/dev
/null
; then
13090 if test -s conftest.err
; then
13091 ac_cpp_err
=$ac_c_preproc_warn_flag
13098 if test -z "$ac_cpp_err"; then
13099 ac_header_preproc
=yes
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.
$ac_ext >&5
13104 ac_header_preproc
=no
13106 rm -f conftest.err conftest.
$ac_ext
13107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13108 echo "${ECHO_T}$ac_header_preproc" >&6
13110 # So? What about this header?
13111 case $ac_header_compiler:$ac_header_preproc in
13113 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13114 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13116 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13119 ## ------------------------------------ ##
13120 ## Report this to bug-autoconf@gnu.org. ##
13121 ## ------------------------------------ ##
13124 sed "s/^/$as_me: WARNING: /" >&2
13127 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13128 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13130 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13132 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13135 ## ------------------------------------ ##
13136 ## Report this to bug-autoconf@gnu.org. ##
13137 ## ------------------------------------ ##
13140 sed "s/^/$as_me: WARNING: /" >&2
13143 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13144 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13145 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13150 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13154 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13157 cat >>confdefs.h
<<\_ACEOF
13162 cat >>confdefs.h
<<\_ACEOF
13171 if test $ac_have_func = no
; then
13172 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13173 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13174 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13175 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13179 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13181 # Is the header compilable?
13182 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13183 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13184 cat >conftest.
$ac_ext <<_ACEOF
13185 #line $LINENO "configure"
13188 cat confdefs.h
>>conftest.
$ac_ext
13189 cat >>conftest.
$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 $ac_includes_default
13192 #include <sys/cpustats.h>
13194 rm -f conftest.
$ac_objext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } &&
13200 { ac_try
='test -s conftest.$ac_objext'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 ac_header_compiler
=yes
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.
$ac_ext >&5
13211 ac_header_compiler
=no
13213 rm -f conftest.
$ac_objext conftest.
$ac_ext
13214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13215 echo "${ECHO_T}$ac_header_compiler" >&6
13217 # Is the header present?
13218 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13219 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13220 cat >conftest.
$ac_ext <<_ACEOF
13221 #line $LINENO "configure"
13224 cat confdefs.h
>>conftest.
$ac_ext
13225 cat >>conftest.
$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 #include <sys/cpustats.h>
13229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13230 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13232 grep -v '^ *+' conftest.er1
>conftest.err
13234 cat conftest.err
>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } >/dev
/null
; then
13237 if test -s conftest.err
; then
13238 ac_cpp_err
=$ac_c_preproc_warn_flag
13245 if test -z "$ac_cpp_err"; then
13246 ac_header_preproc
=yes
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.
$ac_ext >&5
13251 ac_header_preproc
=no
13253 rm -f conftest.err conftest.
$ac_ext
13254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13255 echo "${ECHO_T}$ac_header_preproc" >&6
13257 # So? What about this header?
13258 case $ac_header_compiler:$ac_header_preproc in
13260 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13261 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13262 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13263 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13266 ## ------------------------------------ ##
13267 ## Report this to bug-autoconf@gnu.org. ##
13268 ## ------------------------------------ ##
13271 sed "s/^/$as_me: WARNING: /" >&2
13274 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13275 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13277 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13279 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13282 ## ------------------------------------ ##
13283 ## Report this to bug-autoconf@gnu.org. ##
13284 ## ------------------------------------ ##
13287 sed "s/^/$as_me: WARNING: /" >&2
13290 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13291 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13292 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13297 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13298 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13301 if test $ac_cv_header_sys_cpustats_h = yes; then
13302 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13311 if test $ac_have_func = no
; then
13313 for ac_header
in mach
/mach.h
13315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13317 echo "$as_me:$LINENO: checking for $ac_header" >&5
13318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13325 # Is the header compilable?
13326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13328 cat >conftest.
$ac_ext <<_ACEOF
13329 #line $LINENO "configure"
13332 cat confdefs.h
>>conftest.
$ac_ext
13333 cat >>conftest.
$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13335 $ac_includes_default
13336 #include <$ac_header>
13338 rm -f conftest.
$ac_objext
13339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13340 (eval $ac_compile) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try
='test -s conftest.$ac_objext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 ac_header_compiler
=yes
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.
$ac_ext >&5
13355 ac_header_compiler
=no
13357 rm -f conftest.
$ac_objext conftest.
$ac_ext
13358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13359 echo "${ECHO_T}$ac_header_compiler" >&6
13361 # Is the header present?
13362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13364 cat >conftest.
$ac_ext <<_ACEOF
13365 #line $LINENO "configure"
13368 cat confdefs.h
>>conftest.
$ac_ext
13369 cat >>conftest.
$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 #include <$ac_header>
13373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13374 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13376 grep -v '^ *+' conftest.er1
>conftest.err
13378 cat conftest.err
>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } >/dev
/null
; then
13381 if test -s conftest.err
; then
13382 ac_cpp_err
=$ac_c_preproc_warn_flag
13389 if test -z "$ac_cpp_err"; then
13390 ac_header_preproc
=yes
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.
$ac_ext >&5
13395 ac_header_preproc
=no
13397 rm -f conftest.err conftest.
$ac_ext
13398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13399 echo "${ECHO_T}$ac_header_preproc" >&6
13401 # So? What about this header?
13402 case $ac_header_compiler:$ac_header_preproc in
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13410 ## ------------------------------------ ##
13411 ## Report this to bug-autoconf@gnu.org. ##
13412 ## ------------------------------------ ##
13415 sed "s/^/$as_me: WARNING: /" >&2
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13426 ## ------------------------------------ ##
13427 ## Report this to bug-autoconf@gnu.org. ##
13428 ## ------------------------------------ ##
13431 sed "s/^/$as_me: WARNING: /" >&2
13434 echo "$as_me:$LINENO: checking for $ac_header" >&5
13435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 eval "$as_ac_Header=$ac_header_preproc"
13441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13446 cat >>confdefs.h
<<_ACEOF
13447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13457 for ac_header
in nlist.h
13459 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13461 echo "$as_me:$LINENO: checking for $ac_header" >&5
13462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13469 # Is the header compilable?
13470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13472 cat >conftest.
$ac_ext <<_ACEOF
13473 #line $LINENO "configure"
13476 cat confdefs.h
>>conftest.
$ac_ext
13477 cat >>conftest.
$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 $ac_includes_default
13480 #include <$ac_header>
13482 rm -f conftest.
$ac_objext
13483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13484 (eval $ac_compile) 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try
='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_header_compiler
=yes
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.
$ac_ext >&5
13499 ac_header_compiler
=no
13501 rm -f conftest.
$ac_objext conftest.
$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13503 echo "${ECHO_T}$ac_header_compiler" >&6
13505 # Is the header present?
13506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13508 cat >conftest.
$ac_ext <<_ACEOF
13509 #line $LINENO "configure"
13512 cat confdefs.h
>>conftest.
$ac_ext
13513 cat >>conftest.
$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <$ac_header>
13517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13518 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13520 grep -v '^ *+' conftest.er1
>conftest.err
13522 cat conftest.err
>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } >/dev
/null
; then
13525 if test -s conftest.err
; then
13526 ac_cpp_err
=$ac_c_preproc_warn_flag
13533 if test -z "$ac_cpp_err"; then
13534 ac_header_preproc
=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.
$ac_ext >&5
13539 ac_header_preproc
=no
13541 rm -f conftest.err conftest.
$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13543 echo "${ECHO_T}$ac_header_preproc" >&6
13545 # So? What about this header?
13546 case $ac_header_compiler:$ac_header_preproc in
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13554 ## ------------------------------------ ##
13555 ## Report this to bug-autoconf@gnu.org. ##
13556 ## ------------------------------------ ##
13559 sed "s/^/$as_me: WARNING: /" >&2
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13570 ## ------------------------------------ ##
13571 ## Report this to bug-autoconf@gnu.org. ##
13572 ## ------------------------------------ ##
13575 sed "s/^/$as_me: WARNING: /" >&2
13578 echo "$as_me:$LINENO: checking for $ac_header" >&5
13579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 eval "$as_ac_Header=$ac_header_preproc"
13585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13590 cat >>confdefs.h
<<_ACEOF
13591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13593 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13594 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13595 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 cat >conftest.
$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13602 cat confdefs.h
>>conftest.
$ac_ext
13603 cat >>conftest.
$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13610 static struct nlist ac_aggr;
13611 if (ac_aggr.n_un.n_name)
13617 rm -f conftest.
$ac_objext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619 (eval $ac_compile) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try
='test -s conftest.$ac_objext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_cv_member_struct_nlist_n_un_n_name
=yes
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.
$ac_ext >&5
13634 cat >conftest.
$ac_ext <<_ACEOF
13635 #line $LINENO "configure"
13638 cat confdefs.h
>>conftest.
$ac_ext
13639 cat >>conftest.
$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13646 static struct nlist ac_aggr;
13647 if (sizeof ac_aggr.n_un.n_name)
13653 rm -f conftest.
$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try
='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_cv_member_struct_nlist_n_un_n_name
=yes
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.
$ac_ext >&5
13670 ac_cv_member_struct_nlist_n_un_n_name
=no
13672 rm -f conftest.
$ac_objext conftest.
$ac_ext
13674 rm -f conftest.
$ac_objext conftest.
$ac_ext
13676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13677 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13678 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13680 cat >>confdefs.h
<<_ACEOF
13681 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13685 cat >>confdefs.h
<<\_ACEOF
13686 #define NLIST_NAME_UNION 1
13700 # Some definitions of getloadavg require that the program be installed setgid.
13701 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13702 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13703 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 cat >conftest.
$ac_ext <<_ACEOF
13707 #line $LINENO "configure"
13710 cat confdefs.h
>>conftest.
$ac_ext
13711 cat >>conftest.
$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13714 #ifdef LDAV_PRIVILEGED
13715 Yowza Am I SETGID yet
13718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13719 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13720 ac_cv_func_getloadavg_setgid
=yes
13722 ac_cv_func_getloadavg_setgid
=no
13727 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13728 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13729 if test $ac_cv_func_getloadavg_setgid = yes; then
13732 cat >>confdefs.h
<<\_ACEOF
13733 #define GETLOADAVG_PRIVILEGED 1
13740 if test $ac_cv_func_getloadavg_setgid = yes; then
13741 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13742 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13743 if test "${ac_cv_group_kmem+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13747 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13748 # If we got an error (system does not support symlinks), try without -L.
13749 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13750 ac_cv_group_kmem
=`echo $ac_ls_output \
13751 | sed -ne 's/[ ][ ]*/ /g;
13752 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13756 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13757 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13758 KMEM_GROUP
=$ac_cv_group_kmem
13760 if test "x$ac_save_LIBS" = x
; then
13761 GETLOADAVG_LIBS
=$LIBS
13763 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13769 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13770 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13771 if test "${ac_cv_sys_largefile_source+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 ac_cv_sys_largefile_source
=no
13776 cat >conftest.
$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13780 cat confdefs.h
>>conftest.
$ac_ext
13781 cat >>conftest.
$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13792 rm -f conftest.
$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try
='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.
$ac_ext >&5
13810 rm -f conftest.
$ac_objext conftest.
$ac_ext
13811 cat >conftest.
$ac_ext <<_ACEOF
13812 #line $LINENO "configure"
13815 cat confdefs.h
>>conftest.
$ac_ext
13816 cat >>conftest.
$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 #define _LARGEFILE_SOURCE 1
13828 rm -f conftest.
$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try
='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_cv_sys_largefile_source
=1; break
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.
$ac_ext >&5
13846 rm -f conftest.
$ac_objext conftest.
$ac_ext
13850 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13851 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13852 if test "$ac_cv_sys_largefile_source" != no
; then
13854 cat >>confdefs.h
<<_ACEOF
13855 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13861 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13862 # in glibc 2.1.3, but that breaks too many other things.
13863 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13864 echo "$as_me:$LINENO: checking for fseeko" >&5
13865 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13866 if test "${ac_cv_func_fseeko+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 cat >conftest.
$ac_ext <<_ACEOF
13870 #line $LINENO "configure"
13873 cat confdefs.h
>>conftest.
$ac_ext
13874 cat >>conftest.
$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13880 return fseeko && fseeko (stdin, 0, 0);
13885 rm -f conftest.
$ac_objext conftest
$ac_exeext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887 (eval $ac_link) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try
='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_cv_func_fseeko
=yes
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.
$ac_ext >&5
13902 ac_cv_func_fseeko
=no
13904 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13906 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13907 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13908 if test $ac_cv_func_fseeko = yes; then
13910 cat >>confdefs.h
<<\_ACEOF
13911 #define HAVE_FSEEKO 1
13917 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13918 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13919 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 # Use it with a single arg.
13923 cat >conftest.
$ac_ext <<_ACEOF
13924 #line $LINENO "configure"
13927 cat confdefs.h
>>conftest.
$ac_ext
13928 cat >>conftest.
$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13939 rm -f conftest.
$ac_objext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941 (eval $ac_compile) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try
='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_func_getpgrp_void
=no
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.
$ac_ext >&5
13956 ac_cv_func_getpgrp_void
=yes
13958 rm -f conftest.
$ac_objext conftest.
$ac_ext
13961 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13962 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13963 if test $ac_cv_func_getpgrp_void = yes; then
13965 cat >>confdefs.h
<<\_ACEOF
13966 #define GETPGRP_VOID 1
13973 for ac_func
in strftime
13975 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13976 echo "$as_me:$LINENO: checking for $ac_func" >&5
13977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13978 if eval "test \"\${$as_ac_var+set}\" = set"; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 cat >conftest.
$ac_ext <<_ACEOF
13982 #line $LINENO "configure"
13985 cat confdefs.h
>>conftest.
$ac_ext
13986 cat >>conftest.
$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 /* System header to define __stub macros and hopefully few prototypes,
13989 which can conflict with char $ac_func (); below.
13990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13991 <limits.h> exists even on freestanding compilers. */
13993 # include <limits.h>
13995 # include <assert.h>
13997 /* Override any gcc2 internal prototype to avoid an error. */
14002 /* We use char because int might match the return type of a gcc2
14003 builtin and then its argument prototype would still apply. */
14005 /* The GNU C library defines this for functions which it implements
14006 to always fail with ENOSYS. Some functions are actually named
14007 something starting with __ and the normal name is an alias. */
14008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14011 char (*f) () = $ac_func;
14020 return f != $ac_func;
14025 rm -f conftest.
$ac_objext conftest
$ac_exeext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027 (eval $ac_link) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try
='test -s conftest$ac_exeext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 eval "$as_ac_var=yes"
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.
$ac_ext >&5
14042 eval "$as_ac_var=no"
14044 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14048 if test `eval echo '${'$as_ac_var'}'` = yes; then
14049 cat >>confdefs.h
<<_ACEOF
14050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14054 # strftime is in -lintl on SCO UNIX.
14055 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14056 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14057 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 ac_check_lib_save_LIBS
=$LIBS
14061 LIBS
="-lintl $LIBS"
14062 cat >conftest.
$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14066 cat confdefs.h
>>conftest.
$ac_ext
14067 cat >>conftest.
$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14070 /* Override any gcc2 internal prototype to avoid an error. */
14074 /* We use char because int might match the return type of a gcc2
14075 builtin and then its argument prototype would still apply. */
14085 rm -f conftest.
$ac_objext conftest
$ac_exeext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14087 (eval $ac_link) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try
='test -s conftest$ac_exeext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_lib_intl_strftime
=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.
$ac_ext >&5
14102 ac_cv_lib_intl_strftime
=no
14104 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14105 LIBS
=$ac_check_lib_save_LIBS
14107 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14108 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14109 if test $ac_cv_lib_intl_strftime = yes; then
14110 cat >>confdefs.h
<<\_ACEOF
14111 #define HAVE_STRFTIME 1
14114 LIBS
="-lintl $LIBS"
14123 for ac_func
in grantpt
14125 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14126 echo "$as_me:$LINENO: checking for $ac_func" >&5
14127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14128 if eval "test \"\${$as_ac_var+set}\" = set"; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 cat >conftest.
$ac_ext <<_ACEOF
14132 #line $LINENO "configure"
14135 cat confdefs.h
>>conftest.
$ac_ext
14136 cat >>conftest.
$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 /* System header to define __stub macros and hopefully few prototypes,
14139 which can conflict with char $ac_func (); below.
14140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14141 <limits.h> exists even on freestanding compilers. */
14143 # include <limits.h>
14145 # include <assert.h>
14147 /* Override any gcc2 internal prototype to avoid an error. */
14152 /* We use char because int might match the return type of a gcc2
14153 builtin and then its argument prototype would still apply. */
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14161 char (*f) () = $ac_func;
14170 return f != $ac_func;
14175 rm -f conftest.
$ac_objext conftest
$ac_exeext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14177 (eval $ac_link) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try
='test -s conftest$ac_exeext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 eval "$as_ac_var=yes"
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.
$ac_ext >&5
14192 eval "$as_ac_var=no"
14194 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14198 if test `eval echo '${'$as_ac_var'}'` = yes; then
14199 cat >>confdefs.h
<<_ACEOF
14200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14207 # PTY-related GNU extensions.
14209 for ac_func
in getpt
14211 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 echo "$as_me:$LINENO: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14214 if eval "test \"\${$as_ac_var+set}\" = set"; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 cat >conftest.
$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 /* System header to define __stub macros and hopefully few prototypes,
14225 which can conflict with char $ac_func (); below.
14226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14227 <limits.h> exists even on freestanding compilers. */
14229 # include <limits.h>
14231 # include <assert.h>
14233 /* Override any gcc2 internal prototype to avoid an error. */
14238 /* We use char because int might match the return type of a gcc2
14239 builtin and then its argument prototype would still apply. */
14241 /* The GNU C library defines this for functions which it implements
14242 to always fail with ENOSYS. Some functions are actually named
14243 something starting with __ and the normal name is an alias. */
14244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14247 char (*f) () = $ac_func;
14256 return f != $ac_func;
14261 rm -f conftest.
$ac_objext conftest
$ac_exeext
14262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14263 (eval $ac_link) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try
='test -s conftest$ac_exeext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 eval "$as_ac_var=yes"
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.
$ac_ext >&5
14278 eval "$as_ac_var=no"
14280 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14284 if test `eval echo '${'$as_ac_var'}'` = yes; then
14285 cat >>confdefs.h
<<_ACEOF
14286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14293 # Check this now, so that we will NOT find the above functions in ncurses.
14294 # That is because we have not set up to link ncurses in lib-src.
14295 # It's better to believe a function is not available
14296 # than to expect to find it in ncurses.
14298 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14299 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14300 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 ac_check_lib_save_LIBS
=$LIBS
14304 LIBS
="-lncurses $LIBS"
14305 cat >conftest.
$ac_ext <<_ACEOF
14306 #line $LINENO "configure"
14309 cat confdefs.h
>>conftest.
$ac_ext
14310 cat >>conftest.
$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14313 /* Override any gcc2 internal prototype to avoid an error. */
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14328 rm -f conftest.
$ac_objext conftest
$ac_exeext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14330 (eval $ac_link) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
14334 { ac_try
='test -s conftest$ac_exeext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_lib_ncurses_tparm
=yes
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.
$ac_ext >&5
14345 ac_cv_lib_ncurses_tparm
=no
14347 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14348 LIBS
=$ac_check_lib_save_LIBS
14350 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14351 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14352 if test $ac_cv_lib_ncurses_tparm = yes; then
14353 cat >>confdefs.h
<<_ACEOF
14354 #define HAVE_LIBNCURSES 1
14357 LIBS
="-lncurses $LIBS"
14362 # Do we need the Hesiod library to provide the support routines?
14363 if test "$with_hesiod" = yes ; then
14364 # Don't set $LIBS here -- see comments above.
14366 echo "$as_me:$LINENO: checking for res_send" >&5
14367 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14368 if test "${ac_cv_func_res_send+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 cat >conftest.
$ac_ext <<_ACEOF
14372 #line $LINENO "configure"
14375 cat confdefs.h
>>conftest.
$ac_ext
14376 cat >>conftest.
$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 /* System header to define __stub macros and hopefully few prototypes,
14379 which can conflict with char res_send (); below.
14380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14381 <limits.h> exists even on freestanding compilers. */
14383 # include <limits.h>
14385 # include <assert.h>
14387 /* Override any gcc2 internal prototype to avoid an error. */
14392 /* We use char because int might match the return type of a gcc2
14393 builtin and then its argument prototype would still apply. */
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined (__stub_res_send) || defined (__stub___res_send)
14401 char (*f) () = res_send;
14410 return f != res_send;
14415 rm -f conftest.
$ac_objext conftest
$ac_exeext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try
='test -s conftest$ac_exeext'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 ac_cv_func_res_send
=yes
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.
$ac_ext >&5
14432 ac_cv_func_res_send
=no
14434 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14436 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14437 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14438 if test $ac_cv_func_res_send = yes; then
14441 echo "$as_me:$LINENO: checking for __res_send" >&5
14442 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14443 if test "${ac_cv_func___res_send+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 cat >conftest.
$ac_ext <<_ACEOF
14447 #line $LINENO "configure"
14450 cat confdefs.h
>>conftest.
$ac_ext
14451 cat >>conftest.
$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 /* System header to define __stub macros and hopefully few prototypes,
14454 which can conflict with char __res_send (); below.
14455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14456 <limits.h> exists even on freestanding compilers. */
14458 # include <limits.h>
14460 # include <assert.h>
14462 /* Override any gcc2 internal prototype to avoid an error. */
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14469 char __res_send ();
14470 /* The GNU C library defines this for functions which it implements
14471 to always fail with ENOSYS. Some functions are actually named
14472 something starting with __ and the normal name is an alias. */
14473 #if defined (__stub___res_send) || defined (__stub_____res_send)
14476 char (*f) () = __res_send;
14485 return f != __res_send;
14490 rm -f conftest.
$ac_objext conftest
$ac_exeext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14492 (eval $ac_link) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try
='test -s conftest$ac_exeext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_cv_func___res_send
=yes
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.
$ac_ext >&5
14507 ac_cv_func___res_send
=no
14509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14511 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14512 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14513 if test $ac_cv_func___res_send = yes; then
14516 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14517 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14518 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 ac_check_lib_save_LIBS
=$LIBS
14522 LIBS
="-lresolv $LIBS"
14523 cat >conftest.
$ac_ext <<_ACEOF
14524 #line $LINENO "configure"
14527 cat confdefs.h
>>conftest.
$ac_ext
14528 cat >>conftest.
$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14531 /* Override any gcc2 internal prototype to avoid an error. */
14535 /* We use char because int might match the return type of a gcc2
14536 builtin and then its argument prototype would still apply. */
14546 rm -f conftest.
$ac_objext conftest
$ac_exeext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14548 (eval $ac_link) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try
='test -s conftest$ac_exeext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558 ac_cv_lib_resolv_res_send
=yes
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.
$ac_ext >&5
14563 ac_cv_lib_resolv_res_send
=no
14565 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14566 LIBS
=$ac_check_lib_save_LIBS
14568 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14569 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14570 if test $ac_cv_lib_resolv_res_send = yes; then
14573 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14574 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14575 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 ac_check_lib_save_LIBS
=$LIBS
14579 LIBS
="-lresolv $LIBS"
14580 cat >conftest.
$ac_ext <<_ACEOF
14581 #line $LINENO "configure"
14584 cat confdefs.h
>>conftest.
$ac_ext
14585 cat >>conftest.
$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any gcc2 internal prototype to avoid an error. */
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14594 char __res_send ();
14603 rm -f conftest.
$ac_objext conftest
$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try
='test -s conftest$ac_exeext'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_cv_lib_resolv___res_send
=yes
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.
$ac_ext >&5
14620 ac_cv_lib_resolv___res_send
=no
14622 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14623 LIBS
=$ac_check_lib_save_LIBS
14625 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14626 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14627 if test $ac_cv_lib_resolv___res_send = yes; then
14637 if test "$resolv" = yes ; then
14640 cat >>confdefs.h
<<\_ACEOF
14641 #define HAVE_LIBRESOLV 1
14647 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14648 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14649 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 cat >conftest.
$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14656 cat confdefs.h
>>conftest.
$ac_ext
14657 cat >>conftest.
$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char hes_getmailhost (); below.
14661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662 <limits.h> exists even on freestanding compilers. */
14664 # include <limits.h>
14666 # include <assert.h>
14668 /* Override any gcc2 internal prototype to avoid an error. */
14673 /* We use char because int might match the return type of a gcc2
14674 builtin and then its argument prototype would still apply. */
14675 char hes_getmailhost ();
14676 /* The GNU C library defines this for functions which it implements
14677 to always fail with ENOSYS. Some functions are actually named
14678 something starting with __ and the normal name is an alias. */
14679 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14682 char (*f) () = hes_getmailhost;
14691 return f != hes_getmailhost;
14696 rm -f conftest.
$ac_objext conftest
$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try
='test -s conftest$ac_exeext'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14708 ac_cv_func_hes_getmailhost
=yes
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.
$ac_ext >&5
14713 ac_cv_func_hes_getmailhost
=no
14715 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14717 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14718 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14719 if test $ac_cv_func_hes_getmailhost = yes; then
14722 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14723 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14724 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 ac_check_lib_save_LIBS
=$LIBS
14728 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14729 cat >conftest.
$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14733 cat confdefs.h
>>conftest.
$ac_ext
14734 cat >>conftest.
$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14737 /* Override any gcc2 internal prototype to avoid an error. */
14741 /* We use char because int might match the return type of a gcc2
14742 builtin and then its argument prototype would still apply. */
14743 char hes_getmailhost ();
14747 hes_getmailhost ();
14752 rm -f conftest.
$ac_objext conftest
$ac_exeext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14754 (eval $ac_link) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try
='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_lib_hesiod_hes_getmailhost
=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.
$ac_ext >&5
14769 ac_cv_lib_hesiod_hes_getmailhost
=no
14771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14772 LIBS
=$ac_check_lib_save_LIBS
14774 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14775 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14776 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14778 cat >>confdefs.h
<<\_ACEOF
14779 #define HAVE_LIBHESIOD 1
14790 # These tell us which Kerberos-related libraries to use.
14791 if test "${with_kerberos+set}" = set; then
14793 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14794 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14795 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 ac_check_lib_save_LIBS
=$LIBS
14799 LIBS
="-lcom_err $LIBS"
14800 cat >conftest.
$ac_ext <<_ACEOF
14801 #line $LINENO "configure"
14804 cat confdefs.h
>>conftest.
$ac_ext
14805 cat >>conftest.
$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14808 /* Override any gcc2 internal prototype to avoid an error. */
14812 /* We use char because int might match the return type of a gcc2
14813 builtin and then its argument prototype would still apply. */
14823 rm -f conftest.
$ac_objext conftest
$ac_exeext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14825 (eval $ac_link) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try
='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_cv_lib_com_err_com_err
=yes
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.
$ac_ext >&5
14840 ac_cv_lib_com_err_com_err
=no
14842 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14843 LIBS
=$ac_check_lib_save_LIBS
14845 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14846 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14847 if test $ac_cv_lib_com_err_com_err = yes; then
14848 cat >>confdefs.h
<<_ACEOF
14849 #define HAVE_LIBCOM_ERR 1
14852 LIBS
="-lcom_err $LIBS"
14857 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14858 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14859 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 ac_check_lib_save_LIBS
=$LIBS
14863 LIBS
="-lk5crypto $LIBS"
14864 cat >conftest.
$ac_ext <<_ACEOF
14865 #line $LINENO "configure"
14868 cat confdefs.h
>>conftest.
$ac_ext
14869 cat >>conftest.
$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14872 /* Override any gcc2 internal prototype to avoid an error. */
14876 /* We use char because int might match the return type of a gcc2
14877 builtin and then its argument prototype would still apply. */
14878 char mit_des_cbc_encrypt ();
14882 mit_des_cbc_encrypt ();
14887 rm -f conftest.
$ac_objext conftest
$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
14893 { ac_try
='test -s conftest$ac_exeext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.
$ac_ext >&5
14904 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14906 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14907 LIBS
=$ac_check_lib_save_LIBS
14909 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14910 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14911 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14912 cat >>confdefs.h
<<_ACEOF
14913 #define HAVE_LIBK5CRYPTO 1
14916 LIBS
="-lk5crypto $LIBS"
14921 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14922 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14923 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 ac_check_lib_save_LIBS
=$LIBS
14927 LIBS
="-lcrypto $LIBS"
14928 cat >conftest.
$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14932 cat confdefs.h
>>conftest.
$ac_ext
14933 cat >>conftest.
$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14936 /* Override any gcc2 internal prototype to avoid an error. */
14940 /* We use char because int might match the return type of a gcc2
14941 builtin and then its argument prototype would still apply. */
14942 char mit_des_cbc_encrypt ();
14946 mit_des_cbc_encrypt ();
14951 rm -f conftest.
$ac_objext conftest
$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try
='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.
$ac_ext >&5
14968 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14970 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14971 LIBS
=$ac_check_lib_save_LIBS
14973 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14974 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14975 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14976 cat >>confdefs.h
<<_ACEOF
14977 #define HAVE_LIBCRYPTO 1
14980 LIBS
="-lcrypto $LIBS"
14985 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14986 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14987 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 ac_check_lib_save_LIBS
=$LIBS
14991 LIBS
="-lkrb5 $LIBS"
14992 cat >conftest.
$ac_ext <<_ACEOF
14993 #line $LINENO "configure"
14996 cat confdefs.h
>>conftest.
$ac_ext
14997 cat >>conftest.
$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 /* Override any gcc2 internal prototype to avoid an error. */
15004 /* We use char because int might match the return type of a gcc2
15005 builtin and then its argument prototype would still apply. */
15006 char krb5_init_context ();
15010 krb5_init_context ();
15015 rm -f conftest.
$ac_objext conftest
$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017 (eval $ac_link) 2>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
15021 { ac_try
='test -s conftest$ac_exeext'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_cv_lib_krb5_krb5_init_context
=yes
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.
$ac_ext >&5
15032 ac_cv_lib_krb5_krb5_init_context
=no
15034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15035 LIBS
=$ac_check_lib_save_LIBS
15037 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15038 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15039 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15040 cat >>confdefs.h
<<_ACEOF
15041 #define HAVE_LIBKRB5 1
15044 LIBS
="-lkrb5 $LIBS"
15048 if test "${with_kerberos5+set}" != set; then
15050 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15051 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15052 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 ac_check_lib_save_LIBS
=$LIBS
15056 LIBS
="-ldes425 $LIBS"
15057 cat >conftest.
$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15061 cat confdefs.h
>>conftest.
$ac_ext
15062 cat >>conftest.
$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15065 /* Override any gcc2 internal prototype to avoid an error. */
15069 /* We use char because int might match the return type of a gcc2
15070 builtin and then its argument prototype would still apply. */
15071 char des_cbc_encrypt ();
15075 des_cbc_encrypt ();
15080 rm -f conftest.
$ac_objext conftest
$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try
='test -s conftest$ac_exeext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_cv_lib_des425_des_cbc_encrypt
=yes
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.
$ac_ext >&5
15097 ac_cv_lib_des425_des_cbc_encrypt
=no
15099 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15100 LIBS
=$ac_check_lib_save_LIBS
15102 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15103 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15104 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15105 cat >>confdefs.h
<<_ACEOF
15106 #define HAVE_LIBDES425 1
15109 LIBS
="-ldes425 $LIBS"
15113 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15114 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15115 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 ac_check_lib_save_LIBS
=$LIBS
15120 cat >conftest.
$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15124 cat confdefs.h
>>conftest.
$ac_ext
15125 cat >>conftest.
$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15128 /* Override any gcc2 internal prototype to avoid an error. */
15132 /* We use char because int might match the return type of a gcc2
15133 builtin and then its argument prototype would still apply. */
15134 char des_cbc_encrypt ();
15138 des_cbc_encrypt ();
15143 rm -f conftest.
$ac_objext conftest
$ac_exeext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try
='test -s conftest$ac_exeext'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 ac_cv_lib_des_des_cbc_encrypt
=yes
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.
$ac_ext >&5
15160 ac_cv_lib_des_des_cbc_encrypt
=no
15162 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15163 LIBS
=$ac_check_lib_save_LIBS
15165 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15166 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15167 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15168 cat >>confdefs.h
<<_ACEOF
15169 #define HAVE_LIBDES 1
15179 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15180 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15181 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 ac_check_lib_save_LIBS
=$LIBS
15185 LIBS
="-lkrb4 $LIBS"
15186 cat >conftest.
$ac_ext <<_ACEOF
15187 #line $LINENO "configure"
15190 cat confdefs.h
>>conftest.
$ac_ext
15191 cat >>conftest.
$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 /* Override any gcc2 internal prototype to avoid an error. */
15198 /* We use char because int might match the return type of a gcc2
15199 builtin and then its argument prototype would still apply. */
15200 char krb_get_cred ();
15209 rm -f conftest.
$ac_objext conftest
$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try
='test -s conftest$ac_exeext'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 ac_cv_lib_krb4_krb_get_cred
=yes
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.
$ac_ext >&5
15226 ac_cv_lib_krb4_krb_get_cred
=no
15228 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15229 LIBS
=$ac_check_lib_save_LIBS
15231 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15232 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15233 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15234 cat >>confdefs.h
<<_ACEOF
15235 #define HAVE_LIBKRB4 1
15238 LIBS
="-lkrb4 $LIBS"
15242 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15243 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15244 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 ac_check_lib_save_LIBS
=$LIBS
15249 cat >conftest.
$ac_ext <<_ACEOF
15250 #line $LINENO "configure"
15253 cat confdefs.h
>>conftest.
$ac_ext
15254 cat >>conftest.
$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 /* Override any gcc2 internal prototype to avoid an error. */
15261 /* We use char because int might match the return type of a gcc2
15262 builtin and then its argument prototype would still apply. */
15263 char krb_get_cred ();
15272 rm -f conftest.
$ac_objext conftest
$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274 (eval $ac_link) 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try
='test -s conftest$ac_exeext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_lib_krb_krb_get_cred
=yes
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.
$ac_ext >&5
15289 ac_cv_lib_krb_krb_get_cred
=no
15291 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15292 LIBS
=$ac_check_lib_save_LIBS
15294 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15295 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15296 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15297 cat >>confdefs.h
<<_ACEOF
15298 #define HAVE_LIBKRB 1
15309 if test "${with_kerberos5+set}" = set; then
15311 for ac_header
in krb5.h
15313 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15315 echo "$as_me:$LINENO: checking for $ac_header" >&5
15316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15323 # Is the header compilable?
15324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15326 cat >conftest.
$ac_ext <<_ACEOF
15327 #line $LINENO "configure"
15330 cat confdefs.h
>>conftest.
$ac_ext
15331 cat >>conftest.
$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 $ac_includes_default
15334 #include <$ac_header>
15336 rm -f conftest.
$ac_objext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15338 (eval $ac_compile) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
15342 { ac_try
='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler
=yes
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.
$ac_ext >&5
15353 ac_header_compiler
=no
15355 rm -f conftest.
$ac_objext conftest.
$ac_ext
15356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6
15359 # Is the header present?
15360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15362 cat >conftest.
$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15366 cat confdefs.h
>>conftest.
$ac_ext
15367 cat >>conftest.
$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <$ac_header>
15371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15374 grep -v '^ *+' conftest.er1
>conftest.err
15376 cat conftest.err
>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } >/dev
/null
; then
15379 if test -s conftest.err
; then
15380 ac_cpp_err
=$ac_c_preproc_warn_flag
15387 if test -z "$ac_cpp_err"; then
15388 ac_header_preproc
=yes
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.
$ac_ext >&5
15393 ac_header_preproc
=no
15395 rm -f conftest.err conftest.
$ac_ext
15396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc in
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15408 ## ------------------------------------ ##
15409 ## Report this to bug-autoconf@gnu.org. ##
15410 ## ------------------------------------ ##
15413 sed "s/^/$as_me: WARNING: /" >&2
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15424 ## ------------------------------------ ##
15425 ## Report this to bug-autoconf@gnu.org. ##
15426 ## ------------------------------------ ##
15429 sed "s/^/$as_me: WARNING: /" >&2
15432 echo "$as_me:$LINENO: checking for $ac_header" >&5
15433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 eval "$as_ac_Header=$ac_header_preproc"
15439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15444 cat >>confdefs.h
<<_ACEOF
15445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15454 for ac_header
in des.h
15456 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15458 echo "$as_me:$LINENO: checking for $ac_header" >&5
15459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15466 # Is the header compilable?
15467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15469 cat >conftest.
$ac_ext <<_ACEOF
15470 #line $LINENO "configure"
15473 cat confdefs.h
>>conftest.
$ac_ext
15474 cat >>conftest.
$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <$ac_header>
15479 rm -f conftest.
$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try
='test -s conftest.$ac_objext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_header_compiler
=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.
$ac_ext >&5
15496 ac_header_compiler
=no
15498 rm -f conftest.
$ac_objext conftest.
$ac_ext
15499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15500 echo "${ECHO_T}$ac_header_compiler" >&6
15502 # Is the header present?
15503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15505 cat >conftest.
$ac_ext <<_ACEOF
15506 #line $LINENO "configure"
15509 cat confdefs.h
>>conftest.
$ac_ext
15510 cat >>conftest.
$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 #include <$ac_header>
15514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15515 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15517 grep -v '^ *+' conftest.er1
>conftest.err
15519 cat conftest.err
>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } >/dev
/null
; then
15522 if test -s conftest.err
; then
15523 ac_cpp_err
=$ac_c_preproc_warn_flag
15530 if test -z "$ac_cpp_err"; then
15531 ac_header_preproc
=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.
$ac_ext >&5
15536 ac_header_preproc
=no
15538 rm -f conftest.err conftest.
$ac_ext
15539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15540 echo "${ECHO_T}$ac_header_preproc" >&6
15542 # So? What about this header?
15543 case $ac_header_compiler:$ac_header_preproc in
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15551 ## ------------------------------------ ##
15552 ## Report this to bug-autoconf@gnu.org. ##
15553 ## ------------------------------------ ##
15556 sed "s/^/$as_me: WARNING: /" >&2
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15567 ## ------------------------------------ ##
15568 ## Report this to bug-autoconf@gnu.org. ##
15569 ## ------------------------------------ ##
15572 sed "s/^/$as_me: WARNING: /" >&2
15575 echo "$as_me:$LINENO: checking for $ac_header" >&5
15576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15580 eval "$as_ac_Header=$ac_header_preproc"
15582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15587 cat >>confdefs.h
<<_ACEOF
15588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15593 for ac_header
in kerberosIV
/des.h
15595 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15597 echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15605 # Is the header compilable?
15606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15608 cat >conftest.
$ac_ext <<_ACEOF
15609 #line $LINENO "configure"
15612 cat confdefs.h
>>conftest.
$ac_ext
15613 cat >>conftest.
$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 $ac_includes_default
15616 #include <$ac_header>
15618 rm -f conftest.
$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try
='test -s conftest.$ac_objext'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 ac_header_compiler
=yes
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.
$ac_ext >&5
15635 ac_header_compiler
=no
15637 rm -f conftest.
$ac_objext conftest.
$ac_ext
15638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15639 echo "${ECHO_T}$ac_header_compiler" >&6
15641 # Is the header present?
15642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15644 cat >conftest.
$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15648 cat confdefs.h
>>conftest.
$ac_ext
15649 cat >>conftest.
$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <$ac_header>
15653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15654 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15656 grep -v '^ *+' conftest.er1
>conftest.err
15658 cat conftest.err
>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev
/null
; then
15661 if test -s conftest.err
; then
15662 ac_cpp_err
=$ac_c_preproc_warn_flag
15669 if test -z "$ac_cpp_err"; then
15670 ac_header_preproc
=yes
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.
$ac_ext >&5
15675 ac_header_preproc
=no
15677 rm -f conftest.err conftest.
$ac_ext
15678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15679 echo "${ECHO_T}$ac_header_preproc" >&6
15681 # So? What about this header?
15682 case $ac_header_compiler:$ac_header_preproc in
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15690 ## ------------------------------------ ##
15691 ## Report this to bug-autoconf@gnu.org. ##
15692 ## ------------------------------------ ##
15695 sed "s/^/$as_me: WARNING: /" >&2
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15706 ## ------------------------------------ ##
15707 ## Report this to bug-autoconf@gnu.org. ##
15708 ## ------------------------------------ ##
15711 sed "s/^/$as_me: WARNING: /" >&2
15714 echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 eval "$as_ac_Header=$ac_header_preproc"
15721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726 cat >>confdefs.h
<<_ACEOF
15727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732 for ac_header
in kerberos
/des.h
15734 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15736 echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15744 # Is the header compilable?
15745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15747 cat >conftest.
$ac_ext <<_ACEOF
15748 #line $LINENO "configure"
15751 cat confdefs.h
>>conftest.
$ac_ext
15752 cat >>conftest.
$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15755 #include <$ac_header>
15757 rm -f conftest.
$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try
='test -s conftest.$ac_objext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_header_compiler
=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.
$ac_ext >&5
15774 ac_header_compiler
=no
15776 rm -f conftest.
$ac_objext conftest.
$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15778 echo "${ECHO_T}$ac_header_compiler" >&6
15780 # Is the header present?
15781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15783 cat >conftest.
$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15787 cat confdefs.h
>>conftest.
$ac_ext
15788 cat >>conftest.
$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <$ac_header>
15792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15793 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15795 grep -v '^ *+' conftest.er1
>conftest.err
15797 cat conftest.err
>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev
/null
; then
15800 if test -s conftest.err
; then
15801 ac_cpp_err
=$ac_c_preproc_warn_flag
15808 if test -z "$ac_cpp_err"; then
15809 ac_header_preproc
=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.
$ac_ext >&5
15814 ac_header_preproc
=no
15816 rm -f conftest.err conftest.
$ac_ext
15817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15818 echo "${ECHO_T}$ac_header_preproc" >&6
15820 # So? What about this header?
15821 case $ac_header_compiler:$ac_header_preproc in
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15829 ## ------------------------------------ ##
15830 ## Report this to bug-autoconf@gnu.org. ##
15831 ## ------------------------------------ ##
15834 sed "s/^/$as_me: WARNING: /" >&2
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15845 ## ------------------------------------ ##
15846 ## Report this to bug-autoconf@gnu.org. ##
15847 ## ------------------------------------ ##
15850 sed "s/^/$as_me: WARNING: /" >&2
15853 echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 eval "$as_ac_Header=$ac_header_preproc"
15860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h
<<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15882 for ac_header
in krb.h
15884 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15886 echo "$as_me:$LINENO: checking for $ac_header" >&5
15887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15894 # Is the header compilable?
15895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15897 cat >conftest.
$ac_ext <<_ACEOF
15898 #line $LINENO "configure"
15901 cat confdefs.h
>>conftest.
$ac_ext
15902 cat >>conftest.
$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 $ac_includes_default
15905 #include <$ac_header>
15907 rm -f conftest.
$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try
='test -s conftest.$ac_objext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler
=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.
$ac_ext >&5
15924 ac_header_compiler
=no
15926 rm -f conftest.
$ac_objext conftest.
$ac_ext
15927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15928 echo "${ECHO_T}$ac_header_compiler" >&6
15930 # Is the header present?
15931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15933 cat >conftest.
$ac_ext <<_ACEOF
15934 #line $LINENO "configure"
15937 cat confdefs.h
>>conftest.
$ac_ext
15938 cat >>conftest.
$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 #include <$ac_header>
15942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15943 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15945 grep -v '^ *+' conftest.er1
>conftest.err
15947 cat conftest.err
>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev
/null
; then
15950 if test -s conftest.err
; then
15951 ac_cpp_err
=$ac_c_preproc_warn_flag
15958 if test -z "$ac_cpp_err"; then
15959 ac_header_preproc
=yes
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.
$ac_ext >&5
15964 ac_header_preproc
=no
15966 rm -f conftest.err conftest.
$ac_ext
15967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15968 echo "${ECHO_T}$ac_header_preproc" >&6
15970 # So? What about this header?
15971 case $ac_header_compiler:$ac_header_preproc in
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15979 ## ------------------------------------ ##
15980 ## Report this to bug-autoconf@gnu.org. ##
15981 ## ------------------------------------ ##
15984 sed "s/^/$as_me: WARNING: /" >&2
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15995 ## ------------------------------------ ##
15996 ## Report this to bug-autoconf@gnu.org. ##
15997 ## ------------------------------------ ##
16000 sed "s/^/$as_me: WARNING: /" >&2
16003 echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 eval "$as_ac_Header=$ac_header_preproc"
16010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015 cat >>confdefs.h
<<_ACEOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16021 for ac_header
in kerberosIV
/krb.h
16023 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16025 echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16033 # Is the header compilable?
16034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16036 cat >conftest.
$ac_ext <<_ACEOF
16037 #line $LINENO "configure"
16040 cat confdefs.h
>>conftest.
$ac_ext
16041 cat >>conftest.
$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <$ac_header>
16046 rm -f conftest.
$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try
='test -s conftest.$ac_objext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_header_compiler
=yes
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.
$ac_ext >&5
16063 ac_header_compiler
=no
16065 rm -f conftest.
$ac_objext conftest.
$ac_ext
16066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16067 echo "${ECHO_T}$ac_header_compiler" >&6
16069 # Is the header present?
16070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16072 cat >conftest.
$ac_ext <<_ACEOF
16073 #line $LINENO "configure"
16076 cat confdefs.h
>>conftest.
$ac_ext
16077 cat >>conftest.
$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <$ac_header>
16081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16082 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16084 grep -v '^ *+' conftest.er1
>conftest.err
16086 cat conftest.err
>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } >/dev
/null
; then
16089 if test -s conftest.err
; then
16090 ac_cpp_err
=$ac_c_preproc_warn_flag
16097 if test -z "$ac_cpp_err"; then
16098 ac_header_preproc
=yes
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.
$ac_ext >&5
16103 ac_header_preproc
=no
16105 rm -f conftest.err conftest.
$ac_ext
16106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16107 echo "${ECHO_T}$ac_header_preproc" >&6
16109 # So? What about this header?
16110 case $ac_header_compiler:$ac_header_preproc in
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 ## ------------------------------------ ##
16119 ## Report this to bug-autoconf@gnu.org. ##
16120 ## ------------------------------------ ##
16123 sed "s/^/$as_me: WARNING: /" >&2
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16134 ## ------------------------------------ ##
16135 ## Report this to bug-autoconf@gnu.org. ##
16136 ## ------------------------------------ ##
16139 sed "s/^/$as_me: WARNING: /" >&2
16142 echo "$as_me:$LINENO: checking for $ac_header" >&5
16143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 eval "$as_ac_Header=$ac_header_preproc"
16149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16154 cat >>confdefs.h
<<_ACEOF
16155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16160 for ac_header
in kerberos
/krb.h
16162 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16164 echo "$as_me:$LINENO: checking for $ac_header" >&5
16165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16172 # Is the header compilable?
16173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16175 cat >conftest.
$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16179 cat confdefs.h
>>conftest.
$ac_ext
16180 cat >>conftest.
$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 $ac_includes_default
16183 #include <$ac_header>
16185 rm -f conftest.
$ac_objext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187 (eval $ac_compile) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try
='test -s conftest.$ac_objext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197 ac_header_compiler
=yes
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.
$ac_ext >&5
16202 ac_header_compiler
=no
16204 rm -f conftest.
$ac_objext conftest.
$ac_ext
16205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16206 echo "${ECHO_T}$ac_header_compiler" >&6
16208 # Is the header present?
16209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16211 cat >conftest.
$ac_ext <<_ACEOF
16212 #line $LINENO "configure"
16215 cat confdefs.h
>>conftest.
$ac_ext
16216 cat >>conftest.
$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 #include <$ac_header>
16220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16221 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16223 grep -v '^ *+' conftest.er1
>conftest.err
16225 cat conftest.err
>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } >/dev
/null
; then
16228 if test -s conftest.err
; then
16229 ac_cpp_err
=$ac_c_preproc_warn_flag
16236 if test -z "$ac_cpp_err"; then
16237 ac_header_preproc
=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.
$ac_ext >&5
16242 ac_header_preproc
=no
16244 rm -f conftest.err conftest.
$ac_ext
16245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16246 echo "${ECHO_T}$ac_header_preproc" >&6
16248 # So? What about this header?
16249 case $ac_header_compiler:$ac_header_preproc in
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16257 ## ------------------------------------ ##
16258 ## Report this to bug-autoconf@gnu.org. ##
16259 ## ------------------------------------ ##
16262 sed "s/^/$as_me: WARNING: /" >&2
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16273 ## ------------------------------------ ##
16274 ## Report this to bug-autoconf@gnu.org. ##
16275 ## ------------------------------------ ##
16278 sed "s/^/$as_me: WARNING: /" >&2
16281 echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 eval "$as_ac_Header=$ac_header_preproc"
16288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16293 cat >>confdefs.h
<<_ACEOF
16294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16311 for ac_header
in com_err.h
16313 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16315 echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16323 # Is the header compilable?
16324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16326 cat >conftest.
$ac_ext <<_ACEOF
16327 #line $LINENO "configure"
16330 cat confdefs.h
>>conftest.
$ac_ext
16331 cat >>conftest.
$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 $ac_includes_default
16334 #include <$ac_header>
16336 rm -f conftest.
$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try
='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_header_compiler
=yes
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.
$ac_ext >&5
16353 ac_header_compiler
=no
16355 rm -f conftest.
$ac_objext conftest.
$ac_ext
16356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16357 echo "${ECHO_T}$ac_header_compiler" >&6
16359 # Is the header present?
16360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16362 cat >conftest.
$ac_ext <<_ACEOF
16363 #line $LINENO "configure"
16366 cat confdefs.h
>>conftest.
$ac_ext
16367 cat >>conftest.
$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 #include <$ac_header>
16371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16374 grep -v '^ *+' conftest.er1
>conftest.err
16376 cat conftest.err
>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } >/dev
/null
; then
16379 if test -s conftest.err
; then
16380 ac_cpp_err
=$ac_c_preproc_warn_flag
16387 if test -z "$ac_cpp_err"; then
16388 ac_header_preproc
=yes
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.
$ac_ext >&5
16393 ac_header_preproc
=no
16395 rm -f conftest.err conftest.
$ac_ext
16396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16397 echo "${ECHO_T}$ac_header_preproc" >&6
16399 # So? What about this header?
16400 case $ac_header_compiler:$ac_header_preproc in
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16408 ## ------------------------------------ ##
16409 ## Report this to bug-autoconf@gnu.org. ##
16410 ## ------------------------------------ ##
16413 sed "s/^/$as_me: WARNING: /" >&2
16416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16424 ## ------------------------------------ ##
16425 ## Report this to bug-autoconf@gnu.org. ##
16426 ## ------------------------------------ ##
16429 sed "s/^/$as_me: WARNING: /" >&2
16432 echo "$as_me:$LINENO: checking for $ac_header" >&5
16433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 eval "$as_ac_Header=$ac_header_preproc"
16439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16444 cat >>confdefs.h
<<_ACEOF
16445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16454 # Solaris requires -lintl if you want strerror (which calls dgettext)
16455 # to return localized messages.
16457 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16458 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16459 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 ac_check_lib_save_LIBS
=$LIBS
16463 LIBS
="-lintl $LIBS"
16464 cat >conftest.
$ac_ext <<_ACEOF
16465 #line $LINENO "configure"
16468 cat confdefs.h
>>conftest.
$ac_ext
16469 cat >>conftest.
$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16472 /* Override any gcc2 internal prototype to avoid an error. */
16476 /* We use char because int might match the return type of a gcc2
16477 builtin and then its argument prototype would still apply. */
16487 rm -f conftest.
$ac_objext conftest
$ac_exeext
16488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16489 (eval $ac_link) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } &&
16493 { ac_try
='test -s conftest$ac_exeext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_cv_lib_intl_dgettext
=yes
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.
$ac_ext >&5
16504 ac_cv_lib_intl_dgettext
=no
16506 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16507 LIBS
=$ac_check_lib_save_LIBS
16509 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16510 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16511 if test $ac_cv_lib_intl_dgettext = yes; then
16512 cat >>confdefs.h
<<_ACEOF
16513 #define HAVE_LIBINTL 1
16516 LIBS
="-lintl $LIBS"
16521 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16522 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16523 if test "${emacs_cv_localtime_cache+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 if test x
$ac_cv_func_tzset = xyes
; then
16527 if test "$cross_compiling" = yes; then
16528 # If we have tzset, assume the worst when cross-compiling.
16529 emacs_cv_localtime_cache
=yes
16531 cat >conftest.
$ac_ext <<_ACEOF
16532 #line $LINENO "configure"
16535 cat confdefs.h
>>conftest.
$ac_ext
16536 cat >>conftest.
$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16539 extern char **environ;
16543 for (to = from = environ; (*to = *from); from++)
16544 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16547 char TZ_GMT0[] = "TZ=GMT0";
16548 char TZ_PST8[] = "TZ=PST8";
16551 time_t now = time ((time_t *) 0);
16552 int hour_GMT0, hour_unset;
16553 if (putenv (TZ_GMT0) != 0)
16555 hour_GMT0 = localtime (&now)->tm_hour;
16557 hour_unset = localtime (&now)->tm_hour;
16558 if (putenv (TZ_PST8) != 0)
16560 if (localtime (&now)->tm_hour == hour_GMT0)
16563 if (localtime (&now)->tm_hour != hour_unset)
16568 rm -f conftest
$ac_exeext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16570 (eval $ac_link) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 emacs_cv_localtime_cache
=no
16581 echo "$as_me: program exited with status $ac_status" >&5
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.
$ac_ext >&5
16585 ( exit $ac_status )
16586 emacs_cv_localtime_cache
=yes
16588 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16591 # If we lack tzset, report that localtime does not cache TZ,
16592 # since we can't invalidate the cache if we don't have tzset.
16593 emacs_cv_localtime_cache
=no
16596 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16597 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16598 if test $emacs_cv_localtime_cache = yes; then
16600 cat >>confdefs.h
<<\_ACEOF
16601 #define LOCALTIME_CACHE 1
16606 if test "x$HAVE_TIMEVAL" = xyes
; then
16608 for ac_func
in gettimeofday
16610 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611 echo "$as_me:$LINENO: checking for $ac_func" >&5
16612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16613 if eval "test \"\${$as_ac_var+set}\" = set"; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.
$ac_ext <<_ACEOF
16617 #line $LINENO "configure"
16620 cat confdefs.h
>>conftest.
$ac_ext
16621 cat >>conftest.
$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 /* System header to define __stub macros and hopefully few prototypes,
16624 which can conflict with char $ac_func (); below.
16625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16626 <limits.h> exists even on freestanding compilers. */
16628 # include <limits.h>
16630 # include <assert.h>
16632 /* Override any gcc2 internal prototype to avoid an error. */
16637 /* We use char because int might match the return type of a gcc2
16638 builtin and then its argument prototype would still apply. */
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16646 char (*f) () = $ac_func;
16655 return f != $ac_func;
16660 rm -f conftest.
$ac_objext conftest
$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662 (eval $ac_link) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } &&
16666 { ac_try
='test -s conftest$ac_exeext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 eval "$as_ac_var=yes"
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.
$ac_ext >&5
16677 eval "$as_ac_var=no"
16679 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16683 if test `eval echo '${'$as_ac_var'}'` = yes; then
16684 cat >>confdefs.h
<<_ACEOF
16685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16691 if test $ac_cv_func_gettimeofday = yes; then
16692 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16693 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16694 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 cat >conftest.
$ac_ext <<_ACEOF
16698 #line $LINENO "configure"
16701 cat confdefs.h
>>conftest.
$ac_ext
16702 cat >>conftest.
$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16705 #ifdef TIME_WITH_SYS_TIME
16706 #include <sys/time.h>
16709 #ifdef HAVE_SYS_TIME_H
16710 #include <sys/time.h>
16718 struct timeval time;
16719 gettimeofday (&time, 0);
16724 rm -f conftest.
$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try
='test -s conftest.$ac_objext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 emacs_cv_gettimeofday_two_arguments
=yes
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.
$ac_ext >&5
16741 emacs_cv_gettimeofday_two_arguments
=no
16743 rm -f conftest.
$ac_objext conftest.
$ac_ext
16745 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16746 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16747 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16749 cat >>confdefs.h
<<\_ACEOF
16750 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16757 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16758 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16759 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16760 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
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. */
16770 #include <sys/types.h>
16771 #include <$ac_cv_struct_tm>
16777 static struct tm ac_aggr;
16778 if (ac_aggr.tm_zone)
16784 rm -f conftest.
$ac_objext
16785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16786 (eval $ac_compile) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
16790 { ac_try
='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 ac_cv_member_struct_tm_tm_zone
=yes
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.
$ac_ext >&5
16801 cat >conftest.
$ac_ext <<_ACEOF
16802 #line $LINENO "configure"
16805 cat confdefs.h
>>conftest.
$ac_ext
16806 cat >>conftest.
$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <sys/types.h>
16809 #include <$ac_cv_struct_tm>
16815 static struct tm ac_aggr;
16816 if (sizeof ac_aggr.tm_zone)
16822 rm -f conftest.
$ac_objext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16824 (eval $ac_compile) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try
='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_member_struct_tm_tm_zone
=yes
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.
$ac_ext >&5
16839 ac_cv_member_struct_tm_tm_zone
=no
16841 rm -f conftest.
$ac_objext conftest.
$ac_ext
16843 rm -f conftest.
$ac_objext conftest.
$ac_ext
16845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16846 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16847 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16849 cat >>confdefs.h
<<_ACEOF
16850 #define HAVE_STRUCT_TM_TM_ZONE 1
16856 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16858 cat >>confdefs.h
<<\_ACEOF
16859 #define HAVE_TM_ZONE 1
16863 echo "$as_me:$LINENO: checking for tzname" >&5
16864 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16865 if test "${ac_cv_var_tzname+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 cat >conftest.
$ac_ext <<_ACEOF
16869 #line $LINENO "configure"
16872 cat confdefs.h
>>conftest.
$ac_ext
16873 cat >>conftest.
$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16876 #ifndef tzname /* For SGI. */
16877 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16888 rm -f conftest.
$ac_objext conftest
$ac_exeext
16889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16890 (eval $ac_link) 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try
='test -s conftest$ac_exeext'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_var_tzname
=yes
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.
$ac_ext >&5
16905 ac_cv_var_tzname
=no
16907 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16909 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16910 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16911 if test $ac_cv_var_tzname = yes; then
16913 cat >>confdefs.h
<<\_ACEOF
16914 #define HAVE_TZNAME 1
16921 if test "$ac_cv_func_gettimeofday" = yes; then
16922 echo "$as_me:$LINENO: checking for struct timezone" >&5
16923 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16924 if test "${emacs_cv_struct_timezone+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16927 cat >conftest.
$ac_ext <<_ACEOF
16928 #line $LINENO "configure"
16931 cat confdefs.h
>>conftest.
$ac_ext
16932 cat >>conftest.
$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 #include <sys/time.h>
16938 struct timezone tz;
16943 rm -f conftest.
$ac_objext
16944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16945 (eval $ac_compile) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try
='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 if test "$cross_compiling" = yes; then
16956 emacs_cv_struct_timezone
=yes
16958 cat >conftest.
$ac_ext <<_ACEOF
16959 #line $LINENO "configure"
16962 cat confdefs.h
>>conftest.
$ac_ext
16963 cat >>conftest.
$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16966 #ifdef TIME_WITH_SYS_TIME
16967 #include <sys/time.h>
16970 #ifdef HAVE_SYS_TIME_H
16971 #include <sys/time.h>
16977 struct timeval time;
16978 struct timezone dummy;
16979 exit (gettimeofday (&time, &dummy));
16982 rm -f conftest
$ac_exeext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16984 (eval $ac_link) 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 emacs_cv_struct_timezone
=yes
16995 echo "$as_me: program exited with status $ac_status" >&5
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.
$ac_ext >&5
16999 ( exit $ac_status )
17000 emacs_cv_struct_timezone
=no
17002 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.
$ac_ext >&5
17008 emacs_cv_struct_timezone
=no
17010 rm -f conftest.
$ac_objext conftest.
$ac_ext
17012 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17013 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17017 echo "$as_me:$LINENO: checking for socket" >&5
17018 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17019 if test "${ac_cv_func_socket+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 cat >conftest.
$ac_ext <<_ACEOF
17023 #line $LINENO "configure"
17026 cat confdefs.h
>>conftest.
$ac_ext
17027 cat >>conftest.
$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 /* System header to define __stub macros and hopefully few prototypes,
17030 which can conflict with char socket (); below.
17031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17032 <limits.h> exists even on freestanding compilers. */
17034 # include <limits.h>
17036 # include <assert.h>
17038 /* Override any gcc2 internal prototype to avoid an error. */
17043 /* We use char because int might match the return type of a gcc2
17044 builtin and then its argument prototype would still apply. */
17046 /* The GNU C library defines this for functions which it implements
17047 to always fail with ENOSYS. Some functions are actually named
17048 something starting with __ and the normal name is an alias. */
17049 #if defined (__stub_socket) || defined (__stub___socket)
17052 char (*f) () = socket;
17061 return f != socket;
17066 rm -f conftest.
$ac_objext conftest
$ac_exeext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17068 (eval $ac_link) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try
='test -s conftest$ac_exeext'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 ac_cv_func_socket
=yes
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.
$ac_ext >&5
17083 ac_cv_func_socket
=no
17085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17087 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17088 echo "${ECHO_T}$ac_cv_func_socket" >&6
17089 if test $ac_cv_func_socket = yes; then
17095 if test $ok_so_far = yes; then
17096 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17097 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17098 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17099 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17103 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17105 # Is the header compilable?
17106 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17107 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17108 cat >conftest.
$ac_ext <<_ACEOF
17109 #line $LINENO "configure"
17112 cat confdefs.h
>>conftest.
$ac_ext
17113 cat >>conftest.
$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 $ac_includes_default
17116 #include <netinet/in.h>
17118 rm -f conftest.
$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
17124 { ac_try
='test -s conftest.$ac_objext'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 ac_header_compiler
=yes
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.
$ac_ext >&5
17135 ac_header_compiler
=no
17137 rm -f conftest.
$ac_objext conftest.
$ac_ext
17138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17139 echo "${ECHO_T}$ac_header_compiler" >&6
17141 # Is the header present?
17142 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17143 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17144 cat >conftest.
$ac_ext <<_ACEOF
17145 #line $LINENO "configure"
17148 cat confdefs.h
>>conftest.
$ac_ext
17149 cat >>conftest.
$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 #include <netinet/in.h>
17153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17154 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17156 grep -v '^ *+' conftest.er1
>conftest.err
17158 cat conftest.err
>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } >/dev
/null
; then
17161 if test -s conftest.err
; then
17162 ac_cpp_err
=$ac_c_preproc_warn_flag
17169 if test -z "$ac_cpp_err"; then
17170 ac_header_preproc
=yes
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.
$ac_ext >&5
17175 ac_header_preproc
=no
17177 rm -f conftest.err conftest.
$ac_ext
17178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17179 echo "${ECHO_T}$ac_header_preproc" >&6
17181 # So? What about this header?
17182 case $ac_header_compiler:$ac_header_preproc in
17184 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17185 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17186 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17187 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17190 ## ------------------------------------ ##
17191 ## Report this to bug-autoconf@gnu.org. ##
17192 ## ------------------------------------ ##
17195 sed "s/^/$as_me: WARNING: /" >&2
17198 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17199 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17200 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17201 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17203 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17206 ## ------------------------------------ ##
17207 ## Report this to bug-autoconf@gnu.org. ##
17208 ## ------------------------------------ ##
17211 sed "s/^/$as_me: WARNING: /" >&2
17214 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17215 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17216 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 ac_cv_header_netinet_in_h
=$ac_header_preproc
17221 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17222 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17225 if test $ac_cv_header_netinet_in_h = yes; then
17233 if test $ok_so_far = yes; then
17234 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17235 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17236 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17237 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17241 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17243 # Is the header compilable?
17244 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17245 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17246 cat >conftest.
$ac_ext <<_ACEOF
17247 #line $LINENO "configure"
17250 cat confdefs.h
>>conftest.
$ac_ext
17251 cat >>conftest.
$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 $ac_includes_default
17254 #include <arpa/inet.h>
17256 rm -f conftest.
$ac_objext
17257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try
='test -s conftest.$ac_objext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_header_compiler
=yes
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.
$ac_ext >&5
17273 ac_header_compiler
=no
17275 rm -f conftest.
$ac_objext conftest.
$ac_ext
17276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17277 echo "${ECHO_T}$ac_header_compiler" >&6
17279 # Is the header present?
17280 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17281 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17282 cat >conftest.
$ac_ext <<_ACEOF
17283 #line $LINENO "configure"
17286 cat confdefs.h
>>conftest.
$ac_ext
17287 cat >>conftest.
$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #include <arpa/inet.h>
17291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17292 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17294 grep -v '^ *+' conftest.er1
>conftest.err
17296 cat conftest.err
>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } >/dev
/null
; then
17299 if test -s conftest.err
; then
17300 ac_cpp_err
=$ac_c_preproc_warn_flag
17307 if test -z "$ac_cpp_err"; then
17308 ac_header_preproc
=yes
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.
$ac_ext >&5
17313 ac_header_preproc
=no
17315 rm -f conftest.err conftest.
$ac_ext
17316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17317 echo "${ECHO_T}$ac_header_preproc" >&6
17319 # So? What about this header?
17320 case $ac_header_compiler:$ac_header_preproc in
17322 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17323 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17325 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17328 ## ------------------------------------ ##
17329 ## Report this to bug-autoconf@gnu.org. ##
17330 ## ------------------------------------ ##
17333 sed "s/^/$as_me: WARNING: /" >&2
17336 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17337 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17339 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17340 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17341 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17344 ## ------------------------------------ ##
17345 ## Report this to bug-autoconf@gnu.org. ##
17346 ## ------------------------------------ ##
17349 sed "s/^/$as_me: WARNING: /" >&2
17352 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17353 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17354 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17359 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17360 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17363 if test $ac_cv_header_arpa_inet_h = yes; then
17371 if test $ok_so_far = yes; then
17373 cat >>confdefs.h
<<\_ACEOF
17374 #define HAVE_INET_SOCKETS 1
17379 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
17381 cat >>confdefs.h
<<\_ACEOF
17382 #define HAVE_AIX_SMT_EXP 1
17387 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17388 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17389 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
17390 echo "$as_me:$LINENO: result: yes" >&5
17391 echo "${ECHO_T}yes" >&6
17393 cat >>confdefs.h
<<\_ACEOF
17394 #define HAVE_DEV_PTMX 1
17398 echo "$as_me:$LINENO: result: no" >&5
17399 echo "${ECHO_T}no" >&6
17402 echo "$as_me:$LINENO: checking for pid_t" >&5
17403 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17404 if test "${ac_cv_type_pid_t+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 cat >conftest.
$ac_ext <<_ACEOF
17408 #line $LINENO "configure"
17411 cat confdefs.h
>>conftest.
$ac_ext
17412 cat >>conftest.
$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 $ac_includes_default
17420 if (sizeof (pid_t))
17426 rm -f conftest.
$ac_objext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17428 (eval $ac_compile) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try
='test -s conftest.$ac_objext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_type_pid_t
=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.
$ac_ext >&5
17443 ac_cv_type_pid_t
=no
17445 rm -f conftest.
$ac_objext conftest.
$ac_ext
17447 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17448 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17449 if test $ac_cv_type_pid_t = yes; then
17453 cat >>confdefs.h
<<_ACEOF
17461 for ac_header
in unistd.h vfork.h
17463 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17465 echo "$as_me:$LINENO: checking for $ac_header" >&5
17466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17468 echo $ECHO_N "(cached) $ECHO_C" >&6
17470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17473 # Is the header compilable?
17474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17476 cat >conftest.
$ac_ext <<_ACEOF
17477 #line $LINENO "configure"
17480 cat confdefs.h
>>conftest.
$ac_ext
17481 cat >>conftest.
$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 $ac_includes_default
17484 #include <$ac_header>
17486 rm -f conftest.
$ac_objext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17488 (eval $ac_compile) 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); } &&
17492 { ac_try
='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 ac_header_compiler
=yes
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.
$ac_ext >&5
17503 ac_header_compiler
=no
17505 rm -f conftest.
$ac_objext conftest.
$ac_ext
17506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17507 echo "${ECHO_T}$ac_header_compiler" >&6
17509 # Is the header present?
17510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17512 cat >conftest.
$ac_ext <<_ACEOF
17513 #line $LINENO "configure"
17516 cat confdefs.h
>>conftest.
$ac_ext
17517 cat >>conftest.
$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 #include <$ac_header>
17521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17524 grep -v '^ *+' conftest.er1
>conftest.err
17526 cat conftest.err
>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } >/dev
/null
; then
17529 if test -s conftest.err
; then
17530 ac_cpp_err
=$ac_c_preproc_warn_flag
17537 if test -z "$ac_cpp_err"; then
17538 ac_header_preproc
=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.
$ac_ext >&5
17543 ac_header_preproc
=no
17545 rm -f conftest.err conftest.
$ac_ext
17546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17547 echo "${ECHO_T}$ac_header_preproc" >&6
17549 # So? What about this header?
17550 case $ac_header_compiler:$ac_header_preproc in
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17558 ## ------------------------------------ ##
17559 ## Report this to bug-autoconf@gnu.org. ##
17560 ## ------------------------------------ ##
17563 sed "s/^/$as_me: WARNING: /" >&2
17566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17574 ## ------------------------------------ ##
17575 ## Report this to bug-autoconf@gnu.org. ##
17576 ## ------------------------------------ ##
17579 sed "s/^/$as_me: WARNING: /" >&2
17582 echo "$as_me:$LINENO: checking for $ac_header" >&5
17583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 eval "$as_ac_Header=$ac_header_preproc"
17589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17594 cat >>confdefs.h
<<_ACEOF
17595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17604 for ac_func
in fork vfork
17606 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17607 echo "$as_me:$LINENO: checking for $ac_func" >&5
17608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17609 if eval "test \"\${$as_ac_var+set}\" = set"; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 cat >conftest.
$ac_ext <<_ACEOF
17613 #line $LINENO "configure"
17616 cat confdefs.h
>>conftest.
$ac_ext
17617 cat >>conftest.
$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 /* System header to define __stub macros and hopefully few prototypes,
17620 which can conflict with char $ac_func (); below.
17621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17622 <limits.h> exists even on freestanding compilers. */
17624 # include <limits.h>
17626 # include <assert.h>
17628 /* Override any gcc2 internal prototype to avoid an error. */
17633 /* We use char because int might match the return type of a gcc2
17634 builtin and then its argument prototype would still apply. */
17636 /* The GNU C library defines this for functions which it implements
17637 to always fail with ENOSYS. Some functions are actually named
17638 something starting with __ and the normal name is an alias. */
17639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17642 char (*f) () = $ac_func;
17651 return f != $ac_func;
17656 rm -f conftest.
$ac_objext conftest
$ac_exeext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17658 (eval $ac_link) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try
='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.
$ac_ext >&5
17673 eval "$as_ac_var=no"
17675 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17679 if test `eval echo '${'$as_ac_var'}'` = yes; then
17680 cat >>confdefs.h
<<_ACEOF
17681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17687 if test "x$ac_cv_func_fork" = xyes
; then
17688 echo "$as_me:$LINENO: checking for working fork" >&5
17689 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17690 if test "${ac_cv_func_fork_works+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 if test "$cross_compiling" = yes; then
17694 ac_cv_func_fork_works
=cross
17696 cat >conftest.
$ac_ext <<_ACEOF
17697 /* By Ruediger Kuhlmann. */
17698 #include <sys/types.h>
17700 # include <unistd.h>
17702 /* Some systems only have a dummy stub for fork() */
17710 rm -f conftest
$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_cv_func_fork_works
=yes
17723 echo "$as_me: program exited with status $ac_status" >&5
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.
$ac_ext >&5
17727 ( exit $ac_status )
17728 ac_cv_func_fork_works
=no
17730 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17733 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17734 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17737 ac_cv_func_fork_works
=$ac_cv_func_fork
17739 if test "x$ac_cv_func_fork_works" = xcross
; then
17741 *-*-amigaos* |
*-*-msdosdjgpp*)
17742 # Override, as these systems have only a dummy fork() stub
17743 ac_cv_func_fork_works
=no
17746 ac_cv_func_fork_works
=yes
17749 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17750 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17752 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17753 if test "x$ac_cv_func_vfork" = xyes
; then
17754 echo "$as_me:$LINENO: checking for working vfork" >&5
17755 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17756 if test "${ac_cv_func_vfork_works+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 if test "$cross_compiling" = yes; then
17760 ac_cv_func_vfork_works
=cross
17762 cat >conftest.
$ac_ext <<_ACEOF
17763 #line $LINENO "configure"
17766 cat confdefs.h
>>conftest.
$ac_ext
17767 cat >>conftest.
$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17769 /* Thanks to Paul Eggert for this test. */
17771 #include <stdlib.h>
17772 #include <sys/types.h>
17773 #include <sys/stat.h>
17774 #include <sys/wait.h>
17776 # include <unistd.h>
17779 # include <vfork.h>
17781 /* On some sparc systems, changes by the child to local and incoming
17782 argument registers are propagated back to the parent. The compiler
17783 is told about this with #include <vfork.h>, but some compilers
17784 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17785 static variable whose address is put into a register that is
17786 clobbered by the vfork. */
17789 sparc_address_test (int arg)
17791 sparc_address_test (arg) int arg;
17794 static pid_t child;
17812 pid_t parent = getpid ();
17815 sparc_address_test (0);
17820 /* Here is another test for sparc vfork register problems. This
17821 test uses lots of local variables, at least as many local
17822 variables as main has allocated so far including compiler
17823 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17824 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17825 reuse the register of parent for one of the local variables,
17826 since it will think that parent can't possibly be used any more
17827 in this routine. Assigning to the local variable will thus
17828 munge parent in the parent process. */
17830 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17831 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17832 /* Convince the compiler that p..p7 are live; otherwise, it might
17833 use the same hardware register for all 8 local variables. */
17834 if (p != p1 || p != p2 || p != p3 || p != p4
17835 || p != p5 || p != p6 || p != p7)
17838 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17839 from child file descriptors. If the child closes a descriptor
17840 before it execs or exits, this munges the parent's descriptor
17841 as well. Test for this by closing stdout in the child. */
17842 _exit(close(fileno(stdout)) != 0);
17847 while (wait(&status) != child)
17850 /* Was there some problem with vforking? */
17853 /* Did the child fail? (This shouldn't happen.) */
17856 /* Did the vfork/compiler bug occur? */
17857 || parent != getpid()
17859 /* Did the file descriptor bug occur? */
17860 || fstat(fileno(stdout), &st) != 0
17865 rm -f conftest
$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_func_vfork_works
=yes
17878 echo "$as_me: program exited with status $ac_status" >&5
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.
$ac_ext >&5
17882 ( exit $ac_status )
17883 ac_cv_func_vfork_works
=no
17885 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17889 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17892 if test "x$ac_cv_func_fork_works" = xcross
; then
17893 ac_cv_func_vfork_works
=ac_cv_func_vfork
17894 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17895 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17898 if test "x$ac_cv_func_vfork_works" = xyes
; then
17900 cat >>confdefs.h
<<\_ACEOF
17901 #define HAVE_WORKING_VFORK 1
17906 cat >>confdefs.h
<<\_ACEOF
17911 if test "x$ac_cv_func_fork_works" = xyes
; then
17913 cat >>confdefs.h
<<\_ACEOF
17914 #define HAVE_WORKING_FORK 1
17920 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17921 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17922 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 cat >conftest.
$ac_ext <<_ACEOF
17926 #line $LINENO "configure"
17929 cat confdefs.h
>>conftest.
$ac_ext
17930 cat >>conftest.
$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 #include <langinfo.h>
17936 char* cs = nl_langinfo(CODESET);
17941 rm -f conftest.
$ac_objext conftest
$ac_exeext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try
='test -s conftest$ac_exeext'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 emacs_cv_langinfo_codeset
=yes
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.
$ac_ext >&5
17958 emacs_cv_langinfo_codeset
=no
17960 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17963 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17964 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17965 if test $emacs_cv_langinfo_codeset = yes; then
17967 cat >>confdefs.h
<<\_ACEOF
17968 #define HAVE_LANGINFO_CODESET 1
17973 echo "$as_me:$LINENO: checking for size_t" >&5
17974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17975 if test "${ac_cv_type_size_t+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 cat >conftest.
$ac_ext <<_ACEOF
17979 #line $LINENO "configure"
17982 cat confdefs.h
>>conftest.
$ac_ext
17983 cat >>conftest.
$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 $ac_includes_default
17991 if (sizeof (size_t))
17997 rm -f conftest.
$ac_objext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999 (eval $ac_compile) 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try
='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_type_size_t
=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.
$ac_ext >&5
18014 ac_cv_type_size_t
=no
18016 rm -f conftest.
$ac_objext conftest.
$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18019 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18020 if test $ac_cv_type_size_t = yes; then
18022 cat >>confdefs.h
<<_ACEOF
18023 #define HAVE_SIZE_T 1
18030 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18031 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18032 if test "${ac_cv_type_mbstate_t+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 cat >conftest.
$ac_ext <<_ACEOF
18036 #line $LINENO "configure"
18039 cat confdefs.h
>>conftest.
$ac_ext
18040 cat >>conftest.
$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 $ac_includes_default
18043 # include <wchar.h>
18047 mbstate_t x; return sizeof x;
18052 rm -f conftest.
$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054 (eval $ac_compile) 2>&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try
='test -s conftest.$ac_objext'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_cv_type_mbstate_t
=yes
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.
$ac_ext >&5
18069 ac_cv_type_mbstate_t
=no
18071 rm -f conftest.
$ac_objext conftest.
$ac_ext
18073 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18074 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18075 if test $ac_cv_type_mbstate_t = yes; then
18077 cat >>confdefs.h
<<\_ACEOF
18078 #define HAVE_MBSTATE_T 1
18083 cat >>confdefs.h
<<\_ACEOF
18084 #define mbstate_t int
18089 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18090 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18091 if test "${emacs_cv_c_restrict+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 cat >conftest.
$ac_ext <<_ACEOF
18095 #line $LINENO "configure"
18098 cat confdefs.h
>>conftest.
$ac_ext
18099 cat >>conftest.
$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 void fred (int *restrict x);
18110 rm -f conftest.
$ac_objext
18111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18112 (eval $ac_compile) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try
='test -s conftest.$ac_objext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 emacs_cv_c_restrict
=yes
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.
$ac_ext >&5
18127 cat >conftest.
$ac_ext <<_ACEOF
18128 #line $LINENO "configure"
18131 cat confdefs.h
>>conftest.
$ac_ext
18132 cat >>conftest.
$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 void fred (int *__restrict x);
18143 rm -f conftest.
$ac_objext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try
='test -s conftest.$ac_objext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 emacs_cv_c_restrict
=__restrict
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.
$ac_ext >&5
18160 emacs_cv_c_restrict
=no
18162 rm -f conftest.
$ac_objext conftest.
$ac_ext
18164 rm -f conftest.
$ac_objext conftest.
$ac_ext
18166 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18167 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18168 case "$emacs_cv_c_restrict" in
18169 yes) emacs_restrict
=restrict
;;
18170 no
) emacs_restrict
="";;
18171 *) emacs_restrict
="$emacs_cv_c_restrict";;
18173 if test "$emacs_restrict" != __restrict
; then
18175 cat >>confdefs.h
<<_ACEOF
18176 #define __restrict $emacs_restrict
18181 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18182 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18183 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 cat >conftest.
$ac_ext <<_ACEOF
18187 #line $LINENO "configure"
18190 cat confdefs.h
>>conftest.
$ac_ext
18191 cat >>conftest.
$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 void fred (int x[__restrict]);
18202 rm -f conftest.
$ac_objext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18204 (eval $ac_compile) 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try
='test -s conftest.$ac_objext'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 emacs_cv_c_restrict_arr
=yes
18216 echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.
$ac_ext >&5
18219 emacs_cv_c_restrict_arr
=no
18221 rm -f conftest.
$ac_objext conftest.
$ac_ext
18223 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18224 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18225 if test "$emacs_cv_c_restrict_arr" = yes; then
18227 cat >>confdefs.h
<<\_ACEOF
18228 #define __restrict_arr __restrict
18235 # Set up the CFLAGS for real compilation, so we can substitute it.
18236 CFLAGS
="$REAL_CFLAGS"
18237 CPPFLAGS
="$REAL_CPPFLAGS"
18239 #### Find out which version of Emacs this is.
18240 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18241 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18242 if test x
"${version}" = x
; then
18243 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18244 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18245 { (exit 1); exit 1; }; }
18248 ### Specify what sort of things we'll be editing into Makefile and config.h.
18249 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18285 cat >>confdefs.h
<<_ACEOF
18286 #define EMACS_CONFIGURATION "${canonical}"
18290 cat >>confdefs.h
<<_ACEOF
18291 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18295 cat >>confdefs.h
<<_ACEOF
18296 #define config_machfile "${machfile}"
18300 cat >>confdefs.h
<<_ACEOF
18301 #define config_opsysfile "${opsysfile}"
18305 cat >>confdefs.h
<<_ACEOF
18306 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18310 cat >>confdefs.h
<<_ACEOF
18311 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18315 cat >>confdefs.h
<<_ACEOF
18316 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18320 cat >>confdefs.h
<<_ACEOF
18321 #define UNEXEC_SRC ${UNEXEC_SRC}
18325 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18327 cat >>confdefs.h
<<\_ACEOF
18328 #define HAVE_X_WINDOWS 1
18332 if test "${USE_X_TOOLKIT}" != "none" ; then
18334 cat >>confdefs.h
<<\_ACEOF
18335 #define USE_X_TOOLKIT 1
18339 if test "${HAVE_X11}" = "yes" ; then
18341 cat >>confdefs.h
<<\_ACEOF
18346 if test "${HAVE_XFREE386}" = "yes" ; then
18348 cat >>confdefs.h
<<\_ACEOF
18349 #define HAVE_XFREE386 1
18353 if test "${HAVE_MENUS}" = "yes" ; then
18355 cat >>confdefs.h
<<\_ACEOF
18356 #define HAVE_MENUS 1
18360 if test "${GNU_MALLOC}" = "yes" ; then
18362 cat >>confdefs.h
<<\_ACEOF
18363 #define GNU_MALLOC 1
18367 if test "${REL_ALLOC}" = "yes" ; then
18369 cat >>confdefs.h
<<\_ACEOF
18370 #define REL_ALLOC 1
18379 #### Report on what we decided to do.
18380 #### Report GTK as a toolkit, even if it doesn't use Xt.
18381 #### It makes printing result more understandable as using GTK sets
18382 #### toolkit_scroll_bars to yes by default.
18383 if test "${HAVE_GTK}" = "yes"; then
18388 Configured for \`${canonical}'.
18390 Where should the build process find the source code? ${srcdir}
18391 What operating system and machine description files should Emacs use?
18392 \`${opsysfile}' and \`${machfile}'
18393 What compiler should emacs be built with? ${CC} ${CFLAGS}
18394 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18395 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18396 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18397 What window system should Emacs use? ${window_system}
18398 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18400 if test -n "${x_includes}"; then
18401 echo " Where do we find X Windows header files? ${x_includes}"
18403 echo " Where do we find X Windows header files? Standard dirs"
18405 if test -n "${x_libraries}"; then
18406 echo " Where do we find X Windows libraries? ${x_libraries}"
18408 echo " Where do we find X Windows libraries? Standard dirs"
18411 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18412 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18413 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18414 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18415 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18416 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18417 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18420 # Remove any trailing slashes in these variables.
18421 test "${prefix}" != NONE
&&
18422 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18423 test "${exec_prefix}" != NONE
&&
18424 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18426 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18427 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18428 ## from Makefile.c can correctly provide the arg `-traditional' to the
18431 cat >conftest.
$ac_ext <<_ACEOF
18432 #line $LINENO "configure"
18435 cat confdefs.h
>>conftest.
$ac_ext
18436 cat >>conftest.
$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441 $EGREP "yes..yes" >/dev
/null
2>&1; then
18442 CPP_NEED_TRADITIONAL
=no
18444 CPP_NEED_TRADITIONAL
=yes
18449 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"
18450 ac_config_commands
="$ac_config_commands default"
18451 cat >confcache
<<\_ACEOF
18452 # This file is a shell script that caches the results of configure
18453 # tests run on this system so they can be shared between configure
18454 # scripts and configure runs, see configure's option --config-cache.
18455 # It is not useful on other systems. If it contains results you don't
18456 # want to keep, you may remove or edit it.
18458 # config.status only pays attention to the cache file if you give it
18459 # the --recheck option to rerun configure.
18461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18463 # following values.
18467 # The following way of writing the cache mishandles newlines in values,
18468 # but we know of no workaround that is simple, portable, and efficient.
18469 # So, don't put newlines in cache variables' values.
18470 # Ultrix sh set writes to stderr and can't be redirected directly,
18471 # and sets the high bit in the cache file unless we assign to the vars.
18474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18476 # `set' does not quote correctly, so add quotes (double-quote
18477 # substitution turns \\\\ into \\, and sed turns \\ into \).
18480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18483 # `set' quotes correctly as required by POSIX, so do not add quotes.
18485 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18494 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18496 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18497 if test -w $cache_file; then
18498 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18499 cat confcache
>$cache_file
18501 echo "not updating unwritable cache $cache_file"
18506 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18507 # Let make expand exec_prefix.
18508 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18512 # trailing colons and then remove the whole line if VPATH becomes empty
18513 # (actually we leave an empty line to preserve line numbers).
18514 if test "x$srcdir" = x.
; then
18515 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18516 s/:*\$(srcdir):*/:/;
18517 s/:*\${srcdir}:*/:/;
18519 s/^\([^=]*=[ ]*\):*/\1/;
18525 DEFS
=-DHAVE_CONFIG_H
18529 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18530 # 1. Remove the extension, and $U if already installed.
18531 ac_i
=`echo "$ac_i" |
18532 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18534 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18535 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18537 LIBOBJS
=$ac_libobjs
18539 LTLIBOBJS
=$ac_ltlibobjs
18543 : ${CONFIG_STATUS=./config.status}
18544 ac_clean_files_save
=$ac_clean_files
18545 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18546 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18547 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18548 cat >$CONFIG_STATUS <<_ACEOF
18550 # Generated by $as_me.
18551 # Run this file to recreate the current configuration.
18552 # Compiler output produced by configure, useful for debugging
18553 # configure, is in config.log if it exists.
18556 ac_cs_recheck=false
18558 SHELL=\${CONFIG_SHELL-$SHELL}
18561 cat >>$CONFIG_STATUS <<\_ACEOF
18562 ## --------------------- ##
18563 ## M4sh Initialization. ##
18564 ## --------------------- ##
18566 # Be Bourne compatible
18567 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18570 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18571 # is contrary to our usage. Disable this feature.
18572 alias -g '${1+"$@"}'='"$@"'
18573 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18577 # Support unset when possible.
18578 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18585 # Work around bugs in pre-3.0 UWIN ksh.
18586 $as_unset ENV MAIL MAILPATH
18593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18595 LC_TELEPHONE LC_TIME
18597 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18598 eval $as_var=C
; export $as_var
18604 # Required to use basename.
18605 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18611 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18612 as_basename
=basename
18618 # Name of the executable.
18619 as_me
=`$as_basename "$0" ||
18620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18621 X"$0" : 'X\(//\)$' \| \
18622 X"$0" : 'X\(/\)$' \| \
18623 . : '\(.\)' 2>/dev/null ||
18625 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18626 /^X\/\(\/\/\)$/{ s//\1/; q; }
18627 /^X\/\(\/\).*/{ s//\1/; q; }
18631 # PATH needs CR, and LINENO needs CR and PATH.
18632 # Avoid depending upon Character Ranges.
18633 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18634 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18635 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18636 as_cr_digits
='0123456789'
18637 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18639 # The user is always right.
18640 if test "${PATH_SEPARATOR+set}" != set; then
18641 echo "#! /bin/sh" >conf$$.sh
18642 echo "exit 0" >>conf$$.sh
18644 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18653 as_lineno_1
=$LINENO
18654 as_lineno_2
=$LINENO
18655 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18656 test "x$as_lineno_1" != "x$as_lineno_2" &&
18657 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18658 # Find who we are. Look in the path if we contain no path at all
18661 *[\\/]* ) as_myself
=$0 ;;
18662 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18663 for as_dir
in $PATH
18666 test -z "$as_dir" && as_dir
=.
18667 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18672 # We did not find ourselves, most probably we were run as `sh COMMAND'
18673 # in which case we are not to be found in the path.
18674 if test "x$as_myself" = x
; then
18677 if test ! -f "$as_myself"; then
18678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18680 { (exit 1); exit 1; }; }
18682 case $CONFIG_SHELL in
18684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18685 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18688 test -z "$as_dir" && as_dir
=.
18689 for as_base
in sh bash ksh sh5
; do
18692 if ("$as_dir/$as_base" -c '
18693 as_lineno_1=$LINENO
18694 as_lineno_2=$LINENO
18695 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18696 test "x$as_lineno_1" != "x$as_lineno_2" &&
18697 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18698 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18699 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18700 CONFIG_SHELL
=$as_dir/$as_base
18701 export CONFIG_SHELL
18702 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18711 # uniformly replaced by the line number. The first 'sed' inserts a
18712 # line-number line before each line; the second 'sed' does the real
18713 # work. The second script uses 'N' to pair each line-number line
18714 # with the numbered line, and appends trailing '-' during
18715 # substitution so that $LINENO is not a special case at line end.
18716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18717 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18718 sed '=' <$as_myself |
18723 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18726 s,^['$as_cr_digits']*\n,,
18727 ' >$as_me.lineno
&&
18728 chmod +x
$as_me.lineno ||
18729 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18730 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18731 { (exit 1); exit 1; }; }
18733 # Don't try to exec as it changes $[0], causing all sort of problems
18734 # (the dirname of $[0] is not the place where we might find the
18735 # original and so on. Autoconf is especially sensible to this).
18737 # Exit status is that of the last command.
18742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18743 *c
*,-n*) ECHO_N
= ECHO_C
='
18745 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18746 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18749 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18755 rm -f conf$$ conf$$.exe conf$$.
file
18757 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18758 # We could just check for DJGPP; but this test a) works b) is more generic
18759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18760 if test -f conf$$.exe
; then
18761 # Don't use ln at all; we don't have any links
18766 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18771 rm -f conf$$ conf$$.exe conf$$.
file
18773 if mkdir
-p .
2>/dev
/null
; then
18779 as_executable_p
="test -f"
18781 # Sed expression to map a string onto a valid CPP name.
18782 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18784 # Sed expression to map a string onto a valid variable name.
18785 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18789 # We need space, tab and new line, in precisely that order.
18799 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18800 # report actual input values of CONFIG_FILES etc. instead of their
18801 # values after options handling. Logging --version etc. is OK.
18805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18806 ## Running $as_me. ##
18811 This file was extended by $as_me, which was
18812 generated by GNU Autoconf 2.57. Invocation command line was
18814 CONFIG_FILES = $CONFIG_FILES
18815 CONFIG_HEADERS = $CONFIG_HEADERS
18816 CONFIG_LINKS = $CONFIG_LINKS
18817 CONFIG_COMMANDS = $CONFIG_COMMANDS
18821 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18825 # Files that config.status was made for.
18826 if test -n "$ac_config_files"; then
18827 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18830 if test -n "$ac_config_headers"; then
18831 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18834 if test -n "$ac_config_links"; then
18835 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18838 if test -n "$ac_config_commands"; then
18839 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18842 cat >>$CONFIG_STATUS <<\_ACEOF
18845 \`$as_me' instantiates files from templates according to the
18846 current configuration.
18848 Usage: $0 [OPTIONS] [FILE]...
18850 -h, --help print this help, then exit
18851 -V, --version print version number, then exit
18852 -q, --quiet do not print progress messages
18853 -d, --debug don't remove temporary files
18854 --recheck update $as_me by reconfiguring in the same conditions
18855 --file=FILE[:TEMPLATE]
18856 instantiate the configuration file FILE
18857 --header=FILE[:TEMPLATE]
18858 instantiate the configuration header FILE
18860 Configuration files:
18863 Configuration headers:
18866 Configuration commands:
18869 Report bugs to <bug-autoconf@gnu.org>."
18872 cat >>$CONFIG_STATUS <<_ACEOF
18875 configured by $0, generated by GNU Autoconf 2.57,
18876 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18878 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18879 Free Software Foundation, Inc.
18880 This config.status script is free software; the Free Software Foundation
18881 gives unlimited permission to copy, distribute and modify it."
18886 cat >>$CONFIG_STATUS <<\_ACEOF
18887 # If no file are specified by the user, then we need to provide default
18888 # value. By we need to know if files were specified by the user.
18894 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18895 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18903 *) # This is not an option, so the user has probably given explicit
18906 ac_need_defaults
=false
;;
18910 # Handling of the options.
18912 cat >>$CONFIG_STATUS <<\_ACEOF
18913 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18915 --version |
--vers* |
-V )
18916 echo "$ac_cs_version"; exit 0 ;;
18918 # Conflict between --help and --header
18919 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18920 Try \`$0 --help' for more information." >&5
18921 echo "$as_me: error: ambiguous option: $1
18922 Try \`$0 --help' for more information." >&2;}
18923 { (exit 1); exit 1; }; };;
18924 --help |
--hel |
-h )
18925 echo "$ac_cs_usage"; exit 0 ;;
18926 --debug |
--d* |
-d )
18928 --file |
--fil |
--fi |
--f )
18930 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18931 ac_need_defaults
=false
;;
18932 --header |
--heade |
--head |
--hea )
18934 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18935 ac_need_defaults
=false
;;
18936 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18937 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18940 # This is an error.
18941 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18942 Try \`$0 --help' for more information." >&5
18943 echo "$as_me: error: unrecognized option: $1
18944 Try \`$0 --help' for more information." >&2;}
18945 { (exit 1); exit 1; }; } ;;
18947 *) ac_config_targets
="$ac_config_targets $1" ;;
18953 ac_configure_extra_args
=
18955 if $ac_cs_silent; then
18957 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18961 cat >>$CONFIG_STATUS <<_ACEOF
18962 if \$ac_cs_recheck; then
18963 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18964 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18969 cat >>$CONFIG_STATUS <<_ACEOF
18971 # INIT-COMMANDS section.
18974 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18980 cat >>$CONFIG_STATUS <<\_ACEOF
18981 for ac_config_target
in $ac_config_targets
18983 case "$ac_config_target" in
18984 # Handling of arguments.
18985 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18986 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18987 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18988 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18989 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18990 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18991 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18992 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18993 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18994 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18995 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18996 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18997 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18998 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18999 { (exit 1); exit 1; }; };;
19003 # If the user did not use the arguments to specify the items to instantiate,
19004 # then the envvar interface is used. Set only those that are not.
19005 # We use the long form for the default assignment because of an extremely
19006 # bizarre bug on SunOS 4.1.3.
19007 if $ac_need_defaults; then
19008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19009 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19010 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19013 # Have a temporary directory for convenience. Make it in the build tree
19014 # simply because there is no reason to put it here, and in addition,
19015 # creating and moving files from /tmp can sometimes cause problems.
19016 # Create a temporary directory, and hook for its removal unless debugging.
19019 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19020 trap '{ (exit 1); exit 1; }' 1 2 13 15
19023 # Create a (secure) tmp directory for tmp files.
19026 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19027 test -n "$tmp" && test -d "$tmp"
19030 tmp
=.
/confstat$$
-$RANDOM
19031 (umask 077 && mkdir
$tmp)
19034 echo "$me: cannot create a temporary directory in ." >&2
19035 { (exit 1); exit 1; }
19040 cat >>$CONFIG_STATUS <<_ACEOF
19043 # CONFIG_FILES section.
19046 # No need to generate the scripts if there are no CONFIG_FILES.
19047 # This happens for instance when ./config.status config.h
19048 if test -n "\$CONFIG_FILES"; then
19049 # Protect against being on the right side of a sed subst in config.status.
19050 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19051 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19052 s,@SHELL@,$SHELL,;t t
19053 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19054 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19055 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19056 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19057 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19058 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19059 s,@exec_prefix@,$exec_prefix,;t t
19060 s,@prefix@,$prefix,;t t
19061 s,@program_transform_name@,$program_transform_name,;t t
19062 s,@bindir@,$bindir,;t t
19063 s,@sbindir@,$sbindir,;t t
19064 s,@libexecdir@,$libexecdir,;t t
19065 s,@datadir@,$datadir,;t t
19066 s,@sysconfdir@,$sysconfdir,;t t
19067 s,@sharedstatedir@,$sharedstatedir,;t t
19068 s,@localstatedir@,$localstatedir,;t t
19069 s,@libdir@,$libdir,;t t
19070 s,@includedir@,$includedir,;t t
19071 s,@oldincludedir@,$oldincludedir,;t t
19072 s,@infodir@,$infodir,;t t
19073 s,@mandir@,$mandir,;t t
19074 s,@build_alias@,$build_alias,;t t
19075 s,@host_alias@,$host_alias,;t t
19076 s,@target_alias@,$target_alias,;t t
19077 s,@DEFS@,$DEFS,;t t
19078 s,@ECHO_C@,$ECHO_C,;t t
19079 s,@ECHO_N@,$ECHO_N,;t t
19080 s,@ECHO_T@,$ECHO_T,;t t
19081 s,@LIBS@,$LIBS,;t t
19082 s,@build@,$build,;t t
19083 s,@build_cpu@,$build_cpu,;t t
19084 s,@build_vendor@,$build_vendor,;t t
19085 s,@build_os@,$build_os,;t t
19086 s,@host@,$host,;t t
19087 s,@host_cpu@,$host_cpu,;t t
19088 s,@host_vendor@,$host_vendor,;t t
19089 s,@host_os@,$host_os,;t t
19091 s,@CFLAGS@,$CFLAGS,;t t
19092 s,@LDFLAGS@,$LDFLAGS,;t t
19093 s,@CPPFLAGS@,$CPPFLAGS,;t t
19094 s,@ac_ct_CC@,$ac_ct_CC,;t t
19095 s,@EXEEXT@,$EXEEXT,;t t
19096 s,@OBJEXT@,$OBJEXT,;t t
19097 s,@LN_S@,$LN_S,;t t
19099 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19100 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19101 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19102 s,@RANLIB@,$RANLIB,;t t
19103 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19104 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19105 s,@EGREP@,$EGREP,;t t
19106 s,@LIBSOUND@,$LIBSOUND,;t t
19107 s,@SET_MAKE@,$SET_MAKE,;t t
19108 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19109 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19110 s,@GTK_LIBS@,$GTK_LIBS,;t t
19111 s,@ALLOCA@,$ALLOCA,;t t
19112 s,@liblockfile@,$liblockfile,;t t
19113 s,@LIBOBJS@,$LIBOBJS,;t t
19114 s,@NEED_SETGID@,$NEED_SETGID,;t t
19115 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19116 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19117 s,@version@,$version,;t t
19118 s,@configuration@,$configuration,;t t
19119 s,@canonical@,$canonical,;t t
19120 s,@srcdir@,$srcdir,;t t
19121 s,@lispdir@,$lispdir,;t t
19122 s,@locallisppath@,$locallisppath,;t t
19123 s,@lisppath@,$lisppath,;t t
19124 s,@x_default_search_path@,$x_default_search_path,;t t
19125 s,@etcdir@,$etcdir,;t t
19126 s,@archlibdir@,$archlibdir,;t t
19127 s,@docdir@,$docdir,;t t
19128 s,@bitmapdir@,$bitmapdir,;t t
19129 s,@gamedir@,$gamedir,;t t
19130 s,@gameuser@,$gameuser,;t t
19131 s,@c_switch_system@,$c_switch_system,;t t
19132 s,@c_switch_machine@,$c_switch_machine,;t t
19133 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19134 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19135 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19136 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19137 s,@machfile@,$machfile,;t t
19138 s,@opsysfile@,$opsysfile,;t t
19139 s,@carbon_appdir@,$carbon_appdir,;t t
19140 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19145 cat >>$CONFIG_STATUS <<\_ACEOF
19146 # Split the substitutions into bite-sized pieces for seds with
19147 # small command number limits, like on Digital OSF/1 and HP-UX.
19148 ac_max_sed_lines
=48
19149 ac_sed_frag
=1 # Number of current file.
19150 ac_beg
=1 # First line for current file.
19151 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19154 while $ac_more_lines; do
19155 if test $ac_beg -gt 1; then
19156 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19158 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19160 if test ! -s $tmp/subs.frag
; then
19161 ac_more_lines
=false
19163 # The purpose of the label and of the branching condition is to
19164 # speed up the sed processing (if there are no `@' at all, there
19165 # is no need to browse any of the substitutions).
19166 # These are the two extra sed commands mentioned above.
19168 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19169 if test -z "$ac_sed_cmds"; then
19170 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19172 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19174 ac_sed_frag
=`expr $ac_sed_frag + 1`
19176 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19179 if test -z "$ac_sed_cmds"; then
19182 fi # test -n "$CONFIG_FILES"
19185 cat >>$CONFIG_STATUS <<\_ACEOF
19186 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19189 - |
*:- |
*:-:* ) # input from stdin
19191 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19192 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19193 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19194 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19195 * ) ac_file_in
=$ac_file.
in ;;
19198 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19199 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19201 X"$ac_file" : 'X\(//\)[^/]' \| \
19202 X"$ac_file" : 'X\(//\)$' \| \
19203 X"$ac_file" : 'X\(/\)' \| \
19204 . : '\(.\)' 2>/dev/null ||
19206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19208 /^X\(\/\/\)$/{ s//\1/; q; }
19209 /^X\(\/\).*/{ s//\1/; q; }
19211 { if $as_mkdir_p; then
19216 while test ! -d "$as_dir"; do
19217 as_dirs
="$as_dir $as_dirs"
19218 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19220 X"$as_dir" : 'X\(//\)[^/]' \| \
19221 X"$as_dir" : 'X\(//\)$' \| \
19222 X"$as_dir" : 'X\(/\)' \| \
19223 . : '\(.\)' 2>/dev/null ||
19225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19227 /^X\(\/\/\)$/{ s//\1/; q; }
19228 /^X\(\/\).*/{ s//\1/; q; }
19231 test ! -n "$as_dirs" || mkdir
$as_dirs
19232 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19233 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19234 { (exit 1); exit 1; }; }; }
19238 if test "$ac_dir" != .
; then
19239 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19240 # A "../" for each directory in $ac_dir_suffix.
19241 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19243 ac_dir_suffix
= ac_top_builddir
=
19247 .
) # No --srcdir option. We are building in place.
19249 if test -z "$ac_top_builddir"; then
19252 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19254 [\\/]* | ?
:[\\/]* ) # Absolute path.
19255 ac_srcdir
=$srcdir$ac_dir_suffix;
19256 ac_top_srcdir
=$srcdir ;;
19257 *) # Relative path.
19258 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19259 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19261 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19263 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19264 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19265 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19266 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19270 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19271 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19274 if test x
"$ac_file" != x-
; then
19275 { echo "$as_me:$LINENO: creating $ac_file" >&5
19276 echo "$as_me: creating $ac_file" >&6;}
19279 # Let's still pretend it is `configure' which instantiates (i.e., don't
19280 # use $as_me), people would be surprised to read:
19281 # /* config.h. Generated by config.status. */
19282 if test x
"$ac_file" = x-
; then
19285 configure_input
="$ac_file. "
19287 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19288 sed 's,.*/,,'` by configure."
19290 # First look for the input files in the build tree, otherwise in the
19292 ac_file_inputs
=`IFS=:
19293 for f in $ac_file_in; do
19295 -) echo $tmp/stdin ;;
19297 # Absolute (can't be DOS-style, as IFS=:)
19298 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19299 echo "$as_me: error: cannot find input file: $f" >&2;}
19300 { (exit 1); exit 1; }; }
19303 if test -f "$f"; then
19306 elif test -f "$srcdir/$f"; then
19311 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19312 echo "$as_me: error: cannot find input file: $f" >&2;}
19313 { (exit 1); exit 1; }; }
19316 done` ||
{ (exit 1); exit 1; }
19318 cat >>$CONFIG_STATUS <<_ACEOF
19322 cat >>$CONFIG_STATUS <<\_ACEOF
19324 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19325 s
,@configure_input@
,$configure_input,;t t
19326 s
,@srcdir@
,$ac_srcdir,;t t
19327 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19328 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19329 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19330 s
,@builddir@
,$ac_builddir,;t t
19331 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19332 s
,@top_builddir@
,$ac_top_builddir,;t t
19333 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19334 s
,@INSTALL@
,$ac_INSTALL,;t t
19335 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19337 if test x"$ac_file" != x-; then
19338 mv $tmp/out $ac_file
19346 cat >>$CONFIG_STATUS <<\_ACEOF
19349 # CONFIG_HEADER section.
19352 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19353 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19355 # ac_d sets the value in "#define NAME VALUE" lines.
19356 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19357 ac_dB
='[ ].*$,\1#\2'
19360 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19361 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19362 ac_uB
='$,\1#\2define\3'
19366 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19369 - |
*:- |
*:-:* ) # input from stdin
19371 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19372 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19373 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19374 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19375 * ) ac_file_in
=$ac_file.
in ;;
19378 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19379 echo "$as_me: creating $ac_file" >&6;}
19381 # First look for the input files in the build tree, otherwise in the
19383 ac_file_inputs
=`IFS=:
19384 for f in $ac_file_in; do
19386 -) echo $tmp/stdin ;;
19388 # Absolute (can't be DOS-style, as IFS=:)
19389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19390 echo "$as_me: error: cannot find input file: $f" >&2;}
19391 { (exit 1); exit 1; }; }
19394 if test -f "$f"; then
19397 elif test -f "$srcdir/$f"; then
19402 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19403 echo "$as_me: error: cannot find input file: $f" >&2;}
19404 { (exit 1); exit 1; }; }
19407 done` ||
{ (exit 1); exit 1; }
19408 # Remove the trailing spaces.
19409 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19413 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19414 # `conftest.undefs', that substitutes the proper values into
19415 # config.h.in to produce config.h. The first handles `#define'
19416 # templates, and the second `#undef' templates.
19417 # And first: Protect against being on the right side of a sed subst in
19418 # config.status. Protect against being in an unquoted here document
19419 # in config.status.
19420 rm -f conftest.defines conftest.undefs
19421 # Using a here document instead of a string reduces the quoting nightmare.
19422 # Putting comments in sed scripts is not portable.
19424 # `end' is used to avoid that the second main sed command (meant for
19425 # 0-ary CPP macros) applies to n-ary macro definitions.
19426 # See the Autoconf documentation for `clear'.
19427 cat >confdef2sed.
sed <<\_ACEOF
19432 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19434 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19437 # If some macros were called several times there might be several times
19438 # the same #defines, which is useless. Nevertheless, we may not want to
19439 # sort them, since we want the *last* AC-DEFINE to be honored.
19440 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19441 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19442 rm -f confdef2sed.sed
19444 # This sed command replaces #undef with comments. This is necessary, for
19445 # example, in the case of _POSIX_SOURCE, which is predefined and required
19446 # on some systems where configure will not decide to define it.
19447 cat >>conftest.undefs <<\_ACEOF
19448 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19451 # Break up conftest.defines because some shells have a limit on the size
19452 # of here documents, and old seds have small limits too (100 cmds).
19453 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19454 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19455 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19456 echo ' :' >>$CONFIG_STATUS
19457 rm -f conftest.tail
19458 while grep . conftest.defines >/dev/null
19460 # Write a limited-size here document to $tmp/defines.sed.
19461 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19462 # Speed up: don't consider the non `#define' lines.
19463 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19464 # Work around the forget-to-reset-the-flag bug.
19465 echo 't clr' >>$CONFIG_STATUS
19466 echo ': clr' >>$CONFIG_STATUS
19467 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19469 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19471 mv $tmp/out $tmp/in
19473 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19474 rm -f conftest.defines
19475 mv conftest.
tail conftest.defines
19477 rm -f conftest.defines
19478 echo ' fi # grep' >>$CONFIG_STATUS
19479 echo >>$CONFIG_STATUS
19481 # Break up conftest.undefs because some shells have a limit on the size
19482 # of here documents, and old seds have small limits too (100 cmds).
19483 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19484 rm -f conftest.
tail
19485 while grep . conftest.undefs
>/dev
/null
19487 # Write a limited-size here document to $tmp/undefs.sed.
19488 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19489 # Speed up: don't consider the non
`#undef'
19490 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19491 # Work around the forget-to-reset-the-flag bug.
19492 echo 't clr' >>$CONFIG_STATUS
19493 echo ': clr' >>$CONFIG_STATUS
19494 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19496 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19498 mv $tmp/out $tmp/in
19500 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19501 rm -f conftest.undefs
19502 mv conftest.tail conftest.undefs
19504 rm -f conftest.undefs
19506 cat >>$CONFIG_STATUS <<\_ACEOF
19507 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19508 # use $as_me), people would be surprised to read:
19509 # /* config.h. Generated by config.status. */
19510 if test x
"$ac_file" = x-
; then
19511 echo "/* Generated by configure. */" >$tmp/config.h
19513 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19515 cat $tmp/in >>$tmp/config.h
19517 if test x
"$ac_file" != x-
; then
19518 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19519 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19520 echo "$as_me: $ac_file is unchanged" >&6;}
19522 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19524 X"$ac_file" : 'X\(//\)[^/]' \| \
19525 X"$ac_file" : 'X\(//\)$' \| \
19526 X"$ac_file" : 'X\(/\)' \| \
19527 . : '\(.\)' 2>/dev/null ||
19529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19531 /^X\(\/\/\)$/{ s//\1/; q; }
19532 /^X\(\/\).*/{ s//\1/; q; }
19534 { if $as_mkdir_p; then
19539 while test ! -d "$as_dir"; do
19540 as_dirs
="$as_dir $as_dirs"
19541 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19543 X"$as_dir" : 'X\(//\)[^/]' \| \
19544 X"$as_dir" : 'X\(//\)$' \| \
19545 X"$as_dir" : 'X\(/\)' \| \
19546 . : '\(.\)' 2>/dev/null ||
19548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19550 /^X\(\/\/\)$/{ s//\1/; q; }
19551 /^X\(\/\).*/{ s//\1/; q; }
19554 test ! -n "$as_dirs" || mkdir
$as_dirs
19555 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19556 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19557 { (exit 1); exit 1; }; }; }
19560 mv $tmp/config.h
$ac_file
19564 rm -f $tmp/config.h
19568 cat >>$CONFIG_STATUS <<\_ACEOF
19571 # CONFIG_COMMANDS section.
19573 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19574 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19575 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19576 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19577 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19578 X"$ac_dest" : 'X\(//\)[^/]' \| \
19579 X"$ac_dest" : 'X\(//\)$' \| \
19580 X"$ac_dest" : 'X\(/\)' \| \
19581 . : '\(.\)' 2>/dev/null ||
19583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19585 /^X\(\/\/\)$/{ s//\1/; q; }
19586 /^X\(\/\).*/{ s//\1/; q; }
19590 if test "$ac_dir" != .
; then
19591 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19592 # A "../" for each directory in $ac_dir_suffix.
19593 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19595 ac_dir_suffix
= ac_top_builddir
=
19599 .
) # No --srcdir option. We are building in place.
19601 if test -z "$ac_top_builddir"; then
19604 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19606 [\\/]* | ?
:[\\/]* ) # Absolute path.
19607 ac_srcdir
=$srcdir$ac_dir_suffix;
19608 ac_top_srcdir
=$srcdir ;;
19609 *) # Relative path.
19610 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19611 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19613 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19615 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19616 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19617 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19618 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19621 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19622 echo "$as_me: executing $ac_dest commands" >&6;}
19626 ### Make the necessary directories, if they don't exist.
19627 for dir
in etc lisp
; do
19628 test -d ${dir} || mkdir
${dir}
19631 # Build src/Makefile from ${srcdir}/src/Makefile.c
19632 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19633 # This must be done after src/config.h is built, since we rely on that file.
19635 # Now get this: Some word that is part of the ${srcdir} directory name
19636 # or the ${configuration} value might, just might, happen to be an
19637 # identifier like `sun4' or `i386' or something, and be predefined by
19638 # the C preprocessor to some helpful value like 1, or maybe the empty
19639 # string. Needless to say consequent macro substitutions are less
19640 # than conducive to the makefile finding the correct directory.
19641 undefs
="`echo $top_srcdir $configuration $canonical |
19642 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19643 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19646 echo creating src
/epaths.h
19647 ${MAKE-make} epaths-force
19649 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19650 # `..' to `. .' unless invoked with -traditional
19652 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19653 CPPFLAGS
="$CPPFLAGS -traditional"
19656 echo creating lib-src
/Makefile
19658 rm -f junk.c junk1.c junk2.c
19659 sed -e '/start of cpp stuff/q' \
19660 < Makefile.c
> junk1.c
19661 sed -e '1,/start of cpp stuff/d'\
19662 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19663 < Makefile.c
> junk.c
19664 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19665 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19666 cat junk1.c junk2.c
> Makefile.new
19667 rm -f junk.c junk1.c junk2.c
19668 chmod 444 Makefile.new
19669 mv -f Makefile.new Makefile
19672 echo creating src
/Makefile
19674 rm -f junk.c junk1.c junk2.c
19675 sed -e '/start of cpp stuff/q' \
19676 < Makefile.c
> junk1.c
19677 sed -e '1,/start of cpp stuff/d'\
19678 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19679 < Makefile.c
> junk.c
19680 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19681 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19682 cat junk1.c junk2.c
> Makefile.new
19683 rm -f junk.c junk1.c junk2.c
19684 chmod 444 Makefile.new
19685 mv -f Makefile.new Makefile
19688 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19689 echo creating src
/.gdbinit
19690 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19693 # This is how we know whether to re-run configure in certain cases.
19694 touch src
/config.stamp
19701 cat >>$CONFIG_STATUS <<\_ACEOF
19703 { (exit 0); exit 0; }
19705 chmod +x
$CONFIG_STATUS
19706 ac_clean_files
=$ac_clean_files_save
19709 # configure is writing to config.log, and then calls config.status.
19710 # config.status does its own redirection, appending to config.log.
19711 # Unfortunately, on DOS this fails, as config.log is still kept open
19712 # by configure, so config.status won't be able to write to it; its
19713 # output is simply discarded. So we exec the FD to /dev/null,
19714 # effectively closing config.log, so it can be properly (re)opened and
19715 # appended to by config.status. When coming back to configure, we
19716 # need to make the FD available again.
19717 if test "$no_create" != yes; then
19719 ac_config_status_args
=
19720 test "$silent" = yes &&
19721 ac_config_status_args
="$ac_config_status_args --quiet"
19723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19726 # would make configure fail if this is the last instruction.
19727 $ac_cs_success ||
{ (exit 1); exit 1; }