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
8897 cat >conftest.
$ac_ext <<_ACEOF
8898 #line $LINENO "configure"
8901 cat confdefs.h
>>conftest.
$ac_ext
8902 cat >>conftest.
$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8905 #include <X11/Xlib.h>
8906 #include <X11/Xresource.h>
8915 XPointer *client_data;
8916 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8922 rm -f conftest.
$ac_objext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8924 (eval $ac_compile) 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try
='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 emacs_cv_arg6_star
=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.
$ac_ext >&5
8940 rm -f conftest.
$ac_objext conftest.
$ac_ext
8942 if test "$emacs_cv_arg6_star" = yes; then
8943 cat >>confdefs.h
<<\_ACEOF
8944 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8948 cat >>confdefs.h
<<\_ACEOF
8949 #define XRegisterIMInstantiateCallback_arg6 XPointer
8955 ### Use -lXpm if available, unless `--with-xpm=no'.
8957 if test "${HAVE_X11}" = "yes"; then
8958 if test "${with_xpm}" != "no"; then
8959 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8960 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8961 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8962 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8966 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8968 # Is the header compilable?
8969 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8970 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8971 cat >conftest.
$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8975 cat confdefs.h
>>conftest.
$ac_ext
8976 cat >>conftest.
$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 $ac_includes_default
8979 #include <X11/xpm.h>
8981 rm -f conftest.
$ac_objext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983 (eval $ac_compile) 2>&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try
='test -s conftest.$ac_objext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_header_compiler
=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.
$ac_ext >&5
8998 ac_header_compiler
=no
9000 rm -f conftest.
$ac_objext conftest.
$ac_ext
9001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9002 echo "${ECHO_T}$ac_header_compiler" >&6
9004 # Is the header present?
9005 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9006 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9007 cat >conftest.
$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9011 cat confdefs.h
>>conftest.
$ac_ext
9012 cat >>conftest.
$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 #include <X11/xpm.h>
9016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9019 grep -v '^ *+' conftest.er1
>conftest.err
9021 cat conftest.err
>&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } >/dev
/null
; then
9024 if test -s conftest.err
; then
9025 ac_cpp_err
=$ac_c_preproc_warn_flag
9032 if test -z "$ac_cpp_err"; then
9033 ac_header_preproc
=yes
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.
$ac_ext >&5
9038 ac_header_preproc
=no
9040 rm -f conftest.err conftest.
$ac_ext
9041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9042 echo "${ECHO_T}$ac_header_preproc" >&6
9044 # So? What about this header?
9045 case $ac_header_compiler:$ac_header_preproc in
9047 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9048 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9053 ## ------------------------------------ ##
9054 ## Report this to bug-autoconf@gnu.org. ##
9055 ## ------------------------------------ ##
9058 sed "s/^/$as_me: WARNING: /" >&2
9061 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9062 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9064 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9066 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9069 ## ------------------------------------ ##
9070 ## Report this to bug-autoconf@gnu.org. ##
9071 ## ------------------------------------ ##
9074 sed "s/^/$as_me: WARNING: /" >&2
9077 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9078 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9079 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9084 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9085 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9088 if test $ac_cv_header_X11_xpm_h = yes; then
9089 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9090 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9091 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 ac_check_lib_save_LIBS
=$LIBS
9095 LIBS
="-lXpm -lX11 $LIBS"
9096 cat >conftest.
$ac_ext <<_ACEOF
9097 #line $LINENO "configure"
9100 cat confdefs.h
>>conftest.
$ac_ext
9101 cat >>conftest.
$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9104 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110 char XpmReadFileToPixmap ();
9114 XpmReadFileToPixmap ();
9119 rm -f conftest.
$ac_objext conftest
$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try
='test -s conftest$ac_exeext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.
$ac_ext >&5
9136 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9138 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9139 LIBS
=$ac_check_lib_save_LIBS
9141 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9142 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9143 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9150 if test "${HAVE_XPM}" = "yes"; then
9151 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9152 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9153 cat >conftest.
$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9157 cat confdefs.h
>>conftest.
$ac_ext
9158 cat >>conftest.
$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 #include "X11/xpm.h"
9161 #ifndef XpmReturnAllocPixels
9162 no_return_alloc_pixels
9166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9167 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9175 if test "${HAVE_XPM}" = "yes"; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177 echo "${ECHO_T}yes" >&6
9179 echo "$as_me:$LINENO: result: no" >&5
9180 echo "${ECHO_T}no" >&6
9185 if test "${HAVE_XPM}" = "yes"; then
9187 cat >>confdefs.h
<<\_ACEOF
9194 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9196 if test "${HAVE_X11}" = "yes"; then
9197 if test "${with_jpeg}" != "no"; then
9198 if test "${ac_cv_header_jerror_h+set}" = set; then
9199 echo "$as_me:$LINENO: checking for jerror.h" >&5
9200 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9201 if test "${ac_cv_header_jerror_h+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9205 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9207 # Is the header compilable?
9208 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9209 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9210 cat >conftest.
$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9214 cat confdefs.h
>>conftest.
$ac_ext
9215 cat >>conftest.
$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 $ac_includes_default
9220 rm -f conftest.
$ac_objext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try
='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_header_compiler
=yes
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.
$ac_ext >&5
9237 ac_header_compiler
=no
9239 rm -f conftest.
$ac_objext conftest.
$ac_ext
9240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9241 echo "${ECHO_T}$ac_header_compiler" >&6
9243 # Is the header present?
9244 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9245 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9246 cat >conftest.
$ac_ext <<_ACEOF
9247 #line $LINENO "configure"
9250 cat confdefs.h
>>conftest.
$ac_ext
9251 cat >>conftest.
$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9256 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9258 grep -v '^ *+' conftest.er1
>conftest.err
9260 cat conftest.err
>&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } >/dev
/null
; then
9263 if test -s conftest.err
; then
9264 ac_cpp_err
=$ac_c_preproc_warn_flag
9271 if test -z "$ac_cpp_err"; then
9272 ac_header_preproc
=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.
$ac_ext >&5
9277 ac_header_preproc
=no
9279 rm -f conftest.err conftest.
$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9281 echo "${ECHO_T}$ac_header_preproc" >&6
9283 # So? What about this header?
9284 case $ac_header_compiler:$ac_header_preproc in
9286 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9287 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9289 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9292 ## ------------------------------------ ##
9293 ## Report this to bug-autoconf@gnu.org. ##
9294 ## ------------------------------------ ##
9297 sed "s/^/$as_me: WARNING: /" >&2
9300 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9301 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9303 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9305 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9308 ## ------------------------------------ ##
9309 ## Report this to bug-autoconf@gnu.org. ##
9310 ## ------------------------------------ ##
9313 sed "s/^/$as_me: WARNING: /" >&2
9316 echo "$as_me:$LINENO: checking for jerror.h" >&5
9317 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9318 if test "${ac_cv_header_jerror_h+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 ac_cv_header_jerror_h
=$ac_header_preproc
9323 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9324 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9327 if test $ac_cv_header_jerror_h = yes; then
9328 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9329 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9330 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 ac_check_lib_save_LIBS
=$LIBS
9335 cat >conftest.
$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9339 cat confdefs.h
>>conftest.
$ac_ext
9340 cat >>conftest.
$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9343 /* Override any gcc2 internal prototype to avoid an error. */
9347 /* We use char because int might match the return type of a gcc2
9348 builtin and then its argument prototype would still apply. */
9349 char jpeg_destroy_compress ();
9353 jpeg_destroy_compress ();
9358 rm -f conftest.
$ac_objext conftest
$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try
='test -s conftest$ac_exeext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.
$ac_ext >&5
9375 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9377 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9378 LIBS
=$ac_check_lib_save_LIBS
9380 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9381 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9382 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9392 if test "${HAVE_JPEG}" = "yes"; then
9393 cat >>confdefs.h
<<\_ACEOF
9397 cat >conftest.
$ac_ext <<_ACEOF
9398 #line $LINENO "configure"
9401 cat confdefs.h
>>conftest.
$ac_ext
9402 cat >>conftest.
$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 #include <jpeglib.h>
9405 version=JPEG_LIB_VERSION
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9410 cat >>confdefs.h
<<\_ACEOF
9415 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9416 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9424 ### Use -lpng if available, unless `--with-png=no'.
9426 if test "${HAVE_X11}" = "yes"; then
9427 if test "${with_png}" != "no"; then
9428 if test "${ac_cv_header_png_h+set}" = set; then
9429 echo "$as_me:$LINENO: checking for png.h" >&5
9430 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9431 if test "${ac_cv_header_png_h+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9435 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9437 # Is the header compilable?
9438 echo "$as_me:$LINENO: checking png.h usability" >&5
9439 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9440 cat >conftest.
$ac_ext <<_ACEOF
9441 #line $LINENO "configure"
9444 cat confdefs.h
>>conftest.
$ac_ext
9445 cat >>conftest.
$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 $ac_includes_default
9450 rm -f conftest.
$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try
='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_header_compiler
=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.
$ac_ext >&5
9467 ac_header_compiler
=no
9469 rm -f conftest.
$ac_objext conftest.
$ac_ext
9470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9471 echo "${ECHO_T}$ac_header_compiler" >&6
9473 # Is the header present?
9474 echo "$as_me:$LINENO: checking png.h presence" >&5
9475 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9476 cat >conftest.
$ac_ext <<_ACEOF
9477 #line $LINENO "configure"
9480 cat confdefs.h
>>conftest.
$ac_ext
9481 cat >>conftest.
$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9488 grep -v '^ *+' conftest.er1
>conftest.err
9490 cat conftest.err
>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } >/dev
/null
; then
9493 if test -s conftest.err
; then
9494 ac_cpp_err
=$ac_c_preproc_warn_flag
9501 if test -z "$ac_cpp_err"; then
9502 ac_header_preproc
=yes
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.
$ac_ext >&5
9507 ac_header_preproc
=no
9509 rm -f conftest.err conftest.
$ac_ext
9510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9511 echo "${ECHO_T}$ac_header_preproc" >&6
9513 # So? What about this header?
9514 case $ac_header_compiler:$ac_header_preproc in
9516 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9517 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9519 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9522 ## ------------------------------------ ##
9523 ## Report this to bug-autoconf@gnu.org. ##
9524 ## ------------------------------------ ##
9527 sed "s/^/$as_me: WARNING: /" >&2
9530 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9531 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9533 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9535 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9538 ## ------------------------------------ ##
9539 ## Report this to bug-autoconf@gnu.org. ##
9540 ## ------------------------------------ ##
9543 sed "s/^/$as_me: WARNING: /" >&2
9546 echo "$as_me:$LINENO: checking for png.h" >&5
9547 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9548 if test "${ac_cv_header_png_h+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 ac_cv_header_png_h
=$ac_header_preproc
9553 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9554 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9557 if test $ac_cv_header_png_h = yes; then
9558 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9559 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9560 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 ac_check_lib_save_LIBS
=$LIBS
9564 LIBS
="-lpng -lz -lm $LIBS"
9565 cat >conftest.
$ac_ext <<_ACEOF
9566 #line $LINENO "configure"
9569 cat confdefs.h
>>conftest.
$ac_ext
9570 cat >>conftest.
$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9573 /* Override any gcc2 internal prototype to avoid an error. */
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579 char png_get_channels ();
9583 png_get_channels ();
9588 rm -f conftest.
$ac_objext conftest
$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try
='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_png_png_get_channels
=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.
$ac_ext >&5
9605 ac_cv_lib_png_png_get_channels
=no
9607 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9608 LIBS
=$ac_check_lib_save_LIBS
9610 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9611 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9612 if test $ac_cv_lib_png_png_get_channels = yes; then
9621 if test "${HAVE_PNG}" = "yes"; then
9623 cat >>confdefs.h
<<\_ACEOF
9630 ### Use -ltiff if available, unless `--with-tiff=no'.
9632 if test "${HAVE_X11}" = "yes"; then
9633 if test "${with_tiff}" != "no"; then
9634 if test "${ac_cv_header_tiffio_h+set}" = set; then
9635 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9636 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9637 if test "${ac_cv_header_tiffio_h+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9643 # Is the header compilable?
9644 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9645 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9646 cat >conftest.
$ac_ext <<_ACEOF
9647 #line $LINENO "configure"
9650 cat confdefs.h
>>conftest.
$ac_ext
9651 cat >>conftest.
$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 $ac_includes_default
9656 rm -f conftest.
$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658 (eval $ac_compile) 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try
='test -s conftest.$ac_objext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_header_compiler
=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.
$ac_ext >&5
9673 ac_header_compiler
=no
9675 rm -f conftest.
$ac_objext conftest.
$ac_ext
9676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9677 echo "${ECHO_T}$ac_header_compiler" >&6
9679 # Is the header present?
9680 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9681 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9682 cat >conftest.
$ac_ext <<_ACEOF
9683 #line $LINENO "configure"
9686 cat confdefs.h
>>conftest.
$ac_ext
9687 cat >>conftest.
$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9692 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9694 grep -v '^ *+' conftest.er1
>conftest.err
9696 cat conftest.err
>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } >/dev
/null
; then
9699 if test -s conftest.err
; then
9700 ac_cpp_err
=$ac_c_preproc_warn_flag
9707 if test -z "$ac_cpp_err"; then
9708 ac_header_preproc
=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.
$ac_ext >&5
9713 ac_header_preproc
=no
9715 rm -f conftest.err conftest.
$ac_ext
9716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9717 echo "${ECHO_T}$ac_header_preproc" >&6
9719 # So? What about this header?
9720 case $ac_header_compiler:$ac_header_preproc in
9722 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9723 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9725 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9728 ## ------------------------------------ ##
9729 ## Report this to bug-autoconf@gnu.org. ##
9730 ## ------------------------------------ ##
9733 sed "s/^/$as_me: WARNING: /" >&2
9736 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9737 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9739 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9741 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9744 ## ------------------------------------ ##
9745 ## Report this to bug-autoconf@gnu.org. ##
9746 ## ------------------------------------ ##
9749 sed "s/^/$as_me: WARNING: /" >&2
9752 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9753 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9754 if test "${ac_cv_header_tiffio_h+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 ac_cv_header_tiffio_h
=$ac_header_preproc
9759 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9760 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9763 if test $ac_cv_header_tiffio_h = yes; then
9765 # At least one tiff package requires the jpeg library.
9766 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9767 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9768 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9769 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 ac_check_lib_save_LIBS
=$LIBS
9773 LIBS
="-ltiff $tifflibs $LIBS"
9774 cat >conftest.
$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9778 cat confdefs.h
>>conftest.
$ac_ext
9779 cat >>conftest.
$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788 char TIFFGetVersion ();
9797 rm -f conftest.
$ac_objext conftest
$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try
='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_lib_tiff_TIFFGetVersion
=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9814 ac_cv_lib_tiff_TIFFGetVersion
=no
9816 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9817 LIBS
=$ac_check_lib_save_LIBS
9819 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9820 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9821 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9830 if test "${HAVE_TIFF}" = "yes"; then
9832 cat >>confdefs.h
<<\_ACEOF
9839 ### Use -lgif if available, unless `--with-gif=no'.
9841 if test "${HAVE_X11}" = "yes"; then
9842 if test "${with_gif}" != "no"; then
9843 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9844 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9845 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9846 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9850 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9852 # Is the header compilable?
9853 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9854 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9855 cat >conftest.
$ac_ext <<_ACEOF
9856 #line $LINENO "configure"
9859 cat confdefs.h
>>conftest.
$ac_ext
9860 cat >>conftest.
$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 $ac_includes_default
9863 #include <gif_lib.h>
9865 rm -f conftest.
$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try
='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_header_compiler
=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.
$ac_ext >&5
9882 ac_header_compiler
=no
9884 rm -f conftest.
$ac_objext conftest.
$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6
9888 # Is the header present?
9889 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9890 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9891 cat >conftest.
$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9895 cat confdefs.h
>>conftest.
$ac_ext
9896 cat >>conftest.
$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 #include <gif_lib.h>
9900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9903 grep -v '^ *+' conftest.er1
>conftest.err
9905 cat conftest.err
>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } >/dev
/null
; then
9908 if test -s conftest.err
; then
9909 ac_cpp_err
=$ac_c_preproc_warn_flag
9916 if test -z "$ac_cpp_err"; then
9917 ac_header_preproc
=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.
$ac_ext >&5
9922 ac_header_preproc
=no
9924 rm -f conftest.err conftest.
$ac_ext
9925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6
9928 # So? What about this header?
9929 case $ac_header_compiler:$ac_header_preproc in
9931 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9934 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9937 ## ------------------------------------ ##
9938 ## Report this to bug-autoconf@gnu.org. ##
9939 ## ------------------------------------ ##
9942 sed "s/^/$as_me: WARNING: /" >&2
9945 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9946 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9948 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9950 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9953 ## ------------------------------------ ##
9954 ## Report this to bug-autoconf@gnu.org. ##
9955 ## ------------------------------------ ##
9958 sed "s/^/$as_me: WARNING: /" >&2
9961 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9962 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9963 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 ac_cv_header_gif_lib_h
=$ac_header_preproc
9968 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9969 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9972 if test $ac_cv_header_gif_lib_h = yes; then
9973 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9974 # Earlier versions can crash Emacs.
9975 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9976 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9977 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 ac_check_lib_save_LIBS
=$LIBS
9981 LIBS
="-lungif $LIBS"
9982 cat >conftest.
$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9986 cat confdefs.h
>>conftest.
$ac_ext
9987 cat >>conftest.
$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9990 /* Override any gcc2 internal prototype to avoid an error. */
9994 /* We use char because int might match the return type of a gcc2
9995 builtin and then its argument prototype would still apply. */
9996 char EGifPutExtensionLast ();
10000 EGifPutExtensionLast ();
10005 rm -f conftest.
$ac_objext conftest
$ac_exeext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007 (eval $ac_link) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try
='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.
$ac_ext >&5
10022 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10024 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10025 LIBS
=$ac_check_lib_save_LIBS
10027 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10028 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10029 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10038 if test "${HAVE_GIF}" = "yes"; then
10040 cat >>confdefs.h
<<\_ACEOF
10047 ### Use Mac OS X Carbon API to implement GUI.
10049 if test "${with_carbon}" != "no"; then
10050 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10051 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10052 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10053 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10057 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10059 # Is the header compilable?
10060 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10061 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10062 cat >conftest.
$ac_ext <<_ACEOF
10063 #line $LINENO "configure"
10066 cat confdefs.h
>>conftest.
$ac_ext
10067 cat >>conftest.
$ac_ext <<_ACEOF
10068 /* end confdefs.h. */
10069 $ac_includes_default
10070 #include <Carbon/Carbon.h>
10072 rm -f conftest.
$ac_objext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10074 (eval $ac_compile) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try
='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_header_compiler
=yes
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.
$ac_ext >&5
10089 ac_header_compiler
=no
10091 rm -f conftest.
$ac_objext conftest.
$ac_ext
10092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10093 echo "${ECHO_T}$ac_header_compiler" >&6
10095 # Is the header present?
10096 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10097 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10098 cat >conftest.
$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10102 cat confdefs.h
>>conftest.
$ac_ext
10103 cat >>conftest.
$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 #include <Carbon/Carbon.h>
10107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10108 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10110 grep -v '^ *+' conftest.er1
>conftest.err
10112 cat conftest.err
>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } >/dev
/null
; then
10115 if test -s conftest.err
; then
10116 ac_cpp_err
=$ac_c_preproc_warn_flag
10123 if test -z "$ac_cpp_err"; then
10124 ac_header_preproc
=yes
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.
$ac_ext >&5
10129 ac_header_preproc
=no
10131 rm -f conftest.err conftest.
$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6
10135 # So? What about this header?
10136 case $ac_header_compiler:$ac_header_preproc in
10138 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10141 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10144 ## ------------------------------------ ##
10145 ## Report this to bug-autoconf@gnu.org. ##
10146 ## ------------------------------------ ##
10149 sed "s/^/$as_me: WARNING: /" >&2
10152 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10153 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10155 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10157 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10160 ## ------------------------------------ ##
10161 ## Report this to bug-autoconf@gnu.org. ##
10162 ## ------------------------------------ ##
10165 sed "s/^/$as_me: WARNING: /" >&2
10168 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10169 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10170 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10175 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10176 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10179 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10186 if test "${HAVE_CARBON}" = "yes"; then
10188 cat >>confdefs.h
<<\_ACEOF
10189 #define HAVE_CARBON 1
10193 ## Specify the install directory
10195 if test "${carbon_appdir_x}" != ""; then
10196 case ${carbon_appdir_x} in
10197 y | ye |
yes) carbon_appdir
=/Applications
;;
10198 * ) carbon_appdir
=${carbon_appdir_x} ;;
10201 # We also have mouse menus.
10205 ### Use session management (-lSM -lICE) if available
10207 if test "${HAVE_X11}" = "yes"; then
10208 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10209 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10210 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10211 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10215 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10217 # Is the header compilable?
10218 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10219 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10220 cat >conftest.
$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10224 cat confdefs.h
>>conftest.
$ac_ext
10225 cat >>conftest.
$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10228 #include <X11/SM/SMlib.h>
10230 rm -f conftest.
$ac_objext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try
='test -s conftest.$ac_objext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_header_compiler
=yes
10244 echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.
$ac_ext >&5
10247 ac_header_compiler
=no
10249 rm -f conftest.
$ac_objext conftest.
$ac_ext
10250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10251 echo "${ECHO_T}$ac_header_compiler" >&6
10253 # Is the header present?
10254 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10255 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10256 cat >conftest.
$ac_ext <<_ACEOF
10257 #line $LINENO "configure"
10260 cat confdefs.h
>>conftest.
$ac_ext
10261 cat >>conftest.
$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 #include <X11/SM/SMlib.h>
10265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10266 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10268 grep -v '^ *+' conftest.er1
>conftest.err
10270 cat conftest.err
>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } >/dev
/null
; then
10273 if test -s conftest.err
; then
10274 ac_cpp_err
=$ac_c_preproc_warn_flag
10281 if test -z "$ac_cpp_err"; then
10282 ac_header_preproc
=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.
$ac_ext >&5
10287 ac_header_preproc
=no
10289 rm -f conftest.err conftest.
$ac_ext
10290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10291 echo "${ECHO_T}$ac_header_preproc" >&6
10293 # So? What about this header?
10294 case $ac_header_compiler:$ac_header_preproc in
10296 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10297 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10302 ## ------------------------------------ ##
10303 ## Report this to bug-autoconf@gnu.org. ##
10304 ## ------------------------------------ ##
10307 sed "s/^/$as_me: WARNING: /" >&2
10310 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10311 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10312 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10313 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10314 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10315 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10318 ## ------------------------------------ ##
10319 ## Report this to bug-autoconf@gnu.org. ##
10320 ## ------------------------------------ ##
10323 sed "s/^/$as_me: WARNING: /" >&2
10326 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10327 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10328 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10333 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10334 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10337 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10338 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10339 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10340 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 ac_check_lib_save_LIBS
=$LIBS
10345 cat >conftest.
$ac_ext <<_ACEOF
10346 #line $LINENO "configure"
10349 cat confdefs.h
>>conftest.
$ac_ext
10350 cat >>conftest.
$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10353 /* Override any gcc2 internal prototype to avoid an error. */
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10359 char SmcOpenConnection ();
10363 SmcOpenConnection ();
10368 rm -f conftest.
$ac_objext conftest
$ac_exeext
10369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370 (eval $ac_link) 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try
='test -s conftest$ac_exeext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_cv_lib_SM_SmcOpenConnection
=yes
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.
$ac_ext >&5
10385 ac_cv_lib_SM_SmcOpenConnection
=no
10387 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10388 LIBS
=$ac_check_lib_save_LIBS
10390 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10391 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10392 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10402 if test "${HAVE_X_SM}" = "yes"; then
10404 cat >>confdefs.h
<<\_ACEOF
10405 #define HAVE_X_SM 1
10410 *) LIBS
="-lSM -lICE $LIBS" ;;
10415 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10416 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10417 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10418 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 cat >conftest.
$ac_ext <<_ACEOF
10422 #line $LINENO "configure"
10425 cat confdefs.h
>>conftest.
$ac_ext
10426 cat >>conftest.
$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10437 rm -f conftest.
$ac_objext conftest
$ac_exeext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439 (eval $ac_link) 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try
='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 emacs_cv_netdb_declares_h_errno
=yes
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.
$ac_ext >&5
10454 emacs_cv_netdb_declares_h_errno
=no
10456 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10458 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10459 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10460 if test $emacs_cv_netdb_declares_h_errno = yes; then
10462 cat >>confdefs.h
<<\_ACEOF
10463 #define HAVE_H_ERRNO 1
10468 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10469 # for constant arguments. Useless!
10470 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10471 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10472 if test "${ac_cv_working_alloca_h+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 cat >conftest.
$ac_ext <<_ACEOF
10476 #line $LINENO "configure"
10479 cat confdefs.h
>>conftest.
$ac_ext
10480 cat >>conftest.
$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 #include <alloca.h>
10486 char *p = (char *) alloca (2 * sizeof (int));
10491 rm -f conftest.
$ac_objext conftest
$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } &&
10497 { ac_try
='test -s conftest$ac_exeext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_working_alloca_h
=yes
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.
$ac_ext >&5
10508 ac_cv_working_alloca_h
=no
10510 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10513 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10514 if test $ac_cv_working_alloca_h = yes; then
10516 cat >>confdefs.h
<<\_ACEOF
10517 #define HAVE_ALLOCA_H 1
10522 echo "$as_me:$LINENO: checking for alloca" >&5
10523 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10524 if test "${ac_cv_func_alloca_works+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 cat >conftest.
$ac_ext <<_ACEOF
10528 #line $LINENO "configure"
10531 cat confdefs.h
>>conftest.
$ac_ext
10532 cat >>conftest.
$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10535 # define alloca __builtin_alloca
10538 # include <malloc.h>
10539 # define alloca _alloca
10542 # include <alloca.h>
10547 # ifndef alloca /* predefined by HP cc +Olibcalls */
10558 char *p = (char *) alloca (1);
10563 rm -f conftest.
$ac_objext conftest
$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try
='test -s conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_func_alloca_works
=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.
$ac_ext >&5
10580 ac_cv_func_alloca_works
=no
10582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10584 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10585 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10587 if test $ac_cv_func_alloca_works = yes; then
10589 cat >>confdefs.h
<<\_ACEOF
10590 #define HAVE_ALLOCA 1
10594 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10595 # that cause trouble. Some versions do not even contain alloca or
10596 # contain a buggy version. If you still want to use their alloca,
10597 # use ar to extract alloca.o from them instead of compiling alloca.c.
10599 ALLOCA
=alloca.
$ac_objext
10601 cat >>confdefs.h
<<\_ACEOF
10606 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10607 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10608 if test "${ac_cv_os_cray+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 cat >conftest.
$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10615 cat confdefs.h
>>conftest.
$ac_ext
10616 cat >>conftest.
$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #if defined(CRAY) && ! defined(CRAY2)
10625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10626 $EGREP "webecray" >/dev
/null
2>&1; then
10634 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10635 echo "${ECHO_T}$ac_cv_os_cray" >&6
10636 if test $ac_cv_os_cray = yes; then
10637 for ac_func
in _getb67 GETB67 getb67
; do
10638 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10639 echo "$as_me:$LINENO: checking for $ac_func" >&5
10640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10641 if eval "test \"\${$as_ac_var+set}\" = set"; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 cat >conftest.
$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10648 cat confdefs.h
>>conftest.
$ac_ext
10649 cat >>conftest.
$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 /* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char $ac_func (); below.
10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 <limits.h> exists even on freestanding compilers. */
10656 # include <limits.h>
10658 # include <assert.h>
10660 /* Override any gcc2 internal prototype to avoid an error. */
10665 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */
10668 /* The GNU C library defines this for functions which it implements
10669 to always fail with ENOSYS. Some functions are actually named
10670 something starting with __ and the normal name is an alias. */
10671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10674 char (*f) () = $ac_func;
10683 return f != $ac_func;
10688 rm -f conftest.
$ac_objext conftest
$ac_exeext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10690 (eval $ac_link) 2>&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
10694 { ac_try
='test -s conftest$ac_exeext'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }; then
10700 eval "$as_ac_var=yes"
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.
$ac_ext >&5
10705 eval "$as_ac_var=no"
10707 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10711 if test `eval echo '${'$as_ac_var'}'` = yes; then
10713 cat >>confdefs.h
<<_ACEOF
10714 #define CRAY_STACKSEG_END $ac_func
10723 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10724 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10725 if test "${ac_cv_c_stack_direction+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 if test "$cross_compiling" = yes; then
10729 ac_cv_c_stack_direction
=0
10731 cat >conftest.
$ac_ext <<_ACEOF
10732 #line $LINENO "configure"
10735 cat confdefs.h
>>conftest.
$ac_ext
10736 cat >>conftest.
$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10739 find_stack_direction ()
10741 static char *addr = 0;
10746 return find_stack_direction ();
10749 return (&dummy > addr) ? 1 : -1;
10755 exit (find_stack_direction () < 0);
10758 rm -f conftest
$ac_exeext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10760 (eval $ac_link) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
10769 ac_cv_c_stack_direction
=1
10771 echo "$as_me: program exited with status $ac_status" >&5
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.
$ac_ext >&5
10775 ( exit $ac_status )
10776 ac_cv_c_stack_direction
=-1
10778 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10781 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10782 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10784 cat >>confdefs.h
<<_ACEOF
10785 #define STACK_DIRECTION $ac_cv_c_stack_direction
10792 # fmod, logb, and frexp are found in -lm on most systems.
10793 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10795 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10796 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10797 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 ac_check_lib_save_LIBS
=$LIBS
10802 cat >conftest.
$ac_ext <<_ACEOF
10803 #line $LINENO "configure"
10806 cat confdefs.h
>>conftest.
$ac_ext
10807 cat >>conftest.
$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 /* Override any gcc2 internal prototype to avoid an error. */
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10825 rm -f conftest.
$ac_objext conftest
$ac_exeext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10827 (eval $ac_link) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try
='test -s conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_cv_lib_m_sqrt
=yes
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.
$ac_ext >&5
10842 ac_cv_lib_m_sqrt
=no
10844 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10845 LIBS
=$ac_check_lib_save_LIBS
10847 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10848 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10849 if test $ac_cv_lib_m_sqrt = yes; then
10850 cat >>confdefs.h
<<_ACEOF
10851 #define HAVE_LIBM 1
10859 # Check for mail-locking functions in a "mail" library. Probably this should
10860 # have the same check as for liblockfile below.
10862 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10863 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10864 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 ac_check_lib_save_LIBS
=$LIBS
10868 LIBS
="-lmail $LIBS"
10869 cat >conftest.
$ac_ext <<_ACEOF
10870 #line $LINENO "configure"
10873 cat confdefs.h
>>conftest.
$ac_ext
10874 cat >>conftest.
$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10877 /* Override any gcc2 internal prototype to avoid an error. */
10881 /* We use char because int might match the return type of a gcc2
10882 builtin and then its argument prototype would still apply. */
10892 rm -f conftest.
$ac_objext conftest
$ac_exeext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try
='test -s conftest$ac_exeext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 ac_cv_lib_mail_maillock
=yes
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.
$ac_ext >&5
10909 ac_cv_lib_mail_maillock
=no
10911 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10912 LIBS
=$ac_check_lib_save_LIBS
10914 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10915 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10916 if test $ac_cv_lib_mail_maillock = yes; then
10917 cat >>confdefs.h
<<_ACEOF
10918 #define HAVE_LIBMAIL 1
10921 LIBS
="-lmail $LIBS"
10926 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10927 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10928 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 ac_check_lib_save_LIBS
=$LIBS
10932 LIBS
="-llockfile $LIBS"
10933 cat >conftest.
$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10937 cat confdefs.h
>>conftest.
$ac_ext
10938 cat >>conftest.
$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10941 /* Override any gcc2 internal prototype to avoid an error. */
10945 /* We use char because int might match the return type of a gcc2
10946 builtin and then its argument prototype would still apply. */
10956 rm -f conftest.
$ac_objext conftest
$ac_exeext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10958 (eval $ac_link) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
10962 { ac_try
='test -s conftest$ac_exeext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 ac_cv_lib_lockfile_maillock
=yes
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.
$ac_ext >&5
10973 ac_cv_lib_lockfile_maillock
=no
10975 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10976 LIBS
=$ac_check_lib_save_LIBS
10978 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10979 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10980 if test $ac_cv_lib_lockfile_maillock = yes; then
10981 cat >>confdefs.h
<<_ACEOF
10982 #define HAVE_LIBLOCKFILE 1
10985 LIBS
="-llockfile $LIBS"
10989 # If we have the shared liblockfile, assume we must use it for mail
10990 # locking (e.g. Debian). If we couldn't link against liblockfile
10991 # (no liblockfile.a installed), ensure that we don't need to.
10992 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10993 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10994 set dummy liblockfile.so
; ac_word
=$2
10995 echo "$as_me:$LINENO: checking for $ac_word" >&5
10996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10997 if test "${ac_cv_prog_liblockfile+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 if test -n "$liblockfile"; then
11001 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11004 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11005 for as_dir
in $as_dummy
11008 test -z "$as_dir" && as_dir
=.
11009 for ac_exec_ext
in '' $ac_executable_extensions; do
11010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011 ac_cv_prog_liblockfile
="yes"
11012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11021 liblockfile
=$ac_cv_prog_liblockfile
11022 if test -n "$liblockfile"; then
11023 echo "$as_me:$LINENO: result: $liblockfile" >&5
11024 echo "${ECHO_T}$liblockfile" >&6
11026 echo "$as_me:$LINENO: result: no" >&5
11027 echo "${ECHO_T}no" >&6
11030 if test $ac_cv_prog_liblockfile = yes; then
11031 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11032 This probably means that movemail could lose mail.
11033 There may be a \`development' package to install containing liblockfile." >&5
11034 echo "$as_me: error: Shared liblockfile found but can't link against it.
11035 This probably means that movemail could lose mail.
11036 There may be a \`development' package to install containing liblockfile." >&2;}
11037 { (exit 1); exit 1; }; }
11042 for ac_func
in touchlock
11044 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11045 echo "$as_me:$LINENO: checking for $ac_func" >&5
11046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11047 if eval "test \"\${$as_ac_var+set}\" = set"; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 cat >conftest.
$ac_ext <<_ACEOF
11051 #line $LINENO "configure"
11054 cat confdefs.h
>>conftest.
$ac_ext
11055 cat >>conftest.
$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 /* System header to define __stub macros and hopefully few prototypes,
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11062 # include <limits.h>
11064 # include <assert.h>
11066 /* Override any gcc2 internal prototype to avoid an error. */
11071 /* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11074 /* The GNU C library defines this for functions which it implements
11075 to always fail with ENOSYS. Some functions are actually named
11076 something starting with __ and the normal name is an alias. */
11077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11080 char (*f) () = $ac_func;
11089 return f != $ac_func;
11094 rm -f conftest.
$ac_objext conftest
$ac_exeext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11096 (eval $ac_link) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try
='test -s conftest$ac_exeext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 eval "$as_ac_var=yes"
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.
$ac_ext >&5
11111 eval "$as_ac_var=no"
11113 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11117 if test `eval echo '${'$as_ac_var'}'` = yes; then
11118 cat >>confdefs.h
<<_ACEOF
11119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11126 for ac_header
in maillock.h
11128 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130 echo "$as_me:$LINENO: checking for $ac_header" >&5
11131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11138 # Is the header compilable?
11139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11141 cat >conftest.
$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11145 cat confdefs.h
>>conftest.
$ac_ext
11146 cat >>conftest.
$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 $ac_includes_default
11149 #include <$ac_header>
11151 rm -f conftest.
$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try
='test -s conftest.$ac_objext'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_header_compiler
=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.
$ac_ext >&5
11168 ac_header_compiler
=no
11170 rm -f conftest.
$ac_objext conftest.
$ac_ext
11171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11172 echo "${ECHO_T}$ac_header_compiler" >&6
11174 # Is the header present?
11175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11177 cat >conftest.
$ac_ext <<_ACEOF
11178 #line $LINENO "configure"
11181 cat confdefs.h
>>conftest.
$ac_ext
11182 cat >>conftest.
$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 #include <$ac_header>
11186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11187 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11189 grep -v '^ *+' conftest.er1
>conftest.err
11191 cat conftest.err
>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } >/dev
/null
; then
11194 if test -s conftest.err
; then
11195 ac_cpp_err
=$ac_c_preproc_warn_flag
11202 if test -z "$ac_cpp_err"; then
11203 ac_header_preproc
=yes
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.
$ac_ext >&5
11208 ac_header_preproc
=no
11210 rm -f conftest.err conftest.
$ac_ext
11211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11212 echo "${ECHO_T}$ac_header_preproc" >&6
11214 # So? What about this header?
11215 case $ac_header_compiler:$ac_header_preproc in
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11223 ## ------------------------------------ ##
11224 ## Report this to bug-autoconf@gnu.org. ##
11225 ## ------------------------------------ ##
11228 sed "s/^/$as_me: WARNING: /" >&2
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11239 ## ------------------------------------ ##
11240 ## Report this to bug-autoconf@gnu.org. ##
11241 ## ------------------------------------ ##
11244 sed "s/^/$as_me: WARNING: /" >&2
11247 echo "$as_me:$LINENO: checking for $ac_header" >&5
11248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 eval "$as_ac_Header=$ac_header_preproc"
11254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11259 cat >>confdefs.h
<<_ACEOF
11260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11334 for ac_func
in gethostname getdomainname dup2 \
11335 rename closedir mkdir
rmdir sysinfo \
11336 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11337 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11338 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11339 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11340 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11341 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11342 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen
11344 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11345 echo "$as_me:$LINENO: checking for $ac_func" >&5
11346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11347 if eval "test \"\${$as_ac_var+set}\" = set"; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 cat >conftest.
$ac_ext <<_ACEOF
11351 #line $LINENO "configure"
11354 cat confdefs.h
>>conftest.
$ac_ext
11355 cat >>conftest.
$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char $ac_func (); below.
11359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11360 <limits.h> exists even on freestanding compilers. */
11362 # include <limits.h>
11364 # include <assert.h>
11366 /* Override any gcc2 internal prototype to avoid an error. */
11371 /* We use char because int might match the return type of a gcc2
11372 builtin and then its argument prototype would still apply. */
11374 /* The GNU C library defines this for functions which it implements
11375 to always fail with ENOSYS. Some functions are actually named
11376 something starting with __ and the normal name is an alias. */
11377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11380 char (*f) () = $ac_func;
11389 return f != $ac_func;
11394 rm -f conftest.
$ac_objext conftest
$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try
='test -s conftest$ac_exeext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 eval "$as_ac_var=yes"
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.
$ac_ext >&5
11411 eval "$as_ac_var=no"
11413 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11417 if test `eval echo '${'$as_ac_var'}'` = yes; then
11418 cat >>confdefs.h
<<_ACEOF
11419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11427 for ac_header
in sys
/un.h
11429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11431 echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11439 # Is the header compilable?
11440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11442 cat >conftest.
$ac_ext <<_ACEOF
11443 #line $LINENO "configure"
11446 cat confdefs.h
>>conftest.
$ac_ext
11447 cat >>conftest.
$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 $ac_includes_default
11450 #include <$ac_header>
11452 rm -f conftest.
$ac_objext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454 (eval $ac_compile) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try
='test -s conftest.$ac_objext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 ac_header_compiler
=yes
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.
$ac_ext >&5
11469 ac_header_compiler
=no
11471 rm -f conftest.
$ac_objext conftest.
$ac_ext
11472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11473 echo "${ECHO_T}$ac_header_compiler" >&6
11475 # Is the header present?
11476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11478 cat >conftest.
$ac_ext <<_ACEOF
11479 #line $LINENO "configure"
11482 cat confdefs.h
>>conftest.
$ac_ext
11483 cat >>conftest.
$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 #include <$ac_header>
11487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11488 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11490 grep -v '^ *+' conftest.er1
>conftest.err
11492 cat conftest.err
>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } >/dev
/null
; then
11495 if test -s conftest.err
; then
11496 ac_cpp_err
=$ac_c_preproc_warn_flag
11503 if test -z "$ac_cpp_err"; then
11504 ac_header_preproc
=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.
$ac_ext >&5
11509 ac_header_preproc
=no
11511 rm -f conftest.err conftest.
$ac_ext
11512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11513 echo "${ECHO_T}$ac_header_preproc" >&6
11515 # So? What about this header?
11516 case $ac_header_compiler:$ac_header_preproc in
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11524 ## ------------------------------------ ##
11525 ## Report this to bug-autoconf@gnu.org. ##
11526 ## ------------------------------------ ##
11529 sed "s/^/$as_me: WARNING: /" >&2
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 ## ------------------------------------ ##
11541 ## Report this to bug-autoconf@gnu.org. ##
11542 ## ------------------------------------ ##
11545 sed "s/^/$as_me: WARNING: /" >&2
11548 echo "$as_me:$LINENO: checking for $ac_header" >&5
11549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 eval "$as_ac_Header=$ac_header_preproc"
11555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560 cat >>confdefs.h
<<_ACEOF
11561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571 for ac_header
in sys
/time.h unistd.h
11573 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11575 echo "$as_me:$LINENO: checking for $ac_header" >&5
11576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11583 # Is the header compilable?
11584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11586 cat >conftest.
$ac_ext <<_ACEOF
11587 #line $LINENO "configure"
11590 cat confdefs.h
>>conftest.
$ac_ext
11591 cat >>conftest.
$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 $ac_includes_default
11594 #include <$ac_header>
11596 rm -f conftest.
$ac_objext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598 (eval $ac_compile) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try
='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_header_compiler
=yes
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.
$ac_ext >&5
11613 ac_header_compiler
=no
11615 rm -f conftest.
$ac_objext conftest.
$ac_ext
11616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11617 echo "${ECHO_T}$ac_header_compiler" >&6
11619 # Is the header present?
11620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11622 cat >conftest.
$ac_ext <<_ACEOF
11623 #line $LINENO "configure"
11626 cat confdefs.h
>>conftest.
$ac_ext
11627 cat >>conftest.
$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629 #include <$ac_header>
11631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11632 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11634 grep -v '^ *+' conftest.er1
>conftest.err
11636 cat conftest.err
>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } >/dev
/null
; then
11639 if test -s conftest.err
; then
11640 ac_cpp_err
=$ac_c_preproc_warn_flag
11647 if test -z "$ac_cpp_err"; then
11648 ac_header_preproc
=yes
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.
$ac_ext >&5
11653 ac_header_preproc
=no
11655 rm -f conftest.err conftest.
$ac_ext
11656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11657 echo "${ECHO_T}$ac_header_preproc" >&6
11659 # So? What about this header?
11660 case $ac_header_compiler:$ac_header_preproc in
11662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11668 ## ------------------------------------ ##
11669 ## Report this to bug-autoconf@gnu.org. ##
11670 ## ------------------------------------ ##
11673 sed "s/^/$as_me: WARNING: /" >&2
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11684 ## ------------------------------------ ##
11685 ## Report this to bug-autoconf@gnu.org. ##
11686 ## ------------------------------------ ##
11689 sed "s/^/$as_me: WARNING: /" >&2
11692 echo "$as_me:$LINENO: checking for $ac_header" >&5
11693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 eval "$as_ac_Header=$ac_header_preproc"
11699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11704 cat >>confdefs.h
<<_ACEOF
11705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11713 for ac_func
in alarm
11715 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11716 echo "$as_me:$LINENO: checking for $ac_func" >&5
11717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11718 if eval "test \"\${$as_ac_var+set}\" = set"; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 cat >conftest.
$ac_ext <<_ACEOF
11722 #line $LINENO "configure"
11725 cat confdefs.h
>>conftest.
$ac_ext
11726 cat >>conftest.
$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 /* System header to define __stub macros and hopefully few prototypes,
11729 which can conflict with char $ac_func (); below.
11730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11731 <limits.h> exists even on freestanding compilers. */
11733 # include <limits.h>
11735 # include <assert.h>
11737 /* Override any gcc2 internal prototype to avoid an error. */
11742 /* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11751 char (*f) () = $ac_func;
11760 return f != $ac_func;
11765 rm -f conftest.
$ac_objext conftest
$ac_exeext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767 (eval $ac_link) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try
='test -s conftest$ac_exeext'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }; then
11777 eval "$as_ac_var=yes"
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.
$ac_ext >&5
11782 eval "$as_ac_var=no"
11784 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11788 if test `eval echo '${'$as_ac_var'}'` = yes; then
11789 cat >>confdefs.h
<<_ACEOF
11790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11796 echo "$as_me:$LINENO: checking for working mktime" >&5
11797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11798 if test "${ac_cv_func_working_mktime+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 if test "$cross_compiling" = yes; then
11802 ac_cv_func_working_mktime
=no
11804 cat >conftest.
$ac_ext <<_ACEOF
11805 #line $LINENO "configure"
11808 cat confdefs.h
>>conftest.
$ac_ext
11809 cat >>conftest.
$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 /* Test program from Paul Eggert and Tony Leneis. */
11812 #if TIME_WITH_SYS_TIME
11813 # include <sys/time.h>
11816 # if HAVE_SYS_TIME_H
11817 # include <sys/time.h>
11824 # include <unistd.h>
11828 # define alarm(X) /* empty */
11831 /* Work around redefinition to rpl_putenv by other config tests. */
11834 static time_t time_t_max;
11836 /* Values we'll use to set the TZ environment variable. */
11837 static const char *const tz_strings[] = {
11838 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11839 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11841 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11843 /* Fail if mktime fails to convert a date in the spring-forward gap.
11844 Based on a problem report from Andreas Jaeger. */
11846 spring_forward_gap ()
11848 /* glibc (up to about 1998-10-07) failed this test. */
11851 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11852 instead of "TZ=America/Vancouver" in order to detect the bug even
11853 on systems that don't support the Olson extension, or don't have the
11854 full zoneinfo tables installed. */
11855 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11864 if (mktime (&tm) == (time_t)-1)
11873 if ((lt = localtime (&now)) && mktime (lt) != now)
11875 now = time_t_max - now;
11876 if ((lt = localtime (&now)) && mktime (lt) != now)
11883 /* Based on code from Ariel Faigon. */
11893 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11903 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11904 now = mktime (&tm);
11905 if (now != (time_t) -1)
11907 struct tm *lt = localtime (&now);
11909 && lt->tm_year == tm.tm_year
11910 && lt->tm_mon == tm.tm_mon
11911 && lt->tm_mday == tm.tm_mday
11912 && lt->tm_hour == tm.tm_hour
11913 && lt->tm_min == tm.tm_min
11914 && lt->tm_sec == tm.tm_sec
11915 && lt->tm_yday == tm.tm_yday
11916 && lt->tm_wday == tm.tm_wday
11917 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11918 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11929 /* This test makes some buggy mktime implementations loop.
11930 Give up after 60 seconds; a mktime slower than that
11931 isn't worth using anyway. */
11934 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11937 delta = time_t_max / 997; /* a suitable prime number */
11938 for (i = 0; i < N_STRINGS; i++)
11941 putenv (tz_strings[i]);
11943 for (t = 0; t <= time_t_max - delta; t += delta)
11945 mktime_test ((time_t) 60 * 60);
11946 mktime_test ((time_t) 60 * 60 * 24);
11948 for (j = 1; 0 < j; j *= 2)
11950 bigtime_test (j - 1);
11953 spring_forward_gap ();
11957 rm -f conftest
$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ac_cv_func_working_mktime
=yes
11970 echo "$as_me: program exited with status $ac_status" >&5
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.
$ac_ext >&5
11974 ( exit $ac_status )
11975 ac_cv_func_working_mktime
=no
11977 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11980 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11981 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11982 if test $ac_cv_func_working_mktime = no
; then
11983 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11986 if test "$ac_cv_func_working_mktime" = no
; then
11988 cat >>confdefs.h
<<\_ACEOF
11989 #define BROKEN_MKTIME 1
11994 ac_have_func
=no
# yes means we've found a way to get the load average.
11996 # Make sure getloadavg.c is where it belongs, at configure-time.
11997 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11998 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11999 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12000 { (exit 1); exit 1; }; }
12004 # Check for getloadavg, but be sure not to touch the cache variable.
12005 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12006 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12007 if test "${ac_cv_func_getloadavg+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 cat >conftest.
$ac_ext <<_ACEOF
12011 #line $LINENO "configure"
12014 cat confdefs.h
>>conftest.
$ac_ext
12015 cat >>conftest.
$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 /* System header to define __stub macros and hopefully few prototypes,
12018 which can conflict with char getloadavg (); below.
12019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12020 <limits.h> exists even on freestanding compilers. */
12022 # include <limits.h>
12024 # include <assert.h>
12026 /* Override any gcc2 internal prototype to avoid an error. */
12031 /* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12033 char getloadavg ();
12034 /* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
12037 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12040 char (*f) () = getloadavg;
12049 return f != getloadavg;
12054 rm -f conftest.
$ac_objext conftest
$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try
='test -s conftest$ac_exeext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_func_getloadavg
=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.
$ac_ext >&5
12071 ac_cv_func_getloadavg
=no
12073 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12076 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12077 if test $ac_cv_func_getloadavg = yes; then
12082 ) && ac_have_func
=yes
12084 # On HPUX9, an unprivileged user can get load averages through this function.
12086 for ac_func
in pstat_getdynamic
12088 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12089 echo "$as_me:$LINENO: checking for $ac_func" >&5
12090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12091 if eval "test \"\${$as_ac_var+set}\" = set"; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 cat >conftest.
$ac_ext <<_ACEOF
12095 #line $LINENO "configure"
12098 cat confdefs.h
>>conftest.
$ac_ext
12099 cat >>conftest.
$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12106 # include <limits.h>
12108 # include <assert.h>
12110 /* Override any gcc2 internal prototype to avoid an error. */
12115 /* We use char because int might match the return type of a gcc2
12116 builtin and then its argument prototype would still apply. */
12118 /* The GNU C library defines this for functions which it implements
12119 to always fail with ENOSYS. Some functions are actually named
12120 something starting with __ and the normal name is an alias. */
12121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12124 char (*f) () = $ac_func;
12133 return f != $ac_func;
12138 rm -f conftest.
$ac_objext conftest
$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140 (eval $ac_link) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try
='test -s conftest$ac_exeext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 eval "$as_ac_var=yes"
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.
$ac_ext >&5
12155 eval "$as_ac_var=no"
12157 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12161 if test `eval echo '${'$as_ac_var'}'` = yes; then
12162 cat >>confdefs.h
<<_ACEOF
12163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12170 # Solaris has libkstat which does not require root.
12172 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12173 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12174 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 ac_check_lib_save_LIBS
=$LIBS
12178 LIBS
="-lkstat $LIBS"
12179 cat >conftest.
$ac_ext <<_ACEOF
12180 #line $LINENO "configure"
12183 cat confdefs.h
>>conftest.
$ac_ext
12184 cat >>conftest.
$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12187 /* Override any gcc2 internal prototype to avoid an error. */
12191 /* We use char because int might match the return type of a gcc2
12192 builtin and then its argument prototype would still apply. */
12193 char kstat_open ();
12202 rm -f conftest.
$ac_objext conftest
$ac_exeext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204 (eval $ac_link) 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try
='test -s conftest$ac_exeext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_lib_kstat_kstat_open
=yes
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.
$ac_ext >&5
12219 ac_cv_lib_kstat_kstat_open
=no
12221 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12222 LIBS
=$ac_check_lib_save_LIBS
12224 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12225 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12226 if test $ac_cv_lib_kstat_kstat_open = yes; then
12227 cat >>confdefs.h
<<_ACEOF
12228 #define HAVE_LIBKSTAT 1
12231 LIBS
="-lkstat $LIBS"
12235 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12237 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12238 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12239 # to get the right answer into the cache.
12240 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12241 if test $ac_have_func = no
; then
12242 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12243 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12244 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 ac_check_lib_save_LIBS
=$LIBS
12249 cat >conftest.
$ac_ext <<_ACEOF
12250 #line $LINENO "configure"
12253 cat confdefs.h
>>conftest.
$ac_ext
12254 cat >>conftest.
$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12257 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12272 rm -f conftest.
$ac_objext conftest
$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try
='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_elf_elf_begin
=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.
$ac_ext >&5
12289 ac_cv_lib_elf_elf_begin
=no
12291 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12292 LIBS
=$ac_check_lib_save_LIBS
12294 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12295 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12296 if test $ac_cv_lib_elf_elf_begin = yes; then
12301 if test $ac_have_func = no
; then
12302 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12303 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12304 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 ac_check_lib_save_LIBS
=$LIBS
12309 cat >conftest.
$ac_ext <<_ACEOF
12310 #line $LINENO "configure"
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12317 /* Override any gcc2 internal prototype to avoid an error. */
12321 /* We use char because int might match the return type of a gcc2
12322 builtin and then its argument prototype would still apply. */
12332 rm -f conftest.
$ac_objext conftest
$ac_exeext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try
='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_lib_kvm_kvm_open
=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.
$ac_ext >&5
12349 ac_cv_lib_kvm_kvm_open
=no
12351 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12352 LIBS
=$ac_check_lib_save_LIBS
12354 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12355 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12356 if test $ac_cv_lib_kvm_kvm_open = yes; then
12360 # Check for the 4.4BSD definition of getloadavg.
12361 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12362 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12363 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 ac_check_lib_save_LIBS
=$LIBS
12367 LIBS
="-lutil $LIBS"
12368 cat >conftest.
$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12372 cat confdefs.h
>>conftest.
$ac_ext
12373 cat >>conftest.
$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any gcc2 internal prototype to avoid an error. */
12380 /* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12382 char getloadavg ();
12391 rm -f conftest.
$ac_objext conftest
$ac_exeext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393 (eval $ac_link) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try
='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_lib_util_getloadavg
=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.
$ac_ext >&5
12408 ac_cv_lib_util_getloadavg
=no
12410 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12411 LIBS
=$ac_check_lib_save_LIBS
12413 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12414 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12415 if test $ac_cv_lib_util_getloadavg = yes; then
12416 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12421 if test $ac_have_func = no
; then
12422 # There is a commonly available library for RS/6000 AIX.
12423 # Since it is not a standard part of AIX, it might be installed locally.
12424 ac_getloadavg_LIBS
=$LIBS
12425 LIBS
="-L/usr/local/lib $LIBS"
12426 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12427 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12428 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 ac_check_lib_save_LIBS
=$LIBS
12432 LIBS
="-lgetloadavg $LIBS"
12433 cat >conftest.
$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12437 cat confdefs.h
>>conftest.
$ac_ext
12438 cat >>conftest.
$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12441 /* Override any gcc2 internal prototype to avoid an error. */
12445 /* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12447 char getloadavg ();
12456 rm -f conftest.
$ac_objext conftest
$ac_exeext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try
='test -s conftest$ac_exeext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_lib_getloadavg_getloadavg
=yes
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.
$ac_ext >&5
12473 ac_cv_lib_getloadavg_getloadavg
=no
12475 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12476 LIBS
=$ac_check_lib_save_LIBS
12478 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12479 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12480 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12481 LIBS
="-lgetloadavg $LIBS"
12483 LIBS
=$ac_getloadavg_LIBS
12488 # Make sure it is really in the library, if we think we found it,
12489 # otherwise set up the replacement function.
12491 for ac_func
in getloadavg
12493 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12494 echo "$as_me:$LINENO: checking for $ac_func" >&5
12495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12496 if eval "test \"\${$as_ac_var+set}\" = set"; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 cat >conftest.
$ac_ext <<_ACEOF
12500 #line $LINENO "configure"
12503 cat confdefs.h
>>conftest.
$ac_ext
12504 cat >>conftest.
$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char $ac_func (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12511 # include <limits.h>
12513 # include <assert.h>
12515 /* Override any gcc2 internal prototype to avoid an error. */
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12523 /* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12529 char (*f) () = $ac_func;
12538 return f != $ac_func;
12543 rm -f conftest.
$ac_objext conftest
$ac_exeext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545 (eval $ac_link) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try
='test -s conftest$ac_exeext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 eval "$as_ac_var=yes"
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.
$ac_ext >&5
12560 eval "$as_ac_var=no"
12562 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12566 if test `eval echo '${'$as_ac_var'}'` = yes; then
12567 cat >>confdefs.h
<<_ACEOF
12568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12572 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12574 cat >>confdefs.h
<<\_ACEOF
12575 #define C_GETLOADAVG 1
12578 # Figure out what our getloadavg.c needs.
12580 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12581 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12582 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12583 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12587 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12589 # Is the header compilable?
12590 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12591 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12592 cat >conftest.
$ac_ext <<_ACEOF
12593 #line $LINENO "configure"
12596 cat confdefs.h
>>conftest.
$ac_ext
12597 cat >>conftest.
$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 $ac_includes_default
12600 #include <sys/dg_sys_info.h>
12602 rm -f conftest.
$ac_objext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try
='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_header_compiler
=yes
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.
$ac_ext >&5
12619 ac_header_compiler
=no
12621 rm -f conftest.
$ac_objext conftest.
$ac_ext
12622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623 echo "${ECHO_T}$ac_header_compiler" >&6
12625 # Is the header present?
12626 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12627 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12628 cat >conftest.
$ac_ext <<_ACEOF
12629 #line $LINENO "configure"
12632 cat confdefs.h
>>conftest.
$ac_ext
12633 cat >>conftest.
$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 #include <sys/dg_sys_info.h>
12637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12638 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12640 grep -v '^ *+' conftest.er1
>conftest.err
12642 cat conftest.err
>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } >/dev
/null
; then
12645 if test -s conftest.err
; then
12646 ac_cpp_err
=$ac_c_preproc_warn_flag
12653 if test -z "$ac_cpp_err"; then
12654 ac_header_preproc
=yes
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12659 ac_header_preproc
=no
12661 rm -f conftest.err conftest.
$ac_ext
12662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663 echo "${ECHO_T}$ac_header_preproc" >&6
12665 # So? What about this header?
12666 case $ac_header_compiler:$ac_header_preproc in
12668 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12669 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12671 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12674 ## ------------------------------------ ##
12675 ## Report this to bug-autoconf@gnu.org. ##
12676 ## ------------------------------------ ##
12679 sed "s/^/$as_me: WARNING: /" >&2
12682 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12683 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12685 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12687 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12690 ## ------------------------------------ ##
12691 ## Report this to bug-autoconf@gnu.org. ##
12692 ## ------------------------------------ ##
12695 sed "s/^/$as_me: WARNING: /" >&2
12698 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12699 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12700 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12705 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12706 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12709 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12712 cat >>confdefs.h
<<\_ACEOF
12717 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12718 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12719 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 ac_check_lib_save_LIBS
=$LIBS
12724 cat >conftest.
$ac_ext <<_ACEOF
12725 #line $LINENO "configure"
12728 cat confdefs.h
>>conftest.
$ac_ext
12729 cat >>conftest.
$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 /* Override any gcc2 internal prototype to avoid an error. */
12736 /* We use char because int might match the return type of a gcc2
12737 builtin and then its argument prototype would still apply. */
12738 char dg_sys_info ();
12747 rm -f conftest.
$ac_objext conftest
$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749 (eval $ac_link) 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try
='test -s conftest$ac_exeext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_lib_dgc_dg_sys_info
=yes
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.
$ac_ext >&5
12764 ac_cv_lib_dgc_dg_sys_info
=no
12766 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12767 LIBS
=$ac_check_lib_save_LIBS
12769 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12770 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12771 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12772 cat >>confdefs.h
<<_ACEOF
12773 #define HAVE_LIBDGC 1
12784 if test "${ac_cv_header_locale_h+set}" = set; then
12785 echo "$as_me:$LINENO: checking for locale.h" >&5
12786 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12787 if test "${ac_cv_header_locale_h+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12791 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12793 # Is the header compilable?
12794 echo "$as_me:$LINENO: checking locale.h usability" >&5
12795 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12796 cat >conftest.
$ac_ext <<_ACEOF
12797 #line $LINENO "configure"
12800 cat confdefs.h
>>conftest.
$ac_ext
12801 cat >>conftest.
$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12804 #include <locale.h>
12806 rm -f conftest.
$ac_objext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try
='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_header_compiler
=yes
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.
$ac_ext >&5
12823 ac_header_compiler
=no
12825 rm -f conftest.
$ac_objext conftest.
$ac_ext
12826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12827 echo "${ECHO_T}$ac_header_compiler" >&6
12829 # Is the header present?
12830 echo "$as_me:$LINENO: checking locale.h presence" >&5
12831 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12832 cat >conftest.
$ac_ext <<_ACEOF
12833 #line $LINENO "configure"
12836 cat confdefs.h
>>conftest.
$ac_ext
12837 cat >>conftest.
$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 #include <locale.h>
12841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12842 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12844 grep -v '^ *+' conftest.er1
>conftest.err
12846 cat conftest.err
>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } >/dev
/null
; then
12849 if test -s conftest.err
; then
12850 ac_cpp_err
=$ac_c_preproc_warn_flag
12857 if test -z "$ac_cpp_err"; then
12858 ac_header_preproc
=yes
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.
$ac_ext >&5
12863 ac_header_preproc
=no
12865 rm -f conftest.err conftest.
$ac_ext
12866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12867 echo "${ECHO_T}$ac_header_preproc" >&6
12869 # So? What about this header?
12870 case $ac_header_compiler:$ac_header_preproc in
12872 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12873 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12875 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12878 ## ------------------------------------ ##
12879 ## Report this to bug-autoconf@gnu.org. ##
12880 ## ------------------------------------ ##
12883 sed "s/^/$as_me: WARNING: /" >&2
12886 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12887 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12889 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12891 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12894 ## ------------------------------------ ##
12895 ## Report this to bug-autoconf@gnu.org. ##
12896 ## ------------------------------------ ##
12899 sed "s/^/$as_me: WARNING: /" >&2
12902 echo "$as_me:$LINENO: checking for locale.h" >&5
12903 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12904 if test "${ac_cv_header_locale_h+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 ac_cv_header_locale_h
=$ac_header_preproc
12909 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12910 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12916 for ac_func
in setlocale
12918 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12919 echo "$as_me:$LINENO: checking for $ac_func" >&5
12920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12921 if eval "test \"\${$as_ac_var+set}\" = set"; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 cat >conftest.
$ac_ext <<_ACEOF
12925 #line $LINENO "configure"
12928 cat confdefs.h
>>conftest.
$ac_ext
12929 cat >>conftest.
$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* System header to define __stub macros and hopefully few prototypes,
12932 which can conflict with char $ac_func (); below.
12933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12934 <limits.h> exists even on freestanding compilers. */
12936 # include <limits.h>
12938 # include <assert.h>
12940 /* Override any gcc2 internal prototype to avoid an error. */
12945 /* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12948 /* The GNU C library defines this for functions which it implements
12949 to always fail with ENOSYS. Some functions are actually named
12950 something starting with __ and the normal name is an alias. */
12951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12954 char (*f) () = $ac_func;
12963 return f != $ac_func;
12968 rm -f conftest.
$ac_objext conftest
$ac_exeext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970 (eval $ac_link) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try
='test -s conftest$ac_exeext'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; }; then
12980 eval "$as_ac_var=yes"
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.
$ac_ext >&5
12985 eval "$as_ac_var=no"
12987 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992 cat >>confdefs.h
<<_ACEOF
12993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13000 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13001 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13002 # Irix 4.0.5F has the header but not the library.
13003 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13006 cat >>confdefs.h
<<\_ACEOF
13012 if test $ac_have_func = no
; then
13013 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13014 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13015 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13016 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13020 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13022 # Is the header compilable?
13023 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13024 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13025 cat >conftest.
$ac_ext <<_ACEOF
13026 #line $LINENO "configure"
13029 cat confdefs.h
>>conftest.
$ac_ext
13030 cat >>conftest.
$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 $ac_includes_default
13033 #include <inq_stats/cpustats.h>
13035 rm -f conftest.
$ac_objext
13036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13037 (eval $ac_compile) 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try
='test -s conftest.$ac_objext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_header_compiler
=yes
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.
$ac_ext >&5
13052 ac_header_compiler
=no
13054 rm -f conftest.
$ac_objext conftest.
$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13056 echo "${ECHO_T}$ac_header_compiler" >&6
13058 # Is the header present?
13059 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13060 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13061 cat >conftest.
$ac_ext <<_ACEOF
13062 #line $LINENO "configure"
13065 cat confdefs.h
>>conftest.
$ac_ext
13066 cat >>conftest.
$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 #include <inq_stats/cpustats.h>
13070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13071 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13073 grep -v '^ *+' conftest.er1
>conftest.err
13075 cat conftest.err
>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } >/dev
/null
; then
13078 if test -s conftest.err
; then
13079 ac_cpp_err
=$ac_c_preproc_warn_flag
13086 if test -z "$ac_cpp_err"; then
13087 ac_header_preproc
=yes
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.
$ac_ext >&5
13092 ac_header_preproc
=no
13094 rm -f conftest.err conftest.
$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13096 echo "${ECHO_T}$ac_header_preproc" >&6
13098 # So? What about this header?
13099 case $ac_header_compiler:$ac_header_preproc in
13101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13102 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13104 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13107 ## ------------------------------------ ##
13108 ## Report this to bug-autoconf@gnu.org. ##
13109 ## ------------------------------------ ##
13112 sed "s/^/$as_me: WARNING: /" >&2
13115 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13116 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13118 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13120 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13123 ## ------------------------------------ ##
13124 ## Report this to bug-autoconf@gnu.org. ##
13125 ## ------------------------------------ ##
13128 sed "s/^/$as_me: WARNING: /" >&2
13131 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13132 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13133 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13138 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13139 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13142 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13145 cat >>confdefs.h
<<\_ACEOF
13150 cat >>confdefs.h
<<\_ACEOF
13159 if test $ac_have_func = no
; then
13160 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13161 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13162 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13163 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13167 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13169 # Is the header compilable?
13170 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13171 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13172 cat >conftest.
$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13176 cat confdefs.h
>>conftest.
$ac_ext
13177 cat >>conftest.
$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 $ac_includes_default
13180 #include <sys/cpustats.h>
13182 rm -f conftest.
$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try
='test -s conftest.$ac_objext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_header_compiler
=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.
$ac_ext >&5
13199 ac_header_compiler
=no
13201 rm -f conftest.
$ac_objext conftest.
$ac_ext
13202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13203 echo "${ECHO_T}$ac_header_compiler" >&6
13205 # Is the header present?
13206 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13207 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13208 cat >conftest.
$ac_ext <<_ACEOF
13209 #line $LINENO "configure"
13212 cat confdefs.h
>>conftest.
$ac_ext
13213 cat >>conftest.
$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 #include <sys/cpustats.h>
13217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13218 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13220 grep -v '^ *+' conftest.er1
>conftest.err
13222 cat conftest.err
>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } >/dev
/null
; then
13225 if test -s conftest.err
; then
13226 ac_cpp_err
=$ac_c_preproc_warn_flag
13233 if test -z "$ac_cpp_err"; then
13234 ac_header_preproc
=yes
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.
$ac_ext >&5
13239 ac_header_preproc
=no
13241 rm -f conftest.err conftest.
$ac_ext
13242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13243 echo "${ECHO_T}$ac_header_preproc" >&6
13245 # So? What about this header?
13246 case $ac_header_compiler:$ac_header_preproc in
13248 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13249 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13251 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13254 ## ------------------------------------ ##
13255 ## Report this to bug-autoconf@gnu.org. ##
13256 ## ------------------------------------ ##
13259 sed "s/^/$as_me: WARNING: /" >&2
13262 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13263 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13264 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13265 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13267 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13270 ## ------------------------------------ ##
13271 ## Report this to bug-autoconf@gnu.org. ##
13272 ## ------------------------------------ ##
13275 sed "s/^/$as_me: WARNING: /" >&2
13278 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13279 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13280 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13285 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13286 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13289 if test $ac_cv_header_sys_cpustats_h = yes; then
13290 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13299 if test $ac_have_func = no
; then
13301 for ac_header
in mach
/mach.h
13303 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo "$as_me:$LINENO: checking for $ac_header" >&5
13306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13313 # Is the header compilable?
13314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13316 cat >conftest.
$ac_ext <<_ACEOF
13317 #line $LINENO "configure"
13320 cat confdefs.h
>>conftest.
$ac_ext
13321 cat >>conftest.
$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 $ac_includes_default
13324 #include <$ac_header>
13326 rm -f conftest.
$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try
='test -s conftest.$ac_objext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_header_compiler
=yes
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.
$ac_ext >&5
13343 ac_header_compiler
=no
13345 rm -f conftest.
$ac_objext conftest.
$ac_ext
13346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13347 echo "${ECHO_T}$ac_header_compiler" >&6
13349 # Is the header present?
13350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13352 cat >conftest.
$ac_ext <<_ACEOF
13353 #line $LINENO "configure"
13356 cat confdefs.h
>>conftest.
$ac_ext
13357 cat >>conftest.
$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 #include <$ac_header>
13361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13362 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13364 grep -v '^ *+' conftest.er1
>conftest.err
13366 cat conftest.err
>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } >/dev
/null
; then
13369 if test -s conftest.err
; then
13370 ac_cpp_err
=$ac_c_preproc_warn_flag
13377 if test -z "$ac_cpp_err"; then
13378 ac_header_preproc
=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.
$ac_ext >&5
13383 ac_header_preproc
=no
13385 rm -f conftest.err conftest.
$ac_ext
13386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13387 echo "${ECHO_T}$ac_header_preproc" >&6
13389 # So? What about this header?
13390 case $ac_header_compiler:$ac_header_preproc in
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13398 ## ------------------------------------ ##
13399 ## Report this to bug-autoconf@gnu.org. ##
13400 ## ------------------------------------ ##
13403 sed "s/^/$as_me: WARNING: /" >&2
13406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13414 ## ------------------------------------ ##
13415 ## Report this to bug-autoconf@gnu.org. ##
13416 ## ------------------------------------ ##
13419 sed "s/^/$as_me: WARNING: /" >&2
13422 echo "$as_me:$LINENO: checking for $ac_header" >&5
13423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 eval "$as_ac_Header=$ac_header_preproc"
13429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13434 cat >>confdefs.h
<<_ACEOF
13435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13445 for ac_header
in nlist.h
13447 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13449 echo "$as_me:$LINENO: checking for $ac_header" >&5
13450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13457 # Is the header compilable?
13458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13460 cat >conftest.
$ac_ext <<_ACEOF
13461 #line $LINENO "configure"
13464 cat confdefs.h
>>conftest.
$ac_ext
13465 cat >>conftest.
$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 $ac_includes_default
13468 #include <$ac_header>
13470 rm -f conftest.
$ac_objext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13472 (eval $ac_compile) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try
='test -s conftest.$ac_objext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_header_compiler
=yes
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.
$ac_ext >&5
13487 ac_header_compiler
=no
13489 rm -f conftest.
$ac_objext conftest.
$ac_ext
13490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491 echo "${ECHO_T}$ac_header_compiler" >&6
13493 # Is the header present?
13494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13496 cat >conftest.
$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13500 cat confdefs.h
>>conftest.
$ac_ext
13501 cat >>conftest.
$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #include <$ac_header>
13505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13506 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13508 grep -v '^ *+' conftest.er1
>conftest.err
13510 cat conftest.err
>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } >/dev
/null
; then
13513 if test -s conftest.err
; then
13514 ac_cpp_err
=$ac_c_preproc_warn_flag
13521 if test -z "$ac_cpp_err"; then
13522 ac_header_preproc
=yes
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.
$ac_ext >&5
13527 ac_header_preproc
=no
13529 rm -f conftest.err conftest.
$ac_ext
13530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 echo "${ECHO_T}$ac_header_preproc" >&6
13533 # So? What about this header?
13534 case $ac_header_compiler:$ac_header_preproc in
13536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13542 ## ------------------------------------ ##
13543 ## Report this to bug-autoconf@gnu.org. ##
13544 ## ------------------------------------ ##
13547 sed "s/^/$as_me: WARNING: /" >&2
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13558 ## ------------------------------------ ##
13559 ## Report this to bug-autoconf@gnu.org. ##
13560 ## ------------------------------------ ##
13563 sed "s/^/$as_me: WARNING: /" >&2
13566 echo "$as_me:$LINENO: checking for $ac_header" >&5
13567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 eval "$as_ac_Header=$ac_header_preproc"
13573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13578 cat >>confdefs.h
<<_ACEOF
13579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13581 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13582 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13583 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 cat >conftest.
$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13590 cat confdefs.h
>>conftest.
$ac_ext
13591 cat >>conftest.
$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13598 static struct nlist ac_aggr;
13599 if (ac_aggr.n_un.n_name)
13605 rm -f conftest.
$ac_objext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13607 (eval $ac_compile) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try
='test -s conftest.$ac_objext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 ac_cv_member_struct_nlist_n_un_n_name
=yes
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.
$ac_ext >&5
13622 cat >conftest.
$ac_ext <<_ACEOF
13623 #line $LINENO "configure"
13626 cat confdefs.h
>>conftest.
$ac_ext
13627 cat >>conftest.
$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13634 static struct nlist ac_aggr;
13635 if (sizeof ac_aggr.n_un.n_name)
13641 rm -f conftest.
$ac_objext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try
='test -s conftest.$ac_objext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_member_struct_nlist_n_un_n_name
=yes
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.
$ac_ext >&5
13658 ac_cv_member_struct_nlist_n_un_n_name
=no
13660 rm -f conftest.
$ac_objext conftest.
$ac_ext
13662 rm -f conftest.
$ac_objext conftest.
$ac_ext
13664 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13665 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13666 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13668 cat >>confdefs.h
<<_ACEOF
13669 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13673 cat >>confdefs.h
<<\_ACEOF
13674 #define NLIST_NAME_UNION 1
13688 # Some definitions of getloadavg require that the program be installed setgid.
13689 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13690 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13691 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 cat >conftest.
$ac_ext <<_ACEOF
13695 #line $LINENO "configure"
13698 cat confdefs.h
>>conftest.
$ac_ext
13699 cat >>conftest.
$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13702 #ifdef LDAV_PRIVILEGED
13703 Yowza Am I SETGID yet
13706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13707 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13708 ac_cv_func_getloadavg_setgid
=yes
13710 ac_cv_func_getloadavg_setgid
=no
13715 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13716 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13717 if test $ac_cv_func_getloadavg_setgid = yes; then
13720 cat >>confdefs.h
<<\_ACEOF
13721 #define GETLOADAVG_PRIVILEGED 1
13728 if test $ac_cv_func_getloadavg_setgid = yes; then
13729 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13730 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13731 if test "${ac_cv_group_kmem+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13735 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13736 # If we got an error (system does not support symlinks), try without -L.
13737 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13738 ac_cv_group_kmem
=`echo $ac_ls_output \
13739 | sed -ne 's/[ ][ ]*/ /g;
13740 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13744 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13745 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13746 KMEM_GROUP
=$ac_cv_group_kmem
13748 if test "x$ac_save_LIBS" = x
; then
13749 GETLOADAVG_LIBS
=$LIBS
13751 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13757 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13758 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13759 if test "${ac_cv_sys_largefile_source+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 ac_cv_sys_largefile_source
=no
13764 cat >conftest.
$ac_ext <<_ACEOF
13765 #line $LINENO "configure"
13768 cat confdefs.h
>>conftest.
$ac_ext
13769 cat >>conftest.
$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13780 rm -f conftest.
$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try
='test -s conftest.$ac_objext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.
$ac_ext >&5
13798 rm -f conftest.
$ac_objext conftest.
$ac_ext
13799 cat >conftest.
$ac_ext <<_ACEOF
13800 #line $LINENO "configure"
13803 cat confdefs.h
>>conftest.
$ac_ext
13804 cat >>conftest.
$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 #define _LARGEFILE_SOURCE 1
13816 rm -f conftest.
$ac_objext
13817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13818 (eval $ac_compile) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
13822 { ac_try
='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_sys_largefile_source
=1; break
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.
$ac_ext >&5
13834 rm -f conftest.
$ac_objext conftest.
$ac_ext
13838 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13839 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13840 if test "$ac_cv_sys_largefile_source" != no
; then
13842 cat >>confdefs.h
<<_ACEOF
13843 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13849 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13850 # in glibc 2.1.3, but that breaks too many other things.
13851 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13852 echo "$as_me:$LINENO: checking for fseeko" >&5
13853 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13854 if test "${ac_cv_func_fseeko+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 cat >conftest.
$ac_ext <<_ACEOF
13858 #line $LINENO "configure"
13861 cat confdefs.h
>>conftest.
$ac_ext
13862 cat >>conftest.
$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13868 return fseeko && fseeko (stdin, 0, 0);
13873 rm -f conftest.
$ac_objext conftest
$ac_exeext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875 (eval $ac_link) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try
='test -s conftest$ac_exeext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_cv_func_fseeko
=yes
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.
$ac_ext >&5
13890 ac_cv_func_fseeko
=no
13892 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13894 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13895 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13896 if test $ac_cv_func_fseeko = yes; then
13898 cat >>confdefs.h
<<\_ACEOF
13899 #define HAVE_FSEEKO 1
13905 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13906 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13907 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 # Use it with a single arg.
13911 cat >conftest.
$ac_ext <<_ACEOF
13912 #line $LINENO "configure"
13915 cat confdefs.h
>>conftest.
$ac_ext
13916 cat >>conftest.
$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 $ac_includes_default
13927 rm -f conftest.
$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929 (eval $ac_compile) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try
='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_func_getpgrp_void
=no
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.
$ac_ext >&5
13944 ac_cv_func_getpgrp_void
=yes
13946 rm -f conftest.
$ac_objext conftest.
$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13950 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13951 if test $ac_cv_func_getpgrp_void = yes; then
13953 cat >>confdefs.h
<<\_ACEOF
13954 #define GETPGRP_VOID 1
13961 for ac_func
in strftime
13963 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13964 echo "$as_me:$LINENO: checking for $ac_func" >&5
13965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_var+set}\" = set"; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 cat >conftest.
$ac_ext <<_ACEOF
13970 #line $LINENO "configure"
13973 cat confdefs.h
>>conftest.
$ac_ext
13974 cat >>conftest.
$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 /* System header to define __stub macros and hopefully few prototypes,
13977 which can conflict with char $ac_func (); below.
13978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13979 <limits.h> exists even on freestanding compilers. */
13981 # include <limits.h>
13983 # include <assert.h>
13985 /* Override any gcc2 internal prototype to avoid an error. */
13990 /* We use char because int might match the return type of a gcc2
13991 builtin and then its argument prototype would still apply. */
13993 /* The GNU C library defines this for functions which it implements
13994 to always fail with ENOSYS. Some functions are actually named
13995 something starting with __ and the normal name is an alias. */
13996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13999 char (*f) () = $ac_func;
14008 return f != $ac_func;
14013 rm -f conftest.
$ac_objext conftest
$ac_exeext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14015 (eval $ac_link) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try
='test -s conftest$ac_exeext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 eval "$as_ac_var=yes"
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.
$ac_ext >&5
14030 eval "$as_ac_var=no"
14032 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14036 if test `eval echo '${'$as_ac_var'}'` = yes; then
14037 cat >>confdefs.h
<<_ACEOF
14038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14042 # strftime is in -lintl on SCO UNIX.
14043 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14044 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14045 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 ac_check_lib_save_LIBS
=$LIBS
14049 LIBS
="-lintl $LIBS"
14050 cat >conftest.
$ac_ext <<_ACEOF
14051 #line $LINENO "configure"
14054 cat confdefs.h
>>conftest.
$ac_ext
14055 cat >>conftest.
$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14058 /* Override any gcc2 internal prototype to avoid an error. */
14062 /* We use char because int might match the return type of a gcc2
14063 builtin and then its argument prototype would still apply. */
14073 rm -f conftest.
$ac_objext conftest
$ac_exeext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075 (eval $ac_link) 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try
='test -s conftest$ac_exeext'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 ac_cv_lib_intl_strftime
=yes
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.
$ac_ext >&5
14090 ac_cv_lib_intl_strftime
=no
14092 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14093 LIBS
=$ac_check_lib_save_LIBS
14095 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14096 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14097 if test $ac_cv_lib_intl_strftime = yes; then
14098 cat >>confdefs.h
<<\_ACEOF
14099 #define HAVE_STRFTIME 1
14102 LIBS
="-lintl $LIBS"
14111 for ac_func
in grantpt
14113 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14114 echo "$as_me:$LINENO: checking for $ac_func" >&5
14115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14116 if eval "test \"\${$as_ac_var+set}\" = set"; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 cat >conftest.
$ac_ext <<_ACEOF
14120 #line $LINENO "configure"
14123 cat confdefs.h
>>conftest.
$ac_ext
14124 cat >>conftest.
$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char $ac_func (); below.
14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129 <limits.h> exists even on freestanding compilers. */
14131 # include <limits.h>
14133 # include <assert.h>
14135 /* Override any gcc2 internal prototype to avoid an error. */
14140 /* We use char because int might match the return type of a gcc2
14141 builtin and then its argument prototype would still apply. */
14143 /* The GNU C library defines this for functions which it implements
14144 to always fail with ENOSYS. Some functions are actually named
14145 something starting with __ and the normal name is an alias. */
14146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14149 char (*f) () = $ac_func;
14158 return f != $ac_func;
14163 rm -f conftest.
$ac_objext conftest
$ac_exeext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try
='test -s conftest$ac_exeext'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 eval "$as_ac_var=yes"
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.
$ac_ext >&5
14180 eval "$as_ac_var=no"
14182 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14186 if test `eval echo '${'$as_ac_var'}'` = yes; then
14187 cat >>confdefs.h
<<_ACEOF
14188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14195 # PTY-related GNU extensions.
14197 for ac_func
in getpt
14199 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14200 echo "$as_me:$LINENO: checking for $ac_func" >&5
14201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14202 if eval "test \"\${$as_ac_var+set}\" = set"; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 cat >conftest.
$ac_ext <<_ACEOF
14206 #line $LINENO "configure"
14209 cat confdefs.h
>>conftest.
$ac_ext
14210 cat >>conftest.
$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 /* System header to define __stub macros and hopefully few prototypes,
14213 which can conflict with char $ac_func (); below.
14214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14215 <limits.h> exists even on freestanding compilers. */
14217 # include <limits.h>
14219 # include <assert.h>
14221 /* Override any gcc2 internal prototype to avoid an error. */
14226 /* We use char because int might match the return type of a gcc2
14227 builtin and then its argument prototype would still apply. */
14229 /* The GNU C library defines this for functions which it implements
14230 to always fail with ENOSYS. Some functions are actually named
14231 something starting with __ and the normal name is an alias. */
14232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14235 char (*f) () = $ac_func;
14244 return f != $ac_func;
14249 rm -f conftest.
$ac_objext conftest
$ac_exeext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251 (eval $ac_link) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try
='test -s conftest$ac_exeext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 eval "$as_ac_var=yes"
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.
$ac_ext >&5
14266 eval "$as_ac_var=no"
14268 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14272 if test `eval echo '${'$as_ac_var'}'` = yes; then
14273 cat >>confdefs.h
<<_ACEOF
14274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14281 # Check this now, so that we will NOT find the above functions in ncurses.
14282 # That is because we have not set up to link ncurses in lib-src.
14283 # It's better to believe a function is not available
14284 # than to expect to find it in ncurses.
14286 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14287 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14288 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 ac_check_lib_save_LIBS
=$LIBS
14292 LIBS
="-lncurses $LIBS"
14293 cat >conftest.
$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
14297 cat confdefs.h
>>conftest.
$ac_ext
14298 cat >>conftest.
$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any gcc2 internal prototype to avoid an error. */
14305 /* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14316 rm -f conftest.
$ac_objext conftest
$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318 (eval $ac_link) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } &&
14322 { ac_try
='test -s conftest$ac_exeext'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14328 ac_cv_lib_ncurses_tparm
=yes
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.
$ac_ext >&5
14333 ac_cv_lib_ncurses_tparm
=no
14335 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14336 LIBS
=$ac_check_lib_save_LIBS
14338 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14339 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14340 if test $ac_cv_lib_ncurses_tparm = yes; then
14341 cat >>confdefs.h
<<_ACEOF
14342 #define HAVE_LIBNCURSES 1
14345 LIBS
="-lncurses $LIBS"
14350 # Do we need the Hesiod library to provide the support routines?
14351 if test "$with_hesiod" = yes ; then
14352 # Don't set $LIBS here -- see comments above.
14354 echo "$as_me:$LINENO: checking for res_send" >&5
14355 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14356 if test "${ac_cv_func_res_send+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 cat >conftest.
$ac_ext <<_ACEOF
14360 #line $LINENO "configure"
14363 cat confdefs.h
>>conftest.
$ac_ext
14364 cat >>conftest.
$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 /* System header to define __stub macros and hopefully few prototypes,
14367 which can conflict with char res_send (); below.
14368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14369 <limits.h> exists even on freestanding compilers. */
14371 # include <limits.h>
14373 # include <assert.h>
14375 /* Override any gcc2 internal prototype to avoid an error. */
14380 /* We use char because int might match the return type of a gcc2
14381 builtin and then its argument prototype would still apply. */
14383 /* The GNU C library defines this for functions which it implements
14384 to always fail with ENOSYS. Some functions are actually named
14385 something starting with __ and the normal name is an alias. */
14386 #if defined (__stub_res_send) || defined (__stub___res_send)
14389 char (*f) () = res_send;
14398 return f != res_send;
14403 rm -f conftest.
$ac_objext conftest
$ac_exeext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14405 (eval $ac_link) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try
='test -s conftest$ac_exeext'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 ac_cv_func_res_send
=yes
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.
$ac_ext >&5
14420 ac_cv_func_res_send
=no
14422 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14424 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14425 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14426 if test $ac_cv_func_res_send = yes; then
14429 echo "$as_me:$LINENO: checking for __res_send" >&5
14430 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14431 if test "${ac_cv_func___res_send+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 cat >conftest.
$ac_ext <<_ACEOF
14435 #line $LINENO "configure"
14438 cat confdefs.h
>>conftest.
$ac_ext
14439 cat >>conftest.
$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 /* System header to define __stub macros and hopefully few prototypes,
14442 which can conflict with char __res_send (); below.
14443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14444 <limits.h> exists even on freestanding compilers. */
14446 # include <limits.h>
14448 # include <assert.h>
14450 /* Override any gcc2 internal prototype to avoid an error. */
14455 /* We use char because int might match the return type of a gcc2
14456 builtin and then its argument prototype would still apply. */
14457 char __res_send ();
14458 /* The GNU C library defines this for functions which it implements
14459 to always fail with ENOSYS. Some functions are actually named
14460 something starting with __ and the normal name is an alias. */
14461 #if defined (__stub___res_send) || defined (__stub_____res_send)
14464 char (*f) () = __res_send;
14473 return f != __res_send;
14478 rm -f conftest.
$ac_objext conftest
$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480 (eval $ac_link) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try
='test -s conftest$ac_exeext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 ac_cv_func___res_send
=yes
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.
$ac_ext >&5
14495 ac_cv_func___res_send
=no
14497 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14499 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14500 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14501 if test $ac_cv_func___res_send = yes; then
14504 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14505 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14506 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 ac_check_lib_save_LIBS
=$LIBS
14510 LIBS
="-lresolv $LIBS"
14511 cat >conftest.
$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14515 cat confdefs.h
>>conftest.
$ac_ext
14516 cat >>conftest.
$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 /* Override any gcc2 internal prototype to avoid an error. */
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14534 rm -f conftest.
$ac_objext conftest
$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try
='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_lib_resolv_res_send
=yes
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.
$ac_ext >&5
14551 ac_cv_lib_resolv_res_send
=no
14553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14554 LIBS
=$ac_check_lib_save_LIBS
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14557 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14558 if test $ac_cv_lib_resolv_res_send = yes; then
14561 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14562 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14563 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 ac_check_lib_save_LIBS
=$LIBS
14567 LIBS
="-lresolv $LIBS"
14568 cat >conftest.
$ac_ext <<_ACEOF
14569 #line $LINENO "configure"
14572 cat confdefs.h
>>conftest.
$ac_ext
14573 cat >>conftest.
$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14576 /* Override any gcc2 internal prototype to avoid an error. */
14580 /* We use char because int might match the return type of a gcc2
14581 builtin and then its argument prototype would still apply. */
14582 char __res_send ();
14591 rm -f conftest.
$ac_objext conftest
$ac_exeext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14593 (eval $ac_link) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try
='test -s conftest$ac_exeext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_cv_lib_resolv___res_send
=yes
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.
$ac_ext >&5
14608 ac_cv_lib_resolv___res_send
=no
14610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14611 LIBS
=$ac_check_lib_save_LIBS
14613 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14614 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14615 if test $ac_cv_lib_resolv___res_send = yes; then
14625 if test "$resolv" = yes ; then
14628 cat >>confdefs.h
<<\_ACEOF
14629 #define HAVE_LIBRESOLV 1
14635 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14636 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14637 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.
$ac_ext <<_ACEOF
14641 #line $LINENO "configure"
14644 cat confdefs.h
>>conftest.
$ac_ext
14645 cat >>conftest.
$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 /* System header to define __stub macros and hopefully few prototypes,
14648 which can conflict with char hes_getmailhost (); below.
14649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14650 <limits.h> exists even on freestanding compilers. */
14652 # include <limits.h>
14654 # include <assert.h>
14656 /* Override any gcc2 internal prototype to avoid an error. */
14661 /* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14663 char hes_getmailhost ();
14664 /* The GNU C library defines this for functions which it implements
14665 to always fail with ENOSYS. Some functions are actually named
14666 something starting with __ and the normal name is an alias. */
14667 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14670 char (*f) () = hes_getmailhost;
14679 return f != hes_getmailhost;
14684 rm -f conftest.
$ac_objext conftest
$ac_exeext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try
='test -s conftest$ac_exeext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_cv_func_hes_getmailhost
=yes
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.
$ac_ext >&5
14701 ac_cv_func_hes_getmailhost
=no
14703 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14706 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14707 if test $ac_cv_func_hes_getmailhost = yes; then
14710 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14711 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14712 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 ac_check_lib_save_LIBS
=$LIBS
14716 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14717 cat >conftest.
$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14721 cat confdefs.h
>>conftest.
$ac_ext
14722 cat >>conftest.
$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14725 /* Override any gcc2 internal prototype to avoid an error. */
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14731 char hes_getmailhost ();
14735 hes_getmailhost ();
14740 rm -f conftest.
$ac_objext conftest
$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try
='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_lib_hesiod_hes_getmailhost
=yes
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.
$ac_ext >&5
14757 ac_cv_lib_hesiod_hes_getmailhost
=no
14759 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14760 LIBS
=$ac_check_lib_save_LIBS
14762 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14763 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14764 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14766 cat >>confdefs.h
<<\_ACEOF
14767 #define HAVE_LIBHESIOD 1
14778 # These tell us which Kerberos-related libraries to use.
14779 if test "${with_kerberos+set}" = set; then
14781 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14782 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14783 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 ac_check_lib_save_LIBS
=$LIBS
14787 LIBS
="-lcom_err $LIBS"
14788 cat >conftest.
$ac_ext <<_ACEOF
14789 #line $LINENO "configure"
14792 cat confdefs.h
>>conftest.
$ac_ext
14793 cat >>conftest.
$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14796 /* Override any gcc2 internal prototype to avoid an error. */
14800 /* We use char because int might match the return type of a gcc2
14801 builtin and then its argument prototype would still apply. */
14811 rm -f conftest.
$ac_objext conftest
$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try
='test -s conftest$ac_exeext'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 ac_cv_lib_com_err_com_err
=yes
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.
$ac_ext >&5
14828 ac_cv_lib_com_err_com_err
=no
14830 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14831 LIBS
=$ac_check_lib_save_LIBS
14833 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14834 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14835 if test $ac_cv_lib_com_err_com_err = yes; then
14836 cat >>confdefs.h
<<_ACEOF
14837 #define HAVE_LIBCOM_ERR 1
14840 LIBS
="-lcom_err $LIBS"
14845 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14846 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14847 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 ac_check_lib_save_LIBS
=$LIBS
14851 LIBS
="-lk5crypto $LIBS"
14852 cat >conftest.
$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14856 cat confdefs.h
>>conftest.
$ac_ext
14857 cat >>conftest.
$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14860 /* Override any gcc2 internal prototype to avoid an error. */
14864 /* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14866 char mit_des_cbc_encrypt ();
14870 mit_des_cbc_encrypt ();
14875 rm -f conftest.
$ac_objext conftest
$ac_exeext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try
='test -s conftest$ac_exeext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.
$ac_ext >&5
14892 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14894 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14895 LIBS
=$ac_check_lib_save_LIBS
14897 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14898 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14899 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14900 cat >>confdefs.h
<<_ACEOF
14901 #define HAVE_LIBK5CRYPTO 1
14904 LIBS
="-lk5crypto $LIBS"
14909 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14910 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14911 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 ac_check_lib_save_LIBS
=$LIBS
14915 LIBS
="-lcrypto $LIBS"
14916 cat >conftest.
$ac_ext <<_ACEOF
14917 #line $LINENO "configure"
14920 cat confdefs.h
>>conftest.
$ac_ext
14921 cat >>conftest.
$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14924 /* Override any gcc2 internal prototype to avoid an error. */
14928 /* We use char because int might match the return type of a gcc2
14929 builtin and then its argument prototype would still apply. */
14930 char mit_des_cbc_encrypt ();
14934 mit_des_cbc_encrypt ();
14939 rm -f conftest.
$ac_objext conftest
$ac_exeext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14941 (eval $ac_link) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try
='test -s conftest$ac_exeext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.
$ac_ext >&5
14956 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14959 LIBS
=$ac_check_lib_save_LIBS
14961 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14962 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14963 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14964 cat >>confdefs.h
<<_ACEOF
14965 #define HAVE_LIBCRYPTO 1
14968 LIBS
="-lcrypto $LIBS"
14973 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14974 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14975 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 ac_check_lib_save_LIBS
=$LIBS
14979 LIBS
="-lkrb5 $LIBS"
14980 cat >conftest.
$ac_ext <<_ACEOF
14981 #line $LINENO "configure"
14984 cat confdefs.h
>>conftest.
$ac_ext
14985 cat >>conftest.
$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14988 /* Override any gcc2 internal prototype to avoid an error. */
14992 /* We use char because int might match the return type of a gcc2
14993 builtin and then its argument prototype would still apply. */
14994 char krb5_init_context ();
14998 krb5_init_context ();
15003 rm -f conftest.
$ac_objext conftest
$ac_exeext
15004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15005 (eval $ac_link) 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
15009 { ac_try
='test -s conftest$ac_exeext'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 ac_cv_lib_krb5_krb5_init_context
=yes
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.
$ac_ext >&5
15020 ac_cv_lib_krb5_krb5_init_context
=no
15022 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15023 LIBS
=$ac_check_lib_save_LIBS
15025 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15026 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15027 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15028 cat >>confdefs.h
<<_ACEOF
15029 #define HAVE_LIBKRB5 1
15032 LIBS
="-lkrb5 $LIBS"
15036 if test "${with_kerberos5+set}" != set; then
15038 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15039 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15040 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 ac_check_lib_save_LIBS
=$LIBS
15044 LIBS
="-ldes425 $LIBS"
15045 cat >conftest.
$ac_ext <<_ACEOF
15046 #line $LINENO "configure"
15049 cat confdefs.h
>>conftest.
$ac_ext
15050 cat >>conftest.
$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15053 /* Override any gcc2 internal prototype to avoid an error. */
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15059 char des_cbc_encrypt ();
15063 des_cbc_encrypt ();
15068 rm -f conftest.
$ac_objext conftest
$ac_exeext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15070 (eval $ac_link) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try
='test -s conftest$ac_exeext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_cv_lib_des425_des_cbc_encrypt
=yes
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.
$ac_ext >&5
15085 ac_cv_lib_des425_des_cbc_encrypt
=no
15087 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15088 LIBS
=$ac_check_lib_save_LIBS
15090 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15091 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15092 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15093 cat >>confdefs.h
<<_ACEOF
15094 #define HAVE_LIBDES425 1
15097 LIBS
="-ldes425 $LIBS"
15101 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15102 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15103 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 ac_check_lib_save_LIBS
=$LIBS
15108 cat >conftest.
$ac_ext <<_ACEOF
15109 #line $LINENO "configure"
15112 cat confdefs.h
>>conftest.
$ac_ext
15113 cat >>conftest.
$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15116 /* Override any gcc2 internal prototype to avoid an error. */
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15122 char des_cbc_encrypt ();
15126 des_cbc_encrypt ();
15131 rm -f conftest.
$ac_objext conftest
$ac_exeext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133 (eval $ac_link) 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try
='test -s conftest$ac_exeext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 ac_cv_lib_des_des_cbc_encrypt
=yes
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.
$ac_ext >&5
15148 ac_cv_lib_des_des_cbc_encrypt
=no
15150 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15151 LIBS
=$ac_check_lib_save_LIBS
15153 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15154 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15155 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15156 cat >>confdefs.h
<<_ACEOF
15157 #define HAVE_LIBDES 1
15167 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15168 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15169 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 ac_check_lib_save_LIBS
=$LIBS
15173 LIBS
="-lkrb4 $LIBS"
15174 cat >conftest.
$ac_ext <<_ACEOF
15175 #line $LINENO "configure"
15178 cat confdefs.h
>>conftest.
$ac_ext
15179 cat >>conftest.
$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15182 /* Override any gcc2 internal prototype to avoid an error. */
15186 /* We use char because int might match the return type of a gcc2
15187 builtin and then its argument prototype would still apply. */
15188 char krb_get_cred ();
15197 rm -f conftest.
$ac_objext conftest
$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199 (eval $ac_link) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } &&
15203 { ac_try
='test -s conftest$ac_exeext'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }; then
15209 ac_cv_lib_krb4_krb_get_cred
=yes
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.
$ac_ext >&5
15214 ac_cv_lib_krb4_krb_get_cred
=no
15216 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15217 LIBS
=$ac_check_lib_save_LIBS
15219 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15220 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15221 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15222 cat >>confdefs.h
<<_ACEOF
15223 #define HAVE_LIBKRB4 1
15226 LIBS
="-lkrb4 $LIBS"
15230 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15231 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15232 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 ac_check_lib_save_LIBS
=$LIBS
15237 cat >conftest.
$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15241 cat confdefs.h
>>conftest.
$ac_ext
15242 cat >>conftest.
$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 /* Override any gcc2 internal prototype to avoid an error. */
15249 /* We use char because int might match the return type of a gcc2
15250 builtin and then its argument prototype would still apply. */
15251 char krb_get_cred ();
15260 rm -f conftest.
$ac_objext conftest
$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try
='test -s conftest$ac_exeext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 ac_cv_lib_krb_krb_get_cred
=yes
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.
$ac_ext >&5
15277 ac_cv_lib_krb_krb_get_cred
=no
15279 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15280 LIBS
=$ac_check_lib_save_LIBS
15282 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15283 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15284 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15285 cat >>confdefs.h
<<_ACEOF
15286 #define HAVE_LIBKRB 1
15297 if test "${with_kerberos5+set}" = set; then
15299 for ac_header
in krb5.h
15301 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15303 echo "$as_me:$LINENO: checking for $ac_header" >&5
15304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15311 # Is the header compilable?
15312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15314 cat >conftest.
$ac_ext <<_ACEOF
15315 #line $LINENO "configure"
15318 cat confdefs.h
>>conftest.
$ac_ext
15319 cat >>conftest.
$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 $ac_includes_default
15322 #include <$ac_header>
15324 rm -f conftest.
$ac_objext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15326 (eval $ac_compile) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try
='test -s conftest.$ac_objext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_header_compiler
=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.
$ac_ext >&5
15341 ac_header_compiler
=no
15343 rm -f conftest.
$ac_objext conftest.
$ac_ext
15344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15345 echo "${ECHO_T}$ac_header_compiler" >&6
15347 # Is the header present?
15348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15350 cat >conftest.
$ac_ext <<_ACEOF
15351 #line $LINENO "configure"
15354 cat confdefs.h
>>conftest.
$ac_ext
15355 cat >>conftest.
$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 #include <$ac_header>
15359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15360 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15362 grep -v '^ *+' conftest.er1
>conftest.err
15364 cat conftest.err
>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } >/dev
/null
; then
15367 if test -s conftest.err
; then
15368 ac_cpp_err
=$ac_c_preproc_warn_flag
15375 if test -z "$ac_cpp_err"; then
15376 ac_header_preproc
=yes
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.
$ac_ext >&5
15381 ac_header_preproc
=no
15383 rm -f conftest.err conftest.
$ac_ext
15384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15385 echo "${ECHO_T}$ac_header_preproc" >&6
15387 # So? What about this header?
15388 case $ac_header_compiler:$ac_header_preproc in
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15396 ## ------------------------------------ ##
15397 ## Report this to bug-autoconf@gnu.org. ##
15398 ## ------------------------------------ ##
15401 sed "s/^/$as_me: WARNING: /" >&2
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15412 ## ------------------------------------ ##
15413 ## Report this to bug-autoconf@gnu.org. ##
15414 ## ------------------------------------ ##
15417 sed "s/^/$as_me: WARNING: /" >&2
15420 echo "$as_me:$LINENO: checking for $ac_header" >&5
15421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 eval "$as_ac_Header=$ac_header_preproc"
15427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15432 cat >>confdefs.h
<<_ACEOF
15433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15442 for ac_header
in des.h
15444 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15446 echo "$as_me:$LINENO: checking for $ac_header" >&5
15447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15454 # Is the header compilable?
15455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15457 cat >conftest.
$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15461 cat confdefs.h
>>conftest.
$ac_ext
15462 cat >>conftest.
$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 $ac_includes_default
15465 #include <$ac_header>
15467 rm -f conftest.
$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469 (eval $ac_compile) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try
='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 ac_header_compiler
=yes
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.
$ac_ext >&5
15484 ac_header_compiler
=no
15486 rm -f conftest.
$ac_objext conftest.
$ac_ext
15487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488 echo "${ECHO_T}$ac_header_compiler" >&6
15490 # Is the header present?
15491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15493 cat >conftest.
$ac_ext <<_ACEOF
15494 #line $LINENO "configure"
15497 cat confdefs.h
>>conftest.
$ac_ext
15498 cat >>conftest.
$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 #include <$ac_header>
15502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15503 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15505 grep -v '^ *+' conftest.er1
>conftest.err
15507 cat conftest.err
>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } >/dev
/null
; then
15510 if test -s conftest.err
; then
15511 ac_cpp_err
=$ac_c_preproc_warn_flag
15518 if test -z "$ac_cpp_err"; then
15519 ac_header_preproc
=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.
$ac_ext >&5
15524 ac_header_preproc
=no
15526 rm -f conftest.err conftest.
$ac_ext
15527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15528 echo "${ECHO_T}$ac_header_preproc" >&6
15530 # So? What about this header?
15531 case $ac_header_compiler:$ac_header_preproc in
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15539 ## ------------------------------------ ##
15540 ## Report this to bug-autoconf@gnu.org. ##
15541 ## ------------------------------------ ##
15544 sed "s/^/$as_me: WARNING: /" >&2
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15555 ## ------------------------------------ ##
15556 ## Report this to bug-autoconf@gnu.org. ##
15557 ## ------------------------------------ ##
15560 sed "s/^/$as_me: WARNING: /" >&2
15563 echo "$as_me:$LINENO: checking for $ac_header" >&5
15564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 eval "$as_ac_Header=$ac_header_preproc"
15570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15575 cat >>confdefs.h
<<_ACEOF
15576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15581 for ac_header
in kerberosIV
/des.h
15583 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15593 # Is the header compilable?
15594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15596 cat >conftest.
$ac_ext <<_ACEOF
15597 #line $LINENO "configure"
15600 cat confdefs.h
>>conftest.
$ac_ext
15601 cat >>conftest.
$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15603 $ac_includes_default
15604 #include <$ac_header>
15606 rm -f conftest.
$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try
='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_header_compiler
=yes
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.
$ac_ext >&5
15623 ac_header_compiler
=no
15625 rm -f conftest.
$ac_objext conftest.
$ac_ext
15626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627 echo "${ECHO_T}$ac_header_compiler" >&6
15629 # Is the header present?
15630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15632 cat >conftest.
$ac_ext <<_ACEOF
15633 #line $LINENO "configure"
15636 cat confdefs.h
>>conftest.
$ac_ext
15637 cat >>conftest.
$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 #include <$ac_header>
15641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15644 grep -v '^ *+' conftest.er1
>conftest.err
15646 cat conftest.err
>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } >/dev
/null
; then
15649 if test -s conftest.err
; then
15650 ac_cpp_err
=$ac_c_preproc_warn_flag
15657 if test -z "$ac_cpp_err"; then
15658 ac_header_preproc
=yes
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.
$ac_ext >&5
15663 ac_header_preproc
=no
15665 rm -f conftest.err conftest.
$ac_ext
15666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15667 echo "${ECHO_T}$ac_header_preproc" >&6
15669 # So? What about this header?
15670 case $ac_header_compiler:$ac_header_preproc in
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15678 ## ------------------------------------ ##
15679 ## Report this to bug-autoconf@gnu.org. ##
15680 ## ------------------------------------ ##
15683 sed "s/^/$as_me: WARNING: /" >&2
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15694 ## ------------------------------------ ##
15695 ## Report this to bug-autoconf@gnu.org. ##
15696 ## ------------------------------------ ##
15699 sed "s/^/$as_me: WARNING: /" >&2
15702 echo "$as_me:$LINENO: checking for $ac_header" >&5
15703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 eval "$as_ac_Header=$ac_header_preproc"
15709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15714 cat >>confdefs.h
<<_ACEOF
15715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15720 for ac_header
in kerberos
/des.h
15722 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724 echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15732 # Is the header compilable?
15733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15735 cat >conftest.
$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15739 cat confdefs.h
>>conftest.
$ac_ext
15740 cat >>conftest.
$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 $ac_includes_default
15743 #include <$ac_header>
15745 rm -f conftest.
$ac_objext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try
='test -s conftest.$ac_objext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_header_compiler
=yes
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.
$ac_ext >&5
15762 ac_header_compiler
=no
15764 rm -f conftest.
$ac_objext conftest.
$ac_ext
15765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15766 echo "${ECHO_T}$ac_header_compiler" >&6
15768 # Is the header present?
15769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15771 cat >conftest.
$ac_ext <<_ACEOF
15772 #line $LINENO "configure"
15775 cat confdefs.h
>>conftest.
$ac_ext
15776 cat >>conftest.
$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 #include <$ac_header>
15780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15781 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15783 grep -v '^ *+' conftest.er1
>conftest.err
15785 cat conftest.err
>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } >/dev
/null
; then
15788 if test -s conftest.err
; then
15789 ac_cpp_err
=$ac_c_preproc_warn_flag
15796 if test -z "$ac_cpp_err"; then
15797 ac_header_preproc
=yes
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.
$ac_ext >&5
15802 ac_header_preproc
=no
15804 rm -f conftest.err conftest.
$ac_ext
15805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15806 echo "${ECHO_T}$ac_header_preproc" >&6
15808 # So? What about this header?
15809 case $ac_header_compiler:$ac_header_preproc in
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15817 ## ------------------------------------ ##
15818 ## Report this to bug-autoconf@gnu.org. ##
15819 ## ------------------------------------ ##
15822 sed "s/^/$as_me: WARNING: /" >&2
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15833 ## ------------------------------------ ##
15834 ## Report this to bug-autoconf@gnu.org. ##
15835 ## ------------------------------------ ##
15838 sed "s/^/$as_me: WARNING: /" >&2
15841 echo "$as_me:$LINENO: checking for $ac_header" >&5
15842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 eval "$as_ac_Header=$ac_header_preproc"
15848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15853 cat >>confdefs.h
<<_ACEOF
15854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15870 for ac_header
in krb.h
15872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15874 echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15882 # Is the header compilable?
15883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15885 cat >conftest.
$ac_ext <<_ACEOF
15886 #line $LINENO "configure"
15889 cat confdefs.h
>>conftest.
$ac_ext
15890 cat >>conftest.
$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <$ac_header>
15895 rm -f conftest.
$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897 (eval $ac_compile) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try
='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler
=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.
$ac_ext >&5
15912 ac_header_compiler
=no
15914 rm -f conftest.
$ac_objext conftest.
$ac_ext
15915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916 echo "${ECHO_T}$ac_header_compiler" >&6
15918 # Is the header present?
15919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15921 cat >conftest.
$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15925 cat confdefs.h
>>conftest.
$ac_ext
15926 cat >>conftest.
$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 #include <$ac_header>
15930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15931 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15933 grep -v '^ *+' conftest.er1
>conftest.err
15935 cat conftest.err
>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } >/dev
/null
; then
15938 if test -s conftest.err
; then
15939 ac_cpp_err
=$ac_c_preproc_warn_flag
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc
=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15952 ac_header_preproc
=no
15954 rm -f conftest.err conftest.
$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6
15958 # So? What about this header?
15959 case $ac_header_compiler:$ac_header_preproc in
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15967 ## ------------------------------------ ##
15968 ## Report this to bug-autoconf@gnu.org. ##
15969 ## ------------------------------------ ##
15972 sed "s/^/$as_me: WARNING: /" >&2
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15983 ## ------------------------------------ ##
15984 ## Report this to bug-autoconf@gnu.org. ##
15985 ## ------------------------------------ ##
15988 sed "s/^/$as_me: WARNING: /" >&2
15991 echo "$as_me:$LINENO: checking for $ac_header" >&5
15992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 eval "$as_ac_Header=$ac_header_preproc"
15998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16003 cat >>confdefs.h
<<_ACEOF
16004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16009 for ac_header
in kerberosIV
/krb.h
16011 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16013 echo "$as_me:$LINENO: checking for $ac_header" >&5
16014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16021 # Is the header compilable?
16022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16024 cat >conftest.
$ac_ext <<_ACEOF
16025 #line $LINENO "configure"
16028 cat confdefs.h
>>conftest.
$ac_ext
16029 cat >>conftest.
$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 $ac_includes_default
16032 #include <$ac_header>
16034 rm -f conftest.
$ac_objext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
16040 { ac_try
='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_header_compiler
=yes
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.
$ac_ext >&5
16051 ac_header_compiler
=no
16053 rm -f conftest.
$ac_objext conftest.
$ac_ext
16054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16055 echo "${ECHO_T}$ac_header_compiler" >&6
16057 # Is the header present?
16058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16060 cat >conftest.
$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16064 cat confdefs.h
>>conftest.
$ac_ext
16065 cat >>conftest.
$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <$ac_header>
16069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16070 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16072 grep -v '^ *+' conftest.er1
>conftest.err
16074 cat conftest.err
>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } >/dev
/null
; then
16077 if test -s conftest.err
; then
16078 ac_cpp_err
=$ac_c_preproc_warn_flag
16085 if test -z "$ac_cpp_err"; then
16086 ac_header_preproc
=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.
$ac_ext >&5
16091 ac_header_preproc
=no
16093 rm -f conftest.err conftest.
$ac_ext
16094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6
16097 # So? What about this header?
16098 case $ac_header_compiler:$ac_header_preproc in
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16106 ## ------------------------------------ ##
16107 ## Report this to bug-autoconf@gnu.org. ##
16108 ## ------------------------------------ ##
16111 sed "s/^/$as_me: WARNING: /" >&2
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16122 ## ------------------------------------ ##
16123 ## Report this to bug-autoconf@gnu.org. ##
16124 ## ------------------------------------ ##
16127 sed "s/^/$as_me: WARNING: /" >&2
16130 echo "$as_me:$LINENO: checking for $ac_header" >&5
16131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 eval "$as_ac_Header=$ac_header_preproc"
16137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16142 cat >>confdefs.h
<<_ACEOF
16143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16148 for ac_header
in kerberos
/krb.h
16150 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16152 echo "$as_me:$LINENO: checking for $ac_header" >&5
16153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16160 # Is the header compilable?
16161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16163 cat >conftest.
$ac_ext <<_ACEOF
16164 #line $LINENO "configure"
16167 cat confdefs.h
>>conftest.
$ac_ext
16168 cat >>conftest.
$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 $ac_includes_default
16171 #include <$ac_header>
16173 rm -f conftest.
$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try
='test -s conftest.$ac_objext'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_header_compiler
=yes
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.
$ac_ext >&5
16190 ac_header_compiler
=no
16192 rm -f conftest.
$ac_objext conftest.
$ac_ext
16193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16194 echo "${ECHO_T}$ac_header_compiler" >&6
16196 # Is the header present?
16197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16199 cat >conftest.
$ac_ext <<_ACEOF
16200 #line $LINENO "configure"
16203 cat confdefs.h
>>conftest.
$ac_ext
16204 cat >>conftest.
$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 #include <$ac_header>
16208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16209 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16211 grep -v '^ *+' conftest.er1
>conftest.err
16213 cat conftest.err
>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } >/dev
/null
; then
16216 if test -s conftest.err
; then
16217 ac_cpp_err
=$ac_c_preproc_warn_flag
16224 if test -z "$ac_cpp_err"; then
16225 ac_header_preproc
=yes
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.
$ac_ext >&5
16230 ac_header_preproc
=no
16232 rm -f conftest.err conftest.
$ac_ext
16233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16234 echo "${ECHO_T}$ac_header_preproc" >&6
16236 # So? What about this header?
16237 case $ac_header_compiler:$ac_header_preproc in
16239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16245 ## ------------------------------------ ##
16246 ## Report this to bug-autoconf@gnu.org. ##
16247 ## ------------------------------------ ##
16250 sed "s/^/$as_me: WARNING: /" >&2
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16261 ## ------------------------------------ ##
16262 ## Report this to bug-autoconf@gnu.org. ##
16263 ## ------------------------------------ ##
16266 sed "s/^/$as_me: WARNING: /" >&2
16269 echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 eval "$as_ac_Header=$ac_header_preproc"
16276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16281 cat >>confdefs.h
<<_ACEOF
16282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16299 for ac_header
in com_err.h
16301 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16303 echo "$as_me:$LINENO: checking for $ac_header" >&5
16304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16311 # Is the header compilable?
16312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16314 cat >conftest.
$ac_ext <<_ACEOF
16315 #line $LINENO "configure"
16318 cat confdefs.h
>>conftest.
$ac_ext
16319 cat >>conftest.
$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 $ac_includes_default
16322 #include <$ac_header>
16324 rm -f conftest.
$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try
='test -s conftest.$ac_objext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 ac_header_compiler
=yes
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.
$ac_ext >&5
16341 ac_header_compiler
=no
16343 rm -f conftest.
$ac_objext conftest.
$ac_ext
16344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16345 echo "${ECHO_T}$ac_header_compiler" >&6
16347 # Is the header present?
16348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16350 cat >conftest.
$ac_ext <<_ACEOF
16351 #line $LINENO "configure"
16354 cat confdefs.h
>>conftest.
$ac_ext
16355 cat >>conftest.
$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 #include <$ac_header>
16359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16360 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16362 grep -v '^ *+' conftest.er1
>conftest.err
16364 cat conftest.err
>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } >/dev
/null
; then
16367 if test -s conftest.err
; then
16368 ac_cpp_err
=$ac_c_preproc_warn_flag
16375 if test -z "$ac_cpp_err"; then
16376 ac_header_preproc
=yes
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.
$ac_ext >&5
16381 ac_header_preproc
=no
16383 rm -f conftest.err conftest.
$ac_ext
16384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16385 echo "${ECHO_T}$ac_header_preproc" >&6
16387 # So? What about this header?
16388 case $ac_header_compiler:$ac_header_preproc in
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16396 ## ------------------------------------ ##
16397 ## Report this to bug-autoconf@gnu.org. ##
16398 ## ------------------------------------ ##
16401 sed "s/^/$as_me: WARNING: /" >&2
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16412 ## ------------------------------------ ##
16413 ## Report this to bug-autoconf@gnu.org. ##
16414 ## ------------------------------------ ##
16417 sed "s/^/$as_me: WARNING: /" >&2
16420 echo "$as_me:$LINENO: checking for $ac_header" >&5
16421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 eval "$as_ac_Header=$ac_header_preproc"
16427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16432 cat >>confdefs.h
<<_ACEOF
16433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16442 # Solaris requires -lintl if you want strerror (which calls dgettext)
16443 # to return localized messages.
16445 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16446 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16447 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 ac_check_lib_save_LIBS
=$LIBS
16451 LIBS
="-lintl $LIBS"
16452 cat >conftest.
$ac_ext <<_ACEOF
16453 #line $LINENO "configure"
16456 cat confdefs.h
>>conftest.
$ac_ext
16457 cat >>conftest.
$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16460 /* Override any gcc2 internal prototype to avoid an error. */
16464 /* We use char because int might match the return type of a gcc2
16465 builtin and then its argument prototype would still apply. */
16475 rm -f conftest.
$ac_objext conftest
$ac_exeext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477 (eval $ac_link) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try
='test -s conftest$ac_exeext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_lib_intl_dgettext
=yes
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.
$ac_ext >&5
16492 ac_cv_lib_intl_dgettext
=no
16494 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16495 LIBS
=$ac_check_lib_save_LIBS
16497 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16498 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16499 if test $ac_cv_lib_intl_dgettext = yes; then
16500 cat >>confdefs.h
<<_ACEOF
16501 #define HAVE_LIBINTL 1
16504 LIBS
="-lintl $LIBS"
16509 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16510 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16511 if test "${emacs_cv_localtime_cache+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 if test x
$ac_cv_func_tzset = xyes
; then
16515 if test "$cross_compiling" = yes; then
16516 # If we have tzset, assume the worst when cross-compiling.
16517 emacs_cv_localtime_cache
=yes
16519 cat >conftest.
$ac_ext <<_ACEOF
16520 #line $LINENO "configure"
16523 cat confdefs.h
>>conftest.
$ac_ext
16524 cat >>conftest.
$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16527 extern char **environ;
16531 for (to = from = environ; (*to = *from); from++)
16532 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16535 char TZ_GMT0[] = "TZ=GMT0";
16536 char TZ_PST8[] = "TZ=PST8";
16539 time_t now = time ((time_t *) 0);
16540 int hour_GMT0, hour_unset;
16541 if (putenv (TZ_GMT0) != 0)
16543 hour_GMT0 = localtime (&now)->tm_hour;
16545 hour_unset = localtime (&now)->tm_hour;
16546 if (putenv (TZ_PST8) != 0)
16548 if (localtime (&now)->tm_hour == hour_GMT0)
16551 if (localtime (&now)->tm_hour != hour_unset)
16556 rm -f conftest
$ac_exeext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16558 (eval $ac_link) 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 emacs_cv_localtime_cache
=no
16569 echo "$as_me: program exited with status $ac_status" >&5
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.
$ac_ext >&5
16573 ( exit $ac_status )
16574 emacs_cv_localtime_cache
=yes
16576 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16579 # If we lack tzset, report that localtime does not cache TZ,
16580 # since we can't invalidate the cache if we don't have tzset.
16581 emacs_cv_localtime_cache
=no
16584 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16585 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16586 if test $emacs_cv_localtime_cache = yes; then
16588 cat >>confdefs.h
<<\_ACEOF
16589 #define LOCALTIME_CACHE 1
16594 if test "x$HAVE_TIMEVAL" = xyes
; then
16596 for ac_func
in gettimeofday
16598 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16599 echo "$as_me:$LINENO: checking for $ac_func" >&5
16600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16601 if eval "test \"\${$as_ac_var+set}\" = set"; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 cat >conftest.
$ac_ext <<_ACEOF
16605 #line $LINENO "configure"
16608 cat confdefs.h
>>conftest.
$ac_ext
16609 cat >>conftest.
$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 /* System header to define __stub macros and hopefully few prototypes,
16612 which can conflict with char $ac_func (); below.
16613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16614 <limits.h> exists even on freestanding compilers. */
16616 # include <limits.h>
16618 # include <assert.h>
16620 /* Override any gcc2 internal prototype to avoid an error. */
16625 /* We use char because int might match the return type of a gcc2
16626 builtin and then its argument prototype would still apply. */
16628 /* The GNU C library defines this for functions which it implements
16629 to always fail with ENOSYS. Some functions are actually named
16630 something starting with __ and the normal name is an alias. */
16631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16634 char (*f) () = $ac_func;
16643 return f != $ac_func;
16648 rm -f conftest.
$ac_objext conftest
$ac_exeext
16649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16650 (eval $ac_link) 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
16654 { ac_try
='test -s conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 eval "$as_ac_var=yes"
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.
$ac_ext >&5
16665 eval "$as_ac_var=no"
16667 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16671 if test `eval echo '${'$as_ac_var'}'` = yes; then
16672 cat >>confdefs.h
<<_ACEOF
16673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16679 if test $ac_cv_func_gettimeofday = yes; then
16680 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16681 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16682 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 cat >conftest.
$ac_ext <<_ACEOF
16686 #line $LINENO "configure"
16689 cat confdefs.h
>>conftest.
$ac_ext
16690 cat >>conftest.
$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16693 #ifdef TIME_WITH_SYS_TIME
16694 #include <sys/time.h>
16697 #ifdef HAVE_SYS_TIME_H
16698 #include <sys/time.h>
16706 struct timeval time;
16707 gettimeofday (&time, 0);
16712 rm -f conftest.
$ac_objext
16713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try
='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 emacs_cv_gettimeofday_two_arguments
=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.
$ac_ext >&5
16729 emacs_cv_gettimeofday_two_arguments
=no
16731 rm -f conftest.
$ac_objext conftest.
$ac_ext
16733 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16734 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16735 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16737 cat >>confdefs.h
<<\_ACEOF
16738 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16745 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16746 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16747 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16748 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 cat >conftest.
$ac_ext <<_ACEOF
16752 #line $LINENO "configure"
16755 cat confdefs.h
>>conftest.
$ac_ext
16756 cat >>conftest.
$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 #include <sys/types.h>
16759 #include <$ac_cv_struct_tm>
16765 static struct tm ac_aggr;
16766 if (ac_aggr.tm_zone)
16772 rm -f conftest.
$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774 (eval $ac_compile) 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try
='test -s conftest.$ac_objext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_member_struct_tm_tm_zone
=yes
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.
$ac_ext >&5
16789 cat >conftest.
$ac_ext <<_ACEOF
16790 #line $LINENO "configure"
16793 cat confdefs.h
>>conftest.
$ac_ext
16794 cat >>conftest.
$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 #include <sys/types.h>
16797 #include <$ac_cv_struct_tm>
16803 static struct tm ac_aggr;
16804 if (sizeof ac_aggr.tm_zone)
16810 rm -f conftest.
$ac_objext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812 (eval $ac_compile) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try
='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_member_struct_tm_tm_zone
=yes
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.
$ac_ext >&5
16827 ac_cv_member_struct_tm_tm_zone
=no
16829 rm -f conftest.
$ac_objext conftest.
$ac_ext
16831 rm -f conftest.
$ac_objext conftest.
$ac_ext
16833 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16834 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16835 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16837 cat >>confdefs.h
<<_ACEOF
16838 #define HAVE_STRUCT_TM_TM_ZONE 1
16844 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16846 cat >>confdefs.h
<<\_ACEOF
16847 #define HAVE_TM_ZONE 1
16851 echo "$as_me:$LINENO: checking for tzname" >&5
16852 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16853 if test "${ac_cv_var_tzname+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 cat >conftest.
$ac_ext <<_ACEOF
16857 #line $LINENO "configure"
16860 cat confdefs.h
>>conftest.
$ac_ext
16861 cat >>conftest.
$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16864 #ifndef tzname /* For SGI. */
16865 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16876 rm -f conftest.
$ac_objext conftest
$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try
='test -s conftest$ac_exeext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_var_tzname
=yes
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.
$ac_ext >&5
16893 ac_cv_var_tzname
=no
16895 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16898 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16899 if test $ac_cv_var_tzname = yes; then
16901 cat >>confdefs.h
<<\_ACEOF
16902 #define HAVE_TZNAME 1
16909 if test "$ac_cv_func_gettimeofday" = yes; then
16910 echo "$as_me:$LINENO: checking for struct timezone" >&5
16911 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16912 if test "${emacs_cv_struct_timezone+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 cat >conftest.
$ac_ext <<_ACEOF
16916 #line $LINENO "configure"
16919 cat confdefs.h
>>conftest.
$ac_ext
16920 cat >>conftest.
$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 #include <sys/time.h>
16926 struct timezone tz;
16931 rm -f conftest.
$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try
='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 if test "$cross_compiling" = yes; then
16944 emacs_cv_struct_timezone
=yes
16946 cat >conftest.
$ac_ext <<_ACEOF
16947 #line $LINENO "configure"
16950 cat confdefs.h
>>conftest.
$ac_ext
16951 cat >>conftest.
$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16954 #ifdef TIME_WITH_SYS_TIME
16955 #include <sys/time.h>
16958 #ifdef HAVE_SYS_TIME_H
16959 #include <sys/time.h>
16965 struct timeval time;
16966 struct timezone dummy;
16967 exit (gettimeofday (&time, &dummy));
16970 rm -f conftest
$ac_exeext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; }; then
16981 emacs_cv_struct_timezone
=yes
16983 echo "$as_me: program exited with status $ac_status" >&5
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.
$ac_ext >&5
16987 ( exit $ac_status )
16988 emacs_cv_struct_timezone
=no
16990 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.
$ac_ext >&5
16996 emacs_cv_struct_timezone
=no
16998 rm -f conftest.
$ac_objext conftest.
$ac_ext
17000 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17001 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17005 echo "$as_me:$LINENO: checking for socket" >&5
17006 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17007 if test "${ac_cv_func_socket+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 cat >conftest.
$ac_ext <<_ACEOF
17011 #line $LINENO "configure"
17014 cat confdefs.h
>>conftest.
$ac_ext
17015 cat >>conftest.
$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17017 /* System header to define __stub macros and hopefully few prototypes,
17018 which can conflict with char socket (); below.
17019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17020 <limits.h> exists even on freestanding compilers. */
17022 # include <limits.h>
17024 # include <assert.h>
17026 /* Override any gcc2 internal prototype to avoid an error. */
17031 /* We use char because int might match the return type of a gcc2
17032 builtin and then its argument prototype would still apply. */
17034 /* The GNU C library defines this for functions which it implements
17035 to always fail with ENOSYS. Some functions are actually named
17036 something starting with __ and the normal name is an alias. */
17037 #if defined (__stub_socket) || defined (__stub___socket)
17040 char (*f) () = socket;
17049 return f != socket;
17054 rm -f conftest.
$ac_objext conftest
$ac_exeext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056 (eval $ac_link) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try
='test -s conftest$ac_exeext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_func_socket
=yes
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.
$ac_ext >&5
17071 ac_cv_func_socket
=no
17073 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17075 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17076 echo "${ECHO_T}$ac_cv_func_socket" >&6
17077 if test $ac_cv_func_socket = yes; then
17083 if test $ok_so_far = yes; then
17084 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17085 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17086 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17087 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17091 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17093 # Is the header compilable?
17094 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17095 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17096 cat >conftest.
$ac_ext <<_ACEOF
17097 #line $LINENO "configure"
17100 cat confdefs.h
>>conftest.
$ac_ext
17101 cat >>conftest.
$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 $ac_includes_default
17104 #include <netinet/in.h>
17106 rm -f conftest.
$ac_objext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try
='test -s conftest.$ac_objext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 ac_header_compiler
=yes
17120 echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.
$ac_ext >&5
17123 ac_header_compiler
=no
17125 rm -f conftest.
$ac_objext conftest.
$ac_ext
17126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17127 echo "${ECHO_T}$ac_header_compiler" >&6
17129 # Is the header present?
17130 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17131 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17132 cat >conftest.
$ac_ext <<_ACEOF
17133 #line $LINENO "configure"
17136 cat confdefs.h
>>conftest.
$ac_ext
17137 cat >>conftest.
$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 #include <netinet/in.h>
17141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17144 grep -v '^ *+' conftest.er1
>conftest.err
17146 cat conftest.err
>&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } >/dev
/null
; then
17149 if test -s conftest.err
; then
17150 ac_cpp_err
=$ac_c_preproc_warn_flag
17157 if test -z "$ac_cpp_err"; then
17158 ac_header_preproc
=yes
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.
$ac_ext >&5
17163 ac_header_preproc
=no
17165 rm -f conftest.err conftest.
$ac_ext
17166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17167 echo "${ECHO_T}$ac_header_preproc" >&6
17169 # So? What about this header?
17170 case $ac_header_compiler:$ac_header_preproc in
17172 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17173 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17175 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17178 ## ------------------------------------ ##
17179 ## Report this to bug-autoconf@gnu.org. ##
17180 ## ------------------------------------ ##
17183 sed "s/^/$as_me: WARNING: /" >&2
17186 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17187 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17188 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17189 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17194 ## ------------------------------------ ##
17195 ## Report this to bug-autoconf@gnu.org. ##
17196 ## ------------------------------------ ##
17199 sed "s/^/$as_me: WARNING: /" >&2
17202 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17203 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17204 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 ac_cv_header_netinet_in_h
=$ac_header_preproc
17209 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17210 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17213 if test $ac_cv_header_netinet_in_h = yes; then
17221 if test $ok_so_far = yes; then
17222 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17223 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17224 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17225 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17229 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17231 # Is the header compilable?
17232 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17233 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17234 cat >conftest.
$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17238 cat confdefs.h
>>conftest.
$ac_ext
17239 cat >>conftest.
$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 $ac_includes_default
17242 #include <arpa/inet.h>
17244 rm -f conftest.
$ac_objext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17246 (eval $ac_compile) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try
='test -s conftest.$ac_objext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_header_compiler
=yes
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.
$ac_ext >&5
17261 ac_header_compiler
=no
17263 rm -f conftest.
$ac_objext conftest.
$ac_ext
17264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265 echo "${ECHO_T}$ac_header_compiler" >&6
17267 # Is the header present?
17268 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17269 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17270 cat >conftest.
$ac_ext <<_ACEOF
17271 #line $LINENO "configure"
17274 cat confdefs.h
>>conftest.
$ac_ext
17275 cat >>conftest.
$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277 #include <arpa/inet.h>
17279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17280 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17282 grep -v '^ *+' conftest.er1
>conftest.err
17284 cat conftest.err
>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } >/dev
/null
; then
17287 if test -s conftest.err
; then
17288 ac_cpp_err
=$ac_c_preproc_warn_flag
17295 if test -z "$ac_cpp_err"; then
17296 ac_header_preproc
=yes
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.
$ac_ext >&5
17301 ac_header_preproc
=no
17303 rm -f conftest.err conftest.
$ac_ext
17304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17305 echo "${ECHO_T}$ac_header_preproc" >&6
17307 # So? What about this header?
17308 case $ac_header_compiler:$ac_header_preproc in
17310 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17311 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17313 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17316 ## ------------------------------------ ##
17317 ## Report this to bug-autoconf@gnu.org. ##
17318 ## ------------------------------------ ##
17321 sed "s/^/$as_me: WARNING: /" >&2
17324 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17325 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17327 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17329 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17332 ## ------------------------------------ ##
17333 ## Report this to bug-autoconf@gnu.org. ##
17334 ## ------------------------------------ ##
17337 sed "s/^/$as_me: WARNING: /" >&2
17340 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17341 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17342 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17347 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17348 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17351 if test $ac_cv_header_arpa_inet_h = yes; then
17359 if test $ok_so_far = yes; then
17361 cat >>confdefs.h
<<\_ACEOF
17362 #define HAVE_INET_SOCKETS 1
17367 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
17369 cat >>confdefs.h
<<\_ACEOF
17370 #define HAVE_AIX_SMT_EXP 1
17375 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17376 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17377 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
17378 echo "$as_me:$LINENO: result: yes" >&5
17379 echo "${ECHO_T}yes" >&6
17381 cat >>confdefs.h
<<\_ACEOF
17382 #define HAVE_DEV_PTMX 1
17386 echo "$as_me:$LINENO: result: no" >&5
17387 echo "${ECHO_T}no" >&6
17390 echo "$as_me:$LINENO: checking for pid_t" >&5
17391 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17392 if test "${ac_cv_type_pid_t+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 cat >conftest.
$ac_ext <<_ACEOF
17396 #line $LINENO "configure"
17399 cat confdefs.h
>>conftest.
$ac_ext
17400 cat >>conftest.
$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 $ac_includes_default
17408 if (sizeof (pid_t))
17414 rm -f conftest.
$ac_objext
17415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17416 (eval $ac_compile) 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try
='test -s conftest.$ac_objext'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_type_pid_t
=yes
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.
$ac_ext >&5
17431 ac_cv_type_pid_t
=no
17433 rm -f conftest.
$ac_objext conftest.
$ac_ext
17435 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17436 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17437 if test $ac_cv_type_pid_t = yes; then
17441 cat >>confdefs.h
<<_ACEOF
17449 for ac_header
in unistd.h vfork.h
17451 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17453 echo "$as_me:$LINENO: checking for $ac_header" >&5
17454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17461 # Is the header compilable?
17462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17464 cat >conftest.
$ac_ext <<_ACEOF
17465 #line $LINENO "configure"
17468 cat confdefs.h
>>conftest.
$ac_ext
17469 cat >>conftest.
$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 $ac_includes_default
17472 #include <$ac_header>
17474 rm -f conftest.
$ac_objext
17475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17476 (eval $ac_compile) 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try
='test -s conftest.$ac_objext'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486 ac_header_compiler
=yes
17488 echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.
$ac_ext >&5
17491 ac_header_compiler
=no
17493 rm -f conftest.
$ac_objext conftest.
$ac_ext
17494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17495 echo "${ECHO_T}$ac_header_compiler" >&6
17497 # Is the header present?
17498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17500 cat >conftest.
$ac_ext <<_ACEOF
17501 #line $LINENO "configure"
17504 cat confdefs.h
>>conftest.
$ac_ext
17505 cat >>conftest.
$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 #include <$ac_header>
17509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17512 grep -v '^ *+' conftest.er1
>conftest.err
17514 cat conftest.err
>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } >/dev
/null
; then
17517 if test -s conftest.err
; then
17518 ac_cpp_err
=$ac_c_preproc_warn_flag
17525 if test -z "$ac_cpp_err"; then
17526 ac_header_preproc
=yes
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.
$ac_ext >&5
17531 ac_header_preproc
=no
17533 rm -f conftest.err conftest.
$ac_ext
17534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17535 echo "${ECHO_T}$ac_header_preproc" >&6
17537 # So? What about this header?
17538 case $ac_header_compiler:$ac_header_preproc in
17540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17546 ## ------------------------------------ ##
17547 ## Report this to bug-autoconf@gnu.org. ##
17548 ## ------------------------------------ ##
17551 sed "s/^/$as_me: WARNING: /" >&2
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17562 ## ------------------------------------ ##
17563 ## Report this to bug-autoconf@gnu.org. ##
17564 ## ------------------------------------ ##
17567 sed "s/^/$as_me: WARNING: /" >&2
17570 echo "$as_me:$LINENO: checking for $ac_header" >&5
17571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 eval "$as_ac_Header=$ac_header_preproc"
17577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17582 cat >>confdefs.h
<<_ACEOF
17583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17592 for ac_func
in fork vfork
17594 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17595 echo "$as_me:$LINENO: checking for $ac_func" >&5
17596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17597 if eval "test \"\${$as_ac_var+set}\" = set"; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 cat >conftest.
$ac_ext <<_ACEOF
17601 #line $LINENO "configure"
17604 cat confdefs.h
>>conftest.
$ac_ext
17605 cat >>conftest.
$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 /* System header to define __stub macros and hopefully few prototypes,
17608 which can conflict with char $ac_func (); below.
17609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17610 <limits.h> exists even on freestanding compilers. */
17612 # include <limits.h>
17614 # include <assert.h>
17616 /* Override any gcc2 internal prototype to avoid an error. */
17621 /* We use char because int might match the return type of a gcc2
17622 builtin and then its argument prototype would still apply. */
17624 /* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17630 char (*f) () = $ac_func;
17639 return f != $ac_func;
17644 rm -f conftest.
$ac_objext conftest
$ac_exeext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646 (eval $ac_link) 2>&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try
='test -s conftest$ac_exeext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 eval "$as_ac_var=yes"
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.
$ac_ext >&5
17661 eval "$as_ac_var=no"
17663 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17667 if test `eval echo '${'$as_ac_var'}'` = yes; then
17668 cat >>confdefs.h
<<_ACEOF
17669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17675 if test "x$ac_cv_func_fork" = xyes
; then
17676 echo "$as_me:$LINENO: checking for working fork" >&5
17677 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17678 if test "${ac_cv_func_fork_works+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 if test "$cross_compiling" = yes; then
17682 ac_cv_func_fork_works
=cross
17684 cat >conftest.
$ac_ext <<_ACEOF
17685 /* By Ruediger Kuhlmann. */
17686 #include <sys/types.h>
17688 # include <unistd.h>
17690 /* Some systems only have a dummy stub for fork() */
17698 rm -f conftest
$ac_exeext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17700 (eval $ac_link) 2>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_func_fork_works
=yes
17711 echo "$as_me: program exited with status $ac_status" >&5
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.
$ac_ext >&5
17715 ( exit $ac_status )
17716 ac_cv_func_fork_works
=no
17718 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17721 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17722 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17725 ac_cv_func_fork_works
=$ac_cv_func_fork
17727 if test "x$ac_cv_func_fork_works" = xcross
; then
17729 *-*-amigaos* |
*-*-msdosdjgpp*)
17730 # Override, as these systems have only a dummy fork() stub
17731 ac_cv_func_fork_works
=no
17734 ac_cv_func_fork_works
=yes
17737 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17738 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17740 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17741 if test "x$ac_cv_func_vfork" = xyes
; then
17742 echo "$as_me:$LINENO: checking for working vfork" >&5
17743 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17744 if test "${ac_cv_func_vfork_works+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 if test "$cross_compiling" = yes; then
17748 ac_cv_func_vfork_works
=cross
17750 cat >conftest.
$ac_ext <<_ACEOF
17751 #line $LINENO "configure"
17754 cat confdefs.h
>>conftest.
$ac_ext
17755 cat >>conftest.
$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757 /* Thanks to Paul Eggert for this test. */
17759 #include <stdlib.h>
17760 #include <sys/types.h>
17761 #include <sys/stat.h>
17762 #include <sys/wait.h>
17764 # include <unistd.h>
17767 # include <vfork.h>
17769 /* On some sparc systems, changes by the child to local and incoming
17770 argument registers are propagated back to the parent. The compiler
17771 is told about this with #include <vfork.h>, but some compilers
17772 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17773 static variable whose address is put into a register that is
17774 clobbered by the vfork. */
17777 sparc_address_test (int arg)
17779 sparc_address_test (arg) int arg;
17782 static pid_t child;
17800 pid_t parent = getpid ();
17803 sparc_address_test (0);
17808 /* Here is another test for sparc vfork register problems. This
17809 test uses lots of local variables, at least as many local
17810 variables as main has allocated so far including compiler
17811 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17812 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17813 reuse the register of parent for one of the local variables,
17814 since it will think that parent can't possibly be used any more
17815 in this routine. Assigning to the local variable will thus
17816 munge parent in the parent process. */
17818 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17819 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17820 /* Convince the compiler that p..p7 are live; otherwise, it might
17821 use the same hardware register for all 8 local variables. */
17822 if (p != p1 || p != p2 || p != p3 || p != p4
17823 || p != p5 || p != p6 || p != p7)
17826 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17827 from child file descriptors. If the child closes a descriptor
17828 before it execs or exits, this munges the parent's descriptor
17829 as well. Test for this by closing stdout in the child. */
17830 _exit(close(fileno(stdout)) != 0);
17835 while (wait(&status) != child)
17838 /* Was there some problem with vforking? */
17841 /* Did the child fail? (This shouldn't happen.) */
17844 /* Did the vfork/compiler bug occur? */
17845 || parent != getpid()
17847 /* Did the file descriptor bug occur? */
17848 || fstat(fileno(stdout), &st) != 0
17853 rm -f conftest
$ac_exeext
17854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17855 (eval $ac_link) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_cv_func_vfork_works
=yes
17866 echo "$as_me: program exited with status $ac_status" >&5
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.
$ac_ext >&5
17870 ( exit $ac_status )
17871 ac_cv_func_vfork_works
=no
17873 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17876 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17877 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17880 if test "x$ac_cv_func_fork_works" = xcross
; then
17881 ac_cv_func_vfork_works
=ac_cv_func_vfork
17882 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17883 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17886 if test "x$ac_cv_func_vfork_works" = xyes
; then
17888 cat >>confdefs.h
<<\_ACEOF
17889 #define HAVE_WORKING_VFORK 1
17894 cat >>confdefs.h
<<\_ACEOF
17899 if test "x$ac_cv_func_fork_works" = xyes
; then
17901 cat >>confdefs.h
<<\_ACEOF
17902 #define HAVE_WORKING_FORK 1
17908 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17909 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17910 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 cat >conftest.
$ac_ext <<_ACEOF
17914 #line $LINENO "configure"
17917 cat confdefs.h
>>conftest.
$ac_ext
17918 cat >>conftest.
$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 #include <langinfo.h>
17924 char* cs = nl_langinfo(CODESET);
17929 rm -f conftest.
$ac_objext conftest
$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try
='test -s conftest$ac_exeext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 emacs_cv_langinfo_codeset
=yes
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.
$ac_ext >&5
17946 emacs_cv_langinfo_codeset
=no
17948 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17951 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17952 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17953 if test $emacs_cv_langinfo_codeset = yes; then
17955 cat >>confdefs.h
<<\_ACEOF
17956 #define HAVE_LANGINFO_CODESET 1
17961 echo "$as_me:$LINENO: checking for size_t" >&5
17962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17963 if test "${ac_cv_type_size_t+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 cat >conftest.
$ac_ext <<_ACEOF
17967 #line $LINENO "configure"
17970 cat confdefs.h
>>conftest.
$ac_ext
17971 cat >>conftest.
$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17973 $ac_includes_default
17979 if (sizeof (size_t))
17985 rm -f conftest.
$ac_objext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try
='test -s conftest.$ac_objext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_cv_type_size_t
=yes
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.
$ac_ext >&5
18002 ac_cv_type_size_t
=no
18004 rm -f conftest.
$ac_objext conftest.
$ac_ext
18006 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18007 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18008 if test $ac_cv_type_size_t = yes; then
18010 cat >>confdefs.h
<<_ACEOF
18011 #define HAVE_SIZE_T 1
18018 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18019 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18020 if test "${ac_cv_type_mbstate_t+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 cat >conftest.
$ac_ext <<_ACEOF
18024 #line $LINENO "configure"
18027 cat confdefs.h
>>conftest.
$ac_ext
18028 cat >>conftest.
$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 $ac_includes_default
18031 # include <wchar.h>
18035 mbstate_t x; return sizeof x;
18040 rm -f conftest.
$ac_objext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18042 (eval $ac_compile) 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try
='test -s conftest.$ac_objext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_type_mbstate_t
=yes
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.
$ac_ext >&5
18057 ac_cv_type_mbstate_t
=no
18059 rm -f conftest.
$ac_objext conftest.
$ac_ext
18061 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18062 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18063 if test $ac_cv_type_mbstate_t = yes; then
18065 cat >>confdefs.h
<<\_ACEOF
18066 #define HAVE_MBSTATE_T 1
18071 cat >>confdefs.h
<<\_ACEOF
18072 #define mbstate_t int
18077 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18078 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18079 if test "${emacs_cv_c_restrict+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 cat >conftest.
$ac_ext <<_ACEOF
18083 #line $LINENO "configure"
18086 cat confdefs.h
>>conftest.
$ac_ext
18087 cat >>conftest.
$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 void fred (int *restrict x);
18098 rm -f conftest.
$ac_objext
18099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18100 (eval $ac_compile) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try
='test -s conftest.$ac_objext'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 emacs_cv_c_restrict
=yes
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.
$ac_ext >&5
18115 cat >conftest.
$ac_ext <<_ACEOF
18116 #line $LINENO "configure"
18119 cat confdefs.h
>>conftest.
$ac_ext
18120 cat >>conftest.
$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 void fred (int *__restrict x);
18131 rm -f conftest.
$ac_objext
18132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18133 (eval $ac_compile) 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try
='test -s conftest.$ac_objext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 emacs_cv_c_restrict
=__restrict
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.
$ac_ext >&5
18148 emacs_cv_c_restrict
=no
18150 rm -f conftest.
$ac_objext conftest.
$ac_ext
18152 rm -f conftest.
$ac_objext conftest.
$ac_ext
18154 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18155 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18156 case "$emacs_cv_c_restrict" in
18157 yes) emacs_restrict
=restrict
;;
18158 no
) emacs_restrict
="";;
18159 *) emacs_restrict
="$emacs_cv_c_restrict";;
18161 if test "$emacs_restrict" != __restrict
; then
18163 cat >>confdefs.h
<<_ACEOF
18164 #define __restrict $emacs_restrict
18169 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18170 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18171 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 cat >conftest.
$ac_ext <<_ACEOF
18175 #line $LINENO "configure"
18178 cat confdefs.h
>>conftest.
$ac_ext
18179 cat >>conftest.
$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 void fred (int x[__restrict]);
18190 rm -f conftest.
$ac_objext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192 (eval $ac_compile) 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try
='test -s conftest.$ac_objext'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 emacs_cv_c_restrict_arr
=yes
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.
$ac_ext >&5
18207 emacs_cv_c_restrict_arr
=no
18209 rm -f conftest.
$ac_objext conftest.
$ac_ext
18211 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18212 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18213 if test "$emacs_cv_c_restrict_arr" = yes; then
18215 cat >>confdefs.h
<<\_ACEOF
18216 #define __restrict_arr __restrict
18223 # Set up the CFLAGS for real compilation, so we can substitute it.
18224 CFLAGS
="$REAL_CFLAGS"
18225 CPPFLAGS
="$REAL_CPPFLAGS"
18227 #### Find out which version of Emacs this is.
18228 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18229 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18230 if test x
"${version}" = x
; then
18231 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18232 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18233 { (exit 1); exit 1; }; }
18236 ### Specify what sort of things we'll be editing into Makefile and config.h.
18237 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18273 cat >>confdefs.h
<<_ACEOF
18274 #define EMACS_CONFIGURATION "${canonical}"
18278 cat >>confdefs.h
<<_ACEOF
18279 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18283 cat >>confdefs.h
<<_ACEOF
18284 #define config_machfile "${machfile}"
18288 cat >>confdefs.h
<<_ACEOF
18289 #define config_opsysfile "${opsysfile}"
18293 cat >>confdefs.h
<<_ACEOF
18294 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18298 cat >>confdefs.h
<<_ACEOF
18299 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18303 cat >>confdefs.h
<<_ACEOF
18304 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18308 cat >>confdefs.h
<<_ACEOF
18309 #define UNEXEC_SRC ${UNEXEC_SRC}
18313 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18315 cat >>confdefs.h
<<\_ACEOF
18316 #define HAVE_X_WINDOWS 1
18320 if test "${USE_X_TOOLKIT}" != "none" ; then
18322 cat >>confdefs.h
<<\_ACEOF
18323 #define USE_X_TOOLKIT 1
18327 if test "${HAVE_X11}" = "yes" ; then
18329 cat >>confdefs.h
<<\_ACEOF
18334 if test "${HAVE_XFREE386}" = "yes" ; then
18336 cat >>confdefs.h
<<\_ACEOF
18337 #define HAVE_XFREE386 1
18341 if test "${HAVE_MENUS}" = "yes" ; then
18343 cat >>confdefs.h
<<\_ACEOF
18344 #define HAVE_MENUS 1
18348 if test "${GNU_MALLOC}" = "yes" ; then
18350 cat >>confdefs.h
<<\_ACEOF
18351 #define GNU_MALLOC 1
18355 if test "${REL_ALLOC}" = "yes" ; then
18357 cat >>confdefs.h
<<\_ACEOF
18358 #define REL_ALLOC 1
18367 #### Report on what we decided to do.
18368 #### Report GTK as a toolkit, even if it doesn't use Xt.
18369 #### It makes printing result more understandable as using GTK sets
18370 #### toolkit_scroll_bars to yes by default.
18371 if test "${HAVE_GTK}" = "yes"; then
18376 Configured for \`${canonical}'.
18378 Where should the build process find the source code? ${srcdir}
18379 What operating system and machine description files should Emacs use?
18380 \`${opsysfile}' and \`${machfile}'
18381 What compiler should emacs be built with? ${CC} ${CFLAGS}
18382 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18383 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18384 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18385 What window system should Emacs use? ${window_system}
18386 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18388 if test -n "${x_includes}"; then
18389 echo " Where do we find X Windows header files? ${x_includes}"
18391 echo " Where do we find X Windows header files? Standard dirs"
18393 if test -n "${x_libraries}"; then
18394 echo " Where do we find X Windows libraries? ${x_libraries}"
18396 echo " Where do we find X Windows libraries? Standard dirs"
18399 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18400 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18401 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18402 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18403 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18404 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18405 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18408 # Remove any trailing slashes in these variables.
18409 test "${prefix}" != NONE
&&
18410 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18411 test "${exec_prefix}" != NONE
&&
18412 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18414 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18415 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18416 ## from Makefile.c can correctly provide the arg `-traditional' to the
18419 cat >conftest.
$ac_ext <<_ACEOF
18420 #line $LINENO "configure"
18423 cat confdefs.h
>>conftest.
$ac_ext
18424 cat >>conftest.
$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18429 $EGREP "yes..yes" >/dev
/null
2>&1; then
18430 CPP_NEED_TRADITIONAL
=no
18432 CPP_NEED_TRADITIONAL
=yes
18437 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"
18438 ac_config_commands
="$ac_config_commands default"
18439 cat >confcache
<<\_ACEOF
18440 # This file is a shell script that caches the results of configure
18441 # tests run on this system so they can be shared between configure
18442 # scripts and configure runs, see configure's option --config-cache.
18443 # It is not useful on other systems. If it contains results you don't
18444 # want to keep, you may remove or edit it.
18446 # config.status only pays attention to the cache file if you give it
18447 # the --recheck option to rerun configure.
18449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18451 # following values.
18455 # The following way of writing the cache mishandles newlines in values,
18456 # but we know of no workaround that is simple, portable, and efficient.
18457 # So, don't put newlines in cache variables' values.
18458 # Ultrix sh set writes to stderr and can't be redirected directly,
18459 # and sets the high bit in the cache file unless we assign to the vars.
18462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18464 # `set' does not quote correctly, so add quotes (double-quote
18465 # substitution turns \\\\ into \\, and sed turns \\ into \).
18468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18471 # `set' quotes correctly as required by POSIX, so do not add quotes.
18473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18484 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18485 if test -w $cache_file; then
18486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18487 cat confcache
>$cache_file
18489 echo "not updating unwritable cache $cache_file"
18494 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18495 # Let make expand exec_prefix.
18496 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18500 # trailing colons and then remove the whole line if VPATH becomes empty
18501 # (actually we leave an empty line to preserve line numbers).
18502 if test "x$srcdir" = x.
; then
18503 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18504 s/:*\$(srcdir):*/:/;
18505 s/:*\${srcdir}:*/:/;
18507 s/^\([^=]*=[ ]*\):*/\1/;
18513 DEFS
=-DHAVE_CONFIG_H
18517 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18518 # 1. Remove the extension, and $U if already installed.
18519 ac_i
=`echo "$ac_i" |
18520 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18522 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18523 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18525 LIBOBJS
=$ac_libobjs
18527 LTLIBOBJS
=$ac_ltlibobjs
18531 : ${CONFIG_STATUS=./config.status}
18532 ac_clean_files_save
=$ac_clean_files
18533 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18536 cat >$CONFIG_STATUS <<_ACEOF
18538 # Generated by $as_me.
18539 # Run this file to recreate the current configuration.
18540 # Compiler output produced by configure, useful for debugging
18541 # configure, is in config.log if it exists.
18544 ac_cs_recheck=false
18546 SHELL=\${CONFIG_SHELL-$SHELL}
18549 cat >>$CONFIG_STATUS <<\_ACEOF
18550 ## --------------------- ##
18551 ## M4sh Initialization. ##
18552 ## --------------------- ##
18554 # Be Bourne compatible
18555 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18559 # is contrary to our usage. Disable this feature.
18560 alias -g '${1+"$@"}'='"$@"'
18561 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18565 # Support unset when possible.
18566 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18573 # Work around bugs in pre-3.0 UWIN ksh.
18574 $as_unset ENV MAIL MAILPATH
18581 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18582 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18583 LC_TELEPHONE LC_TIME
18585 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18586 eval $as_var=C
; export $as_var
18592 # Required to use basename.
18593 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18599 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18600 as_basename
=basename
18606 # Name of the executable.
18607 as_me
=`$as_basename "$0" ||
18608 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18609 X"$0" : 'X\(//\)$' \| \
18610 X"$0" : 'X\(/\)$' \| \
18611 . : '\(.\)' 2>/dev/null ||
18613 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18614 /^X\/\(\/\/\)$/{ s//\1/; q; }
18615 /^X\/\(\/\).*/{ s//\1/; q; }
18619 # PATH needs CR, and LINENO needs CR and PATH.
18620 # Avoid depending upon Character Ranges.
18621 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18622 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18623 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18624 as_cr_digits
='0123456789'
18625 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18627 # The user is always right.
18628 if test "${PATH_SEPARATOR+set}" != set; then
18629 echo "#! /bin/sh" >conf$$.sh
18630 echo "exit 0" >>conf$$.sh
18632 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18641 as_lineno_1
=$LINENO
18642 as_lineno_2
=$LINENO
18643 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18644 test "x$as_lineno_1" != "x$as_lineno_2" &&
18645 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18646 # Find who we are. Look in the path if we contain no path at all
18649 *[\\/]* ) as_myself
=$0 ;;
18650 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18651 for as_dir
in $PATH
18654 test -z "$as_dir" && as_dir
=.
18655 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18660 # We did not find ourselves, most probably we were run as `sh COMMAND'
18661 # in which case we are not to be found in the path.
18662 if test "x$as_myself" = x
; then
18665 if test ! -f "$as_myself"; then
18666 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18667 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18668 { (exit 1); exit 1; }; }
18670 case $CONFIG_SHELL in
18672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18673 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18676 test -z "$as_dir" && as_dir
=.
18677 for as_base
in sh bash ksh sh5
; do
18680 if ("$as_dir/$as_base" -c '
18681 as_lineno_1=$LINENO
18682 as_lineno_2=$LINENO
18683 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18684 test "x$as_lineno_1" != "x$as_lineno_2" &&
18685 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18686 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18687 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18688 CONFIG_SHELL
=$as_dir/$as_base
18689 export CONFIG_SHELL
18690 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18698 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18699 # uniformly replaced by the line number. The first 'sed' inserts a
18700 # line-number line before each line; the second 'sed' does the real
18701 # work. The second script uses 'N' to pair each line-number line
18702 # with the numbered line, and appends trailing '-' during
18703 # substitution so that $LINENO is not a special case at line end.
18704 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18705 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18706 sed '=' <$as_myself |
18711 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18714 s,^['$as_cr_digits']*\n,,
18715 ' >$as_me.lineno
&&
18716 chmod +x
$as_me.lineno ||
18717 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18718 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18719 { (exit 1); exit 1; }; }
18721 # Don't try to exec as it changes $[0], causing all sort of problems
18722 # (the dirname of $[0] is not the place where we might find the
18723 # original and so on. Autoconf is especially sensible to this).
18725 # Exit status is that of the last command.
18730 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18731 *c
*,-n*) ECHO_N
= ECHO_C
='
18733 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18734 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18737 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18743 rm -f conf$$ conf$$.exe conf$$.
file
18745 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18746 # We could just check for DJGPP; but this test a) works b) is more generic
18747 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18748 if test -f conf$$.exe
; then
18749 # Don't use ln at all; we don't have any links
18754 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18759 rm -f conf$$ conf$$.exe conf$$.
file
18761 if mkdir
-p .
2>/dev
/null
; then
18767 as_executable_p
="test -f"
18769 # Sed expression to map a string onto a valid CPP name.
18770 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18772 # Sed expression to map a string onto a valid variable name.
18773 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18777 # We need space, tab and new line, in precisely that order.
18787 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18788 # report actual input values of CONFIG_FILES etc. instead of their
18789 # values after options handling. Logging --version etc. is OK.
18793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18794 ## Running $as_me. ##
18799 This file was extended by $as_me, which was
18800 generated by GNU Autoconf 2.57. Invocation command line was
18802 CONFIG_FILES = $CONFIG_FILES
18803 CONFIG_HEADERS = $CONFIG_HEADERS
18804 CONFIG_LINKS = $CONFIG_LINKS
18805 CONFIG_COMMANDS = $CONFIG_COMMANDS
18809 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18813 # Files that config.status was made for.
18814 if test -n "$ac_config_files"; then
18815 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18818 if test -n "$ac_config_headers"; then
18819 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18822 if test -n "$ac_config_links"; then
18823 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18826 if test -n "$ac_config_commands"; then
18827 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18830 cat >>$CONFIG_STATUS <<\_ACEOF
18833 \`$as_me' instantiates files from templates according to the
18834 current configuration.
18836 Usage: $0 [OPTIONS] [FILE]...
18838 -h, --help print this help, then exit
18839 -V, --version print version number, then exit
18840 -q, --quiet do not print progress messages
18841 -d, --debug don't remove temporary files
18842 --recheck update $as_me by reconfiguring in the same conditions
18843 --file=FILE[:TEMPLATE]
18844 instantiate the configuration file FILE
18845 --header=FILE[:TEMPLATE]
18846 instantiate the configuration header FILE
18848 Configuration files:
18851 Configuration headers:
18854 Configuration commands:
18857 Report bugs to <bug-autoconf@gnu.org>."
18860 cat >>$CONFIG_STATUS <<_ACEOF
18863 configured by $0, generated by GNU Autoconf 2.57,
18864 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18866 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18867 Free Software Foundation, Inc.
18868 This config.status script is free software; the Free Software Foundation
18869 gives unlimited permission to copy, distribute and modify it."
18874 cat >>$CONFIG_STATUS <<\_ACEOF
18875 # If no file are specified by the user, then we need to provide default
18876 # value. By we need to know if files were specified by the user.
18882 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18883 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18891 *) # This is not an option, so the user has probably given explicit
18894 ac_need_defaults
=false
;;
18898 # Handling of the options.
18900 cat >>$CONFIG_STATUS <<\_ACEOF
18901 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18903 --version |
--vers* |
-V )
18904 echo "$ac_cs_version"; exit 0 ;;
18906 # Conflict between --help and --header
18907 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18908 Try \`$0 --help' for more information." >&5
18909 echo "$as_me: error: ambiguous option: $1
18910 Try \`$0 --help' for more information." >&2;}
18911 { (exit 1); exit 1; }; };;
18912 --help |
--hel |
-h )
18913 echo "$ac_cs_usage"; exit 0 ;;
18914 --debug |
--d* |
-d )
18916 --file |
--fil |
--fi |
--f )
18918 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18919 ac_need_defaults
=false
;;
18920 --header |
--heade |
--head |
--hea )
18922 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18923 ac_need_defaults
=false
;;
18924 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18925 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18928 # This is an error.
18929 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18930 Try \`$0 --help' for more information." >&5
18931 echo "$as_me: error: unrecognized option: $1
18932 Try \`$0 --help' for more information." >&2;}
18933 { (exit 1); exit 1; }; } ;;
18935 *) ac_config_targets
="$ac_config_targets $1" ;;
18941 ac_configure_extra_args
=
18943 if $ac_cs_silent; then
18945 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18949 cat >>$CONFIG_STATUS <<_ACEOF
18950 if \$ac_cs_recheck; then
18951 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18952 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18957 cat >>$CONFIG_STATUS <<_ACEOF
18959 # INIT-COMMANDS section.
18962 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18968 cat >>$CONFIG_STATUS <<\_ACEOF
18969 for ac_config_target
in $ac_config_targets
18971 case "$ac_config_target" in
18972 # Handling of arguments.
18973 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18974 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18975 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18976 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18977 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18978 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18979 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18980 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18981 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18982 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18983 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18984 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18985 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18986 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18987 { (exit 1); exit 1; }; };;
18991 # If the user did not use the arguments to specify the items to instantiate,
18992 # then the envvar interface is used. Set only those that are not.
18993 # We use the long form for the default assignment because of an extremely
18994 # bizarre bug on SunOS 4.1.3.
18995 if $ac_need_defaults; then
18996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19001 # Have a temporary directory for convenience. Make it in the build tree
19002 # simply because there is no reason to put it here, and in addition,
19003 # creating and moving files from /tmp can sometimes cause problems.
19004 # Create a temporary directory, and hook for its removal unless debugging.
19007 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19008 trap '{ (exit 1); exit 1; }' 1 2 13 15
19011 # Create a (secure) tmp directory for tmp files.
19014 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19015 test -n "$tmp" && test -d "$tmp"
19018 tmp
=.
/confstat$$
-$RANDOM
19019 (umask 077 && mkdir
$tmp)
19022 echo "$me: cannot create a temporary directory in ." >&2
19023 { (exit 1); exit 1; }
19028 cat >>$CONFIG_STATUS <<_ACEOF
19031 # CONFIG_FILES section.
19034 # No need to generate the scripts if there are no CONFIG_FILES.
19035 # This happens for instance when ./config.status config.h
19036 if test -n "\$CONFIG_FILES"; then
19037 # Protect against being on the right side of a sed subst in config.status.
19038 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19039 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19040 s,@SHELL@,$SHELL,;t t
19041 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19042 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19043 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19044 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19045 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19046 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19047 s,@exec_prefix@,$exec_prefix,;t t
19048 s,@prefix@,$prefix,;t t
19049 s,@program_transform_name@,$program_transform_name,;t t
19050 s,@bindir@,$bindir,;t t
19051 s,@sbindir@,$sbindir,;t t
19052 s,@libexecdir@,$libexecdir,;t t
19053 s,@datadir@,$datadir,;t t
19054 s,@sysconfdir@,$sysconfdir,;t t
19055 s,@sharedstatedir@,$sharedstatedir,;t t
19056 s,@localstatedir@,$localstatedir,;t t
19057 s,@libdir@,$libdir,;t t
19058 s,@includedir@,$includedir,;t t
19059 s,@oldincludedir@,$oldincludedir,;t t
19060 s,@infodir@,$infodir,;t t
19061 s,@mandir@,$mandir,;t t
19062 s,@build_alias@,$build_alias,;t t
19063 s,@host_alias@,$host_alias,;t t
19064 s,@target_alias@,$target_alias,;t t
19065 s,@DEFS@,$DEFS,;t t
19066 s,@ECHO_C@,$ECHO_C,;t t
19067 s,@ECHO_N@,$ECHO_N,;t t
19068 s,@ECHO_T@,$ECHO_T,;t t
19069 s,@LIBS@,$LIBS,;t t
19070 s,@build@,$build,;t t
19071 s,@build_cpu@,$build_cpu,;t t
19072 s,@build_vendor@,$build_vendor,;t t
19073 s,@build_os@,$build_os,;t t
19074 s,@host@,$host,;t t
19075 s,@host_cpu@,$host_cpu,;t t
19076 s,@host_vendor@,$host_vendor,;t t
19077 s,@host_os@,$host_os,;t t
19079 s,@CFLAGS@,$CFLAGS,;t t
19080 s,@LDFLAGS@,$LDFLAGS,;t t
19081 s,@CPPFLAGS@,$CPPFLAGS,;t t
19082 s,@ac_ct_CC@,$ac_ct_CC,;t t
19083 s,@EXEEXT@,$EXEEXT,;t t
19084 s,@OBJEXT@,$OBJEXT,;t t
19085 s,@LN_S@,$LN_S,;t t
19087 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19088 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19089 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19090 s,@RANLIB@,$RANLIB,;t t
19091 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19092 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19093 s,@EGREP@,$EGREP,;t t
19094 s,@LIBSOUND@,$LIBSOUND,;t t
19095 s,@SET_MAKE@,$SET_MAKE,;t t
19096 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19097 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19098 s,@GTK_LIBS@,$GTK_LIBS,;t t
19099 s,@ALLOCA@,$ALLOCA,;t t
19100 s,@liblockfile@,$liblockfile,;t t
19101 s,@LIBOBJS@,$LIBOBJS,;t t
19102 s,@NEED_SETGID@,$NEED_SETGID,;t t
19103 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19104 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19105 s,@version@,$version,;t t
19106 s,@configuration@,$configuration,;t t
19107 s,@canonical@,$canonical,;t t
19108 s,@srcdir@,$srcdir,;t t
19109 s,@lispdir@,$lispdir,;t t
19110 s,@locallisppath@,$locallisppath,;t t
19111 s,@lisppath@,$lisppath,;t t
19112 s,@x_default_search_path@,$x_default_search_path,;t t
19113 s,@etcdir@,$etcdir,;t t
19114 s,@archlibdir@,$archlibdir,;t t
19115 s,@docdir@,$docdir,;t t
19116 s,@bitmapdir@,$bitmapdir,;t t
19117 s,@gamedir@,$gamedir,;t t
19118 s,@gameuser@,$gameuser,;t t
19119 s,@c_switch_system@,$c_switch_system,;t t
19120 s,@c_switch_machine@,$c_switch_machine,;t t
19121 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19122 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19123 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19124 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19125 s,@machfile@,$machfile,;t t
19126 s,@opsysfile@,$opsysfile,;t t
19127 s,@carbon_appdir@,$carbon_appdir,;t t
19128 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19133 cat >>$CONFIG_STATUS <<\_ACEOF
19134 # Split the substitutions into bite-sized pieces for seds with
19135 # small command number limits, like on Digital OSF/1 and HP-UX.
19136 ac_max_sed_lines
=48
19137 ac_sed_frag
=1 # Number of current file.
19138 ac_beg
=1 # First line for current file.
19139 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19142 while $ac_more_lines; do
19143 if test $ac_beg -gt 1; then
19144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19146 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19148 if test ! -s $tmp/subs.frag
; then
19149 ac_more_lines
=false
19151 # The purpose of the label and of the branching condition is to
19152 # speed up the sed processing (if there are no `@' at all, there
19153 # is no need to browse any of the substitutions).
19154 # These are the two extra sed commands mentioned above.
19156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19157 if test -z "$ac_sed_cmds"; then
19158 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19160 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19162 ac_sed_frag
=`expr $ac_sed_frag + 1`
19164 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19167 if test -z "$ac_sed_cmds"; then
19170 fi # test -n "$CONFIG_FILES"
19173 cat >>$CONFIG_STATUS <<\_ACEOF
19174 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19177 - |
*:- |
*:-:* ) # input from stdin
19179 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19180 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19181 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19182 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19183 * ) ac_file_in
=$ac_file.
in ;;
19186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19187 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19189 X"$ac_file" : 'X\(//\)[^/]' \| \
19190 X"$ac_file" : 'X\(//\)$' \| \
19191 X"$ac_file" : 'X\(/\)' \| \
19192 . : '\(.\)' 2>/dev/null ||
19194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19196 /^X\(\/\/\)$/{ s//\1/; q; }
19197 /^X\(\/\).*/{ s//\1/; q; }
19199 { if $as_mkdir_p; then
19204 while test ! -d "$as_dir"; do
19205 as_dirs
="$as_dir $as_dirs"
19206 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208 X"$as_dir" : 'X\(//\)[^/]' \| \
19209 X"$as_dir" : 'X\(//\)$' \| \
19210 X"$as_dir" : 'X\(/\)' \| \
19211 . : '\(.\)' 2>/dev/null ||
19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19215 /^X\(\/\/\)$/{ s//\1/; q; }
19216 /^X\(\/\).*/{ s//\1/; q; }
19219 test ! -n "$as_dirs" || mkdir
$as_dirs
19220 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19222 { (exit 1); exit 1; }; }; }
19226 if test "$ac_dir" != .
; then
19227 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19228 # A "../" for each directory in $ac_dir_suffix.
19229 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19231 ac_dir_suffix
= ac_top_builddir
=
19235 .
) # No --srcdir option. We are building in place.
19237 if test -z "$ac_top_builddir"; then
19240 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19242 [\\/]* | ?
:[\\/]* ) # Absolute path.
19243 ac_srcdir
=$srcdir$ac_dir_suffix;
19244 ac_top_srcdir
=$srcdir ;;
19245 *) # Relative path.
19246 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19247 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19249 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19251 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19252 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19253 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19254 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19258 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19259 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19262 if test x
"$ac_file" != x-
; then
19263 { echo "$as_me:$LINENO: creating $ac_file" >&5
19264 echo "$as_me: creating $ac_file" >&6;}
19267 # Let's still pretend it is `configure' which instantiates (i.e., don't
19268 # use $as_me), people would be surprised to read:
19269 # /* config.h. Generated by config.status. */
19270 if test x
"$ac_file" = x-
; then
19273 configure_input
="$ac_file. "
19275 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19276 sed 's,.*/,,'` by configure."
19278 # First look for the input files in the build tree, otherwise in the
19280 ac_file_inputs
=`IFS=:
19281 for f in $ac_file_in; do
19283 -) echo $tmp/stdin ;;
19285 # Absolute (can't be DOS-style, as IFS=:)
19286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19287 echo "$as_me: error: cannot find input file: $f" >&2;}
19288 { (exit 1); exit 1; }; }
19291 if test -f "$f"; then
19294 elif test -f "$srcdir/$f"; then
19299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19300 echo "$as_me: error: cannot find input file: $f" >&2;}
19301 { (exit 1); exit 1; }; }
19304 done` ||
{ (exit 1); exit 1; }
19306 cat >>$CONFIG_STATUS <<_ACEOF
19310 cat >>$CONFIG_STATUS <<\_ACEOF
19312 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19313 s
,@configure_input@
,$configure_input,;t t
19314 s
,@srcdir@
,$ac_srcdir,;t t
19315 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19316 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19317 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19318 s
,@builddir@
,$ac_builddir,;t t
19319 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19320 s
,@top_builddir@
,$ac_top_builddir,;t t
19321 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19322 s
,@INSTALL@
,$ac_INSTALL,;t t
19323 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19325 if test x"$ac_file" != x-; then
19326 mv $tmp/out $ac_file
19334 cat >>$CONFIG_STATUS <<\_ACEOF
19337 # CONFIG_HEADER section.
19340 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19341 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19343 # ac_d sets the value in "#define NAME VALUE" lines.
19344 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19345 ac_dB
='[ ].*$,\1#\2'
19348 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19349 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19350 ac_uB
='$,\1#\2define\3'
19354 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19357 - |
*:- |
*:-:* ) # input from stdin
19359 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19360 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19361 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19362 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19363 * ) ac_file_in
=$ac_file.
in ;;
19366 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19367 echo "$as_me: creating $ac_file" >&6;}
19369 # First look for the input files in the build tree, otherwise in the
19371 ac_file_inputs
=`IFS=:
19372 for f in $ac_file_in; do
19374 -) echo $tmp/stdin ;;
19376 # Absolute (can't be DOS-style, as IFS=:)
19377 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19378 echo "$as_me: error: cannot find input file: $f" >&2;}
19379 { (exit 1); exit 1; }; }
19382 if test -f "$f"; then
19385 elif test -f "$srcdir/$f"; then
19390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19391 echo "$as_me: error: cannot find input file: $f" >&2;}
19392 { (exit 1); exit 1; }; }
19395 done` ||
{ (exit 1); exit 1; }
19396 # Remove the trailing spaces.
19397 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19401 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19402 # `conftest.undefs', that substitutes the proper values into
19403 # config.h.in to produce config.h. The first handles `#define'
19404 # templates, and the second `#undef' templates.
19405 # And first: Protect against being on the right side of a sed subst in
19406 # config.status. Protect against being in an unquoted here document
19407 # in config.status.
19408 rm -f conftest.defines conftest.undefs
19409 # Using a here document instead of a string reduces the quoting nightmare.
19410 # Putting comments in sed scripts is not portable.
19412 # `end' is used to avoid that the second main sed command (meant for
19413 # 0-ary CPP macros) applies to n-ary macro definitions.
19414 # See the Autoconf documentation for `clear'.
19415 cat >confdef2sed.
sed <<\_ACEOF
19420 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19422 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19425 # If some macros were called several times there might be several times
19426 # the same #defines, which is useless. Nevertheless, we may not want to
19427 # sort them, since we want the *last* AC-DEFINE to be honored.
19428 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19429 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19430 rm -f confdef2sed.sed
19432 # This sed command replaces #undef with comments. This is necessary, for
19433 # example, in the case of _POSIX_SOURCE, which is predefined and required
19434 # on some systems where configure will not decide to define it.
19435 cat >>conftest.undefs <<\_ACEOF
19436 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19439 # Break up conftest.defines because some shells have a limit on the size
19440 # of here documents, and old seds have small limits too (100 cmds).
19441 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19442 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19443 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19444 echo ' :' >>$CONFIG_STATUS
19445 rm -f conftest.tail
19446 while grep . conftest.defines >/dev/null
19448 # Write a limited-size here document to $tmp/defines.sed.
19449 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19450 # Speed up: don't consider the non `#define' lines.
19451 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19452 # Work around the forget-to-reset-the-flag bug.
19453 echo 't clr' >>$CONFIG_STATUS
19454 echo ': clr' >>$CONFIG_STATUS
19455 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19457 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19459 mv $tmp/out $tmp/in
19461 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19462 rm -f conftest.defines
19463 mv conftest.
tail conftest.defines
19465 rm -f conftest.defines
19466 echo ' fi # grep' >>$CONFIG_STATUS
19467 echo >>$CONFIG_STATUS
19469 # Break up conftest.undefs because some shells have a limit on the size
19470 # of here documents, and old seds have small limits too (100 cmds).
19471 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19472 rm -f conftest.
tail
19473 while grep . conftest.undefs
>/dev
/null
19475 # Write a limited-size here document to $tmp/undefs.sed.
19476 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19477 # Speed up: don't consider the non
`#undef'
19478 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19479 # Work around the forget-to-reset-the-flag bug.
19480 echo 't clr' >>$CONFIG_STATUS
19481 echo ': clr' >>$CONFIG_STATUS
19482 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19484 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19486 mv $tmp/out $tmp/in
19488 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19489 rm -f conftest.undefs
19490 mv conftest.tail conftest.undefs
19492 rm -f conftest.undefs
19494 cat >>$CONFIG_STATUS <<\_ACEOF
19495 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19496 # use $as_me), people would be surprised to read:
19497 # /* config.h. Generated by config.status. */
19498 if test x
"$ac_file" = x-
; then
19499 echo "/* Generated by configure. */" >$tmp/config.h
19501 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19503 cat $tmp/in >>$tmp/config.h
19505 if test x
"$ac_file" != x-
; then
19506 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19507 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19508 echo "$as_me: $ac_file is unchanged" >&6;}
19510 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19512 X"$ac_file" : 'X\(//\)[^/]' \| \
19513 X"$ac_file" : 'X\(//\)$' \| \
19514 X"$ac_file" : 'X\(/\)' \| \
19515 . : '\(.\)' 2>/dev/null ||
19517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19519 /^X\(\/\/\)$/{ s//\1/; q; }
19520 /^X\(\/\).*/{ s//\1/; q; }
19522 { if $as_mkdir_p; then
19527 while test ! -d "$as_dir"; do
19528 as_dirs
="$as_dir $as_dirs"
19529 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19530 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19531 X"$as_dir" : 'X\(//\)[^/]' \| \
19532 X"$as_dir" : 'X\(//\)$' \| \
19533 X"$as_dir" : 'X\(/\)' \| \
19534 . : '\(.\)' 2>/dev/null ||
19536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19538 /^X\(\/\/\)$/{ s//\1/; q; }
19539 /^X\(\/\).*/{ s//\1/; q; }
19542 test ! -n "$as_dirs" || mkdir
$as_dirs
19543 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19544 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19545 { (exit 1); exit 1; }; }; }
19548 mv $tmp/config.h
$ac_file
19552 rm -f $tmp/config.h
19556 cat >>$CONFIG_STATUS <<\_ACEOF
19559 # CONFIG_COMMANDS section.
19561 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19562 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19563 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19564 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19565 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19566 X"$ac_dest" : 'X\(//\)[^/]' \| \
19567 X"$ac_dest" : 'X\(//\)$' \| \
19568 X"$ac_dest" : 'X\(/\)' \| \
19569 . : '\(.\)' 2>/dev/null ||
19571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19573 /^X\(\/\/\)$/{ s//\1/; q; }
19574 /^X\(\/\).*/{ s//\1/; q; }
19578 if test "$ac_dir" != .
; then
19579 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19580 # A "../" for each directory in $ac_dir_suffix.
19581 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19583 ac_dir_suffix
= ac_top_builddir
=
19587 .
) # No --srcdir option. We are building in place.
19589 if test -z "$ac_top_builddir"; then
19592 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19594 [\\/]* | ?
:[\\/]* ) # Absolute path.
19595 ac_srcdir
=$srcdir$ac_dir_suffix;
19596 ac_top_srcdir
=$srcdir ;;
19597 *) # Relative path.
19598 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19599 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19601 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19603 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19604 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19605 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19606 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19609 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19610 echo "$as_me: executing $ac_dest commands" >&6;}
19614 ### Make the necessary directories, if they don't exist.
19615 for dir
in etc lisp
; do
19616 test -d ${dir} || mkdir
${dir}
19619 # Build src/Makefile from ${srcdir}/src/Makefile.c
19620 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19621 # This must be done after src/config.h is built, since we rely on that file.
19623 # Now get this: Some word that is part of the ${srcdir} directory name
19624 # or the ${configuration} value might, just might, happen to be an
19625 # identifier like `sun4' or `i386' or something, and be predefined by
19626 # the C preprocessor to some helpful value like 1, or maybe the empty
19627 # string. Needless to say consequent macro substitutions are less
19628 # than conducive to the makefile finding the correct directory.
19629 undefs
="`echo $top_srcdir $configuration $canonical |
19630 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19631 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19634 echo creating src
/epaths.h
19635 ${MAKE-make} epaths-force
19637 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19638 # `..' to `. .' unless invoked with -traditional
19640 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19641 CPPFLAGS
="$CPPFLAGS -traditional"
19644 echo creating lib-src
/Makefile
19646 rm -f junk.c junk1.c junk2.c
19647 sed -e '/start of cpp stuff/q' \
19648 < Makefile.c
> junk1.c
19649 sed -e '1,/start of cpp stuff/d'\
19650 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19651 < Makefile.c
> junk.c
19652 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19653 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19654 cat junk1.c junk2.c
> Makefile.new
19655 rm -f junk.c junk1.c junk2.c
19656 chmod 444 Makefile.new
19657 mv -f Makefile.new Makefile
19660 echo creating src
/Makefile
19662 rm -f junk.c junk1.c junk2.c
19663 sed -e '/start of cpp stuff/q' \
19664 < Makefile.c
> junk1.c
19665 sed -e '1,/start of cpp stuff/d'\
19666 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19667 < Makefile.c
> junk.c
19668 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19669 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19670 cat junk1.c junk2.c
> Makefile.new
19671 rm -f junk.c junk1.c junk2.c
19672 chmod 444 Makefile.new
19673 mv -f Makefile.new Makefile
19676 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19677 echo creating src
/.gdbinit
19678 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19681 # This is how we know whether to re-run configure in certain cases.
19682 touch src
/config.stamp
19689 cat >>$CONFIG_STATUS <<\_ACEOF
19691 { (exit 0); exit 0; }
19693 chmod +x
$CONFIG_STATUS
19694 ac_clean_files
=$ac_clean_files_save
19697 # configure is writing to config.log, and then calls config.status.
19698 # config.status does its own redirection, appending to config.log.
19699 # Unfortunately, on DOS this fails, as config.log is still kept open
19700 # by configure, so config.status won't be able to write to it; its
19701 # output is simply discarded. So we exec the FD to /dev/null,
19702 # effectively closing config.log, so it can be properly (re)opened and
19703 # appended to by config.status. When coming back to configure, we
19704 # need to make the FD available again.
19705 if test "$no_create" != yes; then
19707 ac_config_status_args
=
19708 test "$silent" = yes &&
19709 ac_config_status_args
="$ac_config_status_args --quiet"
19711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19714 # would make configure fail if this is the last instruction.
19715 $ac_cs_success ||
{ (exit 1); exit 1; }