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 if test -f /usr
/lib
/crti.o
; then
1666 AC_DEFINE
(HAVE_CRTIN
)
1669 case "${canonical}" in
1670 alpha
*-*-netbsd*) machine
=alpha
;;
1671 i
[3456]86-*-netbsd*) machine
=intel386
;;
1673 # This is somewhat bogus.
1674 machine
=hp9000s300
;;
1675 powerpc-apple-netbsd
*) machine
=macppc
;;
1676 mips-
*-netbsd*) machine
=pmax
;;
1677 mipsel-
*-netbsd*) machine
=pmax
;;
1678 mipseb-
*-netbsd*) machine
=pmax
;;
1679 ns32k-
*-netbsd*) machine
=ns32000
;;
1680 powerpc-
*-netbsd*) machine
=macppc
;;
1681 sparc
*-*-netbsd*) machine
=sparc
;;
1682 vax-
*-netbsd*) machine
=vax
;;
1683 arm-
*-netbsd*) machine
=arm
;;
1690 case "${canonical}" in
1691 alpha
*-*-openbsd*) machine
=alpha
;;
1692 i386-
*-openbsd*) machine
=intel386
;;
1693 m68k-
*-openbsd*) machine
=hp9000s300
;;
1694 mipsel-
*-openbsd*) machine
=pmax
;;
1695 ns32k-
*-openbsd*) machine
=ns32000
;;
1696 sparc-
*-openbsd*) machine
=sparc
;;
1697 vax-
*-openbsd*) machine
=vax
;;
1702 arm-acorn-riscix1.1
* )
1703 machine
=acorn opsys
=riscix1-1
1705 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1706 ## This name is riscix12 instead of riscix1.2
1707 ## to avoid a file name conflict on MSDOS.
1708 machine
=acorn opsys
=riscix12
1714 case "${canonical}" in
1715 i
[345]86-*-bsdi*) machine
=intel386
;;
1716 sparc-
*-bsdi*) machine
=sparc
;;
1717 powerpc-
*-bsdi*) machine
=macppc
;;
1719 case "${canonical}" in
1720 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1721 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1722 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1723 *-*-bsdi3* ) opsys
=bsdos3
;;
1724 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1729 ## Strictly speaking, we need the version of the alliant operating
1730 ## system to choose the right machine file, but currently the
1731 ## configuration name doesn't tell us enough to choose the right
1732 ## one; we need to give alliants their own operating system name to
1733 ## do this right. When someone cares, they can help us.
1735 machine
=alliant4 opsys
=bsd4-2
1738 machine
=alliant-2800 opsys
=bsd4-3
1741 ## Alpha (DEC) machines.
1743 machine
=alpha opsys
=osf1
1744 # This is needed to find X11R6.1 libraries for certain tests.
1745 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1746 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1747 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1748 # due to non-traditional preprocessing with the current compiler
1749 # defaults. OSF 4 can also have that compiler version, and there
1750 # seems always to have been a usable /usr/bin/cpp.
1751 NON_GNU_CPP
=/usr
/bin
/cpp
1752 case "${canonical}" in
1753 alpha
*-dec-osf[5-9]*)
1758 alpha
*-*-linux-gnu* )
1759 machine
=alpha opsys
=gnu-linux
1763 machine
=arm opsys
=gnu-linux
1768 machine
=macppc opsys
=gnu-linux
1773 machine
=altos opsys
=usg5-2
1778 machine
=amdahl opsys
=usg5-2-2
1781 ## Apollo, Domain/OS
1783 machine
=apollo opsys
=bsd4-3
1786 ## AT&T 3b2, 3b5, 3b15, 3b20
1788 machine
=att3b opsys
=usg5-2-2
1791 ## AT&T 3b1 - The Mighty Unix PC!
1793 machine
=7300 opsys
=usg5-2-2
1798 machine
=ibmrs6000 opsys
=aix3-2
1803 machine
=dpx2 opsys
=usg5-3
1808 machine
=sps7 opsys
=usg5-2
1811 ## CCI 5/32, 6/32 -- see "Tahoe".
1814 ## I don't know what configuration name to use for this; config.sub
1815 ## doesn't seem to know anything about it. Hey, Celerity users, get
1816 ## in touch with us!
1817 celerity-celerity-bsd
* )
1818 machine
=celerity opsys
=bsd4-2
1822 ## What operating systems does this chip run that Emacs has been
1826 ## We'll use the catch-all code at the bottom to guess the
1827 ## operating system.
1831 mips-compaq-nonstopux
* )
1832 machine
=nonstopux opsys
=nonstopux
1836 *-convex-bsd* |
*-convex-convexos* )
1837 machine
=convex opsys
=bsd4-3
1838 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1839 NON_GNU_CPP
="cc -E -P"
1843 i
[3456]86-cubix-sysv* )
1844 machine
=intel386 opsys
=usg5-3
1848 cydra
*-cydrome-sysv* )
1849 machine
=cydra5 opsys
=usg5-3
1852 ## Data General AViiON Machines
1853 ## DG changed naming conventions with the release of 5.4.4.10, they
1854 ## dropped the initial 5.4 but left the intervening R. Because of the
1855 ## R this shouldn't conflict with older versions of the OS (which I
1856 ## think were named like dgux4.*). In addition, DG new AViiONs series
1857 ## uses either Motorola M88k or Intel Pentium CPUs.
1858 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1859 machine
=aviion opsys
=dgux4
1861 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1862 ## This name is dgux5-4-3 instead of dgux5-4r3
1863 ## to avoid a file name conflict on MSDOS.
1864 machine
=aviion opsys
=dgux5-4-3
1866 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1867 machine
=aviion opsys
=dgux5-4r2
1870 machine
=aviion opsys
=dgux
1873 ## Data General AViiON Intel (x86) Machines
1874 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1875 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1876 i
[345]86-dg-dguxR4* )
1877 machine
=aviion-intel opsys
=dgux4
1881 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1882 machine
=pmax opsys
=bsd4-2
1884 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1885 machine
=pmax opsys
=bsd4-3
1888 machine
=pmax opsys
=ultrix4-3
1891 machine
=pmax opsys
=osf1
1893 mips-dec-mach_bsd4.3
* )
1894 machine
=pmax opsys
=mach-bsd4-3
1897 ## Motorola Delta machines
1898 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1899 machine
=delta opsys
=usg5-3
1900 if test -z "`type gnucc | grep 'not found'`"
1902 if test -s /etc
/167config
1903 then CC
="gnucc -m68040"
1904 else CC
="gnucc -m68881"
1907 if test -z "`type gcc | grep 'not found'`"
1913 m88k-motorola-sysv4
* )
1914 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1915 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1916 # I hope there are not other 4.0 versions for this machine
1917 # which really need usg5-4 instead.
1918 machine
=delta88k opsys
=usg5-4-2
1920 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1921 machine
=delta88k opsys
=usg5-3
1926 machine
=dual opsys
=usg5-2
1928 m68
*-dual-uniplus* )
1929 machine
=dual opsys
=unipl5-2
1934 machine
=elxsi opsys
=usg5-2
1939 machine
=ns16000 opsys
=umax
1942 ## The GEC 63 - apparently, this port isn't really finished yet.
1943 # I'm sure we finished off the last of the machines, though. -- fx
1945 ## Gould Power Node and NP1
1947 machine
=gould opsys
=bsd4-2
1950 machine
=gould opsys
=bsd4-3
1953 machine
=gould-np1 opsys
=bsd4-3
1956 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1957 ## as far as Emacs is concerned).
1959 # Build needs to be different on 7.0 and later releases
1960 case "`uname -r`" in
1961 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1962 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1964 NON_GNU_CPP
="/lib/cpp"
1966 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1968 machine
=nh3000 opsys
=cxux
1970 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1971 powerpc-harris-powerunix
)
1972 machine
=nh6000 opsys
=powerunix
1973 NON_GNU_CPP
="cc -Xo -E -P"
1975 ## SR2001/SR2201 running HI-UX/MPP
1976 hppa1.1
-hitachi-hiuxmpp* )
1977 machine
=sr2k opsys
=hiuxmpp
1979 hppa1.1
-hitachi-hiuxwe2* )
1980 machine
=sr2k opsys
=hiuxwe2
1983 xps
*-honeywell-sysv* )
1984 machine
=xps100 opsys
=usg5-2
1987 ## HP 9000 series 200 or 300
1989 machine
=hp9000s300 opsys
=bsd4-3
1991 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1993 case "`uname -r`" in
1994 ## Someone's system reports A.B8.05 for this.
1995 ## I wonder what other possibilities there are.
1996 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1997 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1998 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1999 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2000 *) machine
=hp9000s300 opsys
=hpux
;;
2004 ## HP 9000 series 700 and 800, running HP/UX
2006 machine
=hp800 opsys
=hpux
2009 machine
=hp800 opsys
=hpux8
2011 hppa
*-hp-hpux9shr* )
2012 machine
=hp800 opsys
=hpux9shr
2015 machine
=hp800 opsys
=hpux9
2017 hppa
*-hp-hpux10.2
* )
2018 machine
=hp800 opsys
=hpux10-20
2021 machine
=hp800 opsys
=hpux10
2023 hppa
*-hp-hpux1[1-9]* )
2024 machine
=hp800 opsys
=hpux11
2027 hppa
*-*-linux-gnu* )
2028 machine
=hp800 opsys
=gnu-linux
2031 ## HP 9000 series 700 and 800, running HP/UX
2033 ## Cross-compilation? Nah!
2034 case "`uname -r`" in
2035 ## Someone's system reports A.B8.05 for this.
2036 ## I wonder what other possibilities there are.
2037 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2038 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2039 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2040 *) machine
=hp800 opsys
=hpux10
;;
2044 machine
=hp800 opsys
=nextstep
2049 machine
=orion opsys
=bsd4-2
2051 clipper-orion-bsd
* )
2052 machine
=orion105 opsys
=bsd4-2
2056 i
[3456]86-ibm-aix1.1
* )
2057 machine
=ibmps2-aix opsys
=usg5-2-2
2059 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2060 machine
=ibmps2-aix opsys
=usg5-3
2063 machine
=ibm370aix opsys
=usg5-3
2066 machine
=ibms390 opsys
=gnu-linux
2068 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2069 machine
=ibmrs6000 opsys
=aix3-1
2071 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2072 machine
=ibmrs6000 opsys
=aix3-2-5
2074 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2075 machine
=ibmrs6000 opsys
=aix4-1
2077 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2078 machine
=ibmrs6000 opsys
=aix4-2
2080 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2081 machine
=ibmrs6000 opsys
=aix4-2
2083 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2084 machine
=ibmrs6000 opsys
=aix4
2086 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2087 machine
=ibmrs6000 opsys
=aix4-1
2089 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2090 machine
=ibmrs6000 opsys
=aix3-2
2093 machine
=ibmrt opsys
=bsd4-3
2096 machine
=ibmrt opsys
=bsd4-2
2099 machine
=ibmrt opsys
=bsd4-3
2102 machine
=ibmrt opsys
=bsd4-2
2105 machine
=ibmrt opsys
=bsd4-3
2108 machine
=ibmrt opsys
=bsd4-3
2111 machine
=ibmrt-aix opsys
=usg5-2-2
2114 ## Integrated Solutions `Optimum V'
2116 machine
=isi-ov opsys
=bsd4-2
2119 machine
=isi-ov opsys
=bsd4-3
2122 ## Intel 386 machines where we do care about the manufacturer
2123 i
[3456]86-intsys-sysv* )
2124 machine
=is386 opsys
=usg5-2-2
2128 i
[3456]86-prime-sysv* )
2129 machine
=i386 opsys
=usg5-3
2132 ## Sequent Symmetry running Dynix
2133 i
[3456]86-sequent-bsd* )
2134 machine
=symmetry opsys
=bsd4-3
2137 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2138 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2139 machine
=sequent-ptx opsys
=ptx4
2140 NON_GNU_CPP
=/lib
/cpp
2143 ## Sequent Symmetry running DYNIX/ptx
2144 ## Use the old cpp rather than the newer ANSI one.
2145 i
[3456]86-sequent-ptx* )
2146 machine
=sequent-ptx opsys
=ptx
2147 NON_GNU_CPP
="/lib/cpp"
2150 ## ncr machine running svr4.3.
2151 i
[3456]86-ncr-sysv4.3
)
2152 machine
=ncr386 opsys
=usg5-4-3
2155 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2156 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2157 i
[3456]86-ncr-sysv* )
2158 machine
=ncr386 opsys
=usg5-4-2
2161 ## Intel Paragon OSF/1
2163 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2168 machine
=i860 opsys
=usg5-4
2169 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2170 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2173 ## Macintosh PowerPC
2174 powerpc
*-*-linux-gnu* )
2175 machine
=macppc opsys
=gnu-linux
2178 ## Masscomp machines
2179 m68
*-masscomp-rtu* )
2180 machine
=masscomp opsys
=rtu
2183 ## Megatest machines
2184 m68
*-megatest-bsd* )
2185 machine
=mega68 opsys
=bsd4-2
2188 ## Workstations sold by MIPS
2189 ## This is not necessarily all workstations using the MIPS processor -
2190 ## Irises are produced by SGI, and DECstations by DEC.
2192 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2193 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2194 ## it gives for choosing between the alternatives seems to be "Use
2195 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2196 ## the BSD world." I'll assume that these are instructions for
2197 ## handling two odd situations, and that every other situation
2198 ## should use mips.h and usg5-2-2, they being listed first.
2201 ## Fall through to the general code at the bottom to decide on the OS.
2203 mips-mips-riscos4
* )
2204 machine
=mips4 opsys
=bsd4-3
2205 NON_GNU_CC
="cc -systype bsd43"
2206 NON_GNU_CPP
="cc -systype bsd43 -E"
2208 mips-mips-riscos5
* )
2209 machine
=mips4 opsys
=riscos5
2210 NON_GNU_CC
="cc -systype bsd43"
2211 NON_GNU_CPP
="cc -systype bsd43 -E"
2214 machine
=mips opsys
=bsd4-3
2217 machine
=mips opsys
=usg5-2-2
2221 m68
*-next-* | m68k-
*-nextstep* )
2222 machine
=m68k opsys
=nextstep
2225 ## The complete machine from National Semiconductor
2227 machine
=ns32000 opsys
=usg5-2
2231 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2232 machine
=tower32 opsys
=usg5-2-2
2234 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2235 machine
=tower32v3 opsys
=usg5-3
2240 machine
=ews4800 opsys
=ux4800
2243 ## Nixdorf Targon 31
2244 m68
*-nixdorf-sysv* )
2245 machine
=targon31 opsys
=usg5-2-2
2250 machine
=nu opsys
=usg5-2
2255 machine
=plexus opsys
=usg5-2
2259 ## I don't really have any idea what sort of processor the Pyramid has,
2260 ## so I'm assuming it is its own architecture.
2261 pyramid-pyramid-bsd
* )
2262 machine
=pyramid opsys
=bsd4-2
2266 ns32k-sequent-bsd4.2
* )
2267 machine
=sequent opsys
=bsd4-2
2269 ns32k-sequent-bsd4.3
* )
2270 machine
=sequent opsys
=bsd4-3
2274 mips-siemens-sysv
* | mips-sni-sysv
*)
2275 machine
=mips-siemens opsys
=usg5-4
2276 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2277 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2280 ## Silicon Graphics machines
2281 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2283 machine
=irist opsys
=iris3-5
2285 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2286 machine
=irist opsys
=iris3-6
2290 machine
=iris4d opsys
=irix3-3
2293 machine
=iris4d opsys
=irix4-0
2296 machine
=iris4d opsys
=irix6-5
2297 # Without defining _LANGUAGE_C, things get masked out in the headers
2298 # so that, for instance, grepping for `free' in stdlib.h fails and
2299 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2300 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2301 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2304 machine
=iris4d opsys
=irix6-0
2305 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2306 # but presumably it does no harm.
2307 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2308 # -32 probably isn't necessary in later v.6s -- anyone know which?
2309 NON_GCC_TEST_OPTIONS
=-32
2311 mips-sgi-irix5.
[01]* )
2312 machine
=iris4d opsys
=irix5-0
2314 mips-sgi-irix5
* | mips-sgi-irix
* )
2315 machine
=iris4d opsys
=irix5-2
2320 machine
=news opsys
=bsd4-2
2323 machine
=news opsys
=bsd4-3
2325 m68
*-sony-newsos3* | m68
*-sony-news3*)
2326 machine
=news opsys
=bsd4-3
2328 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2329 machine
=news-risc opsys
=bsd4-3
2331 mips-sony-newsos6
* )
2332 machine
=news-r6 opsys
=newsos6
2335 machine
=news-risc opsys
=newsos5
2340 machine
=stride opsys
=usg5-2
2344 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2345 machine
=sparc opsys
=gnu-linux
2348 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2349 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2350 | rs6000-
*-solaris2*)
2351 case "${canonical}" in
2352 m68
*-sunos1* ) machine
=sun1
;;
2353 m68
*-sunos2* ) machine
=sun2
;;
2354 m68
* ) machine
=sun3
;;
2355 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2356 i
[3456]86-*-* ) machine
=intel386
;;
2357 powerpcle
* ) machine
=powerpcle
;;
2358 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2359 sparc
* ) machine
=sparc
;;
2362 case "${canonical}" in
2363 ## The Sun386 didn't get past 4.0.
2364 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2365 *-sunos4.0
* ) opsys
=sunos4-0
;;
2366 *-sunos4.1.
[3-9]*noshare
)
2367 ## This name is sunos413 instead of sunos4-1-3
2368 ## to avoid a file name conflict on MSDOS.
2370 NON_GNU_CPP
=/usr
/lib
/cpp
2371 NON_GCC_TEST_OPTIONS
=-Bstatic
2372 GCC_TEST_OPTIONS
=-static
2374 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2376 NON_GNU_CPP
=/usr
/lib
/cpp
2378 *-sunos4* |
*-sunos )
2380 NON_GCC_TEST_OPTIONS
=-Bstatic
2381 GCC_TEST_OPTIONS
=-static
2383 *-sunos5.3
* |
*-solaris2.3
* )
2385 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2387 *-sunos5.4
* |
*-solaris2.4
* )
2389 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2392 *-sunos5.5
* |
*-solaris2.5
* )
2394 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2397 *-sunos5.6
* |
*-solaris2.6
* )
2399 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2402 *-sunos5* |
*-solaris* )
2404 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2408 ## Watch out for a compiler that we know will not work.
2409 case "${canonical}" in
2410 *-solaris* |
*-sunos5* )
2411 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2412 ## /usr/ucb/cc doesn't work;
2413 ## we should find some other compiler that does work.
2421 machine
=sparc opsys
=nextstep
2425 m68
*-tadpole-sysv* )
2426 machine
=tad68k opsys
=usg5-3
2430 tahoe-tahoe-bsd4.2
* )
2431 machine
=tahoe opsys
=bsd4-2
2433 tahoe-tahoe-bsd4.3
* )
2434 machine
=tahoe opsys
=bsd4-3
2437 ## Tandem Integrity S2
2439 machine
=tandem-s2 opsys
=usg5-3
2443 m88k-tektronix-sysv3
* )
2444 machine
=tekxd88 opsys
=usg5-3
2447 ## Tektronix 16000 box (6130?)
2448 ns16k-tektronix-bsd
* )
2449 machine
=ns16000 opsys
=bsd4-2
2452 ## src/m/tek4300.h hints that this is a m68k machine.
2453 m68
*-tektronix-bsd* )
2454 machine
=tek4300 opsys
=bsd4-3
2458 ## We seem to have lost the machine-description file titan.h!
2460 machine
=titan opsys
=usg5-3
2463 ## Ustation E30 (SS5E)
2464 m68
*-unisys-uniplus* )
2465 machine
=ustation opsystem
=unipl5-2
2471 case "${canonical}" in
2472 *-bsd4.1
* ) opsys
=bsd4-1
;;
2473 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2474 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2475 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2476 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2477 *-vms* ) opsys
=vms
;;
2483 ns16k-whitechapel-
* )
2485 ## We don't know what sort of OS runs on these; we'll let the
2486 ## operating system guessing code below try.
2491 machine
=wicat opsys
=usg5-2
2496 machine
=ia64 opsys
=gnu-linux
2499 ## Intel 386 machines where we don't care about the manufacturer
2502 case "${canonical}" in
2503 *-cygwin ) opsys
=cygwin
;;
2504 *-lynxos* ) opsys
=lynxos
;;
2505 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2506 *-isc2.2
* ) opsys
=isc2-2
;;
2507 *-isc4.0
* ) opsys
=isc4-0
;;
2508 *-isc4.
* ) opsys
=isc4-1
2509 GCC_TEST_OPTIONS
=-posix
2510 NON_GCC_TEST_OPTIONS
=-Xp
2512 *-isc* ) opsys
=isc3-0
;;
2513 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2514 *-esix* ) opsys
=esix
;;
2515 *-xenix* ) opsys
=xenix
;;
2516 *-linux-gnu* ) opsys
=gnu-linux
;;
2517 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2518 *-sco3.2v5
* ) opsys
=sco5
2519 NON_GNU_CPP
=/lib
/cpp
2520 # Prevent -belf from being passed to $CPP.
2521 # /lib/cpp does not accept it.
2522 OVERRIDE_CPPFLAGS
=" "
2524 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2525 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2526 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2527 *-386bsd* ) opsys
=386bsd
;;
2528 *-nextstep* ) opsys
=nextstep
;;
2529 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2533 ## m68k Linux-based GNU system
2535 machine
=m68k opsys
=gnu-linux
2538 ## Mips Linux-based GNU system
2539 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2540 machine
=mips opsys
=gnu-linux
2544 sparc-fujitsu-sysv4
* )
2545 machine
=sparc opsys
=uxpds
2546 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2551 f301-fujitsu-uxpv4.1
)
2552 machine
=f301 opsys
=uxpv
2555 ## Darwin / Mac OS X
2556 powerpc-apple-darwin
* )
2557 machine
=powermac opsys
=darwin
2558 # Define CPP as follows to make autoconf work correctly.
2559 CPP
="cc -E -traditional-cpp"
2562 ## AMD x86-64 Linux-based GNU system
2563 x86_64-
*-linux-gnu* )
2564 machine
=amdx86-64 opsys
=gnu-linux
2572 ### If the code above didn't choose an operating system, just choose
2573 ### an operating system based on the configuration name. You really
2574 ### only want to use this when you have no idea what the right
2575 ### operating system is; if you know what operating systems a machine
2576 ### runs, it's cleaner to make it explicit in the case statement
2578 if test x
"${opsys}" = x
; then
2579 case "${canonical}" in
2580 *-gnu* ) opsys
=gnu
;;
2581 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2582 *-bsd4.2
) opsys
=bsd4-2
;;
2583 *-bsd4.3
) opsys
=bsd4-3
;;
2584 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2585 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2586 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2587 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2588 *-sysv4.2uw
* ) opsys
=unixware
;;
2589 *-sysv5uw* ) opsys
=unixware
;;
2590 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2591 *-sysv4.1
* |
*-sysvr4.1
* )
2592 NON_GNU_CPP
=/usr
/lib
/cpp
2594 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2595 if [ x
$NON_GNU_CPP = x
]; then
2596 if [ -f /usr
/ccs
/lib
/cpp
]; then
2597 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2599 NON_GNU_CPP
=/lib
/cpp
2603 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2612 if test $unported = yes; then
2613 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2614 Check \`etc/MACHINES' for recognized configuration names." >&5
2615 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2616 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2617 { (exit 1); exit 1; }; }
2620 machfile
="m/${machine}.h"
2621 opsysfile
="s/${opsys}.h"
2624 #### Choose a compiler.
2625 test -n "$CC" && cc_specified
=yes
2627 # Save the value of CFLAGS that the user specified.
2628 SPECIFIED_CFLAGS
="$CFLAGS"
2631 "yes" ) CC
="gcc" GCC
=yes ;;
2632 "no" ) : ${CC=cc} ;;
2636 ac_cpp
='$CPP $CPPFLAGS'
2637 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2640 if test -n "$ac_tool_prefix"; then
2641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2642 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_CC+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC
="$CC" # Let the user override the test.
2651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir
=.
2656 for ac_exec_ext
in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 if test -n "$CC"; then
2669 echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2677 if test -z "$ac_cv_prog_CC"; then
2679 # Extract the first word of "gcc", so it can be a program name with args.
2680 set dummy gcc
; ac_word
=$2
2681 echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir
=.
2694 for ac_exec_ext
in '' $ac_executable_extensions; do
2695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_ac_ct_CC
="gcc"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708 echo "${ECHO_T}$ac_ct_CC" >&6
2710 echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2719 if test -z "$CC"; then
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2722 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2723 echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2725 if test "${ac_cv_prog_CC+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC
="$CC" # Let the user override the test.
2731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir
=.
2736 for ac_exec_ext
in '' $ac_executable_extensions; do
2737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 if test -n "$CC"; then
2749 echo "$as_me:$LINENO: result: $CC" >&5
2750 echo "${ECHO_T}$CC" >&6
2752 echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2757 if test -z "$ac_cv_prog_CC"; then
2759 # Extract the first word of "cc", so it can be a program name with args.
2760 set dummy cc
; ac_word
=$2
2761 echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir
=.
2774 for ac_exec_ext
in '' $ac_executable_extensions; do
2775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_ac_ct_CC
="cc"
2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2788 echo "${ECHO_T}$ac_ct_CC" >&6
2790 echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2800 if test -z "$CC"; then
2801 # Extract the first word of "cc", so it can be a program name with args.
2802 set dummy cc
; ac_word
=$2
2803 echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2805 if test "${ac_cv_prog_CC+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC
="$CC" # Let the user override the test.
2812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir
=.
2817 for ac_exec_ext
in '' $ac_executable_extensions; do
2818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2820 ac_prog_rejected
=yes
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test $ac_prog_rejected = yes; then
2831 # We found a bogon in the path, so make sure we never use it.
2832 set dummy
$ac_cv_prog_CC
2834 if test $# != 0; then
2835 # We chose a different compiler from the bogus one.
2836 # However, it has the same basename, so the bogon will be chosen
2837 # first if we set CC to just the basename; use the full file name.
2839 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2845 if test -n "$CC"; then
2846 echo "$as_me:$LINENO: result: $CC" >&5
2847 echo "${ECHO_T}$CC" >&6
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2854 if test -z "$CC"; then
2855 if test -n "$ac_tool_prefix"; then
2858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2859 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2860 echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862 if test "${ac_cv_prog_CC+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC
="$CC" # Let the user override the test.
2868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir
=.
2873 for ac_exec_ext
in '' $ac_executable_extensions; do
2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$CC"; then
2886 echo "$as_me:$LINENO: result: $CC" >&5
2887 echo "${ECHO_T}$CC" >&6
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2893 test -n "$CC" && break
2896 if test -z "$CC"; then
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy
$ac_prog; ac_word
=$2
2902 echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir
=.
2915 for ac_exec_ext
in '' $ac_executable_extensions; do
2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_ac_ct_CC
="$ac_prog"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2929 echo "${ECHO_T}$ac_ct_CC" >&6
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2935 test -n "$ac_ct_CC" && break
2944 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: no acceptable C compiler found in \$PATH
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2950 # Provide some information about the compiler.
2951 echo "$as_me:$LINENO:" \
2952 "checking for C compiler version" >&5
2953 ac_compiler
=`set X $ac_compile; echo $2`
2954 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2955 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2960 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2965 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }
2970 cat >conftest.
$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2974 cat confdefs.h
>>conftest.
$ac_ext
2975 cat >>conftest.
$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2986 ac_clean_files_save
=$ac_clean_files
2987 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2991 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2992 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2993 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2995 (eval $ac_link_default) 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; then
2999 # Find the output, starting from the most likely. This scheme is
3000 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3003 # Be careful to initialize this variable, since it used to be cached.
3004 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3006 # b.out is created by i960 compilers.
3007 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3009 test -f "$ac_file" ||
continue
3011 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3014 # This is the source file.
3017 # We found the default executable, but exeext='' is most
3021 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 # FIXME: I believe we export ac_cv_exeext for Libtool,
3023 # but it would be cool to find out if it's true. Does anybody
3024 # maintain Libtool? --akim.
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.
$ac_ext >&5
3035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C compiler cannot create executables
3038 See \`config.log' for more details." >&2;}
3039 { (exit 77); exit 77; }; }
3042 ac_exeext
=$ac_cv_exeext
3043 echo "$as_me:$LINENO: result: $ac_file" >&5
3044 echo "${ECHO_T}$ac_file" >&6
3046 # Check the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3051 # If not cross compiling, check that we can run a simple program.
3052 if test "$cross_compiling" != yes; then
3053 if { ac_try
='./$ac_file'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3061 if test "$cross_compiling" = maybe
; then
3064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3065 If you meant to cross compile, use \`--host'.
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot run C compiled programs.
3068 If you meant to cross compile, use \`--host'.
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3074 echo "$as_me:$LINENO: result: yes" >&5
3075 echo "${ECHO_T}yes" >&6
3077 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3078 ac_clean_files
=$ac_clean_files_save
3079 # Check the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3082 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3083 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3084 echo "${ECHO_T}$cross_compiling" >&6
3086 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3087 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089 (eval $ac_link) 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe'), while it won't with
3097 for ac_file
in conftest.exe conftest conftest.
*; do
3098 test -f "$ac_file" ||
continue
3100 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3101 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." >&5
3110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3115 rm -f conftest
$ac_cv_exeext
3116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3117 echo "${ECHO_T}$ac_cv_exeext" >&6
3119 rm -f conftest.
$ac_ext
3120 EXEEXT
=$ac_cv_exeext
3122 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3123 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3124 if test "${ac_cv_objext+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 cat >conftest.
$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3131 cat confdefs.h
>>conftest.
$ac_ext
3132 cat >>conftest.
$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.o conftest.obj
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; then
3149 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3151 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3152 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.
$ac_ext >&5
3160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3167 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3169 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3170 echo "${ECHO_T}$ac_cv_objext" >&6
3171 OBJEXT
=$ac_cv_objext
3173 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3174 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3175 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 cat >conftest.
$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3182 cat confdefs.h
>>conftest.
$ac_ext
3183 cat >>conftest.
$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3197 rm -f conftest.
$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try
='test -s conftest.$ac_objext'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.
$ac_ext >&5
3216 rm -f conftest.
$ac_objext conftest.
$ac_ext
3217 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3220 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3221 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3222 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3223 ac_test_CFLAGS
=${CFLAGS+set}
3224 ac_save_CFLAGS
=$CFLAGS
3226 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3227 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3228 if test "${ac_cv_prog_cc_g+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 cat >conftest.
$ac_ext <<_ACEOF
3232 #line $LINENO "configure"
3235 cat confdefs.h
>>conftest.
$ac_ext
3236 cat >>conftest.
$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 rm -f conftest.
$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try
='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.
$ac_ext >&5
3266 rm -f conftest.
$ac_objext conftest.
$ac_ext
3268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3270 if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS
=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3279 if test "$GCC" = yes; then
3285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 ac_cv_prog_cc_stdc
=no
3292 cat >conftest.
$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3296 cat confdefs.h
>>conftest.
$ac_ext
3297 cat >>conftest.
$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3301 #include <sys/types.h>
3302 #include <sys/stat.h>
3303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3304 struct buf { int x; };
3305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3306 static char *e (p, i)
3312 static char *f (char * (*g) (char **, int), char **p, ...)
3317 s = g (p, va_arg (v,int));
3321 int test (int i, double x);
3322 struct s1 {int (*f) (int a);};
3323 struct s2 {int (*f) (double a);};
3324 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3330 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3335 # Don't try gcc -ansi; that turns off useful extensions and
3336 # breaks some systems' header files.
3337 # AIX -qlanglvl=ansi
3338 # Ultrix and OSF/1 -std1
3339 # HP-UX 10.20 and later -Ae
3340 # HP-UX older versions -Aa -D_HPUX_SOURCE
3341 # SVR4 -Xc -D__EXTENSIONS__
3342 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344 CC
="$ac_save_CC $ac_arg"
3345 rm -f conftest.
$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try
='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_prog_cc_stdc
=$ac_arg
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3364 rm -f conftest.
$ac_objext
3366 rm -f conftest.
$ac_ext conftest.
$ac_objext
3371 case "x$ac_cv_prog_cc_stdc" in
3373 echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6 ;;
3376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3378 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3381 # Some people use a C++ compiler to compile C. Since we use `exit',
3382 # in C++ we need to declare it. In case someone uses the same compiler
3383 # for both compiling C and C++ we need to have the C++ compiler decide
3384 # the declaration of exit, since it's the most demanding environment.
3385 cat >conftest.
$ac_ext <<_ACEOF
3390 rm -f conftest.
$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try
='test -s conftest.$ac_objext'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 for ac_declaration
in \
3404 '#include <stdlib.h>' \
3405 'extern "C" void std::exit (int) throw (); using std::exit;' \
3406 'extern "C" void std::exit (int); using std::exit;' \
3407 'extern "C" void exit (int) throw ();' \
3408 'extern "C" void exit (int);' \
3411 cat >conftest.
$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3415 cat confdefs.h
>>conftest.
$ac_ext
3416 cat >>conftest.
$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3428 rm -f conftest.
$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try
='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.
$ac_ext >&5
3447 rm -f conftest.
$ac_objext conftest.
$ac_ext
3448 cat >conftest.
$ac_ext <<_ACEOF
3449 #line $LINENO "configure"
3452 cat confdefs.h
>>conftest.
$ac_ext
3453 cat >>conftest.
$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3464 rm -f conftest.
$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try
='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.
$ac_ext >&5
3482 rm -f conftest.
$ac_objext conftest.
$ac_ext
3485 if test -n "$ac_declaration"; then
3486 echo '#ifdef __cplusplus' >>confdefs.h
3487 echo $ac_declaration >>confdefs.h
3488 echo '#endif' >>confdefs.h
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.
$ac_ext >&5
3496 rm -f conftest.
$ac_objext conftest.
$ac_ext
3498 ac_cpp
='$CPP $CPPFLAGS'
3499 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3504 # On Suns, sometimes $CPP names a directory.
3505 if test -n "$CPP" && test -d "$CPP"; then
3509 #### Some systems specify a CPP to use unless we are using GCC.
3510 #### Now that we know whether we are using GCC, we can decide whether
3511 #### to use that one.
3512 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3517 #### Some systems specify a CC to use unless we are using GCC.
3518 #### Now that we know whether we are using GCC, we can decide whether
3519 #### to use that one.
3520 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3521 test x
$cc_specified != xyes
3526 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3528 CC
="$CC $GCC_TEST_OPTIONS"
3531 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3533 CC
="$CC $NON_GCC_TEST_OPTIONS"
3536 #### Some other nice autoconf tests.
3538 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3539 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3541 if test "$LN_S" = "ln -s"; then
3542 echo "$as_me:$LINENO: result: yes" >&5
3543 echo "${ECHO_T}yes" >&6
3545 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3546 echo "${ECHO_T}no, using $LN_S" >&6
3550 ac_cpp
='$CPP $CPPFLAGS'
3551 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3554 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3555 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3556 # On Suns, sometimes $CPP names a directory.
3557 if test -n "$CPP" && test -d "$CPP"; then
3560 if test -z "$CPP"; then
3561 if test "${ac_cv_prog_CPP+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 # Double quotes because CPP needs to be expanded
3565 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3568 for ac_c_preproc_warn_flag
in '' yes
3570 # Use a header file that comes with gcc, so configuring glibc
3571 # with a fresh cross-compiler works.
3572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573 # <limits.h> exists even on freestanding compilers.
3574 # On the NeXT, cc -E runs the code through the compiler's parser,
3575 # not just through cpp. "Syntax error" is here to catch this case.
3576 cat >conftest.
$ac_ext <<_ACEOF
3577 #line $LINENO "configure"
3580 cat confdefs.h
>>conftest.
$ac_ext
3581 cat >>conftest.
$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3584 # include <limits.h>
3586 # include <assert.h>
3590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3593 grep -v '^ *+' conftest.er1
>conftest.err
3595 cat conftest.err
>&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev
/null
; then
3598 if test -s conftest.err
; then
3599 ac_cpp_err
=$ac_c_preproc_warn_flag
3606 if test -z "$ac_cpp_err"; then
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.
$ac_ext >&5
3612 # Broken: fails on valid input.
3615 rm -f conftest.err conftest.
$ac_ext
3617 # OK, works on sane cases. Now check whether non-existent headers
3618 # can be detected and how.
3619 cat >conftest.
$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3623 cat confdefs.h
>>conftest.
$ac_ext
3624 cat >>conftest.
$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 #include <ac_nonexistent.h>
3628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3629 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3631 grep -v '^ *+' conftest.er1
>conftest.err
3633 cat conftest.err
>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } >/dev
/null
; then
3636 if test -s conftest.err
; then
3637 ac_cpp_err
=$ac_c_preproc_warn_flag
3644 if test -z "$ac_cpp_err"; then
3645 # Broken: success on invalid input.
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.
$ac_ext >&5
3651 # Passes both tests.
3655 rm -f conftest.err conftest.
$ac_ext
3658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3659 rm -f conftest.err conftest.
$ac_ext
3660 if $ac_preproc_ok; then
3672 echo "$as_me:$LINENO: result: $CPP" >&5
3673 echo "${ECHO_T}$CPP" >&6
3675 for ac_c_preproc_warn_flag
in '' yes
3677 # Use a header file that comes with gcc, so configuring glibc
3678 # with a fresh cross-compiler works.
3679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3680 # <limits.h> exists even on freestanding compilers.
3681 # On the NeXT, cc -E runs the code through the compiler's parser,
3682 # not just through cpp. "Syntax error" is here to catch this case.
3683 cat >conftest.
$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3687 cat confdefs.h
>>conftest.
$ac_ext
3688 cat >>conftest.
$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3691 # include <limits.h>
3693 # include <assert.h>
3697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3700 grep -v '^ *+' conftest.er1
>conftest.err
3702 cat conftest.err
>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } >/dev
/null
; then
3705 if test -s conftest.err
; then
3706 ac_cpp_err
=$ac_c_preproc_warn_flag
3713 if test -z "$ac_cpp_err"; then
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.
$ac_ext >&5
3719 # Broken: fails on valid input.
3722 rm -f conftest.err conftest.
$ac_ext
3724 # OK, works on sane cases. Now check whether non-existent headers
3725 # can be detected and how.
3726 cat >conftest.
$ac_ext <<_ACEOF
3727 #line $LINENO "configure"
3730 cat confdefs.h
>>conftest.
$ac_ext
3731 cat >>conftest.
$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 #include <ac_nonexistent.h>
3735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3738 grep -v '^ *+' conftest.er1
>conftest.err
3740 cat conftest.err
>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } >/dev
/null
; then
3743 if test -s conftest.err
; then
3744 ac_cpp_err
=$ac_c_preproc_warn_flag
3751 if test -z "$ac_cpp_err"; then
3752 # Broken: success on invalid input.
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.
$ac_ext >&5
3758 # Passes both tests.
3762 rm -f conftest.err conftest.
$ac_ext
3765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3766 rm -f conftest.err conftest.
$ac_ext
3767 if $ac_preproc_ok; then
3770 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3771 See \`config.log' for more details." >&5
3772 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3773 See \`config.log' for more details." >&2;}
3774 { (exit 1); exit 1; }; }
3778 ac_cpp
='$CPP $CPPFLAGS'
3779 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3783 # Find a good install program. We prefer a C program (faster),
3784 # so one script is as good as another. But avoid the broken or
3785 # incompatible versions:
3786 # SysV /etc/install, /usr/sbin/install
3787 # SunOS /usr/etc/install
3788 # IRIX /sbin/install
3790 # AmigaOS /C/install, which installs bootblocks on floppy discs
3791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3794 # ./install, which can be erroneously created by make from ./install.sh.
3795 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3796 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3797 if test -z "$INSTALL"; then
3798 if test "${ac_cv_path_install+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir
=.
3806 # Account for people who put trailing slashes in PATH elements.
3808 .
/ | .
// |
/cC
/* | \
3809 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3812 # OSF1 and SCO ODT 3.0 have their own names for install.
3813 # Don't use installbsd from OSF since it installs stuff as root
3815 for ac_prog
in ginstall scoinst
install; do
3816 for ac_exec_ext
in '' $ac_executable_extensions; do
3817 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3818 if test $ac_prog = install &&
3819 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3820 # AIX install. It has an incompatible calling convention.
3822 elif test $ac_prog = install &&
3823 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3824 # program-specific install script used by HP pwplus--don't use.
3827 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3839 if test "${ac_cv_path_install+set}" = set; then
3840 INSTALL
=$ac_cv_path_install
3842 # As a last resort, use the slow shell script. We don't cache a
3843 # path for INSTALL within a source directory, because that will
3844 # break other packages using the cache if that directory is
3845 # removed, or if the path is relative.
3846 INSTALL
=$ac_install_sh
3849 echo "$as_me:$LINENO: result: $INSTALL" >&5
3850 echo "${ECHO_T}$INSTALL" >&6
3852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3853 # It thinks the first close brace ends the variable substitution.
3854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3858 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3860 if test "x$RANLIB" = x
; then
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3863 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_RANLIB+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$RANLIB"; then
3870 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir
=.
3877 for ac_exec_ext
in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 RANLIB
=$ac_cv_prog_RANLIB
3889 if test -n "$RANLIB"; then
3890 echo "$as_me:$LINENO: result: $RANLIB" >&5
3891 echo "${ECHO_T}$RANLIB" >&6
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3898 if test -z "$ac_cv_prog_RANLIB"; then
3899 ac_ct_RANLIB
=$RANLIB
3900 # Extract the first word of "ranlib", so it can be a program name with args.
3901 set dummy ranlib
; ac_word
=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$ac_ct_RANLIB"; then
3908 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir
=.
3915 for ac_exec_ext
in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3927 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3928 if test -n "$ac_ct_RANLIB"; then
3929 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3930 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3932 echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3936 RANLIB
=$ac_ct_RANLIB
3938 RANLIB
="$ac_cv_prog_RANLIB"
3942 # Extract the first word of "install-info", so it can be a program name with args.
3943 set dummy install-info
; ac_word
=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 case $INSTALL_INFO in
3951 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir
=.
3959 for ac_exec_ext
in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3973 if test -n "$INSTALL_INFO"; then
3974 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3975 echo "${ECHO_T}$INSTALL_INFO" >&6
3977 echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6
3981 # Extract the first word of "install-info", so it can be a program name with args.
3982 set dummy install-info
; ac_word
=$2
3983 echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3985 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 case $INSTALL_INFO in
3990 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3994 for as_dir
in /usr
/sbin
3997 test -z "$as_dir" && as_dir
=.
3998 for ac_exec_ext
in '' $ac_executable_extensions; do
3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4012 if test -n "$INSTALL_INFO"; then
4013 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4014 echo "${ECHO_T}$INSTALL_INFO" >&6
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4020 # Extract the first word of "install-info", so it can be a program name with args.
4021 set dummy install-info
; ac_word
=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 case $INSTALL_INFO in
4029 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir
=.
4037 for ac_exec_ext
in '' $ac_executable_extensions; do
4038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4050 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4052 if test -n "$INSTALL_INFO"; then
4053 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4054 echo "${ECHO_T}$INSTALL_INFO" >&6
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4062 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4064 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4067 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4069 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4074 echo "$as_me:$LINENO: checking for egrep" >&5
4075 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4076 if test "${ac_cv_prog_egrep+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4080 then ac_cv_prog_egrep
='grep -E'
4081 else ac_cv_prog_egrep
='egrep'
4084 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4085 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4086 EGREP
=$ac_cv_prog_egrep
4090 echo "$as_me:$LINENO: checking for AIX" >&5
4091 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4092 cat >conftest.
$ac_ext <<_ACEOF
4093 #line $LINENO "configure"
4096 cat confdefs.h
>>conftest.
$ac_ext
4097 cat >>conftest.
$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 $EGREP "yes" >/dev
/null
2>&1; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107 echo "${ECHO_T}yes" >&6
4108 cat >>confdefs.h
<<\_ACEOF
4109 #define _ALL_SOURCE 1
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4120 #### Extract some information from the operating system and machine files.
4122 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4123 - which libraries the lib-src programs will want, and
4124 - whether the GNU malloc routines are usable..." >&5
4125 echo "$as_me: checking the machine- and system-dependent files to find out
4126 - which libraries the lib-src programs will want, and
4127 - whether the GNU malloc routines are usable..." >&6;}
4129 ### First figure out CFLAGS (which we use for running the compiler here)
4130 ### and REAL_CFLAGS (which we use for real compilation).
4131 ### The two are the same except on a few systems, where they are made
4132 ### different to work around various lossages. For example,
4133 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4134 ### as implying static linking.
4136 ### If the CFLAGS env var is specified, we use that value
4137 ### instead of the default.
4139 ### It's not important that this name contain the PID; you can't run
4140 ### two configures in the same directory and have anything work
4142 tempcname
="conftest.c"
4145 #include "'${srcdir}'/src/'${opsysfile}'"
4146 #include "'${srcdir}'/src/'${machfile}'"
4147 #ifndef LIBS_MACHINE
4148 #define LIBS_MACHINE
4153 #ifndef C_SWITCH_SYSTEM
4154 #define C_SWITCH_SYSTEM
4156 #ifndef C_SWITCH_MACHINE
4157 #define C_SWITCH_MACHINE
4159 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4160 configure___ c_switch_system=C_SWITCH_SYSTEM
4161 configure___ c_switch_machine=C_SWITCH_MACHINE
4164 #define LIB_X11_LIB -lX11
4167 #ifndef LIBX11_MACHINE
4168 #define LIBX11_MACHINE
4171 #ifndef LIBX11_SYSTEM
4172 #define LIBX11_SYSTEM
4174 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4177 configure___ unexec=UNEXEC
4179 configure___ unexec=unexec.o
4182 #ifdef SYSTEM_MALLOC
4183 configure___ system_malloc=yes
4185 configure___ system_malloc=no
4188 #ifdef USE_MMAP_FOR_BUFFERS
4189 configure___ use_mmap_for_buffers=yes
4191 configure___ use_mmap_for_buffers=no
4194 #ifndef C_DEBUG_SWITCH
4195 #define C_DEBUG_SWITCH -g
4198 #ifndef C_OPTIMIZE_SWITCH
4200 #define C_OPTIMIZE_SWITCH -O2
4202 #define C_OPTIMIZE_SWITCH -O
4206 #ifndef LD_SWITCH_MACHINE
4207 #define LD_SWITCH_MACHINE
4210 #ifndef LD_SWITCH_SYSTEM
4211 #define LD_SWITCH_SYSTEM
4214 #ifndef LD_SWITCH_X_SITE_AUX
4215 #define LD_SWITCH_X_SITE_AUX
4218 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4219 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4221 #ifdef THIS_IS_CONFIGURE
4223 /* Get the CFLAGS for tests in configure. */
4225 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4227 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4230 #else /* not THIS_IS_CONFIGURE */
4232 /* Get the CFLAGS for real compilation. */
4234 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4236 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4239 #endif /* not THIS_IS_CONFIGURE */
4242 # The value of CPP is a quoted variable reference, so we need to do this
4243 # to get its actual value...
4244 CPP
=`eval "echo $CPP"`
4245 eval `${CPP} -Isrc ${tempcname} \
4246 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4247 if test "x$SPECIFIED_CFLAGS" = x
; then
4248 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4249 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4251 REAL_CFLAGS
="$CFLAGS"
4255 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4257 ### Make sure subsequent tests use flags consistent with the build flags.
4259 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4260 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4262 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4268 cat >>confdefs.h
<<\_ACEOF
4269 #define _GNU_SOURCE 1
4274 # Check whether --enable-largefile or --disable-largefile was given.
4275 if test "${enable_largefile+set}" = set; then
4276 enableval
="$enable_largefile"
4279 if test "$enable_largefile" != no
; then
4281 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4282 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4283 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 ac_cv_sys_largefile_CC
=no
4287 if test "$GCC" != yes; then
4290 # IRIX 6.2 and later do not support large files by default,
4291 # so use the C compiler's -n32 option if that helps.
4292 cat >conftest.
$ac_ext <<_ACEOF
4293 #line $LINENO "configure"
4296 cat confdefs.h
>>conftest.
$ac_ext
4297 cat >>conftest.
$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 #include <sys/types.h>
4300 /* Check that off_t can represent 2**63 - 1 correctly.
4301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4302 since some C++ compilers masquerading as C compilers
4303 incorrectly reject 9223372036854775807. */
4304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4306 && LARGE_OFF_T % 2147483647 == 1)
4316 rm -f conftest.
$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try
='test -s conftest.$ac_objext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.
$ac_ext >&5
4334 rm -f conftest.
$ac_objext
4336 rm -f conftest.
$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try
='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_sys_largefile_CC
=' -n32'; break
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4354 rm -f conftest.
$ac_objext
4358 rm -f conftest.
$ac_ext
4361 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4362 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4363 if test "$ac_cv_sys_largefile_CC" != no
; then
4364 CC
=$CC$ac_cv_sys_largefile_CC
4367 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4368 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4369 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 ac_cv_sys_file_offset_bits
=no
4374 cat >conftest.
$ac_ext <<_ACEOF
4375 #line $LINENO "configure"
4378 cat confdefs.h
>>conftest.
$ac_ext
4379 cat >>conftest.
$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 #include <sys/types.h>
4382 /* Check that off_t can represent 2**63 - 1 correctly.
4383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4384 since some C++ compilers masquerading as C compilers
4385 incorrectly reject 9223372036854775807. */
4386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4388 && LARGE_OFF_T % 2147483647 == 1)
4398 rm -f conftest.
$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try
='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.
$ac_ext >&5
4416 rm -f conftest.
$ac_objext conftest.
$ac_ext
4417 cat >conftest.
$ac_ext <<_ACEOF
4418 #line $LINENO "configure"
4421 cat confdefs.h
>>conftest.
$ac_ext
4422 cat >>conftest.
$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #define _FILE_OFFSET_BITS 64
4425 #include <sys/types.h>
4426 /* Check that off_t can represent 2**63 - 1 correctly.
4427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4428 since some C++ compilers masquerading as C compilers
4429 incorrectly reject 9223372036854775807. */
4430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4432 && LARGE_OFF_T % 2147483647 == 1)
4442 rm -f conftest.
$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try
='test -s conftest.$ac_objext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_sys_file_offset_bits
=64; break
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4460 rm -f conftest.
$ac_objext conftest.
$ac_ext
4464 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4465 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4466 if test "$ac_cv_sys_file_offset_bits" != no
; then
4468 cat >>confdefs.h
<<_ACEOF
4469 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4474 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4475 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4476 if test "${ac_cv_sys_large_files+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 ac_cv_sys_large_files
=no
4481 cat >conftest.
$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4485 cat confdefs.h
>>conftest.
$ac_ext
4486 cat >>conftest.
$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #include <sys/types.h>
4489 /* Check that off_t can represent 2**63 - 1 correctly.
4490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4491 since some C++ compilers masquerading as C compilers
4492 incorrectly reject 9223372036854775807. */
4493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4495 && LARGE_OFF_T % 2147483647 == 1)
4505 rm -f conftest.
$ac_objext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try
='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.
$ac_ext >&5
4523 rm -f conftest.
$ac_objext conftest.
$ac_ext
4524 cat >conftest.
$ac_ext <<_ACEOF
4525 #line $LINENO "configure"
4528 cat confdefs.h
>>conftest.
$ac_ext
4529 cat >>conftest.
$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #define _LARGE_FILES 1
4532 #include <sys/types.h>
4533 /* Check that off_t can represent 2**63 - 1 correctly.
4534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4535 since some C++ compilers masquerading as C compilers
4536 incorrectly reject 9223372036854775807. */
4537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4539 && LARGE_OFF_T % 2147483647 == 1)
4549 rm -f conftest.
$ac_objext
4550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551 (eval $ac_compile) 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try
='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_sys_large_files
=1; break
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.
$ac_ext >&5
4567 rm -f conftest.
$ac_objext conftest.
$ac_ext
4571 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4572 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4573 if test "$ac_cv_sys_large_files" != no
; then
4575 cat >>confdefs.h
<<_ACEOF
4576 #define _LARGE_FILES $ac_cv_sys_large_files
4584 if test "${with_sound}" != "no"; then
4585 # Sound support for GNU/Linux and the free BSDs.
4586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4588 if test "${ac_cv_header_stdc+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 cat >conftest.
$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4595 cat confdefs.h
>>conftest.
$ac_ext
4596 cat >>conftest.
$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4611 rm -f conftest.
$ac_objext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try
='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_header_stdc
=yes
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.
$ac_ext >&5
4628 ac_cv_header_stdc
=no
4630 rm -f conftest.
$ac_objext conftest.
$ac_ext
4632 if test $ac_cv_header_stdc = yes; then
4633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4634 cat >conftest.
$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4638 cat confdefs.h
>>conftest.
$ac_ext
4639 cat >>conftest.
$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev
/null
2>&1; then
4648 ac_cv_header_stdc
=no
4654 if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat >conftest.
$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4660 cat confdefs.h
>>conftest.
$ac_ext
4661 cat >>conftest.
$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "free" >/dev
/null
2>&1; then
4670 ac_cv_header_stdc
=no
4676 if test $ac_cv_header_stdc = yes; then
4677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4678 if test "$cross_compiling" = yes; then
4681 cat >conftest.
$ac_ext <<_ACEOF
4682 #line $LINENO "configure"
4685 cat confdefs.h
>>conftest.
$ac_ext
4686 cat >>conftest.
$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 #if ((' ' & 0x0FF) == 0x020)
4690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4693 # define ISLOWER(c) \
4694 (('a' <= (c) && (c) <= 'i') \
4695 || ('j' <= (c) && (c) <= 'r') \
4696 || ('s' <= (c) && (c) <= 'z'))
4697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4705 for (i = 0; i < 256; i++)
4706 if (XOR (islower (i), ISLOWER (i))
4707 || toupper (i) != TOUPPER (i))
4712 rm -f conftest
$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714 (eval $ac_link) 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4725 echo "$as_me: program exited with status $ac_status" >&5
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.
$ac_ext >&5
4730 ac_cv_header_stdc
=no
4732 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4736 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4737 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4738 if test $ac_cv_header_stdc = yes; then
4740 cat >>confdefs.h
<<\_ACEOF
4741 #define STDC_HEADERS 1
4746 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4756 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4757 inttypes.h stdint.h unistd.h
4759 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 echo "$as_me:$LINENO: checking for $ac_header" >&5
4761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.
$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4774 #include <$ac_header>
4776 rm -f conftest.
$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try
='test -s conftest.$ac_objext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 eval "$as_ac_Header=yes"
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.
$ac_ext >&5
4793 eval "$as_ac_Header=no"
4795 rm -f conftest.
$ac_objext conftest.
$ac_ext
4797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4800 cat >>confdefs.h
<<_ACEOF
4801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4812 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4814 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo "$as_me:$LINENO: checking for $ac_header" >&5
4817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4824 # Is the header compilable?
4825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4827 cat >conftest.
$ac_ext <<_ACEOF
4828 #line $LINENO "configure"
4831 cat confdefs.h
>>conftest.
$ac_ext
4832 cat >>conftest.
$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 $ac_includes_default
4835 #include <$ac_header>
4837 rm -f conftest.
$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try
='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_header_compiler
=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.
$ac_ext >&5
4854 ac_header_compiler
=no
4856 rm -f conftest.
$ac_objext conftest.
$ac_ext
4857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4858 echo "${ECHO_T}$ac_header_compiler" >&6
4860 # Is the header present?
4861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4863 cat >conftest.
$ac_ext <<_ACEOF
4864 #line $LINENO "configure"
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <$ac_header>
4872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4873 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4875 grep -v '^ *+' conftest.er1
>conftest.err
4877 cat conftest.err
>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev
/null
; then
4880 if test -s conftest.err
; then
4881 ac_cpp_err
=$ac_c_preproc_warn_flag
4888 if test -z "$ac_cpp_err"; then
4889 ac_header_preproc
=yes
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.
$ac_ext >&5
4894 ac_header_preproc
=no
4896 rm -f conftest.err conftest.
$ac_ext
4897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4898 echo "${ECHO_T}$ac_header_preproc" >&6
4900 # So? What about this header?
4901 case $ac_header_compiler:$ac_header_preproc in
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4909 ## ------------------------------------ ##
4910 ## Report this to bug-autoconf@gnu.org. ##
4911 ## ------------------------------------ ##
4914 sed "s/^/$as_me: WARNING: /" >&2
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4925 ## ------------------------------------ ##
4926 ## Report this to bug-autoconf@gnu.org. ##
4927 ## ------------------------------------ ##
4930 sed "s/^/$as_me: WARNING: /" >&2
4933 echo "$as_me:$LINENO: checking for $ac_header" >&5
4934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 eval "$as_ac_Header=$ac_header_preproc"
4940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4945 cat >>confdefs.h
<<_ACEOF
4946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4953 # Emulation library used on NetBSD.
4954 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4955 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4956 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 ac_check_lib_save_LIBS
=$LIBS
4960 LIBS
="-lossaudio $LIBS"
4961 cat >conftest.
$ac_ext <<_ACEOF
4962 #line $LINENO "configure"
4965 cat confdefs.h
>>conftest.
$ac_ext
4966 cat >>conftest.
$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4969 /* Override any gcc2 internal prototype to avoid an error. */
4973 /* We use char because int might match the return type of a gcc2
4974 builtin and then its argument prototype would still apply. */
4984 rm -f conftest.
$ac_objext conftest
$ac_exeext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986 (eval $ac_link) 2>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try
='test -s conftest$ac_exeext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_cv_lib_ossaudio__oss_ioctl
=yes
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.
$ac_ext >&5
5001 ac_cv_lib_ossaudio__oss_ioctl
=no
5003 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5004 LIBS
=$ac_check_lib_save_LIBS
5006 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5007 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5008 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5040 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5041 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5042 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5043 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5045 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047 echo "$as_me:$LINENO: checking for $ac_header" >&5
5048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5055 # Is the header compilable?
5056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5058 cat >conftest.
$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5062 cat confdefs.h
>>conftest.
$ac_ext
5063 cat >>conftest.
$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5068 rm -f conftest.
$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try
='test -s conftest.$ac_objext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 ac_header_compiler
=yes
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.
$ac_ext >&5
5085 ac_header_compiler
=no
5087 rm -f conftest.
$ac_objext conftest.
$ac_ext
5088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5089 echo "${ECHO_T}$ac_header_compiler" >&6
5091 # Is the header present?
5092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5094 cat >conftest.
$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5098 cat confdefs.h
>>conftest.
$ac_ext
5099 cat >>conftest.
$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <$ac_header>
5103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1
>conftest.err
5108 cat conftest.err
>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev
/null
; then
5111 if test -s conftest.err
; then
5112 ac_cpp_err
=$ac_c_preproc_warn_flag
5119 if test -z "$ac_cpp_err"; then
5120 ac_header_preproc
=yes
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.
$ac_ext >&5
5125 ac_header_preproc
=no
5127 rm -f conftest.err conftest.
$ac_ext
5128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5129 echo "${ECHO_T}$ac_header_preproc" >&6
5131 # So? What about this header?
5132 case $ac_header_compiler:$ac_header_preproc in
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5140 ## ------------------------------------ ##
5141 ## Report this to bug-autoconf@gnu.org. ##
5142 ## ------------------------------------ ##
5145 sed "s/^/$as_me: WARNING: /" >&2
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5156 ## ------------------------------------ ##
5157 ## Report this to bug-autoconf@gnu.org. ##
5158 ## ------------------------------------ ##
5161 sed "s/^/$as_me: WARNING: /" >&2
5164 echo "$as_me:$LINENO: checking for $ac_header" >&5
5165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 eval "$as_ac_Header=$ac_header_preproc"
5171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5176 cat >>confdefs.h
<<_ACEOF
5177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5185 for ac_header
in term.h
5187 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5188 echo "$as_me:$LINENO: checking for $ac_header" >&5
5189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 cat >conftest.
$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5197 cat confdefs.h
>>conftest.
$ac_ext
5198 cat >>conftest.
$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 #include <$ac_header>
5202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5203 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5205 grep -v '^ *+' conftest.er1
>conftest.err
5207 cat conftest.err
>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } >/dev
/null
; then
5210 if test -s conftest.err
; then
5211 ac_cpp_err
=$ac_c_preproc_warn_flag
5218 if test -z "$ac_cpp_err"; then
5219 eval "$as_ac_Header=yes"
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.
$ac_ext >&5
5224 eval "$as_ac_Header=no"
5226 rm -f conftest.err conftest.
$ac_ext
5228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5231 cat >>confdefs.h
<<_ACEOF
5232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5239 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5241 if test "${ac_cv_header_stdc+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 cat >conftest.
$ac_ext <<_ACEOF
5245 #line $LINENO "configure"
5248 cat confdefs.h
>>conftest.
$ac_ext
5249 cat >>conftest.
$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5264 rm -f conftest.
$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try
='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 ac_cv_header_stdc
=yes
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.
$ac_ext >&5
5281 ac_cv_header_stdc
=no
5283 rm -f conftest.
$ac_objext conftest.
$ac_ext
5285 if test $ac_cv_header_stdc = yes; then
5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5287 cat >conftest.
$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5291 cat confdefs.h
>>conftest.
$ac_ext
5292 cat >>conftest.
$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "memchr" >/dev
/null
2>&1; then
5301 ac_cv_header_stdc
=no
5307 if test $ac_cv_header_stdc = yes; then
5308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5309 cat >conftest.
$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5313 cat confdefs.h
>>conftest.
$ac_ext
5314 cat >>conftest.
$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "free" >/dev
/null
2>&1; then
5323 ac_cv_header_stdc
=no
5329 if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331 if test "$cross_compiling" = yes; then
5334 cat >conftest.
$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5338 cat confdefs.h
>>conftest.
$ac_ext
5339 cat >>conftest.
$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5342 #if ((' ' & 0x0FF) == 0x020)
5343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5346 # define ISLOWER(c) \
5347 (('a' <= (c) && (c) <= 'i') \
5348 || ('j' <= (c) && (c) <= 'r') \
5349 || ('s' <= (c) && (c) <= 'z'))
5350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5358 for (i = 0; i < 256; i++)
5359 if (XOR (islower (i), ISLOWER (i))
5360 || toupper (i) != TOUPPER (i))
5365 rm -f conftest
$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5378 echo "$as_me: program exited with status $ac_status" >&5
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.
$ac_ext >&5
5383 ac_cv_header_stdc
=no
5385 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5390 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5391 if test $ac_cv_header_stdc = yes; then
5393 cat >>confdefs.h
<<\_ACEOF
5394 #define STDC_HEADERS 1
5399 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5400 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5401 if test "${ac_cv_header_time+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 cat >conftest.
$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5408 cat confdefs.h
>>conftest.
$ac_ext
5409 cat >>conftest.
$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <sys/types.h>
5412 #include <sys/time.h>
5418 if ((struct tm *) 0)
5424 rm -f conftest.
$ac_objext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426 (eval $ac_compile) 2>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try
='test -s conftest.$ac_objext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_cv_header_time
=yes
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.
$ac_ext >&5
5441 ac_cv_header_time
=no
5443 rm -f conftest.
$ac_objext conftest.
$ac_ext
5445 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5446 echo "${ECHO_T}$ac_cv_header_time" >&6
5447 if test $ac_cv_header_time = yes; then
5449 cat >>confdefs.h
<<\_ACEOF
5450 #define TIME_WITH_SYS_TIME 1
5455 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5456 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5457 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 cat >conftest.
$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5464 cat confdefs.h
>>conftest.
$ac_ext
5465 cat >>conftest.
$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5467 $ac_includes_default
5472 char *p = (char *) sys_siglist;
5479 rm -f conftest.
$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try
='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_have_decl_sys_siglist
=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.
$ac_ext >&5
5496 ac_cv_have_decl_sys_siglist
=no
5498 rm -f conftest.
$ac_objext conftest.
$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5501 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5502 if test $ac_cv_have_decl_sys_siglist = yes; then
5504 cat >>confdefs.h
<<_ACEOF
5505 #define HAVE_DECL_SYS_SIGLIST 1
5510 cat >>confdefs.h
<<_ACEOF
5511 #define HAVE_DECL_SYS_SIGLIST 0
5518 if test $ac_cv_have_decl_sys_siglist != yes; then
5519 # For Tru64, at least:
5520 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5521 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5522 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 cat >conftest.
$ac_ext <<_ACEOF
5526 #line $LINENO "configure"
5529 cat confdefs.h
>>conftest.
$ac_ext
5530 cat >>conftest.
$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532 $ac_includes_default
5536 #ifndef __sys_siglist
5537 char *p = (char *) __sys_siglist;
5544 rm -f conftest.
$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try
='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_have_decl___sys_siglist
=yes
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.
$ac_ext >&5
5561 ac_cv_have_decl___sys_siglist
=no
5563 rm -f conftest.
$ac_objext conftest.
$ac_ext
5565 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5566 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5567 if test $ac_cv_have_decl___sys_siglist = yes; then
5569 cat >>confdefs.h
<<_ACEOF
5570 #define HAVE_DECL___SYS_SIGLIST 1
5575 cat >>confdefs.h
<<_ACEOF
5576 #define HAVE_DECL___SYS_SIGLIST 0
5583 if test $ac_cv_have_decl___sys_siglist = yes; then
5585 cat >>confdefs.h
<<\_ACEOF
5586 #define sys_siglist __sys_siglist
5591 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5592 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5593 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 cat >conftest.
$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5600 cat confdefs.h
>>conftest.
$ac_ext
5601 cat >>conftest.
$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <sys/types.h>
5604 #include <sys/wait.h>
5606 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5609 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5617 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5622 rm -f conftest.
$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try
='test -s conftest.$ac_objext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_header_sys_wait_h
=yes
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.
$ac_ext >&5
5639 ac_cv_header_sys_wait_h
=no
5641 rm -f conftest.
$ac_objext conftest.
$ac_ext
5643 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5644 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5645 if test $ac_cv_header_sys_wait_h = yes; then
5647 cat >>confdefs.h
<<\_ACEOF
5648 #define HAVE_SYS_WAIT_H 1
5654 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5655 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5656 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 cat >conftest.
$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5663 cat confdefs.h
>>conftest.
$ac_ext
5664 cat >>conftest.
$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #ifdef TIME_WITH_SYS_TIME
5667 #include <sys/time.h>
5670 #ifdef HAVE_SYS_TIME_H
5671 #include <sys/time.h>
5682 static struct utimbuf x; x.actime = x.modtime;
5687 rm -f conftest.
$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try
='test -s conftest.$ac_objext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 emacs_cv_struct_utimbuf
=yes
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.
$ac_ext >&5
5704 emacs_cv_struct_utimbuf
=no
5706 rm -f conftest.
$ac_objext conftest.
$ac_ext
5708 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5709 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5710 if test $emacs_cv_struct_utimbuf = yes; then
5712 cat >>confdefs.h
<<\_ACEOF
5713 #define HAVE_STRUCT_UTIMBUF 1
5718 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5719 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5720 if test "${ac_cv_type_signal+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 cat >conftest.
$ac_ext <<_ACEOF
5724 #line $LINENO "configure"
5727 cat confdefs.h
>>conftest.
$ac_ext
5728 cat >>conftest.
$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #include <sys/types.h>
5736 extern "C" void (*signal (int, void (*)(int)))(int);
5738 void (*signal ()) ();
5749 rm -f conftest.
$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try
='test -s conftest.$ac_objext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_cv_type_signal
=void
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.
$ac_ext >&5
5766 ac_cv_type_signal
=int
5768 rm -f conftest.
$ac_objext conftest.
$ac_ext
5770 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5771 echo "${ECHO_T}$ac_cv_type_signal" >&6
5773 cat >>confdefs.h
<<_ACEOF
5774 #define RETSIGTYPE $ac_cv_type_signal
5779 echo "$as_me:$LINENO: checking for speed_t" >&5
5780 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5781 if test "${emacs_cv_speed_t+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 cat >conftest.
$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #include <termios.h>
5800 rm -f conftest.
$ac_objext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try
='test -s conftest.$ac_objext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 emacs_cv_speed_t
=yes
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.
$ac_ext >&5
5819 rm -f conftest.
$ac_objext conftest.
$ac_ext
5821 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5822 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5823 if test $emacs_cv_speed_t = yes; then
5825 cat >>confdefs.h
<<\_ACEOF
5826 #define HAVE_SPEED_T 1
5831 echo "$as_me:$LINENO: checking for struct timeval" >&5
5832 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5833 if test "${emacs_cv_struct_timeval+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 cat >conftest.
$ac_ext <<_ACEOF
5837 #line $LINENO "configure"
5840 cat confdefs.h
>>conftest.
$ac_ext
5841 cat >>conftest.
$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #ifdef TIME_WITH_SYS_TIME
5844 #include <sys/time.h>
5847 #ifdef HAVE_SYS_TIME_H
5848 #include <sys/time.h>
5856 static struct timeval x; x.tv_sec = x.tv_usec;
5861 rm -f conftest.
$ac_objext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863 (eval $ac_compile) 2>&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try
='test -s conftest.$ac_objext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 emacs_cv_struct_timeval
=yes
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.
$ac_ext >&5
5878 emacs_cv_struct_timeval
=no
5880 rm -f conftest.
$ac_objext conftest.
$ac_ext
5882 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5883 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5884 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5885 if test $emacs_cv_struct_timeval = yes; then
5887 cat >>confdefs.h
<<\_ACEOF
5888 #define HAVE_TIMEVAL 1
5893 echo "$as_me:$LINENO: checking for struct exception" >&5
5894 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5895 if test "${emacs_cv_struct_exception+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 cat >conftest.
$ac_ext <<_ACEOF
5899 #line $LINENO "configure"
5902 cat confdefs.h
>>conftest.
$ac_ext
5903 cat >>conftest.
$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5909 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5914 rm -f conftest.
$ac_objext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try
='test -s conftest.$ac_objext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 emacs_cv_struct_exception
=yes
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.
$ac_ext >&5
5931 emacs_cv_struct_exception
=no
5933 rm -f conftest.
$ac_objext conftest.
$ac_ext
5935 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5936 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5937 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5938 if test $emacs_cv_struct_exception != yes; then
5940 cat >>confdefs.h
<<\_ACEOF
5941 #define NO_MATHERR 1
5946 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5947 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5948 if test "${ac_cv_struct_tm+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 cat >conftest.
$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5955 cat confdefs.h
>>conftest.
$ac_ext
5956 cat >>conftest.
$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 #include <sys/types.h>
5964 struct tm *tp; tp->tm_sec;
5969 rm -f conftest.
$ac_objext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5971 (eval $ac_compile) 2>&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try
='test -s conftest.$ac_objext'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 ac_cv_struct_tm
=time.h
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5986 ac_cv_struct_tm
=sys
/time.h
5988 rm -f conftest.
$ac_objext conftest.
$ac_ext
5990 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5991 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5992 if test $ac_cv_struct_tm = sys
/time.h
; then
5994 cat >>confdefs.h
<<\_ACEOF
5995 #define TM_IN_SYS_TIME 1
6000 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6001 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6002 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 cat >conftest.
$ac_ext <<_ACEOF
6006 #line $LINENO "configure"
6009 cat confdefs.h
>>conftest.
$ac_ext
6010 cat >>conftest.
$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <sys/types.h>
6013 #include <$ac_cv_struct_tm>
6019 static struct tm ac_aggr;
6020 if (ac_aggr.tm_zone)
6026 rm -f conftest.
$ac_objext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028 (eval $ac_compile) 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try
='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_member_struct_tm_tm_zone
=yes
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.
$ac_ext >&5
6043 cat >conftest.
$ac_ext <<_ACEOF
6044 #line $LINENO "configure"
6047 cat confdefs.h
>>conftest.
$ac_ext
6048 cat >>conftest.
$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #include <sys/types.h>
6051 #include <$ac_cv_struct_tm>
6057 static struct tm ac_aggr;
6058 if (sizeof ac_aggr.tm_zone)
6064 rm -f conftest.
$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066 (eval $ac_compile) 2>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try
='test -s conftest.$ac_objext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_member_struct_tm_tm_zone
=yes
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.
$ac_ext >&5
6081 ac_cv_member_struct_tm_tm_zone
=no
6083 rm -f conftest.
$ac_objext conftest.
$ac_ext
6085 rm -f conftest.
$ac_objext conftest.
$ac_ext
6087 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6088 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6089 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6091 cat >>confdefs.h
<<_ACEOF
6092 #define HAVE_STRUCT_TM_TM_ZONE 1
6098 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6100 cat >>confdefs.h
<<\_ACEOF
6101 #define HAVE_TM_ZONE 1
6105 echo "$as_me:$LINENO: checking for tzname" >&5
6106 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6107 if test "${ac_cv_var_tzname+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 cat >conftest.
$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6114 cat confdefs.h
>>conftest.
$ac_ext
6115 cat >>conftest.
$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6118 #ifndef tzname /* For SGI. */
6119 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6130 rm -f conftest.
$ac_objext conftest
$ac_exeext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132 (eval $ac_link) 2>&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try
='test -s conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_var_tzname
=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.
$ac_ext >&5
6149 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6152 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6153 if test $ac_cv_var_tzname = yes; then
6155 cat >>confdefs.h
<<\_ACEOF
6156 #define HAVE_TZNAME 1
6162 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6163 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6164 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cat >conftest.
$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6171 cat confdefs.h
>>conftest.
$ac_ext
6172 cat >>conftest.
$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6179 static struct tm ac_aggr;
6180 if (ac_aggr.tm_gmtoff)
6186 rm -f conftest.
$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try
='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_member_struct_tm_tm_gmtoff
=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.
$ac_ext >&5
6203 cat >conftest.
$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6207 cat confdefs.h
>>conftest.
$ac_ext
6208 cat >>conftest.
$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6215 static struct tm ac_aggr;
6216 if (sizeof ac_aggr.tm_gmtoff)
6222 rm -f conftest.
$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224 (eval $ac_compile) 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try
='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_member_struct_tm_tm_gmtoff
=yes
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.
$ac_ext >&5
6239 ac_cv_member_struct_tm_tm_gmtoff
=no
6241 rm -f conftest.
$ac_objext conftest.
$ac_ext
6243 rm -f conftest.
$ac_objext conftest.
$ac_ext
6245 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6246 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6247 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6249 cat >>confdefs.h
<<\_ACEOF
6250 #define HAVE_TM_GMTOFF 1
6257 echo "$as_me:$LINENO: checking for function prototypes" >&5
6258 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6259 if test "$ac_cv_prog_cc_stdc" != no
; then
6260 echo "$as_me:$LINENO: result: yes" >&5
6261 echo "${ECHO_T}yes" >&6
6263 cat >>confdefs.h
<<\_ACEOF
6264 #define PROTOTYPES 1
6268 cat >>confdefs.h
<<\_ACEOF
6269 #define __PROTOTYPES 1
6273 echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6
6277 echo "$as_me:$LINENO: checking for working volatile" >&5
6278 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6279 if test "${ac_cv_c_volatile+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 cat >conftest.
$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6286 cat confdefs.h
>>conftest.
$ac_ext
6287 cat >>conftest.
$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6300 rm -f conftest.
$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try
='test -s conftest.$ac_objext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_c_volatile
=yes
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.
$ac_ext >&5
6319 rm -f conftest.
$ac_objext conftest.
$ac_ext
6321 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6322 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6323 if test $ac_cv_c_volatile = no
; then
6325 cat >>confdefs.h
<<\_ACEOF
6331 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6332 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6333 if test "${ac_cv_c_const+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 cat >conftest.
$ac_ext <<_ACEOF
6337 #line $LINENO "configure"
6340 cat confdefs.h
>>conftest.
$ac_ext
6341 cat >>conftest.
$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6347 /* FIXME: Include the comments suggested by Paul. */
6349 /* Ultrix mips cc rejects this. */
6350 typedef int charset[2];
6352 /* SunOS 4.1.1 cc rejects this. */
6353 char const *const *ccp;
6355 /* NEC SVR4.0.2 mips cc rejects this. */
6356 struct point {int x, y;};
6357 static struct point const zero = {0,0};
6358 /* AIX XL C 1.02.0.0 rejects this.
6359 It does not let you subtract one const X* pointer from another in
6360 an arm of an if-expression whose if-part is not a constant
6362 const char *g = "string";
6363 ccp = &g + (g ? g-g : 0);
6364 /* HPUX 7.0 cc rejects these. */
6367 ccp = (char const *const *) p;
6368 { /* SCO 3.2v4 cc rejects this. */
6370 char const *s = 0 ? (char *) 0 : (char const *) 0;
6374 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6376 const int *foo = &x[0];
6379 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6380 typedef const int *iptr;
6384 { /* AIX XL C 1.02.0.0 rejects this saying
6385 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6386 struct s { int j; const int *ap[3]; };
6387 struct s *b; b->j = 5;
6389 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6398 rm -f conftest.
$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try
='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.
$ac_ext >&5
6417 rm -f conftest.
$ac_objext conftest.
$ac_ext
6419 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6420 echo "${ECHO_T}$ac_cv_c_const" >&6
6421 if test $ac_cv_c_const = no
; then
6423 cat >>confdefs.h
<<\_ACEOF
6429 echo "$as_me:$LINENO: checking for void * support" >&5
6430 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6431 if test "${emacs_cv_void_star+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 cat >conftest.
$ac_ext <<_ACEOF
6435 #line $LINENO "configure"
6438 cat confdefs.h
>>conftest.
$ac_ext
6439 cat >>conftest.
$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6450 rm -f conftest.
$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try
='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 emacs_cv_void_star
=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.
$ac_ext >&5
6467 emacs_cv_void_star
=no
6469 rm -f conftest.
$ac_objext conftest.
$ac_ext
6471 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6472 echo "${ECHO_T}$emacs_cv_void_star" >&6
6473 if test $emacs_cv_void_star = yes; then
6474 cat >>confdefs.h
<<\_ACEOF
6475 #define POINTER_TYPE void
6479 cat >>confdefs.h
<<\_ACEOF
6480 #define POINTER_TYPE char
6487 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6488 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6489 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6490 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 cat >conftest.
make <<\_ACEOF
6495 @
echo 'ac_maketemp="$(MAKE)"'
6497 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6498 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6499 if test -n "$ac_maketemp"; then
6500 eval ac_cv_prog_make_
${ac_make}_set
=yes
6502 eval ac_cv_prog_make_
${ac_make}_set
=no
6506 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6507 echo "$as_me:$LINENO: result: yes" >&5
6508 echo "${ECHO_T}yes" >&6
6511 echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6
6513 SET_MAKE
="MAKE=${MAKE-make}"
6517 echo "$as_me:$LINENO: checking for long file names" >&5
6518 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6519 if test "${ac_cv_sys_long_file_names+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 ac_cv_sys_long_file_names
=yes
6523 # Test for long file names in all the places we know might matter:
6524 # . the current directory, where building will happen
6525 # $prefix/lib where we will be installing things
6526 # $exec_prefix/lib likewise
6527 # eval it to expand exec_prefix.
6528 # $TMPDIR if set, where it might want to write temporary files
6529 # if $TMPDIR is not set:
6530 # /tmp where it might want to write temporary files
6533 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6536 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6538 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6539 test -d $ac_dir ||
continue
6540 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6541 ac_xdir
=$ac_dir/cf$$
6542 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6543 ac_tf1
=$ac_xdir/conftest9012345
6544 ac_tf2
=$ac_xdir/conftest9012346
6545 (echo 1 >$ac_tf1) 2>/dev
/null
6546 (echo 2 >$ac_tf2) 2>/dev
/null
6547 ac_val
=`cat $ac_tf1 2>/dev/null`
6548 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6549 ac_cv_sys_long_file_names
=no
6550 rm -rf $ac_xdir 2>/dev
/null
6553 rm -rf $ac_xdir 2>/dev
/null
6556 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6557 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6558 if test $ac_cv_sys_long_file_names = yes; then
6560 cat >>confdefs.h
<<\_ACEOF
6561 #define HAVE_LONG_FILE_NAMES 1
6567 #### Choose a window system.
6569 echo "$as_me:$LINENO: checking for X" >&5
6570 echo $ECHO_N "checking for X... $ECHO_C" >&6
6573 # Check whether --with-x or --without-x was given.
6574 if test "${with_x+set}" = set; then
6578 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6579 if test "x$with_x" = xno
; then
6580 # The user explicitly disabled X.
6583 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6584 # Both variables are already set.
6587 if test "${ac_cv_have_x+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 # One or both of the vars are not set, and there is no cached value.
6591 ac_x_includes
=no ac_x_libraries
=no
6593 if mkdir conftest.dir
; then
6595 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6596 cat >Imakefile
<<'_ACEOF'
6598 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6600 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6601 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6602 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6603 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6604 for ac_extension
in a so sl
; do
6605 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6606 test -f $ac_im_libdir/libX11.
$ac_extension; then
6607 ac_im_usrlibdir
=$ac_im_libdir; break
6610 # Screen out bogus values from the imake configuration. They are
6611 # bogus both because they are the default anyway, and because
6612 # using them would break gcc on systems where it needs fixed includes.
6613 case $ac_im_incroot in
6615 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6617 case $ac_im_usrlibdir in
6619 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6626 # Standard set of common directories for X headers.
6627 # Check X11 before X11Rn because it is often a symlink to the current release.
6639 /usr/local/X11/include
6640 /usr/local/X11R6/include
6641 /usr/local/X11R5/include
6642 /usr/local/X11R4/include
6644 /usr/local/include/X11
6645 /usr/local/include/X11R6
6646 /usr/local/include/X11R5
6647 /usr/local/include/X11R4
6651 /usr/XFree86/include/X11
6655 /usr/unsupported/include
6657 /usr/local/x11r5/include
6658 /usr/lpp/Xamples/include
6660 /usr/openwin/include
6661 /usr/openwin/share/include'
6663 if test "$ac_x_includes" = no
; then
6664 # Guess where to find include files, by looking for Intrinsic.h.
6665 # First, try using that file with no special directory specified.
6666 cat >conftest.
$ac_ext <<_ACEOF
6667 #line $LINENO "configure"
6670 cat confdefs.h
>>conftest.
$ac_ext
6671 cat >>conftest.
$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 #include <X11/Intrinsic.h>
6675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6676 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6678 grep -v '^ *+' conftest.er1
>conftest.err
6680 cat conftest.err
>&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } >/dev
/null
; then
6683 if test -s conftest.err
; then
6684 ac_cpp_err
=$ac_c_preproc_warn_flag
6691 if test -z "$ac_cpp_err"; then
6692 # We can compile using X headers with no special include directory.
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.
$ac_ext >&5
6698 for ac_dir
in $ac_x_header_dirs; do
6699 if test -r "$ac_dir/X11/Intrinsic.h"; then
6700 ac_x_includes
=$ac_dir
6705 rm -f conftest.err conftest.
$ac_ext
6706 fi # $ac_x_includes = no
6708 if test "$ac_x_libraries" = no
; then
6709 # Check for the libraries.
6710 # See if we find them without any special options.
6711 # Don't add to $LIBS permanently.
6714 cat >conftest.
$ac_ext <<_ACEOF
6715 #line $LINENO "configure"
6718 cat confdefs.h
>>conftest.
$ac_ext
6719 cat >>conftest.
$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 #include <X11/Intrinsic.h>
6730 rm -f conftest.
$ac_objext conftest
$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732 (eval $ac_link) 2>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try
='test -s conftest$ac_exeext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6743 # We can link X programs with no special library path.
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.
$ac_ext >&5
6750 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6752 # Don't even attempt the hair of trying to link an X program!
6753 for ac_extension
in a so sl
; do
6754 if test -r $ac_dir/libXt.
$ac_extension; then
6755 ac_x_libraries
=$ac_dir
6761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6762 fi # $ac_x_libraries = no
6764 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6765 # Didn't find X anywhere. Cache the known absence of X.
6766 ac_cv_have_x
="have_x=no"
6768 # Record where we found X for the cache.
6769 ac_cv_have_x
="have_x=yes \
6770 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6775 eval "$ac_cv_have_x"
6778 if test "$have_x" != yes; then
6779 echo "$as_me:$LINENO: result: $have_x" >&5
6780 echo "${ECHO_T}$have_x" >&6
6783 # If each of the values was on the command line, it overrides each guess.
6784 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6785 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6786 # Update the cache value to reflect the command line values.
6787 ac_cv_have_x
="have_x=yes \
6788 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6789 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6790 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6793 if test "$no_x" = yes; then
6799 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6800 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6801 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6802 x_default_search_path
=""
6803 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6805 ${x_library}/X11/%L/%T/%N%C%S:\
6806 ${x_library}/X11/%l/%T/%N%C%S:\
6807 ${x_library}/X11/%T/%N%C%S:\
6808 ${x_library}/X11/%L/%T/%N%S:\
6809 ${x_library}/X11/%l/%T/%N%S:\
6810 ${x_library}/X11/%T/%N%S"
6811 if test x
"${x_default_search_path}" = x
; then
6812 x_default_search_path
=${x_search_path}
6814 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6818 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6819 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6822 if test x
"${x_includes}" = x
; then
6823 bitmapdir
=/usr
/include
/X11
/bitmaps
6825 # accumulate include directories that have X11 bitmap subdirectories
6827 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6828 if test -d "${bmd}/X11/bitmaps"; then
6829 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6831 if test -d "${bmd}/bitmaps"; then
6832 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6835 if test ${bmd_acc} != "dummyval"; then
6836 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6840 case "${window_system}" in
6844 case "${with_x_toolkit}" in
6845 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6846 motif
) USE_X_TOOLKIT
=MOTIF
;;
6848 USE_X_TOOLKIT
=none
;;
6849 no
) USE_X_TOOLKIT
=none
;;
6850 * ) USE_X_TOOLKIT
=maybe
;;
6860 ### If we're using X11, we should use the X menu package.
6863 yes ) HAVE_MENUS
=yes ;;
6866 if test "${opsys}" = "hpux9"; then
6867 case "${x_libraries}" in
6869 opsysfile
="s/hpux9-x11r4.h"
6874 if test "${opsys}" = "hpux9shr"; then
6875 case "${x_libraries}" in
6877 opsysfile
="s/hpux9shxr4.h"
6882 ### Compute the unexec source name from the object name.
6883 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6885 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6886 # Assume not, until told otherwise.
6889 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6890 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6891 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 cat >conftest.
$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6898 cat confdefs.h
>>conftest.
$ac_ext
6899 cat >>conftest.
$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 /* System header to define __stub macros and hopefully few prototypes,
6902 which can conflict with char malloc_get_state (); below.
6903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6904 <limits.h> exists even on freestanding compilers. */
6906 # include <limits.h>
6908 # include <assert.h>
6910 /* Override any gcc2 internal prototype to avoid an error. */
6915 /* We use char because int might match the return type of a gcc2
6916 builtin and then its argument prototype would still apply. */
6917 char malloc_get_state ();
6918 /* The GNU C library defines this for functions which it implements
6919 to always fail with ENOSYS. Some functions are actually named
6920 something starting with __ and the normal name is an alias. */
6921 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6924 char (*f) () = malloc_get_state;
6933 return f != malloc_get_state;
6938 rm -f conftest.
$ac_objext conftest
$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try
='test -s conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 ac_cv_func_malloc_get_state
=yes
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.
$ac_ext >&5
6955 ac_cv_func_malloc_get_state
=no
6957 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6959 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6960 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6961 if test $ac_cv_func_malloc_get_state = yes; then
6967 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6968 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6969 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 cat >conftest.
$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6976 cat confdefs.h
>>conftest.
$ac_ext
6977 cat >>conftest.
$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 /* System header to define __stub macros and hopefully few prototypes,
6980 which can conflict with char malloc_set_state (); below.
6981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6982 <limits.h> exists even on freestanding compilers. */
6984 # include <limits.h>
6986 # include <assert.h>
6988 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6995 char malloc_set_state ();
6996 /* The GNU C library defines this for functions which it implements
6997 to always fail with ENOSYS. Some functions are actually named
6998 something starting with __ and the normal name is an alias. */
6999 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7002 char (*f) () = malloc_set_state;
7011 return f != malloc_set_state;
7016 rm -f conftest.
$ac_objext conftest
$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try
='test -s conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 ac_cv_func_malloc_set_state
=yes
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.
$ac_ext >&5
7033 ac_cv_func_malloc_set_state
=no
7035 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7037 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7038 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7039 if test $ac_cv_func_malloc_set_state = yes; then
7045 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7046 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7047 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 cat >conftest.
$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7054 cat confdefs.h
>>conftest.
$ac_ext
7055 cat >>conftest.
$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 extern void (* __after_morecore_hook)();
7061 __after_morecore_hook = 0
7066 rm -f conftest.
$ac_objext conftest
$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try
='test -s conftest$ac_exeext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 emacs_cv_var___after_morecore_hook
=yes
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.
$ac_ext >&5
7083 emacs_cv_var___after_morecore_hook
=no
7085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7087 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7088 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7089 if test $emacs_cv_var___after_morecore_hook = no
; then
7092 if test "${system_malloc}" = "yes"; then
7095 (The GNU allocators don't work with this system configuration.)"
7097 if test "$doug_lea_malloc" = "yes" ; then
7098 if test "$GNU_MALLOC" = yes ; then
7100 (Using Doug Lea's new malloc from the GNU C Library.)"
7103 cat >>confdefs.h
<<\_ACEOF
7104 #define DOUG_LEA_MALLOC 1
7109 if test x
"${REL_ALLOC}" = x
; then
7110 REL_ALLOC
=${GNU_MALLOC}
7116 for ac_header
in stdlib.h unistd.h
7118 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7120 echo "$as_me:$LINENO: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128 # Is the header compilable?
7129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7131 cat >conftest.
$ac_ext <<_ACEOF
7132 #line $LINENO "configure"
7135 cat confdefs.h
>>conftest.
$ac_ext
7136 cat >>conftest.
$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 #include <$ac_header>
7141 rm -f conftest.
$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try
='test -s conftest.$ac_objext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_header_compiler
=yes
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.
$ac_ext >&5
7158 ac_header_compiler
=no
7160 rm -f conftest.
$ac_objext conftest.
$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7162 echo "${ECHO_T}$ac_header_compiler" >&6
7164 # Is the header present?
7165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7167 cat >conftest.
$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7171 cat confdefs.h
>>conftest.
$ac_ext
7172 cat >>conftest.
$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <$ac_header>
7176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7177 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } >/dev
/null
; then
7184 if test -s conftest.err
; then
7185 ac_cpp_err
=$ac_c_preproc_warn_flag
7192 if test -z "$ac_cpp_err"; then
7193 ac_header_preproc
=yes
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.
$ac_ext >&5
7198 ac_header_preproc
=no
7200 rm -f conftest.err conftest.
$ac_ext
7201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7202 echo "${ECHO_T}$ac_header_preproc" >&6
7204 # So? What about this header?
7205 case $ac_header_compiler:$ac_header_preproc in
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7213 ## ------------------------------------ ##
7214 ## Report this to bug-autoconf@gnu.org. ##
7215 ## ------------------------------------ ##
7218 sed "s/^/$as_me: WARNING: /" >&2
7221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7229 ## ------------------------------------ ##
7230 ## Report this to bug-autoconf@gnu.org. ##
7231 ## ------------------------------------ ##
7234 sed "s/^/$as_me: WARNING: /" >&2
7237 echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 eval "$as_ac_Header=$ac_header_preproc"
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7249 cat >>confdefs.h
<<_ACEOF
7250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258 for ac_func
in getpagesize
7260 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7261 echo "$as_me:$LINENO: checking for $ac_func" >&5
7262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_var+set}\" = set"; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 cat >conftest.
$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7270 cat confdefs.h
>>conftest.
$ac_ext
7271 cat >>conftest.
$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 /* System header to define __stub macros and hopefully few prototypes,
7274 which can conflict with char $ac_func (); below.
7275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7276 <limits.h> exists even on freestanding compilers. */
7278 # include <limits.h>
7280 # include <assert.h>
7282 /* Override any gcc2 internal prototype to avoid an error. */
7287 /* We use char because int might match the return type of a gcc2
7288 builtin and then its argument prototype would still apply. */
7290 /* The GNU C library defines this for functions which it implements
7291 to always fail with ENOSYS. Some functions are actually named
7292 something starting with __ and the normal name is an alias. */
7293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7296 char (*f) () = $ac_func;
7305 return f != $ac_func;
7310 rm -f conftest.
$ac_objext conftest
$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try
='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 eval "$as_ac_var=yes"
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.
$ac_ext >&5
7327 eval "$as_ac_var=no"
7329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7333 if test `eval echo '${'$as_ac_var'}'` = yes; then
7334 cat >>confdefs.h
<<_ACEOF
7335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7341 echo "$as_me:$LINENO: checking for working mmap" >&5
7342 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7343 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 if test "$cross_compiling" = yes; then
7347 ac_cv_func_mmap_fixed_mapped
=no
7349 cat >conftest.
$ac_ext <<_ACEOF
7350 #line $LINENO "configure"
7353 cat confdefs.h
>>conftest.
$ac_ext
7354 cat >>conftest.
$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 $ac_includes_default
7357 /* malloc might have been renamed as rpl_malloc. */
7360 /* Thanks to Mike Haertel and Jim Avera for this test.
7361 Here is a matrix of mmap possibilities:
7362 mmap private not fixed
7363 mmap private fixed at somewhere currently unmapped
7364 mmap private fixed at somewhere already mapped
7365 mmap shared not fixed
7366 mmap shared fixed at somewhere currently unmapped
7367 mmap shared fixed at somewhere already mapped
7368 For private mappings, we should verify that changes cannot be read()
7369 back from the file, nor mmap's back from the file at a different
7370 address. (There have been systems where private was not correctly
7371 implemented like the infamous i386 svr4.0, and systems where the
7372 VM page cache was not coherent with the file system buffer cache
7373 like early versions of FreeBSD and possibly contemporary NetBSD.)
7374 For shared mappings, we should conversely verify that changes get
7375 propagated back to all the places they're supposed to be.
7377 Grep wants private fixed already mapped.
7378 The main things grep needs to know about mmap are:
7379 * does it exist and is it safe to write into the mmap'd area
7380 * how to use it (BSD variants) */
7383 #include <sys/mman.h>
7385 #if !STDC_HEADERS && !HAVE_STDLIB_H
7389 /* This mess was copied from the GNU getpagesize.h. */
7390 #if !HAVE_GETPAGESIZE
7391 /* Assume that all systems that can run configure have sys/param.h. */
7392 # if !HAVE_SYS_PARAM_H
7393 # define HAVE_SYS_PARAM_H 1
7396 # ifdef _SC_PAGESIZE
7397 # define getpagesize() sysconf(_SC_PAGESIZE)
7398 # else /* no _SC_PAGESIZE */
7399 # if HAVE_SYS_PARAM_H
7400 # include <sys/param.h>
7401 # ifdef EXEC_PAGESIZE
7402 # define getpagesize() EXEC_PAGESIZE
7403 # else /* no EXEC_PAGESIZE */
7405 # define getpagesize() NBPG * CLSIZE
7408 # endif /* no CLSIZE */
7409 # else /* no NBPG */
7411 # define getpagesize() NBPC
7412 # else /* no NBPC */
7414 # define getpagesize() PAGESIZE
7415 # endif /* PAGESIZE */
7416 # endif /* no NBPC */
7417 # endif /* no NBPG */
7418 # endif /* no EXEC_PAGESIZE */
7419 # else /* no HAVE_SYS_PARAM_H */
7420 # define getpagesize() 8192 /* punt totally */
7421 # endif /* no HAVE_SYS_PARAM_H */
7422 # endif /* no _SC_PAGESIZE */
7424 #endif /* no HAVE_GETPAGESIZE */
7429 char *data, *data2, *data3;
7433 pagesize = getpagesize ();
7435 /* First, make a file with some known garbage in it. */
7436 data = (char *) malloc (pagesize);
7439 for (i = 0; i < pagesize; ++i)
7440 *(data + i) = rand ();
7442 fd = creat ("conftest.mmap", 0600);
7445 if (write (fd, data, pagesize) != pagesize)
7449 /* Next, try to mmap the file at a fixed address which already has
7450 something else allocated at it. If we can, also make sure that
7451 we see the same garbage. */
7452 fd = open ("conftest.mmap", O_RDWR);
7455 data2 = (char *) malloc (2 * pagesize);
7458 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7459 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7460 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7462 for (i = 0; i < pagesize; ++i)
7463 if (*(data + i) != *(data2 + i))
7466 /* Finally, make sure that changes to the mapped area do not
7467 percolate back to the file as seen by read(). (This is a bug on
7468 some variants of i386 svr4.0.) */
7469 for (i = 0; i < pagesize; ++i)
7470 *(data2 + i) = *(data2 + i) + 1;
7471 data3 = (char *) malloc (pagesize);
7474 if (read (fd, data3, pagesize) != pagesize)
7476 for (i = 0; i < pagesize; ++i)
7477 if (*(data + i) != *(data3 + i))
7483 rm -f conftest
$ac_exeext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7485 (eval $ac_link) 2>&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_cv_func_mmap_fixed_mapped
=yes
7496 echo "$as_me: program exited with status $ac_status" >&5
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.
$ac_ext >&5
7501 ac_cv_func_mmap_fixed_mapped
=no
7503 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7506 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7507 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7508 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7510 cat >>confdefs.h
<<\_ACEOF
7517 if test $use_mmap_for_buffers = yes; then
7521 LIBS
="$libsrc_libs $LIBS"
7524 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7525 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7526 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 ac_check_lib_save_LIBS
=$LIBS
7531 cat >conftest.
$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7535 cat confdefs.h
>>conftest.
$ac_ext
7536 cat >>conftest.
$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7539 /* Override any gcc2 internal prototype to avoid an error. */
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7554 rm -f conftest.
$ac_objext conftest
$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try
='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_cv_lib_dnet_dnet_ntoa
=yes
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.
$ac_ext >&5
7571 ac_cv_lib_dnet_dnet_ntoa
=no
7573 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7574 LIBS
=$ac_check_lib_save_LIBS
7576 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7577 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7578 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7579 cat >>confdefs.h
<<_ACEOF
7580 #define HAVE_LIBDNET 1
7588 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7589 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7590 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 ac_check_lib_save_LIBS
=$LIBS
7595 cat >conftest.
$ac_ext <<_ACEOF
7596 #line $LINENO "configure"
7599 cat confdefs.h
>>conftest.
$ac_ext
7600 cat >>conftest.
$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7612 rm -f conftest.
$ac_objext conftest
$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try
='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_lib_Xbsd_main
=yes
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.
$ac_ext >&5
7629 ac_cv_lib_Xbsd_main
=no
7631 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7632 LIBS
=$ac_check_lib_save_LIBS
7634 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7635 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7636 if test $ac_cv_lib_Xbsd_main = yes; then
7637 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7642 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7643 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7644 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 ac_check_lib_save_LIBS
=$LIBS
7648 LIBS
="-lpthreads $LIBS"
7649 cat >conftest.
$ac_ext <<_ACEOF
7650 #line $LINENO "configure"
7653 cat confdefs.h
>>conftest.
$ac_ext
7654 cat >>conftest.
$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7657 /* Override any gcc2 internal prototype to avoid an error. */
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7672 rm -f conftest.
$ac_objext conftest
$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try
='test -s conftest$ac_exeext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_cv_lib_pthreads_cma_open
=yes
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.
$ac_ext >&5
7689 ac_cv_lib_pthreads_cma_open
=no
7691 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7692 LIBS
=$ac_check_lib_save_LIBS
7694 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7695 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7696 if test $ac_cv_lib_pthreads_cma_open = yes; then
7697 cat >>confdefs.h
<<_ACEOF
7698 #define HAVE_LIBPTHREADS 1
7701 LIBS
="-lpthreads $LIBS"
7706 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7707 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7708 if test -d /usr
/X386
/include
; then
7710 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7714 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7715 echo "${ECHO_T}$HAVE_XFREE386" >&6
7720 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7721 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7722 if test "${gdb_cv_bigtoc+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7728 *) gdb_cv_bigtoc
=-bbigtoc ;;
7731 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7732 cat >conftest.
$ac_ext <<_ACEOF
7733 #line $LINENO "configure"
7736 cat confdefs.h
>>conftest.
$ac_ext
7737 cat >>conftest.
$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7748 rm -f conftest.
$ac_objext conftest
$ac_exeext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try
='test -s conftest$ac_exeext'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.
$ac_ext >&5
7767 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7770 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7771 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7775 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7776 # used for the tests that follow. We set them back to REAL_CFLAGS and
7777 # REAL_CPPFLAGS later on.
7779 REAL_CPPFLAGS
="$CPPFLAGS"
7781 if test "${HAVE_X11}" = "yes"; then
7782 DEFS
="$C_SWITCH_X_SITE $DEFS"
7783 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7785 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7786 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7788 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7789 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7790 # but it's more convenient here to set LD_RUN_PATH
7791 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7792 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7793 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7797 if test "${opsys}" = "gnu-linux"; then
7798 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7799 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7800 cat >conftest.
$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7804 cat confdefs.h
>>conftest.
$ac_ext
7805 cat >>conftest.
$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7811 XOpenDisplay ("foo");
7816 rm -f conftest.
$ac_objext conftest
$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } &&
7822 { ac_try
='test -s conftest$ac_exeext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7828 xlinux_first_failure
=no
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.
$ac_ext >&5
7833 xlinux_first_failure
=yes
7835 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7836 if test "${xlinux_first_failure}" = "yes"; then
7837 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7838 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7839 OLD_CPPFLAGS
="$CPPFLAGS"
7841 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7842 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7843 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7844 LIBS
="$LIBS -b i486-linuxaout"
7845 cat >conftest.
$ac_ext <<_ACEOF
7846 #line $LINENO "configure"
7849 cat confdefs.h
>>conftest.
$ac_ext
7850 cat >>conftest.
$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7856 XOpenDisplay ("foo");
7861 rm -f conftest.
$ac_objext conftest
$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try
='test -s conftest$ac_exeext'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 xlinux_second_failure
=no
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.
$ac_ext >&5
7878 xlinux_second_failure
=yes
7880 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7881 if test "${xlinux_second_failure}" = "yes"; then
7882 # If we get the same failure with -b, there is no use adding -b.
7883 # So take it out. This plays safe.
7884 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7885 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7886 CPPFLAGS
="$OLD_CPPFLAGS"
7888 echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6
7891 echo "$as_me:$LINENO: result: yes" >&5
7892 echo "${ECHO_T}yes" >&6
7895 echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7900 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7901 # header files included from there.
7902 echo "$as_me:$LINENO: checking for Xkb" >&5
7903 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7904 cat >conftest.
$ac_ext <<_ACEOF
7905 #line $LINENO "configure"
7908 cat confdefs.h
>>conftest.
$ac_ext
7909 cat >>conftest.
$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 #include <X11/Xlib.h>
7912 #include <X11/XKBlib.h>
7916 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7921 rm -f conftest.
$ac_objext conftest
$ac_exeext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7923 (eval $ac_link) 2>&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try
='test -s conftest$ac_exeext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.
$ac_ext >&5
7940 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7941 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7942 echo "${ECHO_T}$emacs_xkb" >&6
7943 if test $emacs_xkb = yes; then
7945 cat >>confdefs.h
<<\_ACEOF
7946 #define HAVE_XKBGETKEYBOARD 1
7955 for ac_func
in XrmSetDatabase XScreenResourceString \
7956 XScreenNumberOfScreen XSetWMProtocols
7958 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7959 echo "$as_me:$LINENO: checking for $ac_func" >&5
7960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7961 if eval "test \"\${$as_ac_var+set}\" = set"; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 cat >conftest.
$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7968 cat confdefs.h
>>conftest.
$ac_ext
7969 cat >>conftest.
$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 /* System header to define __stub macros and hopefully few prototypes,
7972 which can conflict with char $ac_func (); below.
7973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7974 <limits.h> exists even on freestanding compilers. */
7976 # include <limits.h>
7978 # include <assert.h>
7980 /* Override any gcc2 internal prototype to avoid an error. */
7985 /* We use char because int might match the return type of a gcc2
7986 builtin and then its argument prototype would still apply. */
7988 /* The GNU C library defines this for functions which it implements
7989 to always fail with ENOSYS. Some functions are actually named
7990 something starting with __ and the normal name is an alias. */
7991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7994 char (*f) () = $ac_func;
8003 return f != $ac_func;
8008 rm -f conftest.
$ac_objext conftest
$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try
='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 eval "$as_ac_var=yes"
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.
$ac_ext >&5
8025 eval "$as_ac_var=no"
8027 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8031 if test `eval echo '${'$as_ac_var'}'` = yes; then
8032 cat >>confdefs.h
<<_ACEOF
8033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8041 if test "${window_system}" = "x11"; then
8042 echo "$as_me:$LINENO: checking X11 version 6" >&5
8043 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8044 if test "${emacs_cv_x11_version_6+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 cat >conftest.
$ac_ext <<_ACEOF
8048 #line $LINENO "configure"
8051 cat confdefs.h
>>conftest.
$ac_ext
8052 cat >>conftest.
$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <X11/Xlib.h>
8058 #if XlibSpecificationRelease < 6
8066 rm -f conftest.
$ac_objext conftest
$ac_exeext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try
='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 emacs_cv_x11_version_6
=yes
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.
$ac_ext >&5
8083 emacs_cv_x11_version_6
=no
8085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8088 if test $emacs_cv_x11_version_6 = yes; then
8089 echo "$as_me:$LINENO: result: 6 or newer" >&5
8090 echo "${ECHO_T}6 or newer" >&6
8092 cat >>confdefs.h
<<\_ACEOF
8093 #define HAVE_X11R6 1
8097 echo "$as_me:$LINENO: result: before 6" >&5
8098 echo "${ECHO_T}before 6" >&6
8102 if test "${window_system}" = "x11"; then
8103 echo "$as_me:$LINENO: checking X11 version 5" >&5
8104 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8105 if test "${emacs_cv_x11_version_5+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 cat >conftest.
$ac_ext <<_ACEOF
8109 #line $LINENO "configure"
8112 cat confdefs.h
>>conftest.
$ac_ext
8113 cat >>conftest.
$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 #include <X11/Xlib.h>
8119 #if XlibSpecificationRelease < 5
8127 rm -f conftest.
$ac_objext conftest
$ac_exeext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129 (eval $ac_link) 2>&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try
='test -s conftest$ac_exeext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 emacs_cv_x11_version_5
=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.
$ac_ext >&5
8144 emacs_cv_x11_version_5
=no
8146 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8149 if test $emacs_cv_x11_version_5 = yes; then
8150 echo "$as_me:$LINENO: result: 5 or newer" >&5
8151 echo "${ECHO_T}5 or newer" >&6
8154 cat >>confdefs.h
<<\_ACEOF
8155 #define HAVE_X11R5 1
8160 echo "$as_me:$LINENO: result: before 5" >&5
8161 echo "${ECHO_T}before 5" >&6
8168 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8169 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8170 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8171 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8172 { (exit 1); exit 1; }; };
8176 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8178 if test "X${with_pkg_config_prog}" != X
; then
8179 PKG_CONFIG
="${with_pkg_config_prog}"
8184 if test -z "$PKG_CONFIG"; then
8185 # Extract the first word of "pkg-config", so it can be a program name with args.
8186 set dummy pkg-config
; ac_word
=$2
8187 echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8189 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8201 test -z "$as_dir" && as_dir
=.
8202 for ac_exec_ext
in '' $ac_executable_extensions; do
8203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8215 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8217 if test -n "$PKG_CONFIG"; then
8218 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8219 echo "${ECHO_T}$PKG_CONFIG" >&6
8221 echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6
8227 if test "$PKG_CONFIG" = "no" ; then
8228 echo "*** The pkg-config script could not be found. Make sure it is"
8229 echo "*** in your path, or give the full path to pkg-config with"
8230 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8231 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8233 PKG_CONFIG_MIN_VERSION
=0.9.0
8234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8235 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8236 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8238 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8239 echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8243 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8244 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8245 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8246 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8247 echo "${ECHO_T}$GTK_CFLAGS" >&6
8249 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8250 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8251 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8252 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8253 echo "${ECHO_T}$GTK_LIBS" >&6
8257 ## If we have a custom action on failure, don't print errors, but
8258 ## do set a variable so people can do so.
8259 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8260 echo $GTK_PKG_ERRORS
8266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8271 if test $succeeded = yes; then
8274 { { 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
8275 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;}
8276 { (exit 1); exit 1; }; }
8281 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8284 cat >>confdefs.h
<<\_ACEOF
8290 with_toolkit_scroll_bars
=yes
8293 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8294 if test x
"${HAVE_X11R5}" = xyes
; then
8295 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8296 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8297 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 cat >conftest.
$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8304 cat confdefs.h
>>conftest.
$ac_ext
8305 cat >>conftest.
$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8308 #include <X11/Intrinsic.h>
8309 #include <X11/Xaw/Simple.h>
8318 rm -f conftest.
$ac_objext conftest
$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try
='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 emacs_cv_x11_version_5_with_xaw
=yes
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.
$ac_ext >&5
8335 emacs_cv_x11_version_5_with_xaw
=no
8337 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8340 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8341 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8342 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8345 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8346 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8354 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8356 if test "${USE_X_TOOLKIT}" != "none"; then
8357 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8358 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8359 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 cat >conftest.
$ac_ext <<_ACEOF
8363 #line $LINENO "configure"
8366 cat confdefs.h
>>conftest.
$ac_ext
8367 cat >>conftest.
$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 #include <X11/Intrinsic.h>
8373 #if XtSpecificationRelease < 6
8381 rm -f conftest.
$ac_objext conftest
$ac_exeext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8383 (eval $ac_link) 2>&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try
='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 emacs_cv_x11_toolkit_version_6
=yes
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.
$ac_ext >&5
8398 emacs_cv_x11_toolkit_version_6
=no
8400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8403 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8404 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8405 echo "$as_me:$LINENO: result: 6 or newer" >&5
8406 echo "${ECHO_T}6 or newer" >&6
8408 cat >>confdefs.h
<<\_ACEOF
8409 #define HAVE_X11XTR6 1
8413 echo "$as_me:$LINENO: result: before 6" >&5
8414 echo "${ECHO_T}before 6" >&6
8418 if test x
$HAVE_X11XTR6 = xyes
; then
8419 LIBS
="-lXt -lSM -lICE $LIBS"
8424 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8425 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8426 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 ac_check_lib_save_LIBS
=$LIBS
8431 cat >conftest.
$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8435 cat confdefs.h
>>conftest.
$ac_ext
8436 cat >>conftest.
$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char XmuConvertStandardSelection ();
8449 XmuConvertStandardSelection ();
8454 rm -f conftest.
$ac_objext conftest
$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try
='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.
$ac_ext >&5
8471 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8473 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8474 LIBS
=$ac_check_lib_save_LIBS
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8477 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8478 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8479 cat >>confdefs.h
<<_ACEOF
8480 #define HAVE_LIBXMU 1
8487 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8490 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8491 if test "${HAVE_X11}" = "yes"; then
8492 if test "${USE_X_TOOLKIT}" != "none"; then
8494 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8495 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8496 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_check_lib_save_LIBS
=$LIBS
8501 cat >conftest.
$ac_ext <<_ACEOF
8502 #line $LINENO "configure"
8505 cat confdefs.h
>>conftest.
$ac_ext
8506 cat >>conftest.
$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8509 /* Override any gcc2 internal prototype to avoid an error. */
8513 /* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8515 char XShapeQueryExtension ();
8519 XShapeQueryExtension ();
8524 rm -f conftest.
$ac_objext conftest
$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526 (eval $ac_link) 2>&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try
='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.
$ac_ext >&5
8541 ac_cv_lib_Xext_XShapeQueryExtension
=no
8543 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8544 LIBS
=$ac_check_lib_save_LIBS
8546 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8547 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8548 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8549 cat >>confdefs.h
<<_ACEOF
8550 #define HAVE_LIBXEXT 1
8560 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8561 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8562 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8563 if test "${emacs_cv_lesstif+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 # We put this in CFLAGS temporarily to precede other -I options
8567 # that might be in CFLAGS temporarily.
8568 # We put this in CPPFLAGS where it precedes the other -I options.
8569 OLD_CPPFLAGS
=$CPPFLAGS
8571 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8572 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8573 cat >conftest.
$ac_ext <<_ACEOF
8574 #line $LINENO "configure"
8577 cat confdefs.h
>>conftest.
$ac_ext
8578 cat >>conftest.
$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8589 rm -f conftest.
$ac_objext
8590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591 (eval $ac_compile) 2>&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try
='test -s conftest.$ac_objext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 emacs_cv_lesstif
=yes
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.
$ac_ext >&5
8608 rm -f conftest.
$ac_objext conftest.
$ac_ext
8610 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8611 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8612 if test $emacs_cv_lesstif = yes; then
8613 # Make sure this -I option remains in CPPFLAGS after it is set
8614 # back to REAL_CPPFLAGS.
8615 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8616 # have those other -I options anyway. Ultimately, having this
8617 # directory ultimately in CPPFLAGS will be enough.
8618 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8619 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8622 CPPFLAGS
=$OLD_CPPFLAGS
8624 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8625 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8626 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 cat >conftest.
$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8633 cat confdefs.h
>>conftest.
$ac_ext
8634 cat >>conftest.
$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8640 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8643 Motif version prior to 2.1.
8649 rm -f conftest.
$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try
='test -s conftest.$ac_objext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 emacs_cv_motif_version_2_1
=yes
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.
$ac_ext >&5
8666 emacs_cv_motif_version_2_1
=no
8668 rm -f conftest.
$ac_objext conftest.
$ac_ext
8670 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8671 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8672 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8673 if test $emacs_cv_motif_version_2_1 = yes; then
8676 cat >>confdefs.h
<<\_ACEOF
8677 #define HAVE_MOTIF_2_1 1
8680 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8681 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8682 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 ac_check_lib_save_LIBS
=$LIBS
8687 cat >conftest.
$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8691 cat confdefs.h
>>conftest.
$ac_ext
8692 cat >>conftest.
$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8695 /* Override any gcc2 internal prototype to avoid an error. */
8699 /* We use char because int might match the return type of a gcc2
8700 builtin and then its argument prototype would still apply. */
8701 char XpCreateContext ();
8710 rm -f conftest.
$ac_objext conftest
$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try
='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_cv_lib_Xp_XpCreateContext
=yes
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.
$ac_ext >&5
8727 ac_cv_lib_Xp_XpCreateContext
=no
8729 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8730 LIBS
=$ac_check_lib_save_LIBS
8732 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8733 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8734 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8738 if test ${HAVE_LIBXP} = yes; then
8740 cat >>confdefs.h
<<\_ACEOF
8741 #define HAVE_LIBXP 1
8748 ### Is -lXaw3d available?
8750 if test "${HAVE_X11}" = "yes"; then
8751 if test "${USE_X_TOOLKIT}" != "none"; then
8752 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8753 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8754 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 cat >conftest.
$ac_ext <<_ACEOF
8758 #line $LINENO "configure"
8761 cat confdefs.h
>>conftest.
$ac_ext
8762 cat >>conftest.
$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 #include <X11/Xaw3d/Scrollbar.h>
8766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8767 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8769 grep -v '^ *+' conftest.er1
>conftest.err
8771 cat conftest.err
>&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } >/dev
/null
; then
8774 if test -s conftest.err
; then
8775 ac_cpp_err
=$ac_c_preproc_warn_flag
8782 if test -z "$ac_cpp_err"; then
8783 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.
$ac_ext >&5
8788 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8790 rm -f conftest.err conftest.
$ac_ext
8792 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8793 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8794 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8795 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8796 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8797 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 ac_check_lib_save_LIBS
=$LIBS
8801 LIBS
="-lXaw3d $LIBS"
8802 cat >conftest.
$ac_ext <<_ACEOF
8803 #line $LINENO "configure"
8806 cat confdefs.h
>>conftest.
$ac_ext
8807 cat >>conftest.
$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8810 /* Override any gcc2 internal prototype to avoid an error. */
8814 /* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8816 char XawScrollbarSetThumb ();
8820 XawScrollbarSetThumb ();
8825 rm -f conftest.
$ac_objext conftest
$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try
='test -s conftest$ac_exeext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.
$ac_ext >&5
8842 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8844 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8845 LIBS
=$ac_check_lib_save_LIBS
8847 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8848 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8849 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8856 if test "${HAVE_XAW3D}" = "yes"; then
8858 cat >>confdefs.h
<<\_ACEOF
8859 #define HAVE_XAW3D 1
8868 USE_TOOLKIT_SCROLL_BARS
=no
8869 if test "${with_toolkit_scroll_bars}" != "no"; then
8870 if test "${USE_X_TOOLKIT}" != "none"; then
8871 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8872 cat >>confdefs.h
<<\_ACEOF
8873 #define USE_TOOLKIT_SCROLL_BARS 1
8877 USE_TOOLKIT_SCROLL_BARS
=yes
8878 elif test "${HAVE_XAW3D}" = "yes"; then
8879 cat >>confdefs.h
<<\_ACEOF
8880 #define USE_TOOLKIT_SCROLL_BARS 1
8883 USE_TOOLKIT_SCROLL_BARS
=yes
8885 elif test "${HAVE_GTK}" = "yes"; then
8886 cat >>confdefs.h
<<\_ACEOF
8887 #define USE_TOOLKIT_SCROLL_BARS 1
8890 USE_TOOLKIT_SCROLL_BARS
=yes
8895 if test "${with_xim}" != "no"; then
8897 cat >>confdefs.h
<<\_ACEOF
8902 if test "$GCC" = yes; then
8903 CFLAGS
="$CFLAGS --pedantic-errors"
8905 cat >conftest.
$ac_ext <<_ACEOF
8906 #line $LINENO "configure"
8909 cat confdefs.h
>>conftest.
$ac_ext
8910 cat >>conftest.
$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 #include <X11/Xlib.h>
8914 #include <X11/Xresource.h>
8923 XPointer *client_data;
8925 /* If we're not using GCC, it's probably not XFree86, and this is
8926 probably right, but we can't use something like --pedantic-errors. */
8927 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8928 char*, XIMProc, XPointer*);
8930 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8936 rm -f conftest.
$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try
='test -s conftest.$ac_objext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 emacs_cv_arg6_star
=yes
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.
$ac_ext >&5
8954 rm -f conftest.
$ac_objext conftest.
$ac_ext
8956 if test "$emacs_cv_arg6_star" = yes; then
8957 cat >>confdefs.h
<<\_ACEOF
8958 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8962 cat >>confdefs.h
<<\_ACEOF
8963 #define XRegisterIMInstantiateCallback_arg6 XPointer
8970 ### Use -lXpm if available, unless `--with-xpm=no'.
8972 if test "${HAVE_X11}" = "yes"; then
8973 if test "${with_xpm}" != "no"; then
8974 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8975 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8976 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8977 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8981 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8983 # Is the header compilable?
8984 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8985 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8986 cat >conftest.
$ac_ext <<_ACEOF
8987 #line $LINENO "configure"
8990 cat confdefs.h
>>conftest.
$ac_ext
8991 cat >>conftest.
$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 $ac_includes_default
8994 #include <X11/xpm.h>
8996 rm -f conftest.
$ac_objext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8998 (eval $ac_compile) 2>&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try
='test -s conftest.$ac_objext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_header_compiler
=yes
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.
$ac_ext >&5
9013 ac_header_compiler
=no
9015 rm -f conftest.
$ac_objext conftest.
$ac_ext
9016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9017 echo "${ECHO_T}$ac_header_compiler" >&6
9019 # Is the header present?
9020 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9021 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9022 cat >conftest.
$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9026 cat confdefs.h
>>conftest.
$ac_ext
9027 cat >>conftest.
$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <X11/xpm.h>
9031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9034 grep -v '^ *+' conftest.er1
>conftest.err
9036 cat conftest.err
>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } >/dev
/null
; then
9039 if test -s conftest.err
; then
9040 ac_cpp_err
=$ac_c_preproc_warn_flag
9047 if test -z "$ac_cpp_err"; then
9048 ac_header_preproc
=yes
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.
$ac_ext >&5
9053 ac_header_preproc
=no
9055 rm -f conftest.err conftest.
$ac_ext
9056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9057 echo "${ECHO_T}$ac_header_preproc" >&6
9059 # So? What about this header?
9060 case $ac_header_compiler:$ac_header_preproc in
9062 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9063 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9065 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9068 ## ------------------------------------ ##
9069 ## Report this to bug-autoconf@gnu.org. ##
9070 ## ------------------------------------ ##
9073 sed "s/^/$as_me: WARNING: /" >&2
9076 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9077 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9079 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9081 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9084 ## ------------------------------------ ##
9085 ## Report this to bug-autoconf@gnu.org. ##
9086 ## ------------------------------------ ##
9089 sed "s/^/$as_me: WARNING: /" >&2
9092 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9093 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9094 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9099 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9100 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9103 if test $ac_cv_header_X11_xpm_h = yes; then
9104 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9105 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9106 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 ac_check_lib_save_LIBS
=$LIBS
9110 LIBS
="-lXpm -lX11 $LIBS"
9111 cat >conftest.
$ac_ext <<_ACEOF
9112 #line $LINENO "configure"
9115 cat confdefs.h
>>conftest.
$ac_ext
9116 cat >>conftest.
$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9119 /* Override any gcc2 internal prototype to avoid an error. */
9123 /* We use char because int might match the return type of a gcc2
9124 builtin and then its argument prototype would still apply. */
9125 char XpmReadFileToPixmap ();
9129 XpmReadFileToPixmap ();
9134 rm -f conftest.
$ac_objext conftest
$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try
='test -s conftest$ac_exeext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.
$ac_ext >&5
9151 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9153 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9154 LIBS
=$ac_check_lib_save_LIBS
9156 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9157 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9158 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9165 if test "${HAVE_XPM}" = "yes"; then
9166 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9167 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9168 cat >conftest.
$ac_ext <<_ACEOF
9169 #line $LINENO "configure"
9172 cat confdefs.h
>>conftest.
$ac_ext
9173 cat >>conftest.
$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 #include "X11/xpm.h"
9176 #ifndef XpmReturnAllocPixels
9177 no_return_alloc_pixels
9181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9182 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9190 if test "${HAVE_XPM}" = "yes"; then
9191 echo "$as_me:$LINENO: result: yes" >&5
9192 echo "${ECHO_T}yes" >&6
9194 echo "$as_me:$LINENO: result: no" >&5
9195 echo "${ECHO_T}no" >&6
9200 if test "${HAVE_XPM}" = "yes"; then
9202 cat >>confdefs.h
<<\_ACEOF
9209 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9211 if test "${HAVE_X11}" = "yes"; then
9212 if test "${with_jpeg}" != "no"; then
9213 if test "${ac_cv_header_jerror_h+set}" = set; then
9214 echo "$as_me:$LINENO: checking for jerror.h" >&5
9215 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9216 if test "${ac_cv_header_jerror_h+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9220 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9222 # Is the header compilable?
9223 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9224 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9225 cat >conftest.
$ac_ext <<_ACEOF
9226 #line $LINENO "configure"
9229 cat confdefs.h
>>conftest.
$ac_ext
9230 cat >>conftest.
$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 $ac_includes_default
9235 rm -f conftest.
$ac_objext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9237 (eval $ac_compile) 2>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try
='test -s conftest.$ac_objext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_header_compiler
=yes
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.
$ac_ext >&5
9252 ac_header_compiler
=no
9254 rm -f conftest.
$ac_objext conftest.
$ac_ext
9255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9256 echo "${ECHO_T}$ac_header_compiler" >&6
9258 # Is the header present?
9259 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9260 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9261 cat >conftest.
$ac_ext <<_ACEOF
9262 #line $LINENO "configure"
9265 cat confdefs.h
>>conftest.
$ac_ext
9266 cat >>conftest.
$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9271 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9273 grep -v '^ *+' conftest.er1
>conftest.err
9275 cat conftest.err
>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } >/dev
/null
; then
9278 if test -s conftest.err
; then
9279 ac_cpp_err
=$ac_c_preproc_warn_flag
9286 if test -z "$ac_cpp_err"; then
9287 ac_header_preproc
=yes
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.
$ac_ext >&5
9292 ac_header_preproc
=no
9294 rm -f conftest.err conftest.
$ac_ext
9295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296 echo "${ECHO_T}$ac_header_preproc" >&6
9298 # So? What about this header?
9299 case $ac_header_compiler:$ac_header_preproc in
9301 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9302 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9304 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9307 ## ------------------------------------ ##
9308 ## Report this to bug-autoconf@gnu.org. ##
9309 ## ------------------------------------ ##
9312 sed "s/^/$as_me: WARNING: /" >&2
9315 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9316 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9318 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9320 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9323 ## ------------------------------------ ##
9324 ## Report this to bug-autoconf@gnu.org. ##
9325 ## ------------------------------------ ##
9328 sed "s/^/$as_me: WARNING: /" >&2
9331 echo "$as_me:$LINENO: checking for jerror.h" >&5
9332 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9333 if test "${ac_cv_header_jerror_h+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 ac_cv_header_jerror_h
=$ac_header_preproc
9338 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9339 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9342 if test $ac_cv_header_jerror_h = yes; then
9343 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9344 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9345 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 ac_check_lib_save_LIBS
=$LIBS
9350 cat >conftest.
$ac_ext <<_ACEOF
9351 #line $LINENO "configure"
9354 cat confdefs.h
>>conftest.
$ac_ext
9355 cat >>conftest.
$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9358 /* Override any gcc2 internal prototype to avoid an error. */
9362 /* We use char because int might match the return type of a gcc2
9363 builtin and then its argument prototype would still apply. */
9364 char jpeg_destroy_compress ();
9368 jpeg_destroy_compress ();
9373 rm -f conftest.
$ac_objext conftest
$ac_exeext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9375 (eval $ac_link) 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try
='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.
$ac_ext >&5
9390 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9392 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9393 LIBS
=$ac_check_lib_save_LIBS
9395 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9396 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9397 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9407 if test "${HAVE_JPEG}" = "yes"; then
9408 cat >>confdefs.h
<<\_ACEOF
9412 cat >conftest.
$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9416 cat confdefs.h
>>conftest.
$ac_ext
9417 cat >>conftest.
$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 #include <jpeglib.h>
9420 version=JPEG_LIB_VERSION
9423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9424 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9425 cat >>confdefs.h
<<\_ACEOF
9430 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9431 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9439 ### Use -lpng if available, unless `--with-png=no'.
9441 if test "${HAVE_X11}" = "yes"; then
9442 if test "${with_png}" != "no"; then
9443 if test "${ac_cv_header_png_h+set}" = set; then
9444 echo "$as_me:$LINENO: checking for png.h" >&5
9445 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9446 if test "${ac_cv_header_png_h+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9450 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9452 # Is the header compilable?
9453 echo "$as_me:$LINENO: checking png.h usability" >&5
9454 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9455 cat >conftest.
$ac_ext <<_ACEOF
9456 #line $LINENO "configure"
9459 cat confdefs.h
>>conftest.
$ac_ext
9460 cat >>conftest.
$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 $ac_includes_default
9465 rm -f conftest.
$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try
='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_header_compiler
=yes
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.
$ac_ext >&5
9482 ac_header_compiler
=no
9484 rm -f conftest.
$ac_objext conftest.
$ac_ext
9485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9486 echo "${ECHO_T}$ac_header_compiler" >&6
9488 # Is the header present?
9489 echo "$as_me:$LINENO: checking png.h presence" >&5
9490 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9491 cat >conftest.
$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9495 cat confdefs.h
>>conftest.
$ac_ext
9496 cat >>conftest.
$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9501 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9503 grep -v '^ *+' conftest.er1
>conftest.err
9505 cat conftest.err
>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } >/dev
/null
; then
9508 if test -s conftest.err
; then
9509 ac_cpp_err
=$ac_c_preproc_warn_flag
9516 if test -z "$ac_cpp_err"; then
9517 ac_header_preproc
=yes
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.
$ac_ext >&5
9522 ac_header_preproc
=no
9524 rm -f conftest.err conftest.
$ac_ext
9525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9526 echo "${ECHO_T}$ac_header_preproc" >&6
9528 # So? What about this header?
9529 case $ac_header_compiler:$ac_header_preproc in
9531 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9532 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9534 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9537 ## ------------------------------------ ##
9538 ## Report this to bug-autoconf@gnu.org. ##
9539 ## ------------------------------------ ##
9542 sed "s/^/$as_me: WARNING: /" >&2
9545 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9546 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9548 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9550 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9553 ## ------------------------------------ ##
9554 ## Report this to bug-autoconf@gnu.org. ##
9555 ## ------------------------------------ ##
9558 sed "s/^/$as_me: WARNING: /" >&2
9561 echo "$as_me:$LINENO: checking for png.h" >&5
9562 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9563 if test "${ac_cv_header_png_h+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 ac_cv_header_png_h
=$ac_header_preproc
9568 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9569 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9572 if test $ac_cv_header_png_h = yes; then
9573 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9574 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9575 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 ac_check_lib_save_LIBS
=$LIBS
9579 LIBS
="-lpng -lz -lm $LIBS"
9580 cat >conftest.
$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9584 cat confdefs.h
>>conftest.
$ac_ext
9585 cat >>conftest.
$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9588 /* Override any gcc2 internal prototype to avoid an error. */
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9594 char png_get_channels ();
9598 png_get_channels ();
9603 rm -f conftest.
$ac_objext conftest
$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try
='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_lib_png_png_get_channels
=yes
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.
$ac_ext >&5
9620 ac_cv_lib_png_png_get_channels
=no
9622 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9623 LIBS
=$ac_check_lib_save_LIBS
9625 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9626 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9627 if test $ac_cv_lib_png_png_get_channels = yes; then
9636 if test "${HAVE_PNG}" = "yes"; then
9638 cat >>confdefs.h
<<\_ACEOF
9645 ### Use -ltiff if available, unless `--with-tiff=no'.
9647 if test "${HAVE_X11}" = "yes"; then
9648 if test "${with_tiff}" != "no"; then
9649 if test "${ac_cv_header_tiffio_h+set}" = set; then
9650 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9651 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9652 if test "${ac_cv_header_tiffio_h+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9656 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9658 # Is the header compilable?
9659 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9660 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9661 cat >conftest.
$ac_ext <<_ACEOF
9662 #line $LINENO "configure"
9665 cat confdefs.h
>>conftest.
$ac_ext
9666 cat >>conftest.
$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9671 rm -f conftest.
$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673 (eval $ac_compile) 2>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try
='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_header_compiler
=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.
$ac_ext >&5
9688 ac_header_compiler
=no
9690 rm -f conftest.
$ac_objext conftest.
$ac_ext
9691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6
9694 # Is the header present?
9695 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9696 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9697 cat >conftest.
$ac_ext <<_ACEOF
9698 #line $LINENO "configure"
9701 cat confdefs.h
>>conftest.
$ac_ext
9702 cat >>conftest.
$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9707 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9709 grep -v '^ *+' conftest.er1
>conftest.err
9711 cat conftest.err
>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } >/dev
/null
; then
9714 if test -s conftest.err
; then
9715 ac_cpp_err
=$ac_c_preproc_warn_flag
9722 if test -z "$ac_cpp_err"; then
9723 ac_header_preproc
=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.
$ac_ext >&5
9728 ac_header_preproc
=no
9730 rm -f conftest.err conftest.
$ac_ext
9731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732 echo "${ECHO_T}$ac_header_preproc" >&6
9734 # So? What about this header?
9735 case $ac_header_compiler:$ac_header_preproc in
9737 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9738 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9740 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9743 ## ------------------------------------ ##
9744 ## Report this to bug-autoconf@gnu.org. ##
9745 ## ------------------------------------ ##
9748 sed "s/^/$as_me: WARNING: /" >&2
9751 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9752 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9754 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9755 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9756 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9759 ## ------------------------------------ ##
9760 ## Report this to bug-autoconf@gnu.org. ##
9761 ## ------------------------------------ ##
9764 sed "s/^/$as_me: WARNING: /" >&2
9767 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9768 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9769 if test "${ac_cv_header_tiffio_h+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 ac_cv_header_tiffio_h
=$ac_header_preproc
9774 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9775 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9778 if test $ac_cv_header_tiffio_h = yes; then
9780 # At least one tiff package requires the jpeg library.
9781 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9782 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9783 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9784 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_check_lib_save_LIBS
=$LIBS
9788 LIBS
="-ltiff $tifflibs $LIBS"
9789 cat >conftest.
$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9793 cat confdefs.h
>>conftest.
$ac_ext
9794 cat >>conftest.
$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9797 /* Override any gcc2 internal prototype to avoid an error. */
9801 /* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9803 char TIFFGetVersion ();
9812 rm -f conftest.
$ac_objext conftest
$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try
='test -s conftest$ac_exeext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_lib_tiff_TIFFGetVersion
=yes
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.
$ac_ext >&5
9829 ac_cv_lib_tiff_TIFFGetVersion
=no
9831 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9832 LIBS
=$ac_check_lib_save_LIBS
9834 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9835 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9836 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9845 if test "${HAVE_TIFF}" = "yes"; then
9847 cat >>confdefs.h
<<\_ACEOF
9854 ### Use -lgif if available, unless `--with-gif=no'.
9856 if test "${HAVE_X11}" = "yes"; then
9857 if test "${with_gif}" != "no"; then
9858 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9859 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9860 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9861 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9865 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9867 # Is the header compilable?
9868 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9869 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9870 cat >conftest.
$ac_ext <<_ACEOF
9871 #line $LINENO "configure"
9874 cat confdefs.h
>>conftest.
$ac_ext
9875 cat >>conftest.
$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 $ac_includes_default
9878 #include <gif_lib.h>
9880 rm -f conftest.
$ac_objext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882 (eval $ac_compile) 2>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try
='test -s conftest.$ac_objext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_header_compiler
=yes
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.
$ac_ext >&5
9897 ac_header_compiler
=no
9899 rm -f conftest.
$ac_objext conftest.
$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9901 echo "${ECHO_T}$ac_header_compiler" >&6
9903 # Is the header present?
9904 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9905 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9906 cat >conftest.
$ac_ext <<_ACEOF
9907 #line $LINENO "configure"
9910 cat confdefs.h
>>conftest.
$ac_ext
9911 cat >>conftest.
$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 #include <gif_lib.h>
9915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9918 grep -v '^ *+' conftest.er1
>conftest.err
9920 cat conftest.err
>&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } >/dev
/null
; then
9923 if test -s conftest.err
; then
9924 ac_cpp_err
=$ac_c_preproc_warn_flag
9931 if test -z "$ac_cpp_err"; then
9932 ac_header_preproc
=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.
$ac_ext >&5
9937 ac_header_preproc
=no
9939 rm -f conftest.err conftest.
$ac_ext
9940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9941 echo "${ECHO_T}$ac_header_preproc" >&6
9943 # So? What about this header?
9944 case $ac_header_compiler:$ac_header_preproc in
9946 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9947 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9949 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9952 ## ------------------------------------ ##
9953 ## Report this to bug-autoconf@gnu.org. ##
9954 ## ------------------------------------ ##
9957 sed "s/^/$as_me: WARNING: /" >&2
9960 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9965 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9968 ## ------------------------------------ ##
9969 ## Report this to bug-autoconf@gnu.org. ##
9970 ## ------------------------------------ ##
9973 sed "s/^/$as_me: WARNING: /" >&2
9976 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9977 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9978 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 ac_cv_header_gif_lib_h
=$ac_header_preproc
9983 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9984 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9987 if test $ac_cv_header_gif_lib_h = yes; then
9988 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9989 # Earlier versions can crash Emacs.
9990 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9991 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9992 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 ac_check_lib_save_LIBS
=$LIBS
9996 LIBS
="-lungif $LIBS"
9997 cat >conftest.
$ac_ext <<_ACEOF
9998 #line $LINENO "configure"
10001 cat confdefs.h
>>conftest.
$ac_ext
10002 cat >>conftest.
$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10005 /* Override any gcc2 internal prototype to avoid an error. */
10009 /* We use char because int might match the return type of a gcc2
10010 builtin and then its argument prototype would still apply. */
10011 char EGifPutExtensionLast ();
10015 EGifPutExtensionLast ();
10020 rm -f conftest.
$ac_objext conftest
$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try
='test -s conftest$ac_exeext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.
$ac_ext >&5
10037 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10039 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10040 LIBS
=$ac_check_lib_save_LIBS
10042 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10043 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10044 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10053 if test "${HAVE_GIF}" = "yes"; then
10055 cat >>confdefs.h
<<\_ACEOF
10062 ### Use Mac OS X Carbon API to implement GUI.
10064 if test "${with_carbon}" != "no"; then
10065 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10066 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10067 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10068 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10072 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10074 # Is the header compilable?
10075 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10076 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10077 cat >conftest.
$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10081 cat confdefs.h
>>conftest.
$ac_ext
10082 cat >>conftest.
$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 #include <Carbon/Carbon.h>
10087 rm -f conftest.
$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try
='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_header_compiler
=yes
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.
$ac_ext >&5
10104 ac_header_compiler
=no
10106 rm -f conftest.
$ac_objext conftest.
$ac_ext
10107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10108 echo "${ECHO_T}$ac_header_compiler" >&6
10110 # Is the header present?
10111 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10112 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10113 cat >conftest.
$ac_ext <<_ACEOF
10114 #line $LINENO "configure"
10117 cat confdefs.h
>>conftest.
$ac_ext
10118 cat >>conftest.
$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <Carbon/Carbon.h>
10122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10125 grep -v '^ *+' conftest.er1
>conftest.err
10127 cat conftest.err
>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } >/dev
/null
; then
10130 if test -s conftest.err
; then
10131 ac_cpp_err
=$ac_c_preproc_warn_flag
10138 if test -z "$ac_cpp_err"; then
10139 ac_header_preproc
=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.
$ac_ext >&5
10144 ac_header_preproc
=no
10146 rm -f conftest.err conftest.
$ac_ext
10147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10148 echo "${ECHO_T}$ac_header_preproc" >&6
10150 # So? What about this header?
10151 case $ac_header_compiler:$ac_header_preproc in
10153 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10154 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10156 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10159 ## ------------------------------------ ##
10160 ## Report this to bug-autoconf@gnu.org. ##
10161 ## ------------------------------------ ##
10164 sed "s/^/$as_me: WARNING: /" >&2
10167 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10168 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10170 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10172 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10175 ## ------------------------------------ ##
10176 ## Report this to bug-autoconf@gnu.org. ##
10177 ## ------------------------------------ ##
10180 sed "s/^/$as_me: WARNING: /" >&2
10183 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10184 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10185 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10190 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10191 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10194 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10201 if test "${HAVE_CARBON}" = "yes"; then
10203 cat >>confdefs.h
<<\_ACEOF
10204 #define HAVE_CARBON 1
10208 ## Specify the install directory
10210 if test "${carbon_appdir_x}" != ""; then
10211 case ${carbon_appdir_x} in
10212 y | ye |
yes) carbon_appdir
=/Applications
;;
10213 * ) carbon_appdir
=${carbon_appdir_x} ;;
10216 # We also have mouse menus.
10220 ### Use session management (-lSM -lICE) if available
10222 if test "${HAVE_X11}" = "yes"; then
10223 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10224 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10225 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10226 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10230 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10232 # Is the header compilable?
10233 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10234 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10235 cat >conftest.
$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10239 cat confdefs.h
>>conftest.
$ac_ext
10240 cat >>conftest.
$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 $ac_includes_default
10243 #include <X11/SM/SMlib.h>
10245 rm -f conftest.
$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247 (eval $ac_compile) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try
='test -s conftest.$ac_objext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_header_compiler
=yes
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.
$ac_ext >&5
10262 ac_header_compiler
=no
10264 rm -f conftest.
$ac_objext conftest.
$ac_ext
10265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10266 echo "${ECHO_T}$ac_header_compiler" >&6
10268 # Is the header present?
10269 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10270 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10271 cat >conftest.
$ac_ext <<_ACEOF
10272 #line $LINENO "configure"
10275 cat confdefs.h
>>conftest.
$ac_ext
10276 cat >>conftest.
$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 #include <X11/SM/SMlib.h>
10280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10281 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10283 grep -v '^ *+' conftest.er1
>conftest.err
10285 cat conftest.err
>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } >/dev
/null
; then
10288 if test -s conftest.err
; then
10289 ac_cpp_err
=$ac_c_preproc_warn_flag
10296 if test -z "$ac_cpp_err"; then
10297 ac_header_preproc
=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.
$ac_ext >&5
10302 ac_header_preproc
=no
10304 rm -f conftest.err conftest.
$ac_ext
10305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10306 echo "${ECHO_T}$ac_header_preproc" >&6
10308 # So? What about this header?
10309 case $ac_header_compiler:$ac_header_preproc in
10311 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10312 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10313 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10314 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10317 ## ------------------------------------ ##
10318 ## Report this to bug-autoconf@gnu.org. ##
10319 ## ------------------------------------ ##
10322 sed "s/^/$as_me: WARNING: /" >&2
10325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10326 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10328 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10330 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10333 ## ------------------------------------ ##
10334 ## Report this to bug-autoconf@gnu.org. ##
10335 ## ------------------------------------ ##
10338 sed "s/^/$as_me: WARNING: /" >&2
10341 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10342 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10343 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10348 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10349 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10352 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10353 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10354 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10355 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 ac_check_lib_save_LIBS
=$LIBS
10360 cat >conftest.
$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10364 cat confdefs.h
>>conftest.
$ac_ext
10365 cat >>conftest.
$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 /* Override any gcc2 internal prototype to avoid an error. */
10372 /* We use char because int might match the return type of a gcc2
10373 builtin and then its argument prototype would still apply. */
10374 char SmcOpenConnection ();
10378 SmcOpenConnection ();
10383 rm -f conftest.
$ac_objext conftest
$ac_exeext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try
='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_lib_SM_SmcOpenConnection
=yes
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.
$ac_ext >&5
10400 ac_cv_lib_SM_SmcOpenConnection
=no
10402 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10403 LIBS
=$ac_check_lib_save_LIBS
10405 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10406 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10407 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10417 if test "${HAVE_X_SM}" = "yes"; then
10419 cat >>confdefs.h
<<\_ACEOF
10420 #define HAVE_X_SM 1
10425 *) LIBS
="-lSM -lICE $LIBS" ;;
10430 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10431 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10432 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10433 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 cat >conftest.
$ac_ext <<_ACEOF
10437 #line $LINENO "configure"
10440 cat confdefs.h
>>conftest.
$ac_ext
10441 cat >>conftest.
$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10452 rm -f conftest.
$ac_objext conftest
$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try
='test -s conftest$ac_exeext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 emacs_cv_netdb_declares_h_errno
=yes
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.
$ac_ext >&5
10469 emacs_cv_netdb_declares_h_errno
=no
10471 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10473 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10474 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10475 if test $emacs_cv_netdb_declares_h_errno = yes; then
10477 cat >>confdefs.h
<<\_ACEOF
10478 #define HAVE_H_ERRNO 1
10483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10484 # for constant arguments. Useless!
10485 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10486 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10487 if test "${ac_cv_working_alloca_h+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 cat >conftest.
$ac_ext <<_ACEOF
10491 #line $LINENO "configure"
10494 cat confdefs.h
>>conftest.
$ac_ext
10495 cat >>conftest.
$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <alloca.h>
10501 char *p = (char *) alloca (2 * sizeof (int));
10506 rm -f conftest.
$ac_objext conftest
$ac_exeext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
10512 { ac_try
='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_working_alloca_h
=yes
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.
$ac_ext >&5
10523 ac_cv_working_alloca_h
=no
10525 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10527 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10528 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10529 if test $ac_cv_working_alloca_h = yes; then
10531 cat >>confdefs.h
<<\_ACEOF
10532 #define HAVE_ALLOCA_H 1
10537 echo "$as_me:$LINENO: checking for alloca" >&5
10538 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10539 if test "${ac_cv_func_alloca_works+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 cat >conftest.
$ac_ext <<_ACEOF
10543 #line $LINENO "configure"
10546 cat confdefs.h
>>conftest.
$ac_ext
10547 cat >>conftest.
$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10550 # define alloca __builtin_alloca
10553 # include <malloc.h>
10554 # define alloca _alloca
10557 # include <alloca.h>
10562 # ifndef alloca /* predefined by HP cc +Olibcalls */
10573 char *p = (char *) alloca (1);
10578 rm -f conftest.
$ac_objext conftest
$ac_exeext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580 (eval $ac_link) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try
='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_func_alloca_works
=yes
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.
$ac_ext >&5
10595 ac_cv_func_alloca_works
=no
10597 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10600 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10602 if test $ac_cv_func_alloca_works = yes; then
10604 cat >>confdefs.h
<<\_ACEOF
10605 #define HAVE_ALLOCA 1
10609 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10610 # that cause trouble. Some versions do not even contain alloca or
10611 # contain a buggy version. If you still want to use their alloca,
10612 # use ar to extract alloca.o from them instead of compiling alloca.c.
10614 ALLOCA
=alloca.
$ac_objext
10616 cat >>confdefs.h
<<\_ACEOF
10621 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10622 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10623 if test "${ac_cv_os_cray+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 cat >conftest.
$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10630 cat confdefs.h
>>conftest.
$ac_ext
10631 cat >>conftest.
$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 #if defined(CRAY) && ! defined(CRAY2)
10640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10641 $EGREP "webecray" >/dev
/null
2>&1; then
10649 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10650 echo "${ECHO_T}$ac_cv_os_cray" >&6
10651 if test $ac_cv_os_cray = yes; then
10652 for ac_func
in _getb67 GETB67 getb67
; do
10653 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10654 echo "$as_me:$LINENO: checking for $ac_func" >&5
10655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10656 if eval "test \"\${$as_ac_var+set}\" = set"; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 cat >conftest.
$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10663 cat confdefs.h
>>conftest.
$ac_ext
10664 cat >>conftest.
$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 /* System header to define __stub macros and hopefully few prototypes,
10667 which can conflict with char $ac_func (); below.
10668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669 <limits.h> exists even on freestanding compilers. */
10671 # include <limits.h>
10673 # include <assert.h>
10675 /* Override any gcc2 internal prototype to avoid an error. */
10680 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */
10683 /* The GNU C library defines this for functions which it implements
10684 to always fail with ENOSYS. Some functions are actually named
10685 something starting with __ and the normal name is an alias. */
10686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10689 char (*f) () = $ac_func;
10698 return f != $ac_func;
10703 rm -f conftest.
$ac_objext conftest
$ac_exeext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705 (eval $ac_link) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try
='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 eval "$as_ac_var=yes"
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.
$ac_ext >&5
10720 eval "$as_ac_var=no"
10722 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10726 if test `eval echo '${'$as_ac_var'}'` = yes; then
10728 cat >>confdefs.h
<<_ACEOF
10729 #define CRAY_STACKSEG_END $ac_func
10738 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10739 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10740 if test "${ac_cv_c_stack_direction+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 if test "$cross_compiling" = yes; then
10744 ac_cv_c_stack_direction
=0
10746 cat >conftest.
$ac_ext <<_ACEOF
10747 #line $LINENO "configure"
10750 cat confdefs.h
>>conftest.
$ac_ext
10751 cat >>conftest.
$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10754 find_stack_direction ()
10756 static char *addr = 0;
10761 return find_stack_direction ();
10764 return (&dummy > addr) ? 1 : -1;
10770 exit (find_stack_direction () < 0);
10773 rm -f conftest
$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775 (eval $ac_link) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_c_stack_direction
=1
10786 echo "$as_me: program exited with status $ac_status" >&5
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.
$ac_ext >&5
10790 ( exit $ac_status )
10791 ac_cv_c_stack_direction
=-1
10793 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10797 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10799 cat >>confdefs.h
<<_ACEOF
10800 #define STACK_DIRECTION $ac_cv_c_stack_direction
10807 # fmod, logb, and frexp are found in -lm on most systems.
10808 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10810 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10811 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10812 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 ac_check_lib_save_LIBS
=$LIBS
10817 cat >conftest.
$ac_ext <<_ACEOF
10818 #line $LINENO "configure"
10821 cat confdefs.h
>>conftest.
$ac_ext
10822 cat >>conftest.
$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10825 /* Override any gcc2 internal prototype to avoid an error. */
10829 /* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10840 rm -f conftest.
$ac_objext conftest
$ac_exeext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10842 (eval $ac_link) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try
='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_cv_lib_m_sqrt
=yes
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.
$ac_ext >&5
10857 ac_cv_lib_m_sqrt
=no
10859 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10860 LIBS
=$ac_check_lib_save_LIBS
10862 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10863 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10864 if test $ac_cv_lib_m_sqrt = yes; then
10865 cat >>confdefs.h
<<_ACEOF
10866 #define HAVE_LIBM 1
10874 # Check for mail-locking functions in a "mail" library. Probably this should
10875 # have the same check as for liblockfile below.
10877 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10878 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10879 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 ac_check_lib_save_LIBS
=$LIBS
10883 LIBS
="-lmail $LIBS"
10884 cat >conftest.
$ac_ext <<_ACEOF
10885 #line $LINENO "configure"
10888 cat confdefs.h
>>conftest.
$ac_ext
10889 cat >>conftest.
$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10892 /* Override any gcc2 internal prototype to avoid an error. */
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10907 rm -f conftest.
$ac_objext conftest
$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try
='test -s conftest$ac_exeext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_lib_mail_maillock
=yes
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.
$ac_ext >&5
10924 ac_cv_lib_mail_maillock
=no
10926 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10927 LIBS
=$ac_check_lib_save_LIBS
10929 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10930 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10931 if test $ac_cv_lib_mail_maillock = yes; then
10932 cat >>confdefs.h
<<_ACEOF
10933 #define HAVE_LIBMAIL 1
10936 LIBS
="-lmail $LIBS"
10941 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10942 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10943 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 ac_check_lib_save_LIBS
=$LIBS
10947 LIBS
="-llockfile $LIBS"
10948 cat >conftest.
$ac_ext <<_ACEOF
10949 #line $LINENO "configure"
10952 cat confdefs.h
>>conftest.
$ac_ext
10953 cat >>conftest.
$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10956 /* Override any gcc2 internal prototype to avoid an error. */
10960 /* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10971 rm -f conftest.
$ac_objext conftest
$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try
='test -s conftest$ac_exeext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_cv_lib_lockfile_maillock
=yes
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.
$ac_ext >&5
10988 ac_cv_lib_lockfile_maillock
=no
10990 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10991 LIBS
=$ac_check_lib_save_LIBS
10993 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10994 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10995 if test $ac_cv_lib_lockfile_maillock = yes; then
10996 cat >>confdefs.h
<<_ACEOF
10997 #define HAVE_LIBLOCKFILE 1
11000 LIBS
="-llockfile $LIBS"
11004 # If we have the shared liblockfile, assume we must use it for mail
11005 # locking (e.g. Debian). If we couldn't link against liblockfile
11006 # (no liblockfile.a installed), ensure that we don't need to.
11007 if test "$ac_cv_lib_lockfile_maillock" = no
; then
11008 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11009 set dummy liblockfile.so
; ac_word
=$2
11010 echo "$as_me:$LINENO: checking for $ac_word" >&5
11011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012 if test "${ac_cv_prog_liblockfile+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 if test -n "$liblockfile"; then
11016 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11019 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11020 for as_dir
in $as_dummy
11023 test -z "$as_dir" && as_dir
=.
11024 for ac_exec_ext
in '' $ac_executable_extensions; do
11025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_prog_liblockfile
="yes"
11027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11036 liblockfile
=$ac_cv_prog_liblockfile
11037 if test -n "$liblockfile"; then
11038 echo "$as_me:$LINENO: result: $liblockfile" >&5
11039 echo "${ECHO_T}$liblockfile" >&6
11041 echo "$as_me:$LINENO: result: no" >&5
11042 echo "${ECHO_T}no" >&6
11045 if test $ac_cv_prog_liblockfile = yes; then
11046 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11047 This probably means that movemail could lose mail.
11048 There may be a \`development' package to install containing liblockfile." >&5
11049 echo "$as_me: error: Shared liblockfile found but can't link against it.
11050 This probably means that movemail could lose mail.
11051 There may be a \`development' package to install containing liblockfile." >&2;}
11052 { (exit 1); exit 1; }; }
11057 for ac_func
in touchlock
11059 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11060 echo "$as_me:$LINENO: checking for $ac_func" >&5
11061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_var+set}\" = set"; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 cat >conftest.
$ac_ext <<_ACEOF
11066 #line $LINENO "configure"
11069 cat confdefs.h
>>conftest.
$ac_ext
11070 cat >>conftest.
$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 /* System header to define __stub macros and hopefully few prototypes,
11073 which can conflict with char $ac_func (); below.
11074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11075 <limits.h> exists even on freestanding compilers. */
11077 # include <limits.h>
11079 # include <assert.h>
11081 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11089 /* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
11092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11095 char (*f) () = $ac_func;
11104 return f != $ac_func;
11109 rm -f conftest.
$ac_objext conftest
$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try
='test -s conftest$ac_exeext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 eval "$as_ac_var=yes"
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.
$ac_ext >&5
11126 eval "$as_ac_var=no"
11128 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11132 if test `eval echo '${'$as_ac_var'}'` = yes; then
11133 cat >>confdefs.h
<<_ACEOF
11134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11141 for ac_header
in maillock.h
11143 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11145 echo "$as_me:$LINENO: checking for $ac_header" >&5
11146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11153 # Is the header compilable?
11154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11156 cat >conftest.
$ac_ext <<_ACEOF
11157 #line $LINENO "configure"
11160 cat confdefs.h
>>conftest.
$ac_ext
11161 cat >>conftest.
$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 $ac_includes_default
11164 #include <$ac_header>
11166 rm -f conftest.
$ac_objext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168 (eval $ac_compile) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try
='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_header_compiler
=yes
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.
$ac_ext >&5
11183 ac_header_compiler
=no
11185 rm -f conftest.
$ac_objext conftest.
$ac_ext
11186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11187 echo "${ECHO_T}$ac_header_compiler" >&6
11189 # Is the header present?
11190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11192 cat >conftest.
$ac_ext <<_ACEOF
11193 #line $LINENO "configure"
11196 cat confdefs.h
>>conftest.
$ac_ext
11197 cat >>conftest.
$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <$ac_header>
11201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11202 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11204 grep -v '^ *+' conftest.er1
>conftest.err
11206 cat conftest.err
>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } >/dev
/null
; then
11209 if test -s conftest.err
; then
11210 ac_cpp_err
=$ac_c_preproc_warn_flag
11217 if test -z "$ac_cpp_err"; then
11218 ac_header_preproc
=yes
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.
$ac_ext >&5
11223 ac_header_preproc
=no
11225 rm -f conftest.err conftest.
$ac_ext
11226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11227 echo "${ECHO_T}$ac_header_preproc" >&6
11229 # So? What about this header?
11230 case $ac_header_compiler:$ac_header_preproc in
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11238 ## ------------------------------------ ##
11239 ## Report this to bug-autoconf@gnu.org. ##
11240 ## ------------------------------------ ##
11243 sed "s/^/$as_me: WARNING: /" >&2
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11254 ## ------------------------------------ ##
11255 ## Report this to bug-autoconf@gnu.org. ##
11256 ## ------------------------------------ ##
11259 sed "s/^/$as_me: WARNING: /" >&2
11262 echo "$as_me:$LINENO: checking for $ac_header" >&5
11263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 eval "$as_ac_Header=$ac_header_preproc"
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11274 cat >>confdefs.h
<<_ACEOF
11275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350 for ac_func
in gethostname getdomainname dup2 \
11351 rename closedir mkdir
rmdir sysinfo \
11352 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11353 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11354 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11355 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11356 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11357 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11358 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11360 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11361 echo "$as_me:$LINENO: checking for $ac_func" >&5
11362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11363 if eval "test \"\${$as_ac_var+set}\" = set"; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 cat >conftest.
$ac_ext <<_ACEOF
11367 #line $LINENO "configure"
11370 cat confdefs.h
>>conftest.
$ac_ext
11371 cat >>conftest.
$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char $ac_func (); below.
11375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376 <limits.h> exists even on freestanding compilers. */
11378 # include <limits.h>
11380 # include <assert.h>
11382 /* Override any gcc2 internal prototype to avoid an error. */
11387 /* We use char because int might match the return type of a gcc2
11388 builtin and then its argument prototype would still apply. */
11390 /* The GNU C library defines this for functions which it implements
11391 to always fail with ENOSYS. Some functions are actually named
11392 something starting with __ and the normal name is an alias. */
11393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11396 char (*f) () = $ac_func;
11405 return f != $ac_func;
11410 rm -f conftest.
$ac_objext conftest
$ac_exeext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11412 (eval $ac_link) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try
='test -s conftest$ac_exeext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 eval "$as_ac_var=yes"
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.
$ac_ext >&5
11427 eval "$as_ac_var=no"
11429 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11433 if test `eval echo '${'$as_ac_var'}'` = yes; then
11434 cat >>confdefs.h
<<_ACEOF
11435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11443 for ac_header
in sys
/un.h
11445 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11447 echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11455 # Is the header compilable?
11456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11458 cat >conftest.
$ac_ext <<_ACEOF
11459 #line $LINENO "configure"
11462 cat confdefs.h
>>conftest.
$ac_ext
11463 cat >>conftest.
$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 $ac_includes_default
11466 #include <$ac_header>
11468 rm -f conftest.
$ac_objext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470 (eval $ac_compile) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try
='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler
=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.
$ac_ext >&5
11485 ac_header_compiler
=no
11487 rm -f conftest.
$ac_objext conftest.
$ac_ext
11488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11489 echo "${ECHO_T}$ac_header_compiler" >&6
11491 # Is the header present?
11492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11494 cat >conftest.
$ac_ext <<_ACEOF
11495 #line $LINENO "configure"
11498 cat confdefs.h
>>conftest.
$ac_ext
11499 cat >>conftest.
$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <$ac_header>
11503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11504 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11506 grep -v '^ *+' conftest.er1
>conftest.err
11508 cat conftest.err
>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } >/dev
/null
; then
11511 if test -s conftest.err
; then
11512 ac_cpp_err
=$ac_c_preproc_warn_flag
11519 if test -z "$ac_cpp_err"; then
11520 ac_header_preproc
=yes
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.
$ac_ext >&5
11525 ac_header_preproc
=no
11527 rm -f conftest.err conftest.
$ac_ext
11528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11529 echo "${ECHO_T}$ac_header_preproc" >&6
11531 # So? What about this header?
11532 case $ac_header_compiler:$ac_header_preproc in
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11556 ## ------------------------------------ ##
11557 ## Report this to bug-autoconf@gnu.org. ##
11558 ## ------------------------------------ ##
11561 sed "s/^/$as_me: WARNING: /" >&2
11564 echo "$as_me:$LINENO: checking for $ac_header" >&5
11565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 eval "$as_ac_Header=$ac_header_preproc"
11571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11576 cat >>confdefs.h
<<_ACEOF
11577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587 for ac_header
in sys
/time.h unistd.h
11589 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11591 echo "$as_me:$LINENO: checking for $ac_header" >&5
11592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11599 # Is the header compilable?
11600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11602 cat >conftest.
$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11606 cat confdefs.h
>>conftest.
$ac_ext
11607 cat >>conftest.
$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 $ac_includes_default
11610 #include <$ac_header>
11612 rm -f conftest.
$ac_objext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614 (eval $ac_compile) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try
='test -s conftest.$ac_objext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_header_compiler
=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.
$ac_ext >&5
11629 ac_header_compiler
=no
11631 rm -f conftest.
$ac_objext conftest.
$ac_ext
11632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6
11635 # Is the header present?
11636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11638 cat >conftest.
$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11642 cat confdefs.h
>>conftest.
$ac_ext
11643 cat >>conftest.
$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11648 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11650 grep -v '^ *+' conftest.er1
>conftest.err
11652 cat conftest.err
>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } >/dev
/null
; then
11655 if test -s conftest.err
; then
11656 ac_cpp_err
=$ac_c_preproc_warn_flag
11663 if test -z "$ac_cpp_err"; then
11664 ac_header_preproc
=yes
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.
$ac_ext >&5
11669 ac_header_preproc
=no
11671 rm -f conftest.err conftest.
$ac_ext
11672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673 echo "${ECHO_T}$ac_header_preproc" >&6
11675 # So? What about this header?
11676 case $ac_header_compiler:$ac_header_preproc in
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
11693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11700 ## ------------------------------------ ##
11701 ## Report this to bug-autoconf@gnu.org. ##
11702 ## ------------------------------------ ##
11705 sed "s/^/$as_me: WARNING: /" >&2
11708 echo "$as_me:$LINENO: checking for $ac_header" >&5
11709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 eval "$as_ac_Header=$ac_header_preproc"
11715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11720 cat >>confdefs.h
<<_ACEOF
11721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729 for ac_func
in alarm
11731 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11732 echo "$as_me:$LINENO: checking for $ac_func" >&5
11733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11734 if eval "test \"\${$as_ac_var+set}\" = set"; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 cat >conftest.
$ac_ext <<_ACEOF
11738 #line $LINENO "configure"
11741 cat confdefs.h
>>conftest.
$ac_ext
11742 cat >>conftest.
$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11749 # include <limits.h>
11751 # include <assert.h>
11753 /* Override any gcc2 internal prototype to avoid an error. */
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11761 /* The GNU C library defines this for functions which it implements
11762 to always fail with ENOSYS. Some functions are actually named
11763 something starting with __ and the normal name is an alias. */
11764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11767 char (*f) () = $ac_func;
11776 return f != $ac_func;
11781 rm -f conftest.
$ac_objext conftest
$ac_exeext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783 (eval $ac_link) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try
='test -s conftest$ac_exeext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 eval "$as_ac_var=yes"
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.
$ac_ext >&5
11798 eval "$as_ac_var=no"
11800 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805 cat >>confdefs.h
<<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812 echo "$as_me:$LINENO: checking for working mktime" >&5
11813 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11814 if test "${ac_cv_func_working_mktime+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 if test "$cross_compiling" = yes; then
11818 ac_cv_func_working_mktime
=no
11820 cat >conftest.
$ac_ext <<_ACEOF
11821 #line $LINENO "configure"
11824 cat confdefs.h
>>conftest.
$ac_ext
11825 cat >>conftest.
$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 /* Test program from Paul Eggert and Tony Leneis. */
11828 #if TIME_WITH_SYS_TIME
11829 # include <sys/time.h>
11832 # if HAVE_SYS_TIME_H
11833 # include <sys/time.h>
11840 # include <unistd.h>
11844 # define alarm(X) /* empty */
11847 /* Work around redefinition to rpl_putenv by other config tests. */
11850 static time_t time_t_max;
11852 /* Values we'll use to set the TZ environment variable. */
11853 static const char *const tz_strings[] = {
11854 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11855 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11857 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11859 /* Fail if mktime fails to convert a date in the spring-forward gap.
11860 Based on a problem report from Andreas Jaeger. */
11862 spring_forward_gap ()
11864 /* glibc (up to about 1998-10-07) failed this test. */
11867 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11868 instead of "TZ=America/Vancouver" in order to detect the bug even
11869 on systems that don't support the Olson extension, or don't have the
11870 full zoneinfo tables installed. */
11871 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11880 if (mktime (&tm) == (time_t)-1)
11889 if ((lt = localtime (&now)) && mktime (lt) != now)
11891 now = time_t_max - now;
11892 if ((lt = localtime (&now)) && mktime (lt) != now)
11899 /* Based on code from Ariel Faigon. */
11909 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11919 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11920 now = mktime (&tm);
11921 if (now != (time_t) -1)
11923 struct tm *lt = localtime (&now);
11925 && lt->tm_year == tm.tm_year
11926 && lt->tm_mon == tm.tm_mon
11927 && lt->tm_mday == tm.tm_mday
11928 && lt->tm_hour == tm.tm_hour
11929 && lt->tm_min == tm.tm_min
11930 && lt->tm_sec == tm.tm_sec
11931 && lt->tm_yday == tm.tm_yday
11932 && lt->tm_wday == tm.tm_wday
11933 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11934 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11945 /* This test makes some buggy mktime implementations loop.
11946 Give up after 60 seconds; a mktime slower than that
11947 isn't worth using anyway. */
11950 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11953 delta = time_t_max / 997; /* a suitable prime number */
11954 for (i = 0; i < N_STRINGS; i++)
11957 putenv (tz_strings[i]);
11959 for (t = 0; t <= time_t_max - delta; t += delta)
11961 mktime_test ((time_t) 60 * 60);
11962 mktime_test ((time_t) 60 * 60 * 24);
11964 for (j = 1; 0 < j; j *= 2)
11966 bigtime_test (j - 1);
11969 spring_forward_gap ();
11973 rm -f conftest
$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_func_working_mktime
=yes
11986 echo "$as_me: program exited with status $ac_status" >&5
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.
$ac_ext >&5
11990 ( exit $ac_status )
11991 ac_cv_func_working_mktime
=no
11993 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11996 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11997 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11998 if test $ac_cv_func_working_mktime = no
; then
11999 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12002 if test "$ac_cv_func_working_mktime" = no
; then
12004 cat >>confdefs.h
<<\_ACEOF
12005 #define BROKEN_MKTIME 1
12010 ac_have_func
=no
# yes means we've found a way to get the load average.
12012 # Make sure getloadavg.c is where it belongs, at configure-time.
12013 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12014 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12015 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12016 { (exit 1); exit 1; }; }
12020 # Check for getloadavg, but be sure not to touch the cache variable.
12021 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12022 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12023 if test "${ac_cv_func_getloadavg+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 cat >conftest.
$ac_ext <<_ACEOF
12027 #line $LINENO "configure"
12030 cat confdefs.h
>>conftest.
$ac_ext
12031 cat >>conftest.
$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12033 /* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char getloadavg (); below.
12035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 <limits.h> exists even on freestanding compilers. */
12038 # include <limits.h>
12040 # include <assert.h>
12042 /* Override any gcc2 internal prototype to avoid an error. */
12047 /* We use char because int might match the return type of a gcc2
12048 builtin and then its argument prototype would still apply. */
12049 char getloadavg ();
12050 /* The GNU C library defines this for functions which it implements
12051 to always fail with ENOSYS. Some functions are actually named
12052 something starting with __ and the normal name is an alias. */
12053 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12056 char (*f) () = getloadavg;
12065 return f != getloadavg;
12070 rm -f conftest.
$ac_objext conftest
$ac_exeext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072 (eval $ac_link) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try
='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_func_getloadavg
=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.
$ac_ext >&5
12087 ac_cv_func_getloadavg
=no
12089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12091 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12092 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12093 if test $ac_cv_func_getloadavg = yes; then
12098 ) && ac_have_func
=yes
12100 # On HPUX9, an unprivileged user can get load averages through this function.
12102 for ac_func
in pstat_getdynamic
12104 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12105 echo "$as_me:$LINENO: checking for $ac_func" >&5
12106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12107 if eval "test \"\${$as_ac_var+set}\" = set"; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 cat >conftest.
$ac_ext <<_ACEOF
12111 #line $LINENO "configure"
12114 cat confdefs.h
>>conftest.
$ac_ext
12115 cat >>conftest.
$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 /* System header to define __stub macros and hopefully few prototypes,
12118 which can conflict with char $ac_func (); below.
12119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 <limits.h> exists even on freestanding compilers. */
12122 # include <limits.h>
12124 # include <assert.h>
12126 /* Override any gcc2 internal prototype to avoid an error. */
12131 /* We use char because int might match the return type of a gcc2
12132 builtin and then its argument prototype would still apply. */
12134 /* The GNU C library defines this for functions which it implements
12135 to always fail with ENOSYS. Some functions are actually named
12136 something starting with __ and the normal name is an alias. */
12137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12140 char (*f) () = $ac_func;
12149 return f != $ac_func;
12154 rm -f conftest.
$ac_objext conftest
$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try
='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.
$ac_ext >&5
12171 eval "$as_ac_var=no"
12173 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12177 if test `eval echo '${'$as_ac_var'}'` = yes; then
12178 cat >>confdefs.h
<<_ACEOF
12179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12186 # Solaris has libkstat which does not require root.
12188 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12189 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12190 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 ac_check_lib_save_LIBS
=$LIBS
12194 LIBS
="-lkstat $LIBS"
12195 cat >conftest.
$ac_ext <<_ACEOF
12196 #line $LINENO "configure"
12199 cat confdefs.h
>>conftest.
$ac_ext
12200 cat >>conftest.
$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12203 /* Override any gcc2 internal prototype to avoid an error. */
12207 /* We use char because int might match the return type of a gcc2
12208 builtin and then its argument prototype would still apply. */
12209 char kstat_open ();
12218 rm -f conftest.
$ac_objext conftest
$ac_exeext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try
='test -s conftest$ac_exeext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_cv_lib_kstat_kstat_open
=yes
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.
$ac_ext >&5
12235 ac_cv_lib_kstat_kstat_open
=no
12237 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12238 LIBS
=$ac_check_lib_save_LIBS
12240 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12241 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12242 if test $ac_cv_lib_kstat_kstat_open = yes; then
12243 cat >>confdefs.h
<<_ACEOF
12244 #define HAVE_LIBKSTAT 1
12247 LIBS
="-lkstat $LIBS"
12251 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12253 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12254 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12255 # to get the right answer into the cache.
12256 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12257 if test $ac_have_func = no
; then
12258 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12259 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12260 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 ac_check_lib_save_LIBS
=$LIBS
12265 cat >conftest.
$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12269 cat confdefs.h
>>conftest.
$ac_ext
12270 cat >>conftest.
$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12273 /* Override any gcc2 internal prototype to avoid an error. */
12277 /* We use char because int might match the return type of a gcc2
12278 builtin and then its argument prototype would still apply. */
12288 rm -f conftest.
$ac_objext conftest
$ac_exeext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290 (eval $ac_link) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try
='test -s conftest$ac_exeext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_cv_lib_elf_elf_begin
=yes
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.
$ac_ext >&5
12305 ac_cv_lib_elf_elf_begin
=no
12307 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12308 LIBS
=$ac_check_lib_save_LIBS
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12311 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12312 if test $ac_cv_lib_elf_elf_begin = yes; then
12317 if test $ac_have_func = no
; then
12318 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12319 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12320 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 ac_check_lib_save_LIBS
=$LIBS
12325 cat >conftest.
$ac_ext <<_ACEOF
12326 #line $LINENO "configure"
12329 cat confdefs.h
>>conftest.
$ac_ext
12330 cat >>conftest.
$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12333 /* Override any gcc2 internal prototype to avoid an error. */
12337 /* We use char because int might match the return type of a gcc2
12338 builtin and then its argument prototype would still apply. */
12348 rm -f conftest.
$ac_objext conftest
$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try
='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_lib_kvm_kvm_open
=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.
$ac_ext >&5
12365 ac_cv_lib_kvm_kvm_open
=no
12367 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12368 LIBS
=$ac_check_lib_save_LIBS
12370 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12371 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12372 if test $ac_cv_lib_kvm_kvm_open = yes; then
12376 # Check for the 4.4BSD definition of getloadavg.
12377 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12378 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12379 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 ac_check_lib_save_LIBS
=$LIBS
12383 LIBS
="-lutil $LIBS"
12384 cat >conftest.
$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12388 cat confdefs.h
>>conftest.
$ac_ext
12389 cat >>conftest.
$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12392 /* Override any gcc2 internal prototype to avoid an error. */
12396 /* We use char because int might match the return type of a gcc2
12397 builtin and then its argument prototype would still apply. */
12398 char getloadavg ();
12407 rm -f conftest.
$ac_objext conftest
$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try
='test -s conftest$ac_exeext'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419 ac_cv_lib_util_getloadavg
=yes
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.
$ac_ext >&5
12424 ac_cv_lib_util_getloadavg
=no
12426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12427 LIBS
=$ac_check_lib_save_LIBS
12429 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12430 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12431 if test $ac_cv_lib_util_getloadavg = yes; then
12432 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12437 if test $ac_have_func = no
; then
12438 # There is a commonly available library for RS/6000 AIX.
12439 # Since it is not a standard part of AIX, it might be installed locally.
12440 ac_getloadavg_LIBS
=$LIBS
12441 LIBS
="-L/usr/local/lib $LIBS"
12442 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12443 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12444 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 ac_check_lib_save_LIBS
=$LIBS
12448 LIBS
="-lgetloadavg $LIBS"
12449 cat >conftest.
$ac_ext <<_ACEOF
12450 #line $LINENO "configure"
12453 cat confdefs.h
>>conftest.
$ac_ext
12454 cat >>conftest.
$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 /* Override any gcc2 internal prototype to avoid an error. */
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12463 char getloadavg ();
12472 rm -f conftest.
$ac_objext conftest
$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try
='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_lib_getloadavg_getloadavg
=yes
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.
$ac_ext >&5
12489 ac_cv_lib_getloadavg_getloadavg
=no
12491 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12492 LIBS
=$ac_check_lib_save_LIBS
12494 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12495 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12496 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12497 LIBS
="-lgetloadavg $LIBS"
12499 LIBS
=$ac_getloadavg_LIBS
12504 # Make sure it is really in the library, if we think we found it,
12505 # otherwise set up the replacement function.
12507 for ac_func
in getloadavg
12509 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12510 echo "$as_me:$LINENO: checking for $ac_func" >&5
12511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12512 if eval "test \"\${$as_ac_var+set}\" = set"; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 cat >conftest.
$ac_ext <<_ACEOF
12516 #line $LINENO "configure"
12519 cat confdefs.h
>>conftest.
$ac_ext
12520 cat >>conftest.
$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 /* System header to define __stub macros and hopefully few prototypes,
12523 which can conflict with char $ac_func (); below.
12524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12525 <limits.h> exists even on freestanding compilers. */
12527 # include <limits.h>
12529 # include <assert.h>
12531 /* Override any gcc2 internal prototype to avoid an error. */
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12539 /* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12545 char (*f) () = $ac_func;
12554 return f != $ac_func;
12559 rm -f conftest.
$ac_objext conftest
$ac_exeext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try
='test -s conftest$ac_exeext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 eval "$as_ac_var=yes"
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.
$ac_ext >&5
12576 eval "$as_ac_var=no"
12578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12582 if test `eval echo '${'$as_ac_var'}'` = yes; then
12583 cat >>confdefs.h
<<_ACEOF
12584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12588 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12590 cat >>confdefs.h
<<\_ACEOF
12591 #define C_GETLOADAVG 1
12594 # Figure out what our getloadavg.c needs.
12596 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12597 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12598 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12599 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12603 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12605 # Is the header compilable?
12606 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12607 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12608 cat >conftest.
$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12612 cat confdefs.h
>>conftest.
$ac_ext
12613 cat >>conftest.
$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 $ac_includes_default
12616 #include <sys/dg_sys_info.h>
12618 rm -f conftest.
$ac_objext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try
='test -s conftest.$ac_objext'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_header_compiler
=yes
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.
$ac_ext >&5
12635 ac_header_compiler
=no
12637 rm -f conftest.
$ac_objext conftest.
$ac_ext
12638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12639 echo "${ECHO_T}$ac_header_compiler" >&6
12641 # Is the header present?
12642 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12643 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12644 cat >conftest.
$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12648 cat confdefs.h
>>conftest.
$ac_ext
12649 cat >>conftest.
$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 #include <sys/dg_sys_info.h>
12653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12654 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12656 grep -v '^ *+' conftest.er1
>conftest.err
12658 cat conftest.err
>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } >/dev
/null
; then
12661 if test -s conftest.err
; then
12662 ac_cpp_err
=$ac_c_preproc_warn_flag
12669 if test -z "$ac_cpp_err"; then
12670 ac_header_preproc
=yes
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.
$ac_ext >&5
12675 ac_header_preproc
=no
12677 rm -f conftest.err conftest.
$ac_ext
12678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12679 echo "${ECHO_T}$ac_header_preproc" >&6
12681 # So? What about this header?
12682 case $ac_header_compiler:$ac_header_preproc in
12684 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12685 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12699 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12701 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12702 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12703 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12706 ## ------------------------------------ ##
12707 ## Report this to bug-autoconf@gnu.org. ##
12708 ## ------------------------------------ ##
12711 sed "s/^/$as_me: WARNING: /" >&2
12714 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12715 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12716 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12721 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12722 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12725 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12728 cat >>confdefs.h
<<\_ACEOF
12733 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12734 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12735 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 ac_check_lib_save_LIBS
=$LIBS
12740 cat >conftest.
$ac_ext <<_ACEOF
12741 #line $LINENO "configure"
12744 cat confdefs.h
>>conftest.
$ac_ext
12745 cat >>conftest.
$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12748 /* Override any gcc2 internal prototype to avoid an error. */
12752 /* We use char because int might match the return type of a gcc2
12753 builtin and then its argument prototype would still apply. */
12754 char dg_sys_info ();
12763 rm -f conftest.
$ac_objext conftest
$ac_exeext
12764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765 (eval $ac_link) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
12769 { ac_try
='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_lib_dgc_dg_sys_info
=yes
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.
$ac_ext >&5
12780 ac_cv_lib_dgc_dg_sys_info
=no
12782 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12783 LIBS
=$ac_check_lib_save_LIBS
12785 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12786 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12787 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12788 cat >>confdefs.h
<<_ACEOF
12789 #define HAVE_LIBDGC 1
12800 if test "${ac_cv_header_locale_h+set}" = set; then
12801 echo "$as_me:$LINENO: checking for locale.h" >&5
12802 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12803 if test "${ac_cv_header_locale_h+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12806 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12807 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12809 # Is the header compilable?
12810 echo "$as_me:$LINENO: checking locale.h usability" >&5
12811 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12812 cat >conftest.
$ac_ext <<_ACEOF
12813 #line $LINENO "configure"
12816 cat confdefs.h
>>conftest.
$ac_ext
12817 cat >>conftest.
$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 $ac_includes_default
12820 #include <locale.h>
12822 rm -f conftest.
$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824 (eval $ac_compile) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try
='test -s conftest.$ac_objext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12834 ac_header_compiler
=yes
12836 echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.
$ac_ext >&5
12839 ac_header_compiler
=no
12841 rm -f conftest.
$ac_objext conftest.
$ac_ext
12842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12843 echo "${ECHO_T}$ac_header_compiler" >&6
12845 # Is the header present?
12846 echo "$as_me:$LINENO: checking locale.h presence" >&5
12847 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12848 cat >conftest.
$ac_ext <<_ACEOF
12849 #line $LINENO "configure"
12852 cat confdefs.h
>>conftest.
$ac_ext
12853 cat >>conftest.
$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 #include <locale.h>
12857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12858 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12860 grep -v '^ *+' conftest.er1
>conftest.err
12862 cat conftest.err
>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } >/dev
/null
; then
12865 if test -s conftest.err
; then
12866 ac_cpp_err
=$ac_c_preproc_warn_flag
12873 if test -z "$ac_cpp_err"; then
12874 ac_header_preproc
=yes
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.
$ac_ext >&5
12879 ac_header_preproc
=no
12881 rm -f conftest.err conftest.
$ac_ext
12882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12883 echo "${ECHO_T}$ac_header_preproc" >&6
12885 # So? What about this header?
12886 case $ac_header_compiler:$ac_header_preproc in
12888 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12889 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: locale.h: present but cannot be compiled" >&5
12903 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12905 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12907 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12910 ## ------------------------------------ ##
12911 ## Report this to bug-autoconf@gnu.org. ##
12912 ## ------------------------------------ ##
12915 sed "s/^/$as_me: WARNING: /" >&2
12918 echo "$as_me:$LINENO: checking for locale.h" >&5
12919 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12920 if test "${ac_cv_header_locale_h+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 ac_cv_header_locale_h
=$ac_header_preproc
12925 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12926 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12932 for ac_func
in setlocale
12934 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935 echo "$as_me:$LINENO: checking for $ac_func" >&5
12936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12937 if eval "test \"\${$as_ac_var+set}\" = set"; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 cat >conftest.
$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12944 cat confdefs.h
>>conftest.
$ac_ext
12945 cat >>conftest.
$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12947 /* System header to define __stub macros and hopefully few prototypes,
12948 which can conflict with char $ac_func (); below.
12949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12950 <limits.h> exists even on freestanding compilers. */
12952 # include <limits.h>
12954 # include <assert.h>
12956 /* Override any gcc2 internal prototype to avoid an error. */
12961 /* We use char because int might match the return type of a gcc2
12962 builtin and then its argument prototype would still apply. */
12964 /* The GNU C library defines this for functions which it implements
12965 to always fail with ENOSYS. Some functions are actually named
12966 something starting with __ and the normal name is an alias. */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12970 char (*f) () = $ac_func;
12979 return f != $ac_func;
12984 rm -f conftest.
$ac_objext conftest
$ac_exeext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try
='test -s conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 eval "$as_ac_var=yes"
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.
$ac_ext >&5
13001 eval "$as_ac_var=no"
13003 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13007 if test `eval echo '${'$as_ac_var'}'` = yes; then
13008 cat >>confdefs.h
<<_ACEOF
13009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13016 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13017 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13018 # Irix 4.0.5F has the header but not the library.
13019 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13022 cat >>confdefs.h
<<\_ACEOF
13028 if test $ac_have_func = no
; then
13029 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13030 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13031 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13032 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13036 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13038 # Is the header compilable?
13039 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13040 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13041 cat >conftest.
$ac_ext <<_ACEOF
13042 #line $LINENO "configure"
13045 cat confdefs.h
>>conftest.
$ac_ext
13046 cat >>conftest.
$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048 $ac_includes_default
13049 #include <inq_stats/cpustats.h>
13051 rm -f conftest.
$ac_objext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try
='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_header_compiler
=yes
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.
$ac_ext >&5
13068 ac_header_compiler
=no
13070 rm -f conftest.
$ac_objext conftest.
$ac_ext
13071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13072 echo "${ECHO_T}$ac_header_compiler" >&6
13074 # Is the header present?
13075 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13076 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13077 cat >conftest.
$ac_ext <<_ACEOF
13078 #line $LINENO "configure"
13081 cat confdefs.h
>>conftest.
$ac_ext
13082 cat >>conftest.
$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 #include <inq_stats/cpustats.h>
13086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13087 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13089 grep -v '^ *+' conftest.er1
>conftest.err
13091 cat conftest.err
>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } >/dev
/null
; then
13094 if test -s conftest.err
; then
13095 ac_cpp_err
=$ac_c_preproc_warn_flag
13102 if test -z "$ac_cpp_err"; then
13103 ac_header_preproc
=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.
$ac_ext >&5
13108 ac_header_preproc
=no
13110 rm -f conftest.err conftest.
$ac_ext
13111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13112 echo "${ECHO_T}$ac_header_preproc" >&6
13114 # So? What about this header?
13115 case $ac_header_compiler:$ac_header_preproc in
13117 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13118 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13132 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13134 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13136 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13139 ## ------------------------------------ ##
13140 ## Report this to bug-autoconf@gnu.org. ##
13141 ## ------------------------------------ ##
13144 sed "s/^/$as_me: WARNING: /" >&2
13147 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13148 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13149 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13154 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13155 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13158 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13161 cat >>confdefs.h
<<\_ACEOF
13166 cat >>confdefs.h
<<\_ACEOF
13175 if test $ac_have_func = no
; then
13176 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13177 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13178 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13179 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13183 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13185 # Is the header compilable?
13186 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13187 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13188 cat >conftest.
$ac_ext <<_ACEOF
13189 #line $LINENO "configure"
13192 cat confdefs.h
>>conftest.
$ac_ext
13193 cat >>conftest.
$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 $ac_includes_default
13196 #include <sys/cpustats.h>
13198 rm -f conftest.
$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try
='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_header_compiler
=yes
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.
$ac_ext >&5
13215 ac_header_compiler
=no
13217 rm -f conftest.
$ac_objext conftest.
$ac_ext
13218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13219 echo "${ECHO_T}$ac_header_compiler" >&6
13221 # Is the header present?
13222 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13223 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13224 cat >conftest.
$ac_ext <<_ACEOF
13225 #line $LINENO "configure"
13228 cat confdefs.h
>>conftest.
$ac_ext
13229 cat >>conftest.
$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <sys/cpustats.h>
13233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13234 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13236 grep -v '^ *+' conftest.er1
>conftest.err
13238 cat conftest.err
>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } >/dev
/null
; then
13241 if test -s conftest.err
; then
13242 ac_cpp_err
=$ac_c_preproc_warn_flag
13249 if test -z "$ac_cpp_err"; then
13250 ac_header_preproc
=yes
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.
$ac_ext >&5
13255 ac_header_preproc
=no
13257 rm -f conftest.err conftest.
$ac_ext
13258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13259 echo "${ECHO_T}$ac_header_preproc" >&6
13261 # So? What about this header?
13262 case $ac_header_compiler:$ac_header_preproc in
13264 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13265 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13279 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13281 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13283 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13286 ## ------------------------------------ ##
13287 ## Report this to bug-autoconf@gnu.org. ##
13288 ## ------------------------------------ ##
13291 sed "s/^/$as_me: WARNING: /" >&2
13294 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13295 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13296 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13302 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13305 if test $ac_cv_header_sys_cpustats_h = yes; then
13306 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13315 if test $ac_have_func = no
; then
13317 for ac_header
in mach
/mach.h
13319 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13321 echo "$as_me:$LINENO: checking for $ac_header" >&5
13322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13329 # Is the header compilable?
13330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13332 cat >conftest.
$ac_ext <<_ACEOF
13333 #line $LINENO "configure"
13336 cat confdefs.h
>>conftest.
$ac_ext
13337 cat >>conftest.
$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 $ac_includes_default
13340 #include <$ac_header>
13342 rm -f conftest.
$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try
='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_header_compiler
=yes
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.
$ac_ext >&5
13359 ac_header_compiler
=no
13361 rm -f conftest.
$ac_objext conftest.
$ac_ext
13362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13363 echo "${ECHO_T}$ac_header_compiler" >&6
13365 # Is the header present?
13366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13368 cat >conftest.
$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13372 cat confdefs.h
>>conftest.
$ac_ext
13373 cat >>conftest.
$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 #include <$ac_header>
13377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13378 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13380 grep -v '^ *+' conftest.er1
>conftest.err
13382 cat conftest.err
>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } >/dev
/null
; then
13385 if test -s conftest.err
; then
13386 ac_cpp_err
=$ac_c_preproc_warn_flag
13393 if test -z "$ac_cpp_err"; then
13394 ac_header_preproc
=yes
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.
$ac_ext >&5
13399 ac_header_preproc
=no
13401 rm -f conftest.err conftest.
$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13403 echo "${ECHO_T}$ac_header_preproc" >&6
13405 # So? What about this header?
13406 case $ac_header_compiler:$ac_header_preproc in
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
13423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13430 ## ------------------------------------ ##
13431 ## Report this to bug-autoconf@gnu.org. ##
13432 ## ------------------------------------ ##
13435 sed "s/^/$as_me: WARNING: /" >&2
13438 echo "$as_me:$LINENO: checking for $ac_header" >&5
13439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 eval "$as_ac_Header=$ac_header_preproc"
13445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13450 cat >>confdefs.h
<<_ACEOF
13451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13461 for ac_header
in nlist.h
13463 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13465 echo "$as_me:$LINENO: checking for $ac_header" >&5
13466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13473 # Is the header compilable?
13474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13476 cat >conftest.
$ac_ext <<_ACEOF
13477 #line $LINENO "configure"
13480 cat confdefs.h
>>conftest.
$ac_ext
13481 cat >>conftest.
$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 $ac_includes_default
13484 #include <$ac_header>
13486 rm -f conftest.
$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try
='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_header_compiler
=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.
$ac_ext >&5
13503 ac_header_compiler
=no
13505 rm -f conftest.
$ac_objext conftest.
$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6
13509 # Is the header present?
13510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13512 cat >conftest.
$ac_ext <<_ACEOF
13513 #line $LINENO "configure"
13516 cat confdefs.h
>>conftest.
$ac_ext
13517 cat >>conftest.
$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <$ac_header>
13521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13524 grep -v '^ *+' conftest.er1
>conftest.err
13526 cat conftest.err
>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } >/dev
/null
; then
13529 if test -s conftest.err
; then
13530 ac_cpp_err
=$ac_c_preproc_warn_flag
13537 if test -z "$ac_cpp_err"; then
13538 ac_header_preproc
=yes
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.
$ac_ext >&5
13543 ac_header_preproc
=no
13545 rm -f conftest.err conftest.
$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc in
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
13567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13574 ## ------------------------------------ ##
13575 ## Report this to bug-autoconf@gnu.org. ##
13576 ## ------------------------------------ ##
13579 sed "s/^/$as_me: WARNING: /" >&2
13582 echo "$as_me:$LINENO: checking for $ac_header" >&5
13583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 eval "$as_ac_Header=$ac_header_preproc"
13589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13594 cat >>confdefs.h
<<_ACEOF
13595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13597 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13598 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13599 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 cat >conftest.
$ac_ext <<_ACEOF
13603 #line $LINENO "configure"
13606 cat confdefs.h
>>conftest.
$ac_ext
13607 cat >>conftest.
$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13614 static struct nlist ac_aggr;
13615 if (ac_aggr.n_un.n_name)
13621 rm -f conftest.
$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623 (eval $ac_compile) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try
='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_member_struct_nlist_n_un_n_name
=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.
$ac_ext >&5
13638 cat >conftest.
$ac_ext <<_ACEOF
13639 #line $LINENO "configure"
13642 cat confdefs.h
>>conftest.
$ac_ext
13643 cat >>conftest.
$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13650 static struct nlist ac_aggr;
13651 if (sizeof ac_aggr.n_un.n_name)
13657 rm -f conftest.
$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try
='test -s conftest.$ac_objext'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13669 ac_cv_member_struct_nlist_n_un_n_name
=yes
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.
$ac_ext >&5
13674 ac_cv_member_struct_nlist_n_un_n_name
=no
13676 rm -f conftest.
$ac_objext conftest.
$ac_ext
13678 rm -f conftest.
$ac_objext conftest.
$ac_ext
13680 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13681 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13682 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13684 cat >>confdefs.h
<<_ACEOF
13685 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13689 cat >>confdefs.h
<<\_ACEOF
13690 #define NLIST_NAME_UNION 1
13704 # Some definitions of getloadavg require that the program be installed setgid.
13705 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13706 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13707 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.
$ac_ext <<_ACEOF
13711 #line $LINENO "configure"
13714 cat confdefs.h
>>conftest.
$ac_ext
13715 cat >>conftest.
$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13718 #ifdef LDAV_PRIVILEGED
13719 Yowza Am I SETGID yet
13722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13723 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13724 ac_cv_func_getloadavg_setgid
=yes
13726 ac_cv_func_getloadavg_setgid
=no
13731 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13732 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13733 if test $ac_cv_func_getloadavg_setgid = yes; then
13736 cat >>confdefs.h
<<\_ACEOF
13737 #define GETLOADAVG_PRIVILEGED 1
13744 if test $ac_cv_func_getloadavg_setgid = yes; then
13745 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13746 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13747 if test "${ac_cv_group_kmem+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13751 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13752 # If we got an error (system does not support symlinks), try without -L.
13753 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13754 ac_cv_group_kmem
=`echo $ac_ls_output \
13755 | sed -ne 's/[ ][ ]*/ /g;
13756 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13760 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13761 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13762 KMEM_GROUP
=$ac_cv_group_kmem
13764 if test "x$ac_save_LIBS" = x
; then
13765 GETLOADAVG_LIBS
=$LIBS
13767 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13773 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13774 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13775 if test "${ac_cv_sys_largefile_source+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 ac_cv_sys_largefile_source
=no
13780 cat >conftest.
$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13784 cat confdefs.h
>>conftest.
$ac_ext
13785 cat >>conftest.
$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13796 rm -f conftest.
$ac_objext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13798 (eval $ac_compile) 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try
='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.
$ac_ext >&5
13814 rm -f conftest.
$ac_objext conftest.
$ac_ext
13815 cat >conftest.
$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13819 cat confdefs.h
>>conftest.
$ac_ext
13820 cat >>conftest.
$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 #define _LARGEFILE_SOURCE 1
13832 rm -f conftest.
$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try
='test -s conftest.$ac_objext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 ac_cv_sys_largefile_source
=1; break
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.
$ac_ext >&5
13850 rm -f conftest.
$ac_objext conftest.
$ac_ext
13854 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13855 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13856 if test "$ac_cv_sys_largefile_source" != no
; then
13858 cat >>confdefs.h
<<_ACEOF
13859 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13865 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13866 # in glibc 2.1.3, but that breaks too many other things.
13867 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13868 echo "$as_me:$LINENO: checking for fseeko" >&5
13869 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13870 if test "${ac_cv_func_fseeko+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 cat >conftest.
$ac_ext <<_ACEOF
13874 #line $LINENO "configure"
13877 cat confdefs.h
>>conftest.
$ac_ext
13878 cat >>conftest.
$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13884 return fseeko && fseeko (stdin, 0, 0);
13889 rm -f conftest.
$ac_objext conftest
$ac_exeext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891 (eval $ac_link) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try
='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_func_fseeko
=yes
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.
$ac_ext >&5
13906 ac_cv_func_fseeko
=no
13908 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13910 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13911 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13912 if test $ac_cv_func_fseeko = yes; then
13914 cat >>confdefs.h
<<\_ACEOF
13915 #define HAVE_FSEEKO 1
13921 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13922 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13923 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 # Use it with a single arg.
13927 cat >conftest.
$ac_ext <<_ACEOF
13928 #line $LINENO "configure"
13931 cat confdefs.h
>>conftest.
$ac_ext
13932 cat >>conftest.
$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13943 rm -f conftest.
$ac_objext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try
='test -s conftest.$ac_objext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_cv_func_getpgrp_void
=no
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.
$ac_ext >&5
13960 ac_cv_func_getpgrp_void
=yes
13962 rm -f conftest.
$ac_objext conftest.
$ac_ext
13965 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13966 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13967 if test $ac_cv_func_getpgrp_void = yes; then
13969 cat >>confdefs.h
<<\_ACEOF
13970 #define GETPGRP_VOID 1
13977 for ac_func
in strftime
13979 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13980 echo "$as_me:$LINENO: checking for $ac_func" >&5
13981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13982 if eval "test \"\${$as_ac_var+set}\" = set"; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 cat >conftest.
$ac_ext <<_ACEOF
13986 #line $LINENO "configure"
13989 cat confdefs.h
>>conftest.
$ac_ext
13990 cat >>conftest.
$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char $ac_func (); below.
13994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13995 <limits.h> exists even on freestanding compilers. */
13997 # include <limits.h>
13999 # include <assert.h>
14001 /* Override any gcc2 internal prototype to avoid an error. */
14006 /* We use char because int might match the return type of a gcc2
14007 builtin and then its argument prototype would still apply. */
14009 /* The GNU C library defines this for functions which it implements
14010 to always fail with ENOSYS. Some functions are actually named
14011 something starting with __ and the normal name is an alias. */
14012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14015 char (*f) () = $ac_func;
14024 return f != $ac_func;
14029 rm -f conftest.
$ac_objext conftest
$ac_exeext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } &&
14035 { ac_try
='test -s conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 eval "$as_ac_var=yes"
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.
$ac_ext >&5
14046 eval "$as_ac_var=no"
14048 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14052 if test `eval echo '${'$as_ac_var'}'` = yes; then
14053 cat >>confdefs.h
<<_ACEOF
14054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14058 # strftime is in -lintl on SCO UNIX.
14059 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14060 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14061 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 ac_check_lib_save_LIBS
=$LIBS
14065 LIBS
="-lintl $LIBS"
14066 cat >conftest.
$ac_ext <<_ACEOF
14067 #line $LINENO "configure"
14070 cat confdefs.h
>>conftest.
$ac_ext
14071 cat >>conftest.
$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14074 /* Override any gcc2 internal prototype to avoid an error. */
14078 /* We use char because int might match the return type of a gcc2
14079 builtin and then its argument prototype would still apply. */
14089 rm -f conftest.
$ac_objext conftest
$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091 (eval $ac_link) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try
='test -s conftest$ac_exeext'
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_cv_lib_intl_strftime
=yes
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.
$ac_ext >&5
14106 ac_cv_lib_intl_strftime
=no
14108 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14109 LIBS
=$ac_check_lib_save_LIBS
14111 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14112 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14113 if test $ac_cv_lib_intl_strftime = yes; then
14114 cat >>confdefs.h
<<\_ACEOF
14115 #define HAVE_STRFTIME 1
14118 LIBS
="-lintl $LIBS"
14127 for ac_func
in grantpt
14129 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14130 echo "$as_me:$LINENO: checking for $ac_func" >&5
14131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14132 if eval "test \"\${$as_ac_var+set}\" = set"; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 cat >conftest.
$ac_ext <<_ACEOF
14136 #line $LINENO "configure"
14139 cat confdefs.h
>>conftest.
$ac_ext
14140 cat >>conftest.
$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 /* System header to define __stub macros and hopefully few prototypes,
14143 which can conflict with char $ac_func (); below.
14144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14145 <limits.h> exists even on freestanding compilers. */
14147 # include <limits.h>
14149 # include <assert.h>
14151 /* Override any gcc2 internal prototype to avoid an error. */
14156 /* We use char because int might match the return type of a gcc2
14157 builtin and then its argument prototype would still apply. */
14159 /* The GNU C library defines this for functions which it implements
14160 to always fail with ENOSYS. Some functions are actually named
14161 something starting with __ and the normal name is an alias. */
14162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14165 char (*f) () = $ac_func;
14174 return f != $ac_func;
14179 rm -f conftest.
$ac_objext conftest
$ac_exeext
14180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14181 (eval $ac_link) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
14185 { ac_try
='test -s conftest$ac_exeext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 eval "$as_ac_var=yes"
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.
$ac_ext >&5
14196 eval "$as_ac_var=no"
14198 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14202 if test `eval echo '${'$as_ac_var'}'` = yes; then
14203 cat >>confdefs.h
<<_ACEOF
14204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14211 # PTY-related GNU extensions.
14213 for ac_func
in getpt
14215 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14216 echo "$as_me:$LINENO: checking for $ac_func" >&5
14217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14218 if eval "test \"\${$as_ac_var+set}\" = set"; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 cat >conftest.
$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 /* System header to define __stub macros and hopefully few prototypes,
14229 which can conflict with char $ac_func (); below.
14230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14231 <limits.h> exists even on freestanding compilers. */
14233 # include <limits.h>
14235 # include <assert.h>
14237 /* Override any gcc2 internal prototype to avoid an error. */
14242 /* We use char because int might match the return type of a gcc2
14243 builtin and then its argument prototype would still apply. */
14245 /* The GNU C library defines this for functions which it implements
14246 to always fail with ENOSYS. Some functions are actually named
14247 something starting with __ and the normal name is an alias. */
14248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14251 char (*f) () = $ac_func;
14260 return f != $ac_func;
14265 rm -f conftest.
$ac_objext conftest
$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267 (eval $ac_link) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try
='test -s conftest$ac_exeext'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 eval "$as_ac_var=yes"
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.
$ac_ext >&5
14282 eval "$as_ac_var=no"
14284 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14288 if test `eval echo '${'$as_ac_var'}'` = yes; then
14289 cat >>confdefs.h
<<_ACEOF
14290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14297 # Check this now, so that we will NOT find the above functions in ncurses.
14298 # That is because we have not set up to link ncurses in lib-src.
14299 # It's better to believe a function is not available
14300 # than to expect to find it in ncurses.
14302 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14303 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14304 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 ac_check_lib_save_LIBS
=$LIBS
14308 LIBS
="-lncurses $LIBS"
14309 cat >conftest.
$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14313 cat confdefs.h
>>conftest.
$ac_ext
14314 cat >>conftest.
$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14317 /* Override any gcc2 internal prototype to avoid an error. */
14321 /* We use char because int might match the return type of a gcc2
14322 builtin and then its argument prototype would still apply. */
14332 rm -f conftest.
$ac_objext conftest
$ac_exeext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334 (eval $ac_link) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try
='test -s conftest$ac_exeext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 ac_cv_lib_ncurses_tparm
=yes
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.
$ac_ext >&5
14349 ac_cv_lib_ncurses_tparm
=no
14351 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14352 LIBS
=$ac_check_lib_save_LIBS
14354 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14355 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14356 if test $ac_cv_lib_ncurses_tparm = yes; then
14357 cat >>confdefs.h
<<_ACEOF
14358 #define HAVE_LIBNCURSES 1
14361 LIBS
="-lncurses $LIBS"
14366 # Do we need the Hesiod library to provide the support routines?
14367 if test "$with_hesiod" = yes ; then
14368 # Don't set $LIBS here -- see comments above.
14370 echo "$as_me:$LINENO: checking for res_send" >&5
14371 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14372 if test "${ac_cv_func_res_send+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 cat >conftest.
$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14379 cat confdefs.h
>>conftest.
$ac_ext
14380 cat >>conftest.
$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 /* System header to define __stub macros and hopefully few prototypes,
14383 which can conflict with char res_send (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
14387 # include <limits.h>
14389 # include <assert.h>
14391 /* Override any gcc2 internal prototype to avoid an error. */
14396 /* We use char because int might match the return type of a gcc2
14397 builtin and then its argument prototype would still apply. */
14399 /* The GNU C library defines this for functions which it implements
14400 to always fail with ENOSYS. Some functions are actually named
14401 something starting with __ and the normal name is an alias. */
14402 #if defined (__stub_res_send) || defined (__stub___res_send)
14405 char (*f) () = res_send;
14414 return f != res_send;
14419 rm -f conftest.
$ac_objext conftest
$ac_exeext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421 (eval $ac_link) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try
='test -s conftest$ac_exeext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_cv_func_res_send
=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.
$ac_ext >&5
14436 ac_cv_func_res_send
=no
14438 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14440 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14441 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14442 if test $ac_cv_func_res_send = yes; then
14445 echo "$as_me:$LINENO: checking for __res_send" >&5
14446 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14447 if test "${ac_cv_func___res_send+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 cat >conftest.
$ac_ext <<_ACEOF
14451 #line $LINENO "configure"
14454 cat confdefs.h
>>conftest.
$ac_ext
14455 cat >>conftest.
$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457 /* System header to define __stub macros and hopefully few prototypes,
14458 which can conflict with char __res_send (); below.
14459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460 <limits.h> exists even on freestanding compilers. */
14462 # include <limits.h>
14464 # include <assert.h>
14466 /* Override any gcc2 internal prototype to avoid an error. */
14471 /* We use char because int might match the return type of a gcc2
14472 builtin and then its argument prototype would still apply. */
14473 char __res_send ();
14474 /* The GNU C library defines this for functions which it implements
14475 to always fail with ENOSYS. Some functions are actually named
14476 something starting with __ and the normal name is an alias. */
14477 #if defined (__stub___res_send) || defined (__stub_____res_send)
14480 char (*f) () = __res_send;
14489 return f != __res_send;
14494 rm -f conftest.
$ac_objext conftest
$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496 (eval $ac_link) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
14500 { ac_try
='test -s conftest$ac_exeext'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
14506 ac_cv_func___res_send
=yes
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.
$ac_ext >&5
14511 ac_cv_func___res_send
=no
14513 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14515 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14516 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14517 if test $ac_cv_func___res_send = yes; then
14520 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14521 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14522 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 ac_check_lib_save_LIBS
=$LIBS
14526 LIBS
="-lresolv $LIBS"
14527 cat >conftest.
$ac_ext <<_ACEOF
14528 #line $LINENO "configure"
14531 cat confdefs.h
>>conftest.
$ac_ext
14532 cat >>conftest.
$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14535 /* Override any gcc2 internal prototype to avoid an error. */
14539 /* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14550 rm -f conftest.
$ac_objext conftest
$ac_exeext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14552 (eval $ac_link) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try
='test -s conftest$ac_exeext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_cv_lib_resolv_res_send
=yes
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.
$ac_ext >&5
14567 ac_cv_lib_resolv_res_send
=no
14569 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14570 LIBS
=$ac_check_lib_save_LIBS
14572 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14573 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14574 if test $ac_cv_lib_resolv_res_send = yes; then
14577 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14578 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14579 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 ac_check_lib_save_LIBS
=$LIBS
14583 LIBS
="-lresolv $LIBS"
14584 cat >conftest.
$ac_ext <<_ACEOF
14585 #line $LINENO "configure"
14588 cat confdefs.h
>>conftest.
$ac_ext
14589 cat >>conftest.
$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14592 /* Override any gcc2 internal prototype to avoid an error. */
14596 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14598 char __res_send ();
14607 rm -f conftest.
$ac_objext conftest
$ac_exeext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14609 (eval $ac_link) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try
='test -s conftest$ac_exeext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_lib_resolv___res_send
=yes
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.
$ac_ext >&5
14624 ac_cv_lib_resolv___res_send
=no
14626 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14627 LIBS
=$ac_check_lib_save_LIBS
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14630 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14631 if test $ac_cv_lib_resolv___res_send = yes; then
14641 if test "$resolv" = yes ; then
14644 cat >>confdefs.h
<<\_ACEOF
14645 #define HAVE_LIBRESOLV 1
14651 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14652 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14653 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 cat >conftest.
$ac_ext <<_ACEOF
14657 #line $LINENO "configure"
14660 cat confdefs.h
>>conftest.
$ac_ext
14661 cat >>conftest.
$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 /* System header to define __stub macros and hopefully few prototypes,
14664 which can conflict with char hes_getmailhost (); below.
14665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14666 <limits.h> exists even on freestanding compilers. */
14668 # include <limits.h>
14670 # include <assert.h>
14672 /* Override any gcc2 internal prototype to avoid an error. */
14677 /* We use char because int might match the return type of a gcc2
14678 builtin and then its argument prototype would still apply. */
14679 char hes_getmailhost ();
14680 /* The GNU C library defines this for functions which it implements
14681 to always fail with ENOSYS. Some functions are actually named
14682 something starting with __ and the normal name is an alias. */
14683 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14686 char (*f) () = hes_getmailhost;
14695 return f != hes_getmailhost;
14700 rm -f conftest.
$ac_objext conftest
$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try
='test -s conftest$ac_exeext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_func_hes_getmailhost
=yes
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.
$ac_ext >&5
14717 ac_cv_func_hes_getmailhost
=no
14719 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14722 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14723 if test $ac_cv_func_hes_getmailhost = yes; then
14726 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14727 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14728 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 ac_check_lib_save_LIBS
=$LIBS
14732 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14733 cat >conftest.
$ac_ext <<_ACEOF
14734 #line $LINENO "configure"
14737 cat confdefs.h
>>conftest.
$ac_ext
14738 cat >>conftest.
$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14741 /* Override any gcc2 internal prototype to avoid an error. */
14745 /* We use char because int might match the return type of a gcc2
14746 builtin and then its argument prototype would still apply. */
14747 char hes_getmailhost ();
14751 hes_getmailhost ();
14756 rm -f conftest.
$ac_objext conftest
$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try
='test -s conftest$ac_exeext'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }; then
14768 ac_cv_lib_hesiod_hes_getmailhost
=yes
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.
$ac_ext >&5
14773 ac_cv_lib_hesiod_hes_getmailhost
=no
14775 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14776 LIBS
=$ac_check_lib_save_LIBS
14778 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14779 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14780 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14782 cat >>confdefs.h
<<\_ACEOF
14783 #define HAVE_LIBHESIOD 1
14794 # These tell us which Kerberos-related libraries to use.
14795 if test "${with_kerberos+set}" = set; then
14797 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14798 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14799 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 ac_check_lib_save_LIBS
=$LIBS
14803 LIBS
="-lcom_err $LIBS"
14804 cat >conftest.
$ac_ext <<_ACEOF
14805 #line $LINENO "configure"
14808 cat confdefs.h
>>conftest.
$ac_ext
14809 cat >>conftest.
$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14812 /* Override any gcc2 internal prototype to avoid an error. */
14816 /* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14827 rm -f conftest.
$ac_objext conftest
$ac_exeext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14829 (eval $ac_link) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try
='test -s conftest$ac_exeext'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_cv_lib_com_err_com_err
=yes
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.
$ac_ext >&5
14844 ac_cv_lib_com_err_com_err
=no
14846 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14847 LIBS
=$ac_check_lib_save_LIBS
14849 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14850 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14851 if test $ac_cv_lib_com_err_com_err = yes; then
14852 cat >>confdefs.h
<<_ACEOF
14853 #define HAVE_LIBCOM_ERR 1
14856 LIBS
="-lcom_err $LIBS"
14861 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14862 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14863 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 ac_check_lib_save_LIBS
=$LIBS
14867 LIBS
="-lk5crypto $LIBS"
14868 cat >conftest.
$ac_ext <<_ACEOF
14869 #line $LINENO "configure"
14872 cat confdefs.h
>>conftest.
$ac_ext
14873 cat >>conftest.
$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14876 /* Override any gcc2 internal prototype to avoid an error. */
14880 /* We use char because int might match the return type of a gcc2
14881 builtin and then its argument prototype would still apply. */
14882 char mit_des_cbc_encrypt ();
14886 mit_des_cbc_encrypt ();
14891 rm -f conftest.
$ac_objext conftest
$ac_exeext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14893 (eval $ac_link) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try
='test -s conftest$ac_exeext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.
$ac_ext >&5
14908 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14910 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14911 LIBS
=$ac_check_lib_save_LIBS
14913 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14914 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14915 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14916 cat >>confdefs.h
<<_ACEOF
14917 #define HAVE_LIBK5CRYPTO 1
14920 LIBS
="-lk5crypto $LIBS"
14925 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14926 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14927 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 ac_check_lib_save_LIBS
=$LIBS
14931 LIBS
="-lcrypto $LIBS"
14932 cat >conftest.
$ac_ext <<_ACEOF
14933 #line $LINENO "configure"
14936 cat confdefs.h
>>conftest.
$ac_ext
14937 cat >>conftest.
$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14940 /* Override any gcc2 internal prototype to avoid an error. */
14944 /* We use char because int might match the return type of a gcc2
14945 builtin and then its argument prototype would still apply. */
14946 char mit_des_cbc_encrypt ();
14950 mit_des_cbc_encrypt ();
14955 rm -f conftest.
$ac_objext conftest
$ac_exeext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14957 (eval $ac_link) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try
='test -s conftest$ac_exeext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14969 echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.
$ac_ext >&5
14972 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14974 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14975 LIBS
=$ac_check_lib_save_LIBS
14977 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14978 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14979 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14980 cat >>confdefs.h
<<_ACEOF
14981 #define HAVE_LIBCRYPTO 1
14984 LIBS
="-lcrypto $LIBS"
14989 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14990 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14991 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 ac_check_lib_save_LIBS
=$LIBS
14995 LIBS
="-lkrb5 $LIBS"
14996 cat >conftest.
$ac_ext <<_ACEOF
14997 #line $LINENO "configure"
15000 cat confdefs.h
>>conftest.
$ac_ext
15001 cat >>conftest.
$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15004 /* Override any gcc2 internal prototype to avoid an error. */
15008 /* We use char because int might match the return type of a gcc2
15009 builtin and then its argument prototype would still apply. */
15010 char krb5_init_context ();
15014 krb5_init_context ();
15019 rm -f conftest.
$ac_objext conftest
$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try
='test -s conftest$ac_exeext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_lib_krb5_krb5_init_context
=yes
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.
$ac_ext >&5
15036 ac_cv_lib_krb5_krb5_init_context
=no
15038 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15039 LIBS
=$ac_check_lib_save_LIBS
15041 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15042 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15043 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15044 cat >>confdefs.h
<<_ACEOF
15045 #define HAVE_LIBKRB5 1
15048 LIBS
="-lkrb5 $LIBS"
15052 if test "${with_kerberos5+set}" != set; then
15054 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15055 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15056 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 ac_check_lib_save_LIBS
=$LIBS
15060 LIBS
="-ldes425 $LIBS"
15061 cat >conftest.
$ac_ext <<_ACEOF
15062 #line $LINENO "configure"
15065 cat confdefs.h
>>conftest.
$ac_ext
15066 cat >>conftest.
$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15069 /* Override any gcc2 internal prototype to avoid an error. */
15073 /* We use char because int might match the return type of a gcc2
15074 builtin and then its argument prototype would still apply. */
15075 char des_cbc_encrypt ();
15079 des_cbc_encrypt ();
15084 rm -f conftest.
$ac_objext conftest
$ac_exeext
15085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15086 (eval $ac_link) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try
='test -s conftest$ac_exeext'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_cv_lib_des425_des_cbc_encrypt
=yes
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.
$ac_ext >&5
15101 ac_cv_lib_des425_des_cbc_encrypt
=no
15103 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15104 LIBS
=$ac_check_lib_save_LIBS
15106 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15107 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15108 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15109 cat >>confdefs.h
<<_ACEOF
15110 #define HAVE_LIBDES425 1
15113 LIBS
="-ldes425 $LIBS"
15117 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15118 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15119 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 ac_check_lib_save_LIBS
=$LIBS
15124 cat >conftest.
$ac_ext <<_ACEOF
15125 #line $LINENO "configure"
15128 cat confdefs.h
>>conftest.
$ac_ext
15129 cat >>conftest.
$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15132 /* Override any gcc2 internal prototype to avoid an error. */
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138 char des_cbc_encrypt ();
15142 des_cbc_encrypt ();
15147 rm -f conftest.
$ac_objext conftest
$ac_exeext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15149 (eval $ac_link) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try
='test -s conftest$ac_exeext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_lib_des_des_cbc_encrypt
=yes
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.
$ac_ext >&5
15164 ac_cv_lib_des_des_cbc_encrypt
=no
15166 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15167 LIBS
=$ac_check_lib_save_LIBS
15169 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15170 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15171 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15172 cat >>confdefs.h
<<_ACEOF
15173 #define HAVE_LIBDES 1
15183 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15184 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15185 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 ac_check_lib_save_LIBS
=$LIBS
15189 LIBS
="-lkrb4 $LIBS"
15190 cat >conftest.
$ac_ext <<_ACEOF
15191 #line $LINENO "configure"
15194 cat confdefs.h
>>conftest.
$ac_ext
15195 cat >>conftest.
$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15198 /* Override any gcc2 internal prototype to avoid an error. */
15202 /* We use char because int might match the return type of a gcc2
15203 builtin and then its argument prototype would still apply. */
15204 char krb_get_cred ();
15213 rm -f conftest.
$ac_objext conftest
$ac_exeext
15214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try
='test -s conftest$ac_exeext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 ac_cv_lib_krb4_krb_get_cred
=yes
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.
$ac_ext >&5
15230 ac_cv_lib_krb4_krb_get_cred
=no
15232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15233 LIBS
=$ac_check_lib_save_LIBS
15235 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15236 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15237 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15238 cat >>confdefs.h
<<_ACEOF
15239 #define HAVE_LIBKRB4 1
15242 LIBS
="-lkrb4 $LIBS"
15246 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15247 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15248 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 ac_check_lib_save_LIBS
=$LIBS
15253 cat >conftest.
$ac_ext <<_ACEOF
15254 #line $LINENO "configure"
15257 cat confdefs.h
>>conftest.
$ac_ext
15258 cat >>conftest.
$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15261 /* Override any gcc2 internal prototype to avoid an error. */
15265 /* We use char because int might match the return type of a gcc2
15266 builtin and then its argument prototype would still apply. */
15267 char krb_get_cred ();
15276 rm -f conftest.
$ac_objext conftest
$ac_exeext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278 (eval $ac_link) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
15282 { ac_try
='test -s conftest$ac_exeext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_cv_lib_krb_krb_get_cred
=yes
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.
$ac_ext >&5
15293 ac_cv_lib_krb_krb_get_cred
=no
15295 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15296 LIBS
=$ac_check_lib_save_LIBS
15298 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15299 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15300 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15301 cat >>confdefs.h
<<_ACEOF
15302 #define HAVE_LIBKRB 1
15313 if test "${with_kerberos5+set}" = set; then
15315 for ac_header
in krb5.h
15317 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15319 echo "$as_me:$LINENO: checking for $ac_header" >&5
15320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15327 # Is the header compilable?
15328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15330 cat >conftest.
$ac_ext <<_ACEOF
15331 #line $LINENO "configure"
15334 cat confdefs.h
>>conftest.
$ac_ext
15335 cat >>conftest.
$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 #include <$ac_header>
15340 rm -f conftest.
$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try
='test -s conftest.$ac_objext'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 ac_header_compiler
=yes
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.
$ac_ext >&5
15357 ac_header_compiler
=no
15359 rm -f conftest.
$ac_objext conftest.
$ac_ext
15360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15361 echo "${ECHO_T}$ac_header_compiler" >&6
15363 # Is the header present?
15364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15366 cat >conftest.
$ac_ext <<_ACEOF
15367 #line $LINENO "configure"
15370 cat confdefs.h
>>conftest.
$ac_ext
15371 cat >>conftest.
$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 #include <$ac_header>
15375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15376 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15378 grep -v '^ *+' conftest.er1
>conftest.err
15380 cat conftest.err
>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } >/dev
/null
; then
15383 if test -s conftest.err
; then
15384 ac_cpp_err
=$ac_c_preproc_warn_flag
15391 if test -z "$ac_cpp_err"; then
15392 ac_header_preproc
=yes
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.
$ac_ext >&5
15397 ac_header_preproc
=no
15399 rm -f conftest.err conftest.
$ac_ext
15400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15401 echo "${ECHO_T}$ac_header_preproc" >&6
15403 # So? What about this header?
15404 case $ac_header_compiler:$ac_header_preproc in
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
15421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15428 ## ------------------------------------ ##
15429 ## Report this to bug-autoconf@gnu.org. ##
15430 ## ------------------------------------ ##
15433 sed "s/^/$as_me: WARNING: /" >&2
15436 echo "$as_me:$LINENO: checking for $ac_header" >&5
15437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 eval "$as_ac_Header=$ac_header_preproc"
15443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15448 cat >>confdefs.h
<<_ACEOF
15449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15458 for ac_header
in des.h
15460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15462 echo "$as_me:$LINENO: checking for $ac_header" >&5
15463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15470 # Is the header compilable?
15471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15473 cat >conftest.
$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15477 cat confdefs.h
>>conftest.
$ac_ext
15478 cat >>conftest.
$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #include <$ac_header>
15483 rm -f conftest.
$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try
='test -s conftest.$ac_objext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_header_compiler
=yes
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.
$ac_ext >&5
15500 ac_header_compiler
=no
15502 rm -f conftest.
$ac_objext conftest.
$ac_ext
15503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15504 echo "${ECHO_T}$ac_header_compiler" >&6
15506 # Is the header present?
15507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15509 cat >conftest.
$ac_ext <<_ACEOF
15510 #line $LINENO "configure"
15513 cat confdefs.h
>>conftest.
$ac_ext
15514 cat >>conftest.
$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 #include <$ac_header>
15518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15521 grep -v '^ *+' conftest.er1
>conftest.err
15523 cat conftest.err
>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } >/dev
/null
; then
15526 if test -s conftest.err
; then
15527 ac_cpp_err
=$ac_c_preproc_warn_flag
15534 if test -z "$ac_cpp_err"; then
15535 ac_header_preproc
=yes
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.
$ac_ext >&5
15540 ac_header_preproc
=no
15542 rm -f conftest.err conftest.
$ac_ext
15543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15544 echo "${ECHO_T}$ac_header_preproc" >&6
15546 # So? What about this header?
15547 case $ac_header_compiler:$ac_header_preproc in
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
15564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15571 ## ------------------------------------ ##
15572 ## Report this to bug-autoconf@gnu.org. ##
15573 ## ------------------------------------ ##
15576 sed "s/^/$as_me: WARNING: /" >&2
15579 echo "$as_me:$LINENO: checking for $ac_header" >&5
15580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 eval "$as_ac_Header=$ac_header_preproc"
15586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15591 cat >>confdefs.h
<<_ACEOF
15592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15597 for ac_header
in kerberosIV
/des.h
15599 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15601 echo "$as_me:$LINENO: checking for $ac_header" >&5
15602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15609 # Is the header compilable?
15610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15612 cat >conftest.
$ac_ext <<_ACEOF
15613 #line $LINENO "configure"
15616 cat confdefs.h
>>conftest.
$ac_ext
15617 cat >>conftest.
$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 $ac_includes_default
15620 #include <$ac_header>
15622 rm -f conftest.
$ac_objext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try
='test -s conftest.$ac_objext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_header_compiler
=yes
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.
$ac_ext >&5
15639 ac_header_compiler
=no
15641 rm -f conftest.
$ac_objext conftest.
$ac_ext
15642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15643 echo "${ECHO_T}$ac_header_compiler" >&6
15645 # Is the header present?
15646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15648 cat >conftest.
$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15652 cat confdefs.h
>>conftest.
$ac_ext
15653 cat >>conftest.
$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 #include <$ac_header>
15657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15658 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15660 grep -v '^ *+' conftest.er1
>conftest.err
15662 cat conftest.err
>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } >/dev
/null
; then
15665 if test -s conftest.err
; then
15666 ac_cpp_err
=$ac_c_preproc_warn_flag
15673 if test -z "$ac_cpp_err"; then
15674 ac_header_preproc
=yes
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.
$ac_ext >&5
15679 ac_header_preproc
=no
15681 rm -f conftest.err conftest.
$ac_ext
15682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15683 echo "${ECHO_T}$ac_header_preproc" >&6
15685 # So? What about this header?
15686 case $ac_header_compiler:$ac_header_preproc in
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
15703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15710 ## ------------------------------------ ##
15711 ## Report this to bug-autoconf@gnu.org. ##
15712 ## ------------------------------------ ##
15715 sed "s/^/$as_me: WARNING: /" >&2
15718 echo "$as_me:$LINENO: checking for $ac_header" >&5
15719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15723 eval "$as_ac_Header=$ac_header_preproc"
15725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15730 cat >>confdefs.h
<<_ACEOF
15731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15736 for ac_header
in kerberos
/des.h
15738 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15740 echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15748 # Is the header compilable?
15749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15751 cat >conftest.
$ac_ext <<_ACEOF
15752 #line $LINENO "configure"
15755 cat confdefs.h
>>conftest.
$ac_ext
15756 cat >>conftest.
$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 $ac_includes_default
15759 #include <$ac_header>
15761 rm -f conftest.
$ac_objext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763 (eval $ac_compile) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
15767 { ac_try
='test -s conftest.$ac_objext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_header_compiler
=yes
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.
$ac_ext >&5
15778 ac_header_compiler
=no
15780 rm -f conftest.
$ac_objext conftest.
$ac_ext
15781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15782 echo "${ECHO_T}$ac_header_compiler" >&6
15784 # Is the header present?
15785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15787 cat >conftest.
$ac_ext <<_ACEOF
15788 #line $LINENO "configure"
15791 cat confdefs.h
>>conftest.
$ac_ext
15792 cat >>conftest.
$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 #include <$ac_header>
15796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15799 grep -v '^ *+' conftest.er1
>conftest.err
15801 cat conftest.err
>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } >/dev
/null
; then
15804 if test -s conftest.err
; then
15805 ac_cpp_err
=$ac_c_preproc_warn_flag
15812 if test -z "$ac_cpp_err"; then
15813 ac_header_preproc
=yes
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.
$ac_ext >&5
15818 ac_header_preproc
=no
15820 rm -f conftest.err conftest.
$ac_ext
15821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822 echo "${ECHO_T}$ac_header_preproc" >&6
15824 # So? What about this header?
15825 case $ac_header_compiler:$ac_header_preproc in
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
15842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15849 ## ------------------------------------ ##
15850 ## Report this to bug-autoconf@gnu.org. ##
15851 ## ------------------------------------ ##
15854 sed "s/^/$as_me: WARNING: /" >&2
15857 echo "$as_me:$LINENO: checking for $ac_header" >&5
15858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 eval "$as_ac_Header=$ac_header_preproc"
15864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15869 cat >>confdefs.h
<<_ACEOF
15870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15886 for ac_header
in krb.h
15888 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15890 echo "$as_me:$LINENO: checking for $ac_header" >&5
15891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15898 # Is the header compilable?
15899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15901 cat >conftest.
$ac_ext <<_ACEOF
15902 #line $LINENO "configure"
15905 cat confdefs.h
>>conftest.
$ac_ext
15906 cat >>conftest.
$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 $ac_includes_default
15909 #include <$ac_header>
15911 rm -f conftest.
$ac_objext
15912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15913 (eval $ac_compile) 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try
='test -s conftest.$ac_objext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_header_compiler
=yes
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.
$ac_ext >&5
15928 ac_header_compiler
=no
15930 rm -f conftest.
$ac_objext conftest.
$ac_ext
15931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932 echo "${ECHO_T}$ac_header_compiler" >&6
15934 # Is the header present?
15935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15937 cat >conftest.
$ac_ext <<_ACEOF
15938 #line $LINENO "configure"
15941 cat confdefs.h
>>conftest.
$ac_ext
15942 cat >>conftest.
$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 #include <$ac_header>
15946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15947 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15949 grep -v '^ *+' conftest.er1
>conftest.err
15951 cat conftest.err
>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } >/dev
/null
; then
15954 if test -s conftest.err
; then
15955 ac_cpp_err
=$ac_c_preproc_warn_flag
15962 if test -z "$ac_cpp_err"; then
15963 ac_header_preproc
=yes
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.
$ac_ext >&5
15968 ac_header_preproc
=no
15970 rm -f conftest.err conftest.
$ac_ext
15971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15972 echo "${ECHO_T}$ac_header_preproc" >&6
15974 # So? What about this header?
15975 case $ac_header_compiler:$ac_header_preproc in
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
15992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15999 ## ------------------------------------ ##
16000 ## Report this to bug-autoconf@gnu.org. ##
16001 ## ------------------------------------ ##
16004 sed "s/^/$as_me: WARNING: /" >&2
16007 echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 eval "$as_ac_Header=$ac_header_preproc"
16014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16019 cat >>confdefs.h
<<_ACEOF
16020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16025 for ac_header
in kerberosIV
/krb.h
16027 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16029 echo "$as_me:$LINENO: checking for $ac_header" >&5
16030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16037 # Is the header compilable?
16038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16040 cat >conftest.
$ac_ext <<_ACEOF
16041 #line $LINENO "configure"
16044 cat confdefs.h
>>conftest.
$ac_ext
16045 cat >>conftest.
$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 $ac_includes_default
16048 #include <$ac_header>
16050 rm -f conftest.
$ac_objext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try
='test -s conftest.$ac_objext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_header_compiler
=yes
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.
$ac_ext >&5
16067 ac_header_compiler
=no
16069 rm -f conftest.
$ac_objext conftest.
$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6
16073 # Is the header present?
16074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16076 cat >conftest.
$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16080 cat confdefs.h
>>conftest.
$ac_ext
16081 cat >>conftest.
$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <$ac_header>
16085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16088 grep -v '^ *+' conftest.er1
>conftest.err
16090 cat conftest.err
>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev
/null
; then
16093 if test -s conftest.err
; then
16094 ac_cpp_err
=$ac_c_preproc_warn_flag
16101 if test -z "$ac_cpp_err"; then
16102 ac_header_preproc
=yes
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.
$ac_ext >&5
16107 ac_header_preproc
=no
16109 rm -f conftest.err conftest.
$ac_ext
16110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 echo "${ECHO_T}$ac_header_preproc" >&6
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc in
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
16131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16138 ## ------------------------------------ ##
16139 ## Report this to bug-autoconf@gnu.org. ##
16140 ## ------------------------------------ ##
16143 sed "s/^/$as_me: WARNING: /" >&2
16146 echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 eval "$as_ac_Header=$ac_header_preproc"
16153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16158 cat >>confdefs.h
<<_ACEOF
16159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16164 for ac_header
in kerberos
/krb.h
16166 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16168 echo "$as_me:$LINENO: checking for $ac_header" >&5
16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16176 # Is the header compilable?
16177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16179 cat >conftest.
$ac_ext <<_ACEOF
16180 #line $LINENO "configure"
16183 cat confdefs.h
>>conftest.
$ac_ext
16184 cat >>conftest.
$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 $ac_includes_default
16187 #include <$ac_header>
16189 rm -f conftest.
$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try
='test -s conftest.$ac_objext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_header_compiler
=yes
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.
$ac_ext >&5
16206 ac_header_compiler
=no
16208 rm -f conftest.
$ac_objext conftest.
$ac_ext
16209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16210 echo "${ECHO_T}$ac_header_compiler" >&6
16212 # Is the header present?
16213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16215 cat >conftest.
$ac_ext <<_ACEOF
16216 #line $LINENO "configure"
16219 cat confdefs.h
>>conftest.
$ac_ext
16220 cat >>conftest.
$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 #include <$ac_header>
16224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16225 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16227 grep -v '^ *+' conftest.er1
>conftest.err
16229 cat conftest.err
>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } >/dev
/null
; then
16232 if test -s conftest.err
; then
16233 ac_cpp_err
=$ac_c_preproc_warn_flag
16240 if test -z "$ac_cpp_err"; then
16241 ac_header_preproc
=yes
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.
$ac_ext >&5
16246 ac_header_preproc
=no
16248 rm -f conftest.err conftest.
$ac_ext
16249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16250 echo "${ECHO_T}$ac_header_preproc" >&6
16252 # So? What about this header?
16253 case $ac_header_compiler:$ac_header_preproc in
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
16270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16277 ## ------------------------------------ ##
16278 ## Report this to bug-autoconf@gnu.org. ##
16279 ## ------------------------------------ ##
16282 sed "s/^/$as_me: WARNING: /" >&2
16285 echo "$as_me:$LINENO: checking for $ac_header" >&5
16286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 eval "$as_ac_Header=$ac_header_preproc"
16292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16297 cat >>confdefs.h
<<_ACEOF
16298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315 for ac_header
in com_err.h
16317 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16319 echo "$as_me:$LINENO: checking for $ac_header" >&5
16320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16327 # Is the header compilable?
16328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16330 cat >conftest.
$ac_ext <<_ACEOF
16331 #line $LINENO "configure"
16334 cat confdefs.h
>>conftest.
$ac_ext
16335 cat >>conftest.
$ac_ext <<_ACEOF
16336 /* end confdefs.h. */
16337 $ac_includes_default
16338 #include <$ac_header>
16340 rm -f conftest.
$ac_objext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try
='test -s conftest.$ac_objext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler
=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.
$ac_ext >&5
16357 ac_header_compiler
=no
16359 rm -f conftest.
$ac_objext conftest.
$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16361 echo "${ECHO_T}$ac_header_compiler" >&6
16363 # Is the header present?
16364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16366 cat >conftest.
$ac_ext <<_ACEOF
16367 #line $LINENO "configure"
16370 cat confdefs.h
>>conftest.
$ac_ext
16371 cat >>conftest.
$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #include <$ac_header>
16375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16376 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16378 grep -v '^ *+' conftest.er1
>conftest.err
16380 cat conftest.err
>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } >/dev
/null
; then
16383 if test -s conftest.err
; then
16384 ac_cpp_err
=$ac_c_preproc_warn_flag
16391 if test -z "$ac_cpp_err"; then
16392 ac_header_preproc
=yes
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.
$ac_ext >&5
16397 ac_header_preproc
=no
16399 rm -f conftest.err conftest.
$ac_ext
16400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16401 echo "${ECHO_T}$ac_header_preproc" >&6
16403 # So? What about this header?
16404 case $ac_header_compiler:$ac_header_preproc in
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
16421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16428 ## ------------------------------------ ##
16429 ## Report this to bug-autoconf@gnu.org. ##
16430 ## ------------------------------------ ##
16433 sed "s/^/$as_me: WARNING: /" >&2
16436 echo "$as_me:$LINENO: checking for $ac_header" >&5
16437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16441 eval "$as_ac_Header=$ac_header_preproc"
16443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16448 cat >>confdefs.h
<<_ACEOF
16449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16458 # Solaris requires -lintl if you want strerror (which calls dgettext)
16459 # to return localized messages.
16461 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16462 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16463 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 ac_check_lib_save_LIBS
=$LIBS
16467 LIBS
="-lintl $LIBS"
16468 cat >conftest.
$ac_ext <<_ACEOF
16469 #line $LINENO "configure"
16472 cat confdefs.h
>>conftest.
$ac_ext
16473 cat >>conftest.
$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16476 /* Override any gcc2 internal prototype to avoid an error. */
16480 /* We use char because int might match the return type of a gcc2
16481 builtin and then its argument prototype would still apply. */
16491 rm -f conftest.
$ac_objext conftest
$ac_exeext
16492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493 (eval $ac_link) 2>&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
16497 { ac_try
='test -s conftest$ac_exeext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_lib_intl_dgettext
=yes
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.
$ac_ext >&5
16508 ac_cv_lib_intl_dgettext
=no
16510 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16511 LIBS
=$ac_check_lib_save_LIBS
16513 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16514 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16515 if test $ac_cv_lib_intl_dgettext = yes; then
16516 cat >>confdefs.h
<<_ACEOF
16517 #define HAVE_LIBINTL 1
16520 LIBS
="-lintl $LIBS"
16525 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16526 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16527 if test "${emacs_cv_localtime_cache+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 if test x
$ac_cv_func_tzset = xyes
; then
16531 if test "$cross_compiling" = yes; then
16532 # If we have tzset, assume the worst when cross-compiling.
16533 emacs_cv_localtime_cache
=yes
16535 cat >conftest.
$ac_ext <<_ACEOF
16536 #line $LINENO "configure"
16539 cat confdefs.h
>>conftest.
$ac_ext
16540 cat >>conftest.
$ac_ext <<_ACEOF
16541 /* end confdefs.h. */
16543 extern char **environ;
16547 for (to = from = environ; (*to = *from); from++)
16548 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16551 char TZ_GMT0[] = "TZ=GMT0";
16552 char TZ_PST8[] = "TZ=PST8";
16555 time_t now = time ((time_t *) 0);
16556 int hour_GMT0, hour_unset;
16557 if (putenv (TZ_GMT0) != 0)
16559 hour_GMT0 = localtime (&now)->tm_hour;
16561 hour_unset = localtime (&now)->tm_hour;
16562 if (putenv (TZ_PST8) != 0)
16564 if (localtime (&now)->tm_hour == hour_GMT0)
16567 if (localtime (&now)->tm_hour != hour_unset)
16572 rm -f conftest
$ac_exeext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 emacs_cv_localtime_cache
=no
16585 echo "$as_me: program exited with status $ac_status" >&5
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.
$ac_ext >&5
16589 ( exit $ac_status )
16590 emacs_cv_localtime_cache
=yes
16592 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16595 # If we lack tzset, report that localtime does not cache TZ,
16596 # since we can't invalidate the cache if we don't have tzset.
16597 emacs_cv_localtime_cache
=no
16600 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16601 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16602 if test $emacs_cv_localtime_cache = yes; then
16604 cat >>confdefs.h
<<\_ACEOF
16605 #define LOCALTIME_CACHE 1
16610 if test "x$HAVE_TIMEVAL" = xyes
; then
16612 for ac_func
in gettimeofday
16614 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16615 echo "$as_me:$LINENO: checking for $ac_func" >&5
16616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16617 if eval "test \"\${$as_ac_var+set}\" = set"; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 cat >conftest.
$ac_ext <<_ACEOF
16621 #line $LINENO "configure"
16624 cat confdefs.h
>>conftest.
$ac_ext
16625 cat >>conftest.
$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 /* System header to define __stub macros and hopefully few prototypes,
16628 which can conflict with char $ac_func (); below.
16629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630 <limits.h> exists even on freestanding compilers. */
16632 # include <limits.h>
16634 # include <assert.h>
16636 /* Override any gcc2 internal prototype to avoid an error. */
16641 /* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16644 /* The GNU C library defines this for functions which it implements
16645 to always fail with ENOSYS. Some functions are actually named
16646 something starting with __ and the normal name is an alias. */
16647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16650 char (*f) () = $ac_func;
16659 return f != $ac_func;
16664 rm -f conftest.
$ac_objext conftest
$ac_exeext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666 (eval $ac_link) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try
='test -s conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 eval "$as_ac_var=yes"
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.
$ac_ext >&5
16681 eval "$as_ac_var=no"
16683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688 cat >>confdefs.h
<<_ACEOF
16689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16695 if test $ac_cv_func_gettimeofday = yes; then
16696 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16697 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16698 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 cat >conftest.
$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16705 cat confdefs.h
>>conftest.
$ac_ext
16706 cat >>conftest.
$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16709 #ifdef TIME_WITH_SYS_TIME
16710 #include <sys/time.h>
16713 #ifdef HAVE_SYS_TIME_H
16714 #include <sys/time.h>
16722 struct timeval time;
16723 gettimeofday (&time, 0);
16728 rm -f conftest.
$ac_objext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16730 (eval $ac_compile) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try
='test -s conftest.$ac_objext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 emacs_cv_gettimeofday_two_arguments
=yes
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.
$ac_ext >&5
16745 emacs_cv_gettimeofday_two_arguments
=no
16747 rm -f conftest.
$ac_objext conftest.
$ac_ext
16749 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16750 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16751 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16753 cat >>confdefs.h
<<\_ACEOF
16754 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16761 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16762 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16763 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16764 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 cat >conftest.
$ac_ext <<_ACEOF
16768 #line $LINENO "configure"
16771 cat confdefs.h
>>conftest.
$ac_ext
16772 cat >>conftest.
$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <sys/types.h>
16775 #include <$ac_cv_struct_tm>
16781 static struct tm ac_aggr;
16782 if (ac_aggr.tm_zone)
16788 rm -f conftest.
$ac_objext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790 (eval $ac_compile) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try
='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_member_struct_tm_tm_zone
=yes
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.
$ac_ext >&5
16805 cat >conftest.
$ac_ext <<_ACEOF
16806 #line $LINENO "configure"
16809 cat confdefs.h
>>conftest.
$ac_ext
16810 cat >>conftest.
$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 #include <sys/types.h>
16813 #include <$ac_cv_struct_tm>
16819 static struct tm ac_aggr;
16820 if (sizeof ac_aggr.tm_zone)
16826 rm -f conftest.
$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try
='test -s conftest.$ac_objext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ac_cv_member_struct_tm_tm_zone
=yes
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.
$ac_ext >&5
16843 ac_cv_member_struct_tm_tm_zone
=no
16845 rm -f conftest.
$ac_objext conftest.
$ac_ext
16847 rm -f conftest.
$ac_objext conftest.
$ac_ext
16849 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16850 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16851 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16853 cat >>confdefs.h
<<_ACEOF
16854 #define HAVE_STRUCT_TM_TM_ZONE 1
16860 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16862 cat >>confdefs.h
<<\_ACEOF
16863 #define HAVE_TM_ZONE 1
16867 echo "$as_me:$LINENO: checking for tzname" >&5
16868 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16869 if test "${ac_cv_var_tzname+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 cat >conftest.
$ac_ext <<_ACEOF
16873 #line $LINENO "configure"
16876 cat confdefs.h
>>conftest.
$ac_ext
16877 cat >>conftest.
$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16880 #ifndef tzname /* For SGI. */
16881 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16892 rm -f conftest.
$ac_objext conftest
$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894 (eval $ac_link) 2>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
16898 { ac_try
='test -s conftest$ac_exeext'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16904 ac_cv_var_tzname
=yes
16906 echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.
$ac_ext >&5
16909 ac_cv_var_tzname
=no
16911 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16913 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16914 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16915 if test $ac_cv_var_tzname = yes; then
16917 cat >>confdefs.h
<<\_ACEOF
16918 #define HAVE_TZNAME 1
16925 if test "$ac_cv_func_gettimeofday" = yes; then
16926 echo "$as_me:$LINENO: checking for struct timezone" >&5
16927 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16928 if test "${emacs_cv_struct_timezone+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 cat >conftest.
$ac_ext <<_ACEOF
16932 #line $LINENO "configure"
16935 cat confdefs.h
>>conftest.
$ac_ext
16936 cat >>conftest.
$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16938 #include <sys/time.h>
16942 struct timezone tz;
16947 rm -f conftest.
$ac_objext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949 (eval $ac_compile) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try
='test -s conftest.$ac_objext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 if test "$cross_compiling" = yes; then
16960 emacs_cv_struct_timezone
=yes
16962 cat >conftest.
$ac_ext <<_ACEOF
16963 #line $LINENO "configure"
16966 cat confdefs.h
>>conftest.
$ac_ext
16967 cat >>conftest.
$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16970 #ifdef TIME_WITH_SYS_TIME
16971 #include <sys/time.h>
16974 #ifdef HAVE_SYS_TIME_H
16975 #include <sys/time.h>
16981 struct timeval time;
16982 struct timezone dummy;
16983 exit (gettimeofday (&time, &dummy));
16986 rm -f conftest
$ac_exeext
16987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16988 (eval $ac_link) 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 emacs_cv_struct_timezone
=yes
16999 echo "$as_me: program exited with status $ac_status" >&5
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.
$ac_ext >&5
17003 ( exit $ac_status )
17004 emacs_cv_struct_timezone
=no
17006 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.
$ac_ext >&5
17012 emacs_cv_struct_timezone
=no
17014 rm -f conftest.
$ac_objext conftest.
$ac_ext
17016 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17017 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17021 echo "$as_me:$LINENO: checking for socket" >&5
17022 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17023 if test "${ac_cv_func_socket+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 cat >conftest.
$ac_ext <<_ACEOF
17027 #line $LINENO "configure"
17030 cat confdefs.h
>>conftest.
$ac_ext
17031 cat >>conftest.
$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 /* System header to define __stub macros and hopefully few prototypes,
17034 which can conflict with char socket (); below.
17035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17036 <limits.h> exists even on freestanding compilers. */
17038 # include <limits.h>
17040 # include <assert.h>
17042 /* Override any gcc2 internal prototype to avoid an error. */
17047 /* We use char because int might match the return type of a gcc2
17048 builtin and then its argument prototype would still apply. */
17050 /* The GNU C library defines this for functions which it implements
17051 to always fail with ENOSYS. Some functions are actually named
17052 something starting with __ and the normal name is an alias. */
17053 #if defined (__stub_socket) || defined (__stub___socket)
17056 char (*f) () = socket;
17065 return f != socket;
17070 rm -f conftest.
$ac_objext conftest
$ac_exeext
17071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17072 (eval $ac_link) 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try
='test -s conftest$ac_exeext'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; }; then
17082 ac_cv_func_socket
=yes
17084 echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.
$ac_ext >&5
17087 ac_cv_func_socket
=no
17089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17091 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17092 echo "${ECHO_T}$ac_cv_func_socket" >&6
17093 if test $ac_cv_func_socket = yes; then
17099 if test $ok_so_far = yes; then
17100 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17101 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17102 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17103 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17107 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17109 # Is the header compilable?
17110 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17111 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17112 cat >conftest.
$ac_ext <<_ACEOF
17113 #line $LINENO "configure"
17116 cat confdefs.h
>>conftest.
$ac_ext
17117 cat >>conftest.
$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 $ac_includes_default
17120 #include <netinet/in.h>
17122 rm -f conftest.
$ac_objext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17124 (eval $ac_compile) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try
='test -s conftest.$ac_objext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_header_compiler
=yes
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.
$ac_ext >&5
17139 ac_header_compiler
=no
17141 rm -f conftest.
$ac_objext conftest.
$ac_ext
17142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17143 echo "${ECHO_T}$ac_header_compiler" >&6
17145 # Is the header present?
17146 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17147 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17148 cat >conftest.
$ac_ext <<_ACEOF
17149 #line $LINENO "configure"
17152 cat confdefs.h
>>conftest.
$ac_ext
17153 cat >>conftest.
$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 #include <netinet/in.h>
17157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17158 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17160 grep -v '^ *+' conftest.er1
>conftest.err
17162 cat conftest.err
>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } >/dev
/null
; then
17165 if test -s conftest.err
; then
17166 ac_cpp_err
=$ac_c_preproc_warn_flag
17173 if test -z "$ac_cpp_err"; then
17174 ac_header_preproc
=yes
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.
$ac_ext >&5
17179 ac_header_preproc
=no
17181 rm -f conftest.err conftest.
$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17183 echo "${ECHO_T}$ac_header_preproc" >&6
17185 # So? What about this header?
17186 case $ac_header_compiler:$ac_header_preproc in
17188 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17189 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: netinet/in.h: present but cannot be compiled" >&5
17203 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17205 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17207 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17210 ## ------------------------------------ ##
17211 ## Report this to bug-autoconf@gnu.org. ##
17212 ## ------------------------------------ ##
17215 sed "s/^/$as_me: WARNING: /" >&2
17218 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17219 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17220 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 ac_cv_header_netinet_in_h
=$ac_header_preproc
17225 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17226 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17229 if test $ac_cv_header_netinet_in_h = yes; then
17237 if test $ok_so_far = yes; then
17238 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17239 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17240 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17241 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17244 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17245 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17247 # Is the header compilable?
17248 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17249 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17250 cat >conftest.
$ac_ext <<_ACEOF
17251 #line $LINENO "configure"
17254 cat confdefs.h
>>conftest.
$ac_ext
17255 cat >>conftest.
$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 $ac_includes_default
17258 #include <arpa/inet.h>
17260 rm -f conftest.
$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try
='test -s conftest.$ac_objext'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_header_compiler
=yes
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.
$ac_ext >&5
17277 ac_header_compiler
=no
17279 rm -f conftest.
$ac_objext conftest.
$ac_ext
17280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17281 echo "${ECHO_T}$ac_header_compiler" >&6
17283 # Is the header present?
17284 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17285 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17286 cat >conftest.
$ac_ext <<_ACEOF
17287 #line $LINENO "configure"
17290 cat confdefs.h
>>conftest.
$ac_ext
17291 cat >>conftest.
$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17293 #include <arpa/inet.h>
17295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17296 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17298 grep -v '^ *+' conftest.er1
>conftest.err
17300 cat conftest.err
>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } >/dev
/null
; then
17303 if test -s conftest.err
; then
17304 ac_cpp_err
=$ac_c_preproc_warn_flag
17311 if test -z "$ac_cpp_err"; then
17312 ac_header_preproc
=yes
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.
$ac_ext >&5
17317 ac_header_preproc
=no
17319 rm -f conftest.err conftest.
$ac_ext
17320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17321 echo "${ECHO_T}$ac_header_preproc" >&6
17323 # So? What about this header?
17324 case $ac_header_compiler:$ac_header_preproc in
17326 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17327 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17341 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17342 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17343 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17344 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17345 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17348 ## ------------------------------------ ##
17349 ## Report this to bug-autoconf@gnu.org. ##
17350 ## ------------------------------------ ##
17353 sed "s/^/$as_me: WARNING: /" >&2
17356 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17357 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17358 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17363 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17364 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17367 if test $ac_cv_header_arpa_inet_h = yes; then
17375 if test $ok_so_far = yes; then
17377 cat >>confdefs.h
<<\_ACEOF
17378 #define HAVE_INET_SOCKETS 1
17383 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
17385 cat >>confdefs.h
<<\_ACEOF
17386 #define HAVE_AIX_SMT_EXP 1
17391 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17392 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17393 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
17394 echo "$as_me:$LINENO: result: yes" >&5
17395 echo "${ECHO_T}yes" >&6
17397 cat >>confdefs.h
<<\_ACEOF
17398 #define HAVE_DEV_PTMX 1
17402 echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6
17406 echo "$as_me:$LINENO: checking for pid_t" >&5
17407 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17408 if test "${ac_cv_type_pid_t+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 cat >conftest.
$ac_ext <<_ACEOF
17412 #line $LINENO "configure"
17415 cat confdefs.h
>>conftest.
$ac_ext
17416 cat >>conftest.
$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 $ac_includes_default
17424 if (sizeof (pid_t))
17430 rm -f conftest.
$ac_objext
17431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17432 (eval $ac_compile) 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try
='test -s conftest.$ac_objext'
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17442 ac_cv_type_pid_t
=yes
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.
$ac_ext >&5
17447 ac_cv_type_pid_t
=no
17449 rm -f conftest.
$ac_objext conftest.
$ac_ext
17451 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17452 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17453 if test $ac_cv_type_pid_t = yes; then
17457 cat >>confdefs.h
<<_ACEOF
17465 for ac_header
in unistd.h vfork.h
17467 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17469 echo "$as_me:$LINENO: checking for $ac_header" >&5
17470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17477 # Is the header compilable?
17478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17480 cat >conftest.
$ac_ext <<_ACEOF
17481 #line $LINENO "configure"
17484 cat confdefs.h
>>conftest.
$ac_ext
17485 cat >>conftest.
$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 $ac_includes_default
17488 #include <$ac_header>
17490 rm -f conftest.
$ac_objext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17492 (eval $ac_compile) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try
='test -s conftest.$ac_objext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_header_compiler
=yes
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.
$ac_ext >&5
17507 ac_header_compiler
=no
17509 rm -f conftest.
$ac_objext conftest.
$ac_ext
17510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17511 echo "${ECHO_T}$ac_header_compiler" >&6
17513 # Is the header present?
17514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17516 cat >conftest.
$ac_ext <<_ACEOF
17517 #line $LINENO "configure"
17520 cat confdefs.h
>>conftest.
$ac_ext
17521 cat >>conftest.
$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 #include <$ac_header>
17525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17526 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17528 grep -v '^ *+' conftest.er1
>conftest.err
17530 cat conftest.err
>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } >/dev
/null
; then
17533 if test -s conftest.err
; then
17534 ac_cpp_err
=$ac_c_preproc_warn_flag
17541 if test -z "$ac_cpp_err"; then
17542 ac_header_preproc
=yes
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.
$ac_ext >&5
17547 ac_header_preproc
=no
17549 rm -f conftest.err conftest.
$ac_ext
17550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17551 echo "${ECHO_T}$ac_header_preproc" >&6
17553 # So? What about this header?
17554 case $ac_header_compiler:$ac_header_preproc in
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
17571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17578 ## ------------------------------------ ##
17579 ## Report this to bug-autoconf@gnu.org. ##
17580 ## ------------------------------------ ##
17583 sed "s/^/$as_me: WARNING: /" >&2
17586 echo "$as_me:$LINENO: checking for $ac_header" >&5
17587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 eval "$as_ac_Header=$ac_header_preproc"
17593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17598 cat >>confdefs.h
<<_ACEOF
17599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17608 for ac_func
in fork vfork
17610 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17611 echo "$as_me:$LINENO: checking for $ac_func" >&5
17612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17613 if eval "test \"\${$as_ac_var+set}\" = set"; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17616 cat >conftest.
$ac_ext <<_ACEOF
17617 #line $LINENO "configure"
17620 cat confdefs.h
>>conftest.
$ac_ext
17621 cat >>conftest.
$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17628 # include <limits.h>
17630 # include <assert.h>
17632 /* Override any gcc2 internal prototype to avoid an error. */
17637 /* We use char because int might match the return type of a gcc2
17638 builtin and then its argument prototype would still apply. */
17640 /* The GNU C library defines this for functions which it implements
17641 to always fail with ENOSYS. Some functions are actually named
17642 something starting with __ and the normal name is an alias. */
17643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17646 char (*f) () = $ac_func;
17655 return f != $ac_func;
17660 rm -f conftest.
$ac_objext conftest
$ac_exeext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17662 (eval $ac_link) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try
='test -s conftest$ac_exeext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 eval "$as_ac_var=yes"
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.
$ac_ext >&5
17677 eval "$as_ac_var=no"
17679 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17683 if test `eval echo '${'$as_ac_var'}'` = yes; then
17684 cat >>confdefs.h
<<_ACEOF
17685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17691 if test "x$ac_cv_func_fork" = xyes
; then
17692 echo "$as_me:$LINENO: checking for working fork" >&5
17693 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17694 if test "${ac_cv_func_fork_works+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17697 if test "$cross_compiling" = yes; then
17698 ac_cv_func_fork_works
=cross
17700 cat >conftest.
$ac_ext <<_ACEOF
17701 /* By Ruediger Kuhlmann. */
17702 #include <sys/types.h>
17704 # include <unistd.h>
17706 /* Some systems only have a dummy stub for fork() */
17714 rm -f conftest
$ac_exeext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_func_fork_works
=yes
17727 echo "$as_me: program exited with status $ac_status" >&5
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.
$ac_ext >&5
17731 ( exit $ac_status )
17732 ac_cv_func_fork_works
=no
17734 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17737 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17738 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17741 ac_cv_func_fork_works
=$ac_cv_func_fork
17743 if test "x$ac_cv_func_fork_works" = xcross
; then
17745 *-*-amigaos* |
*-*-msdosdjgpp*)
17746 # Override, as these systems have only a dummy fork() stub
17747 ac_cv_func_fork_works
=no
17750 ac_cv_func_fork_works
=yes
17753 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17754 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17756 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17757 if test "x$ac_cv_func_vfork" = xyes
; then
17758 echo "$as_me:$LINENO: checking for working vfork" >&5
17759 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17760 if test "${ac_cv_func_vfork_works+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 if test "$cross_compiling" = yes; then
17764 ac_cv_func_vfork_works
=cross
17766 cat >conftest.
$ac_ext <<_ACEOF
17767 #line $LINENO "configure"
17770 cat confdefs.h
>>conftest.
$ac_ext
17771 cat >>conftest.
$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 /* Thanks to Paul Eggert for this test. */
17775 #include <stdlib.h>
17776 #include <sys/types.h>
17777 #include <sys/stat.h>
17778 #include <sys/wait.h>
17780 # include <unistd.h>
17783 # include <vfork.h>
17785 /* On some sparc systems, changes by the child to local and incoming
17786 argument registers are propagated back to the parent. The compiler
17787 is told about this with #include <vfork.h>, but some compilers
17788 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17789 static variable whose address is put into a register that is
17790 clobbered by the vfork. */
17793 sparc_address_test (int arg)
17795 sparc_address_test (arg) int arg;
17798 static pid_t child;
17816 pid_t parent = getpid ();
17819 sparc_address_test (0);
17824 /* Here is another test for sparc vfork register problems. This
17825 test uses lots of local variables, at least as many local
17826 variables as main has allocated so far including compiler
17827 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17828 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17829 reuse the register of parent for one of the local variables,
17830 since it will think that parent can't possibly be used any more
17831 in this routine. Assigning to the local variable will thus
17832 munge parent in the parent process. */
17834 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17835 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17836 /* Convince the compiler that p..p7 are live; otherwise, it might
17837 use the same hardware register for all 8 local variables. */
17838 if (p != p1 || p != p2 || p != p3 || p != p4
17839 || p != p5 || p != p6 || p != p7)
17842 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17843 from child file descriptors. If the child closes a descriptor
17844 before it execs or exits, this munges the parent's descriptor
17845 as well. Test for this by closing stdout in the child. */
17846 _exit(close(fileno(stdout)) != 0);
17851 while (wait(&status) != child)
17854 /* Was there some problem with vforking? */
17857 /* Did the child fail? (This shouldn't happen.) */
17860 /* Did the vfork/compiler bug occur? */
17861 || parent != getpid()
17863 /* Did the file descriptor bug occur? */
17864 || fstat(fileno(stdout), &st) != 0
17869 rm -f conftest
$ac_exeext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17871 (eval $ac_link) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17880 ac_cv_func_vfork_works
=yes
17882 echo "$as_me: program exited with status $ac_status" >&5
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.
$ac_ext >&5
17886 ( exit $ac_status )
17887 ac_cv_func_vfork_works
=no
17889 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17892 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17893 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17896 if test "x$ac_cv_func_fork_works" = xcross
; then
17897 ac_cv_func_vfork_works
=ac_cv_func_vfork
17898 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17899 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17902 if test "x$ac_cv_func_vfork_works" = xyes
; then
17904 cat >>confdefs.h
<<\_ACEOF
17905 #define HAVE_WORKING_VFORK 1
17910 cat >>confdefs.h
<<\_ACEOF
17915 if test "x$ac_cv_func_fork_works" = xyes
; then
17917 cat >>confdefs.h
<<\_ACEOF
17918 #define HAVE_WORKING_FORK 1
17924 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17925 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17926 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 cat >conftest.
$ac_ext <<_ACEOF
17930 #line $LINENO "configure"
17933 cat confdefs.h
>>conftest.
$ac_ext
17934 cat >>conftest.
$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <langinfo.h>
17940 char* cs = nl_langinfo(CODESET);
17945 rm -f conftest.
$ac_objext conftest
$ac_exeext
17946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17947 (eval $ac_link) 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } &&
17951 { ac_try
='test -s conftest$ac_exeext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 emacs_cv_langinfo_codeset
=yes
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.
$ac_ext >&5
17962 emacs_cv_langinfo_codeset
=no
17964 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17967 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17968 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17969 if test $emacs_cv_langinfo_codeset = yes; then
17971 cat >>confdefs.h
<<\_ACEOF
17972 #define HAVE_LANGINFO_CODESET 1
17977 echo "$as_me:$LINENO: checking for size_t" >&5
17978 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17979 if test "${ac_cv_type_size_t+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 cat >conftest.
$ac_ext <<_ACEOF
17983 #line $LINENO "configure"
17986 cat confdefs.h
>>conftest.
$ac_ext
17987 cat >>conftest.
$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 $ac_includes_default
17995 if (sizeof (size_t))
18001 rm -f conftest.
$ac_objext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18003 (eval $ac_compile) 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try
='test -s conftest.$ac_objext'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 ac_cv_type_size_t
=yes
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.
$ac_ext >&5
18018 ac_cv_type_size_t
=no
18020 rm -f conftest.
$ac_objext conftest.
$ac_ext
18022 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18023 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18024 if test $ac_cv_type_size_t = yes; then
18026 cat >>confdefs.h
<<_ACEOF
18027 #define HAVE_SIZE_T 1
18034 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18035 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18036 if test "${ac_cv_type_mbstate_t+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 cat >conftest.
$ac_ext <<_ACEOF
18040 #line $LINENO "configure"
18043 cat confdefs.h
>>conftest.
$ac_ext
18044 cat >>conftest.
$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 $ac_includes_default
18047 # include <wchar.h>
18051 mbstate_t x; return sizeof x;
18056 rm -f conftest.
$ac_objext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18058 (eval $ac_compile) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
18062 { ac_try
='test -s conftest.$ac_objext'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 ac_cv_type_mbstate_t
=yes
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.
$ac_ext >&5
18073 ac_cv_type_mbstate_t
=no
18075 rm -f conftest.
$ac_objext conftest.
$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18078 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18079 if test $ac_cv_type_mbstate_t = yes; then
18081 cat >>confdefs.h
<<\_ACEOF
18082 #define HAVE_MBSTATE_T 1
18087 cat >>confdefs.h
<<\_ACEOF
18088 #define mbstate_t int
18093 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18094 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18095 if test "${emacs_cv_c_restrict+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 cat >conftest.
$ac_ext <<_ACEOF
18099 #line $LINENO "configure"
18102 cat confdefs.h
>>conftest.
$ac_ext
18103 cat >>conftest.
$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18105 void fred (int *restrict x);
18114 rm -f conftest.
$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116 (eval $ac_compile) 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
18120 { ac_try
='test -s conftest.$ac_objext'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 emacs_cv_c_restrict
=yes
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.
$ac_ext >&5
18131 cat >conftest.
$ac_ext <<_ACEOF
18132 #line $LINENO "configure"
18135 cat confdefs.h
>>conftest.
$ac_ext
18136 cat >>conftest.
$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 void fred (int *__restrict x);
18147 rm -f conftest.
$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try
='test -s conftest.$ac_objext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 emacs_cv_c_restrict
=__restrict
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.
$ac_ext >&5
18164 emacs_cv_c_restrict
=no
18166 rm -f conftest.
$ac_objext conftest.
$ac_ext
18168 rm -f conftest.
$ac_objext conftest.
$ac_ext
18170 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18171 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18172 case "$emacs_cv_c_restrict" in
18173 yes) emacs_restrict
=restrict
;;
18174 no
) emacs_restrict
="";;
18175 *) emacs_restrict
="$emacs_cv_c_restrict";;
18177 if test "$emacs_restrict" != __restrict
; then
18179 cat >>confdefs.h
<<_ACEOF
18180 #define __restrict $emacs_restrict
18185 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18186 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18187 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 cat >conftest.
$ac_ext <<_ACEOF
18191 #line $LINENO "configure"
18194 cat confdefs.h
>>conftest.
$ac_ext
18195 cat >>conftest.
$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18197 void fred (int x[__restrict]);
18206 rm -f conftest.
$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208 (eval $ac_compile) 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try
='test -s conftest.$ac_objext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 emacs_cv_c_restrict_arr
=yes
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.
$ac_ext >&5
18223 emacs_cv_c_restrict_arr
=no
18225 rm -f conftest.
$ac_objext conftest.
$ac_ext
18227 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18228 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18229 if test "$emacs_cv_c_restrict_arr" = yes; then
18231 cat >>confdefs.h
<<\_ACEOF
18232 #define __restrict_arr __restrict
18239 # Set up the CFLAGS for real compilation, so we can substitute it.
18240 CFLAGS
="$REAL_CFLAGS"
18241 CPPFLAGS
="$REAL_CPPFLAGS"
18243 #### Find out which version of Emacs this is.
18244 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18245 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18246 if test x
"${version}" = x
; then
18247 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18248 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18249 { (exit 1); exit 1; }; }
18252 ### Specify what sort of things we'll be editing into Makefile and config.h.
18253 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18289 cat >>confdefs.h
<<_ACEOF
18290 #define EMACS_CONFIGURATION "${canonical}"
18294 cat >>confdefs.h
<<_ACEOF
18295 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18299 cat >>confdefs.h
<<_ACEOF
18300 #define config_machfile "${machfile}"
18304 cat >>confdefs.h
<<_ACEOF
18305 #define config_opsysfile "${opsysfile}"
18309 cat >>confdefs.h
<<_ACEOF
18310 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18314 cat >>confdefs.h
<<_ACEOF
18315 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18319 cat >>confdefs.h
<<_ACEOF
18320 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18324 cat >>confdefs.h
<<_ACEOF
18325 #define UNEXEC_SRC ${UNEXEC_SRC}
18329 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18331 cat >>confdefs.h
<<\_ACEOF
18332 #define HAVE_X_WINDOWS 1
18336 if test "${USE_X_TOOLKIT}" != "none" ; then
18338 cat >>confdefs.h
<<\_ACEOF
18339 #define USE_X_TOOLKIT 1
18343 if test "${HAVE_X11}" = "yes" ; then
18345 cat >>confdefs.h
<<\_ACEOF
18350 if test "${HAVE_XFREE386}" = "yes" ; then
18352 cat >>confdefs.h
<<\_ACEOF
18353 #define HAVE_XFREE386 1
18357 if test "${HAVE_MENUS}" = "yes" ; then
18359 cat >>confdefs.h
<<\_ACEOF
18360 #define HAVE_MENUS 1
18364 if test "${GNU_MALLOC}" = "yes" ; then
18366 cat >>confdefs.h
<<\_ACEOF
18367 #define GNU_MALLOC 1
18371 if test "${REL_ALLOC}" = "yes" ; then
18373 cat >>confdefs.h
<<\_ACEOF
18374 #define REL_ALLOC 1
18383 #### Report on what we decided to do.
18384 #### Report GTK as a toolkit, even if it doesn't use Xt.
18385 #### It makes printing result more understandable as using GTK sets
18386 #### toolkit_scroll_bars to yes by default.
18387 if test "${HAVE_GTK}" = "yes"; then
18392 Configured for \`${canonical}'.
18394 Where should the build process find the source code? ${srcdir}
18395 What operating system and machine description files should Emacs use?
18396 \`${opsysfile}' and \`${machfile}'
18397 What compiler should emacs be built with? ${CC} ${CFLAGS}
18398 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18399 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18400 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18401 What window system should Emacs use? ${window_system}
18402 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18404 if test -n "${x_includes}"; then
18405 echo " Where do we find X Windows header files? ${x_includes}"
18407 echo " Where do we find X Windows header files? Standard dirs"
18409 if test -n "${x_libraries}"; then
18410 echo " Where do we find X Windows libraries? ${x_libraries}"
18412 echo " Where do we find X Windows libraries? Standard dirs"
18415 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18416 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18417 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18418 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18419 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18420 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18421 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18424 # Remove any trailing slashes in these variables.
18425 test "${prefix}" != NONE
&&
18426 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18427 test "${exec_prefix}" != NONE
&&
18428 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18430 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18431 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18432 ## from Makefile.c can correctly provide the arg `-traditional' to the
18435 cat >conftest.
$ac_ext <<_ACEOF
18436 #line $LINENO "configure"
18439 cat confdefs.h
>>conftest.
$ac_ext
18440 cat >>conftest.
$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18445 $EGREP "yes..yes" >/dev
/null
2>&1; then
18446 CPP_NEED_TRADITIONAL
=no
18448 CPP_NEED_TRADITIONAL
=yes
18453 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"
18454 ac_config_commands
="$ac_config_commands default"
18455 cat >confcache
<<\_ACEOF
18456 # This file is a shell script that caches the results of configure
18457 # tests run on this system so they can be shared between configure
18458 # scripts and configure runs, see configure's option --config-cache.
18459 # It is not useful on other systems. If it contains results you don't
18460 # want to keep, you may remove or edit it.
18462 # config.status only pays attention to the cache file if you give it
18463 # the --recheck option to rerun configure.
18465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18467 # following values.
18471 # The following way of writing the cache mishandles newlines in values,
18472 # but we know of no workaround that is simple, portable, and efficient.
18473 # So, don't put newlines in cache variables' values.
18474 # Ultrix sh set writes to stderr and can't be redirected directly,
18475 # and sets the high bit in the cache file unless we assign to the vars.
18478 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18480 # `set' does not quote correctly, so add quotes (double-quote
18481 # substitution turns \\\\ into \\, and sed turns \\ into \).
18484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18487 # `set' quotes correctly as required by POSIX, so do not add quotes.
18489 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18498 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18500 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18501 if test -w $cache_file; then
18502 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18503 cat confcache
>$cache_file
18505 echo "not updating unwritable cache $cache_file"
18510 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18511 # Let make expand exec_prefix.
18512 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18514 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18515 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18516 # trailing colons and then remove the whole line if VPATH becomes empty
18517 # (actually we leave an empty line to preserve line numbers).
18518 if test "x$srcdir" = x.
; then
18519 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18520 s/:*\$(srcdir):*/:/;
18521 s/:*\${srcdir}:*/:/;
18523 s/^\([^=]*=[ ]*\):*/\1/;
18529 DEFS
=-DHAVE_CONFIG_H
18533 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18534 # 1. Remove the extension, and $U if already installed.
18535 ac_i
=`echo "$ac_i" |
18536 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18538 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18539 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18541 LIBOBJS
=$ac_libobjs
18543 LTLIBOBJS
=$ac_ltlibobjs
18547 : ${CONFIG_STATUS=./config.status}
18548 ac_clean_files_save
=$ac_clean_files
18549 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18550 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18551 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18552 cat >$CONFIG_STATUS <<_ACEOF
18554 # Generated by $as_me.
18555 # Run this file to recreate the current configuration.
18556 # Compiler output produced by configure, useful for debugging
18557 # configure, is in config.log if it exists.
18560 ac_cs_recheck=false
18562 SHELL=\${CONFIG_SHELL-$SHELL}
18565 cat >>$CONFIG_STATUS <<\_ACEOF
18566 ## --------------------- ##
18567 ## M4sh Initialization. ##
18568 ## --------------------- ##
18570 # Be Bourne compatible
18571 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18574 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18575 # is contrary to our usage. Disable this feature.
18576 alias -g '${1+"$@"}'='"$@"'
18577 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18581 # Support unset when possible.
18582 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18589 # Work around bugs in pre-3.0 UWIN ksh.
18590 $as_unset ENV MAIL MAILPATH
18597 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18598 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18599 LC_TELEPHONE LC_TIME
18601 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18602 eval $as_var=C
; export $as_var
18608 # Required to use basename.
18609 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18615 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18616 as_basename
=basename
18622 # Name of the executable.
18623 as_me
=`$as_basename "$0" ||
18624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18625 X"$0" : 'X\(//\)$' \| \
18626 X"$0" : 'X\(/\)$' \| \
18627 . : '\(.\)' 2>/dev/null ||
18629 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18630 /^X\/\(\/\/\)$/{ s//\1/; q; }
18631 /^X\/\(\/\).*/{ s//\1/; q; }
18635 # PATH needs CR, and LINENO needs CR and PATH.
18636 # Avoid depending upon Character Ranges.
18637 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18638 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18639 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18640 as_cr_digits
='0123456789'
18641 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18643 # The user is always right.
18644 if test "${PATH_SEPARATOR+set}" != set; then
18645 echo "#! /bin/sh" >conf$$.sh
18646 echo "exit 0" >>conf$$.sh
18648 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18657 as_lineno_1
=$LINENO
18658 as_lineno_2
=$LINENO
18659 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18660 test "x$as_lineno_1" != "x$as_lineno_2" &&
18661 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18662 # Find who we are. Look in the path if we contain no path at all
18665 *[\\/]* ) as_myself
=$0 ;;
18666 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18667 for as_dir
in $PATH
18670 test -z "$as_dir" && as_dir
=.
18671 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18676 # We did not find ourselves, most probably we were run as `sh COMMAND'
18677 # in which case we are not to be found in the path.
18678 if test "x$as_myself" = x
; then
18681 if test ! -f "$as_myself"; then
18682 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18683 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18684 { (exit 1); exit 1; }; }
18686 case $CONFIG_SHELL in
18688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18689 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18692 test -z "$as_dir" && as_dir
=.
18693 for as_base
in sh bash ksh sh5
; do
18696 if ("$as_dir/$as_base" -c '
18697 as_lineno_1=$LINENO
18698 as_lineno_2=$LINENO
18699 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18700 test "x$as_lineno_1" != "x$as_lineno_2" &&
18701 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18702 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18703 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18704 CONFIG_SHELL
=$as_dir/$as_base
18705 export CONFIG_SHELL
18706 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18714 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18715 # uniformly replaced by the line number. The first 'sed' inserts a
18716 # line-number line before each line; the second 'sed' does the real
18717 # work. The second script uses 'N' to pair each line-number line
18718 # with the numbered line, and appends trailing '-' during
18719 # substitution so that $LINENO is not a special case at line end.
18720 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18721 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18722 sed '=' <$as_myself |
18727 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18730 s,^['$as_cr_digits']*\n,,
18731 ' >$as_me.lineno
&&
18732 chmod +x
$as_me.lineno ||
18733 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18734 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18735 { (exit 1); exit 1; }; }
18737 # Don't try to exec as it changes $[0], causing all sort of problems
18738 # (the dirname of $[0] is not the place where we might find the
18739 # original and so on. Autoconf is especially sensible to this).
18741 # Exit status is that of the last command.
18746 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18747 *c
*,-n*) ECHO_N
= ECHO_C
='
18749 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18750 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18753 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18759 rm -f conf$$ conf$$.exe conf$$.
file
18761 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18762 # We could just check for DJGPP; but this test a) works b) is more generic
18763 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18764 if test -f conf$$.exe
; then
18765 # Don't use ln at all; we don't have any links
18770 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18775 rm -f conf$$ conf$$.exe conf$$.
file
18777 if mkdir
-p .
2>/dev
/null
; then
18783 as_executable_p
="test -f"
18785 # Sed expression to map a string onto a valid CPP name.
18786 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18788 # Sed expression to map a string onto a valid variable name.
18789 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18793 # We need space, tab and new line, in precisely that order.
18803 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18804 # report actual input values of CONFIG_FILES etc. instead of their
18805 # values after options handling. Logging --version etc. is OK.
18809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18810 ## Running $as_me. ##
18815 This file was extended by $as_me, which was
18816 generated by GNU Autoconf 2.57. Invocation command line was
18818 CONFIG_FILES = $CONFIG_FILES
18819 CONFIG_HEADERS = $CONFIG_HEADERS
18820 CONFIG_LINKS = $CONFIG_LINKS
18821 CONFIG_COMMANDS = $CONFIG_COMMANDS
18825 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18829 # Files that config.status was made for.
18830 if test -n "$ac_config_files"; then
18831 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18834 if test -n "$ac_config_headers"; then
18835 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18838 if test -n "$ac_config_links"; then
18839 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18842 if test -n "$ac_config_commands"; then
18843 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18846 cat >>$CONFIG_STATUS <<\_ACEOF
18849 \`$as_me' instantiates files from templates according to the
18850 current configuration.
18852 Usage: $0 [OPTIONS] [FILE]...
18854 -h, --help print this help, then exit
18855 -V, --version print version number, then exit
18856 -q, --quiet do not print progress messages
18857 -d, --debug don't remove temporary files
18858 --recheck update $as_me by reconfiguring in the same conditions
18859 --file=FILE[:TEMPLATE]
18860 instantiate the configuration file FILE
18861 --header=FILE[:TEMPLATE]
18862 instantiate the configuration header FILE
18864 Configuration files:
18867 Configuration headers:
18870 Configuration commands:
18873 Report bugs to <bug-autoconf@gnu.org>."
18876 cat >>$CONFIG_STATUS <<_ACEOF
18879 configured by $0, generated by GNU Autoconf 2.57,
18880 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18882 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18883 Free Software Foundation, Inc.
18884 This config.status script is free software; the Free Software Foundation
18885 gives unlimited permission to copy, distribute and modify it."
18890 cat >>$CONFIG_STATUS <<\_ACEOF
18891 # If no file are specified by the user, then we need to provide default
18892 # value. By we need to know if files were specified by the user.
18898 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18899 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18907 *) # This is not an option, so the user has probably given explicit
18910 ac_need_defaults
=false
;;
18914 # Handling of the options.
18916 cat >>$CONFIG_STATUS <<\_ACEOF
18917 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18919 --version |
--vers* |
-V )
18920 echo "$ac_cs_version"; exit 0 ;;
18922 # Conflict between --help and --header
18923 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18924 Try \`$0 --help' for more information." >&5
18925 echo "$as_me: error: ambiguous option: $1
18926 Try \`$0 --help' for more information." >&2;}
18927 { (exit 1); exit 1; }; };;
18928 --help |
--hel |
-h )
18929 echo "$ac_cs_usage"; exit 0 ;;
18930 --debug |
--d* |
-d )
18932 --file |
--fil |
--fi |
--f )
18934 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18935 ac_need_defaults
=false
;;
18936 --header |
--heade |
--head |
--hea )
18938 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18939 ac_need_defaults
=false
;;
18940 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18941 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18944 # This is an error.
18945 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18946 Try \`$0 --help' for more information." >&5
18947 echo "$as_me: error: unrecognized option: $1
18948 Try \`$0 --help' for more information." >&2;}
18949 { (exit 1); exit 1; }; } ;;
18951 *) ac_config_targets
="$ac_config_targets $1" ;;
18957 ac_configure_extra_args
=
18959 if $ac_cs_silent; then
18961 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18965 cat >>$CONFIG_STATUS <<_ACEOF
18966 if \$ac_cs_recheck; then
18967 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18968 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18973 cat >>$CONFIG_STATUS <<_ACEOF
18975 # INIT-COMMANDS section.
18978 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18984 cat >>$CONFIG_STATUS <<\_ACEOF
18985 for ac_config_target
in $ac_config_targets
18987 case "$ac_config_target" in
18988 # Handling of arguments.
18989 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18990 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18991 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18992 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18993 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18994 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18995 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18996 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18997 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18998 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18999 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19000 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19003 { (exit 1); exit 1; }; };;
19007 # If the user did not use the arguments to specify the items to instantiate,
19008 # then the envvar interface is used. Set only those that are not.
19009 # We use the long form for the default assignment because of an extremely
19010 # bizarre bug on SunOS 4.1.3.
19011 if $ac_need_defaults; then
19012 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19013 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19014 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19017 # Have a temporary directory for convenience. Make it in the build tree
19018 # simply because there is no reason to put it here, and in addition,
19019 # creating and moving files from /tmp can sometimes cause problems.
19020 # Create a temporary directory, and hook for its removal unless debugging.
19023 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19024 trap '{ (exit 1); exit 1; }' 1 2 13 15
19027 # Create a (secure) tmp directory for tmp files.
19030 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19031 test -n "$tmp" && test -d "$tmp"
19034 tmp
=.
/confstat$$
-$RANDOM
19035 (umask 077 && mkdir
$tmp)
19038 echo "$me: cannot create a temporary directory in ." >&2
19039 { (exit 1); exit 1; }
19044 cat >>$CONFIG_STATUS <<_ACEOF
19047 # CONFIG_FILES section.
19050 # No need to generate the scripts if there are no CONFIG_FILES.
19051 # This happens for instance when ./config.status config.h
19052 if test -n "\$CONFIG_FILES"; then
19053 # Protect against being on the right side of a sed subst in config.status.
19054 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19055 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19056 s,@SHELL@,$SHELL,;t t
19057 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19058 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19059 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19060 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19061 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19062 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19063 s,@exec_prefix@,$exec_prefix,;t t
19064 s,@prefix@,$prefix,;t t
19065 s,@program_transform_name@,$program_transform_name,;t t
19066 s,@bindir@,$bindir,;t t
19067 s,@sbindir@,$sbindir,;t t
19068 s,@libexecdir@,$libexecdir,;t t
19069 s,@datadir@,$datadir,;t t
19070 s,@sysconfdir@,$sysconfdir,;t t
19071 s,@sharedstatedir@,$sharedstatedir,;t t
19072 s,@localstatedir@,$localstatedir,;t t
19073 s,@libdir@,$libdir,;t t
19074 s,@includedir@,$includedir,;t t
19075 s,@oldincludedir@,$oldincludedir,;t t
19076 s,@infodir@,$infodir,;t t
19077 s,@mandir@,$mandir,;t t
19078 s,@build_alias@,$build_alias,;t t
19079 s,@host_alias@,$host_alias,;t t
19080 s,@target_alias@,$target_alias,;t t
19081 s,@DEFS@,$DEFS,;t t
19082 s,@ECHO_C@,$ECHO_C,;t t
19083 s,@ECHO_N@,$ECHO_N,;t t
19084 s,@ECHO_T@,$ECHO_T,;t t
19085 s,@LIBS@,$LIBS,;t t
19086 s,@build@,$build,;t t
19087 s,@build_cpu@,$build_cpu,;t t
19088 s,@build_vendor@,$build_vendor,;t t
19089 s,@build_os@,$build_os,;t t
19090 s,@host@,$host,;t t
19091 s,@host_cpu@,$host_cpu,;t t
19092 s,@host_vendor@,$host_vendor,;t t
19093 s,@host_os@,$host_os,;t t
19095 s,@CFLAGS@,$CFLAGS,;t t
19096 s,@LDFLAGS@,$LDFLAGS,;t t
19097 s,@CPPFLAGS@,$CPPFLAGS,;t t
19098 s,@ac_ct_CC@,$ac_ct_CC,;t t
19099 s,@EXEEXT@,$EXEEXT,;t t
19100 s,@OBJEXT@,$OBJEXT,;t t
19101 s,@LN_S@,$LN_S,;t t
19103 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19104 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19105 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19106 s,@RANLIB@,$RANLIB,;t t
19107 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19108 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19109 s,@EGREP@,$EGREP,;t t
19110 s,@LIBSOUND@,$LIBSOUND,;t t
19111 s,@SET_MAKE@,$SET_MAKE,;t t
19112 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19113 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19114 s,@GTK_LIBS@,$GTK_LIBS,;t t
19115 s,@ALLOCA@,$ALLOCA,;t t
19116 s,@liblockfile@,$liblockfile,;t t
19117 s,@LIBOBJS@,$LIBOBJS,;t t
19118 s,@NEED_SETGID@,$NEED_SETGID,;t t
19119 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19120 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19121 s,@version@,$version,;t t
19122 s,@configuration@,$configuration,;t t
19123 s,@canonical@,$canonical,;t t
19124 s,@srcdir@,$srcdir,;t t
19125 s,@lispdir@,$lispdir,;t t
19126 s,@locallisppath@,$locallisppath,;t t
19127 s,@lisppath@,$lisppath,;t t
19128 s,@x_default_search_path@,$x_default_search_path,;t t
19129 s,@etcdir@,$etcdir,;t t
19130 s,@archlibdir@,$archlibdir,;t t
19131 s,@docdir@,$docdir,;t t
19132 s,@bitmapdir@,$bitmapdir,;t t
19133 s,@gamedir@,$gamedir,;t t
19134 s,@gameuser@,$gameuser,;t t
19135 s,@c_switch_system@,$c_switch_system,;t t
19136 s,@c_switch_machine@,$c_switch_machine,;t t
19137 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19138 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19139 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19140 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19141 s,@machfile@,$machfile,;t t
19142 s,@opsysfile@,$opsysfile,;t t
19143 s,@carbon_appdir@,$carbon_appdir,;t t
19144 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19149 cat >>$CONFIG_STATUS <<\_ACEOF
19150 # Split the substitutions into bite-sized pieces for seds with
19151 # small command number limits, like on Digital OSF/1 and HP-UX.
19152 ac_max_sed_lines
=48
19153 ac_sed_frag
=1 # Number of current file.
19154 ac_beg
=1 # First line for current file.
19155 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19158 while $ac_more_lines; do
19159 if test $ac_beg -gt 1; then
19160 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19162 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19164 if test ! -s $tmp/subs.frag
; then
19165 ac_more_lines
=false
19167 # The purpose of the label and of the branching condition is to
19168 # speed up the sed processing (if there are no `@' at all, there
19169 # is no need to browse any of the substitutions).
19170 # These are the two extra sed commands mentioned above.
19172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19173 if test -z "$ac_sed_cmds"; then
19174 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19176 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19178 ac_sed_frag
=`expr $ac_sed_frag + 1`
19180 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19183 if test -z "$ac_sed_cmds"; then
19186 fi # test -n "$CONFIG_FILES"
19189 cat >>$CONFIG_STATUS <<\_ACEOF
19190 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19193 - |
*:- |
*:-:* ) # input from stdin
19195 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19196 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19197 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19198 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19199 * ) ac_file_in
=$ac_file.
in ;;
19202 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19203 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19205 X"$ac_file" : 'X\(//\)[^/]' \| \
19206 X"$ac_file" : 'X\(//\)$' \| \
19207 X"$ac_file" : 'X\(/\)' \| \
19208 . : '\(.\)' 2>/dev/null ||
19210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19212 /^X\(\/\/\)$/{ s//\1/; q; }
19213 /^X\(\/\).*/{ s//\1/; q; }
19215 { if $as_mkdir_p; then
19220 while test ! -d "$as_dir"; do
19221 as_dirs
="$as_dir $as_dirs"
19222 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19224 X"$as_dir" : 'X\(//\)[^/]' \| \
19225 X"$as_dir" : 'X\(//\)$' \| \
19226 X"$as_dir" : 'X\(/\)' \| \
19227 . : '\(.\)' 2>/dev/null ||
19229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19231 /^X\(\/\/\)$/{ s//\1/; q; }
19232 /^X\(\/\).*/{ s//\1/; q; }
19235 test ! -n "$as_dirs" || mkdir
$as_dirs
19236 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19237 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19238 { (exit 1); exit 1; }; }; }
19242 if test "$ac_dir" != .
; then
19243 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19244 # A "../" for each directory in $ac_dir_suffix.
19245 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19247 ac_dir_suffix
= ac_top_builddir
=
19251 .
) # No --srcdir option. We are building in place.
19253 if test -z "$ac_top_builddir"; then
19256 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19258 [\\/]* | ?
:[\\/]* ) # Absolute path.
19259 ac_srcdir
=$srcdir$ac_dir_suffix;
19260 ac_top_srcdir
=$srcdir ;;
19261 *) # Relative path.
19262 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19263 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19265 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19267 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19268 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19269 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19270 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19274 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19275 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19278 if test x
"$ac_file" != x-
; then
19279 { echo "$as_me:$LINENO: creating $ac_file" >&5
19280 echo "$as_me: creating $ac_file" >&6;}
19283 # Let's still pretend it is `configure' which instantiates (i.e., don't
19284 # use $as_me), people would be surprised to read:
19285 # /* config.h. Generated by config.status. */
19286 if test x
"$ac_file" = x-
; then
19289 configure_input
="$ac_file. "
19291 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19292 sed 's,.*/,,'` by configure."
19294 # First look for the input files in the build tree, otherwise in the
19296 ac_file_inputs
=`IFS=:
19297 for f in $ac_file_in; do
19299 -) echo $tmp/stdin ;;
19301 # Absolute (can't be DOS-style, as IFS=:)
19302 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19303 echo "$as_me: error: cannot find input file: $f" >&2;}
19304 { (exit 1); exit 1; }; }
19307 if test -f "$f"; then
19310 elif test -f "$srcdir/$f"; then
19315 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19316 echo "$as_me: error: cannot find input file: $f" >&2;}
19317 { (exit 1); exit 1; }; }
19320 done` ||
{ (exit 1); exit 1; }
19322 cat >>$CONFIG_STATUS <<_ACEOF
19326 cat >>$CONFIG_STATUS <<\_ACEOF
19328 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19329 s
,@configure_input@
,$configure_input,;t t
19330 s
,@srcdir@
,$ac_srcdir,;t t
19331 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19332 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19333 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19334 s
,@builddir@
,$ac_builddir,;t t
19335 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19336 s
,@top_builddir@
,$ac_top_builddir,;t t
19337 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19338 s
,@INSTALL@
,$ac_INSTALL,;t t
19339 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19341 if test x"$ac_file" != x-; then
19342 mv $tmp/out $ac_file
19350 cat >>$CONFIG_STATUS <<\_ACEOF
19353 # CONFIG_HEADER section.
19356 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19357 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19359 # ac_d sets the value in "#define NAME VALUE" lines.
19360 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19361 ac_dB
='[ ].*$,\1#\2'
19364 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19365 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19366 ac_uB
='$,\1#\2define\3'
19370 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19373 - |
*:- |
*:-:* ) # input from stdin
19375 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19376 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19377 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19378 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19379 * ) ac_file_in
=$ac_file.
in ;;
19382 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19383 echo "$as_me: creating $ac_file" >&6;}
19385 # First look for the input files in the build tree, otherwise in the
19387 ac_file_inputs
=`IFS=:
19388 for f in $ac_file_in; do
19390 -) echo $tmp/stdin ;;
19392 # Absolute (can't be DOS-style, as IFS=:)
19393 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19394 echo "$as_me: error: cannot find input file: $f" >&2;}
19395 { (exit 1); exit 1; }; }
19398 if test -f "$f"; then
19401 elif test -f "$srcdir/$f"; then
19406 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19407 echo "$as_me: error: cannot find input file: $f" >&2;}
19408 { (exit 1); exit 1; }; }
19411 done` ||
{ (exit 1); exit 1; }
19412 # Remove the trailing spaces.
19413 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19417 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19418 # `conftest.undefs', that substitutes the proper values into
19419 # config.h.in to produce config.h. The first handles `#define'
19420 # templates, and the second `#undef' templates.
19421 # And first: Protect against being on the right side of a sed subst in
19422 # config.status. Protect against being in an unquoted here document
19423 # in config.status.
19424 rm -f conftest.defines conftest.undefs
19425 # Using a here document instead of a string reduces the quoting nightmare.
19426 # Putting comments in sed scripts is not portable.
19428 # `end' is used to avoid that the second main sed command (meant for
19429 # 0-ary CPP macros) applies to n-ary macro definitions.
19430 # See the Autoconf documentation for `clear'.
19431 cat >confdef2sed.
sed <<\_ACEOF
19436 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19438 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19441 # If some macros were called several times there might be several times
19442 # the same #defines, which is useless. Nevertheless, we may not want to
19443 # sort them, since we want the *last* AC-DEFINE to be honored.
19444 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19445 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19446 rm -f confdef2sed.sed
19448 # This sed command replaces #undef with comments. This is necessary, for
19449 # example, in the case of _POSIX_SOURCE, which is predefined and required
19450 # on some systems where configure will not decide to define it.
19451 cat >>conftest.undefs <<\_ACEOF
19452 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19455 # Break up conftest.defines because some shells have a limit on the size
19456 # of here documents, and old seds have small limits too (100 cmds).
19457 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19458 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19459 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19460 echo ' :' >>$CONFIG_STATUS
19461 rm -f conftest.tail
19462 while grep . conftest.defines >/dev/null
19464 # Write a limited-size here document to $tmp/defines.sed.
19465 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19466 # Speed up: don't consider the non `#define' lines.
19467 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19468 # Work around the forget-to-reset-the-flag bug.
19469 echo 't clr' >>$CONFIG_STATUS
19470 echo ': clr' >>$CONFIG_STATUS
19471 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19473 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19475 mv $tmp/out $tmp/in
19477 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19478 rm -f conftest.defines
19479 mv conftest.
tail conftest.defines
19481 rm -f conftest.defines
19482 echo ' fi # grep' >>$CONFIG_STATUS
19483 echo >>$CONFIG_STATUS
19485 # Break up conftest.undefs because some shells have a limit on the size
19486 # of here documents, and old seds have small limits too (100 cmds).
19487 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19488 rm -f conftest.
tail
19489 while grep . conftest.undefs
>/dev
/null
19491 # Write a limited-size here document to $tmp/undefs.sed.
19492 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19493 # Speed up: don't consider the non
`#undef'
19494 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19495 # Work around the forget-to-reset-the-flag bug.
19496 echo 't clr' >>$CONFIG_STATUS
19497 echo ': clr' >>$CONFIG_STATUS
19498 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19500 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19502 mv $tmp/out $tmp/in
19504 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19505 rm -f conftest.undefs
19506 mv conftest.tail conftest.undefs
19508 rm -f conftest.undefs
19510 cat >>$CONFIG_STATUS <<\_ACEOF
19511 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19512 # use $as_me), people would be surprised to read:
19513 # /* config.h. Generated by config.status. */
19514 if test x
"$ac_file" = x-
; then
19515 echo "/* Generated by configure. */" >$tmp/config.h
19517 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19519 cat $tmp/in >>$tmp/config.h
19521 if test x
"$ac_file" != x-
; then
19522 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19523 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19524 echo "$as_me: $ac_file is unchanged" >&6;}
19526 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19527 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19528 X"$ac_file" : 'X\(//\)[^/]' \| \
19529 X"$ac_file" : 'X\(//\)$' \| \
19530 X"$ac_file" : 'X\(/\)' \| \
19531 . : '\(.\)' 2>/dev/null ||
19533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19535 /^X\(\/\/\)$/{ s//\1/; q; }
19536 /^X\(\/\).*/{ s//\1/; q; }
19538 { if $as_mkdir_p; then
19543 while test ! -d "$as_dir"; do
19544 as_dirs
="$as_dir $as_dirs"
19545 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19547 X"$as_dir" : 'X\(//\)[^/]' \| \
19548 X"$as_dir" : 'X\(//\)$' \| \
19549 X"$as_dir" : 'X\(/\)' \| \
19550 . : '\(.\)' 2>/dev/null ||
19552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19554 /^X\(\/\/\)$/{ s//\1/; q; }
19555 /^X\(\/\).*/{ s//\1/; q; }
19558 test ! -n "$as_dirs" || mkdir
$as_dirs
19559 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19560 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19561 { (exit 1); exit 1; }; }; }
19564 mv $tmp/config.h
$ac_file
19568 rm -f $tmp/config.h
19572 cat >>$CONFIG_STATUS <<\_ACEOF
19575 # CONFIG_COMMANDS section.
19577 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19578 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19579 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19580 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19581 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19582 X"$ac_dest" : 'X\(//\)[^/]' \| \
19583 X"$ac_dest" : 'X\(//\)$' \| \
19584 X"$ac_dest" : 'X\(/\)' \| \
19585 . : '\(.\)' 2>/dev/null ||
19587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19589 /^X\(\/\/\)$/{ s//\1/; q; }
19590 /^X\(\/\).*/{ s//\1/; q; }
19594 if test "$ac_dir" != .
; then
19595 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19596 # A "../" for each directory in $ac_dir_suffix.
19597 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19599 ac_dir_suffix
= ac_top_builddir
=
19603 .
) # No --srcdir option. We are building in place.
19605 if test -z "$ac_top_builddir"; then
19608 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19610 [\\/]* | ?
:[\\/]* ) # Absolute path.
19611 ac_srcdir
=$srcdir$ac_dir_suffix;
19612 ac_top_srcdir
=$srcdir ;;
19613 *) # Relative path.
19614 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19615 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19617 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19619 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19620 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19621 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19622 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19625 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19626 echo "$as_me: executing $ac_dest commands" >&6;}
19630 ### Make the necessary directories, if they don't exist.
19631 for dir
in etc lisp
; do
19632 test -d ${dir} || mkdir
${dir}
19635 # Build src/Makefile from ${srcdir}/src/Makefile.c
19636 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19637 # This must be done after src/config.h is built, since we rely on that file.
19639 # Now get this: Some word that is part of the ${srcdir} directory name
19640 # or the ${configuration} value might, just might, happen to be an
19641 # identifier like `sun4' or `i386' or something, and be predefined by
19642 # the C preprocessor to some helpful value like 1, or maybe the empty
19643 # string. Needless to say consequent macro substitutions are less
19644 # than conducive to the makefile finding the correct directory.
19645 undefs
="`echo $top_srcdir $configuration $canonical |
19646 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19647 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19650 echo creating src
/epaths.h
19651 ${MAKE-make} epaths-force
19653 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19654 # `..' to `. .' unless invoked with -traditional
19656 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19657 CPPFLAGS
="$CPPFLAGS -traditional"
19660 echo creating lib-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 echo creating src
/Makefile
19678 rm -f junk.c junk1.c junk2.c
19679 sed -e '/start of cpp stuff/q' \
19680 < Makefile.c
> junk1.c
19681 sed -e '1,/start of cpp stuff/d'\
19682 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19683 < Makefile.c
> junk.c
19684 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19685 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19686 cat junk1.c junk2.c
> Makefile.new
19687 rm -f junk.c junk1.c junk2.c
19688 chmod 444 Makefile.new
19689 mv -f Makefile.new Makefile
19692 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19693 echo creating src
/.gdbinit
19694 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19697 # This is how we know whether to re-run configure in certain cases.
19698 touch src
/config.stamp
19705 cat >>$CONFIG_STATUS <<\_ACEOF
19707 { (exit 0); exit 0; }
19709 chmod +x
$CONFIG_STATUS
19710 ac_clean_files
=$ac_clean_files_save
19713 # configure is writing to config.log, and then calls config.status.
19714 # config.status does its own redirection, appending to config.log.
19715 # Unfortunately, on DOS this fails, as config.log is still kept open
19716 # by configure, so config.status won't be able to write to it; its
19717 # output is simply discarded. So we exec the FD to /dev/null,
19718 # effectively closing config.log, so it can be properly (re)opened and
19719 # appended to by config.status. When coming back to configure, we
19720 # need to make the FD available again.
19721 if test "$no_create" != yes; then
19723 ac_config_status_args
=
19724 test "$silent" = yes &&
19725 ac_config_status_args
="$ac_config_status_args --quiet"
19727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19730 # would make configure fail if this is the last instruction.
19731 $ac_cs_success ||
{ (exit 1); exit 1; }