2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="src/lisp.h"
274 ac_config_libobj_dir
=src
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
849 if test -n "$ac_init_help"; then
854 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
855 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
856 --enable-carbon-app[=DIR
] [DIR
=/Application
]
857 specify
install directory
for Emacs.app on Mac OS X
858 --disable-largefile omit support
for large files
861 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
862 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
863 --without-gcc don
't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP
mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version
5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server
host
868 --without-sound don
't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don
't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
884 Some influential environment variables
:
885 CC C compiler
command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
888 nonstandard directory
<lib dir
>
889 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
890 headers
in a nonstandard directory
<include dir
>
893 Use these variables to override the choices made by
`configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
983 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
984 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
985 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
986 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
987 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
989 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
990 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
992 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
993 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
994 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
995 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
996 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
997 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
998 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1031 ac_must_keep_next=false
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 -* ) ac_must_keep_next=true ;;
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close
' the trap.
1078 trap 'exit_status
=$?
1079 # Save into config.log some information that might help in debugging.
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1089 # The following way of writing the cache mishandles newlines in values,
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1112 for ac_var
in $ac_subst_vars
1114 eval ac_val
=$
`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1119 if test -n "$ac_subst_files"; then
1126 for ac_var
in $ac_subst_files
1128 eval ac_val
=$
`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -s confdefs.h
; then
1141 sed "/^$/d" confdefs.h |
sort
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1148 rm -f core core.
* *.core
&&
1149 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's
/^
/|
/' "$ac_site_file" >&5
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1224 # Check that the precious variables saved in the cache have kept the same
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1237 ac_cache_corrupted=: ;;
1239 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1246 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1271 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1278 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it
if useless.
1309 cat <<\_ACEOF
>conftest.
sed
1310 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1312 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1316 lispdir
='${datadir}/emacs/${version}/lisp'
1317 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath
='${locallisppath}:${lispdir}'
1320 etcdir
='${datadir}/emacs/${version}/etc'
1321 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir
='${datadir}/emacs/${version}/etc'
1323 gamedir
='${localstatedir}/games/emacs'
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h
<<\_ACEOF
1339 #define MAIL_USE_POP 1
1345 cat >>confdefs.h
<<\_ACEOF
1346 #define MAIL_USE_POP 1
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval
="$with_kerberos"
1355 cat >>confdefs.h
<<\_ACEOF
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval
="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1368 cat >>confdefs.h
<<\_ACEOF
1375 cat >>confdefs.h
<<\_ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval
="$with_hesiod"
1385 cat >>confdefs.h
<<\_ACEOF
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval
="$with_sound"
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval
="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye |
yes ) val
=athena
;;
1405 l | lu | luc | luci | lucid
) val
=lucid
;;
1406 a |
at | ath | athe | athen | athena
) val
=athena
;;
1407 m | mo | mot | moti | motif
) val
=motif
;;
1408 g | gt | gtk
) val
=gtk
;;
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval
="$with_jpeg"
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval
="$with_tiff"
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval
="$with_pkg_config_prog"
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval
="$with_toolkit_scroll_bars"
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval
="$with_carbon"
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval
="$enable_carbon_app"
1485 carbon_appdir_x
=${enableval}
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1506 srcdir
="`(cd ${srcdir}; pwd)`"
1509 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1528 extrasub
='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1541 ### Canonicalize the configuration name.
1544 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1545 if test -f $ac_dir/install-sh
; then
1547 ac_install_sh
="$ac_aux_dir/install-sh -c"
1549 elif test -f $ac_dir/install.sh
; then
1551 ac_install_sh
="$ac_aux_dir/install.sh -c"
1553 elif test -f $ac_dir/shtool
; then
1555 ac_install_sh
="$ac_aux_dir/shtool install -c"
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_build_alias
=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias
=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1595 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 ac_cv_host_alias
=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias
=$ac_cv_build_alias
1608 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1617 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 configuration
=${host_alias-$host}
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1650 machine
='' opsys
='' unported
=no
1651 case "${canonical}" in
1656 case "${canonical}" in
1657 alpha
*-*-freebsd*) machine
=alpha
;;
1658 i
[3456]86-*-freebsd*) machine
=intel386
;;
1665 case "${canonical}" in
1666 alpha
*-*-netbsd*) machine
=alpha
;;
1667 i
[3456]86-*-netbsd*) machine
=intel386
;;
1669 # This is somewhat bogus.
1670 machine
=hp9000s300
;;
1671 powerpc-apple-netbsd
*) machine
=macppc
;;
1672 mips-
*-netbsd*) machine
=pmax
;;
1673 mipsel-
*-netbsd*) machine
=pmax
;;
1674 mipseb-
*-netbsd*) machine
=pmax
;;
1675 ns32k-
*-netbsd*) machine
=ns32000
;;
1676 powerpc-
*-netbsd*) machine
=macppc
;;
1677 sparc
*-*-netbsd*) machine
=sparc
;;
1678 vax-
*-netbsd*) machine
=vax
;;
1679 arm-
*-netbsd*) machine
=arm
;;
1686 case "${canonical}" in
1687 alpha
*-*-openbsd*) machine
=alpha
;;
1688 i386-
*-openbsd*) machine
=intel386
;;
1689 m68k-
*-openbsd*) machine
=hp9000s300
;;
1690 mipsel-
*-openbsd*) machine
=pmax
;;
1691 ns32k-
*-openbsd*) machine
=ns32000
;;
1692 sparc-
*-openbsd*) machine
=sparc
;;
1693 vax-
*-openbsd*) machine
=vax
;;
1698 arm-acorn-riscix1.1
* )
1699 machine
=acorn opsys
=riscix1-1
1701 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine
=acorn opsys
=riscix12
1710 case "${canonical}" in
1711 i
[345]86-*-bsdi*) machine
=intel386
;;
1712 sparc-
*-bsdi*) machine
=sparc
;;
1713 powerpc-
*-bsdi*) machine
=macppc
;;
1715 case "${canonical}" in
1716 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1717 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1718 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1719 *-*-bsdi3* ) opsys
=bsdos3
;;
1720 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1731 machine
=alliant4 opsys
=bsd4-2
1734 machine
=alliant-2800 opsys
=bsd4-3
1737 ## Alpha (DEC) machines.
1739 machine
=alpha opsys
=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1742 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP
=/usr
/bin
/cpp
1748 case "${canonical}" in
1749 alpha
*-dec-osf[5-9]*)
1754 alpha
*-*-linux-gnu* )
1755 machine
=alpha opsys
=gnu-linux
1759 machine
=arm opsys
=gnu-linux
1764 machine
=macppc opsys
=gnu-linux
1769 machine
=altos opsys
=usg5-2
1774 machine
=amdahl opsys
=usg5-2-2
1777 ## Apollo, Domain/OS
1779 machine
=apollo opsys
=bsd4-3
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1784 machine
=att3b opsys
=usg5-2-2
1787 ## AT&T 3b1 - The Mighty Unix PC!
1789 machine
=7300 opsys
=usg5-2-2
1794 machine
=ibmrs6000 opsys
=aix3-2
1799 machine
=dpx2 opsys
=usg5-3
1804 machine
=sps7 opsys
=usg5-2
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd
* )
1814 machine
=celerity opsys
=bsd4-2
1818 ## What operating systems does this chip run that Emacs has been
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1827 mips-compaq-nonstopux
* )
1828 machine
=nonstopux opsys
=nonstopux
1832 *-convex-bsd* |
*-convex-convexos* )
1833 machine
=convex opsys
=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP
="cc -E -P"
1839 i
[3456]86-cubix-sysv* )
1840 machine
=intel386 opsys
=usg5-3
1844 cydra
*-cydrome-sysv* )
1845 machine
=cydra5 opsys
=usg5-3
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1855 machine
=aviion opsys
=dgux4
1857 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine
=aviion opsys
=dgux5-4-3
1862 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1863 machine
=aviion opsys
=dgux5-4r2
1866 machine
=aviion opsys
=dgux
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i
[345]86-dg-dguxR4* )
1873 machine
=aviion-intel opsys
=dgux4
1877 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1878 machine
=pmax opsys
=bsd4-2
1880 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1881 machine
=pmax opsys
=bsd4-3
1884 machine
=pmax opsys
=ultrix4-3
1887 machine
=pmax opsys
=osf1
1889 mips-dec-mach_bsd4.3
* )
1890 machine
=pmax opsys
=mach-bsd4-3
1893 ## Motorola Delta machines
1894 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1895 machine
=delta opsys
=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1898 if test -s /etc
/167config
1899 then CC
="gnucc -m68040"
1900 else CC
="gnucc -m68881"
1903 if test -z "`type gcc | grep 'not found'`"
1909 m88k-motorola-sysv4
* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine
=delta88k opsys
=usg5-4-2
1916 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1917 machine
=delta88k opsys
=usg5-3
1922 machine
=dual opsys
=usg5-2
1924 m68
*-dual-uniplus* )
1925 machine
=dual opsys
=unipl5-2
1930 machine
=elxsi opsys
=usg5-2
1935 machine
=ns16000 opsys
=umax
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1941 ## Gould Power Node and NP1
1943 machine
=gould opsys
=bsd4-2
1946 machine
=gould opsys
=bsd4-3
1949 machine
=gould-np1 opsys
=bsd4-3
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1958 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1960 NON_GNU_CPP
="/lib/cpp"
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1964 machine
=nh3000 opsys
=cxux
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix
)
1968 machine
=nh6000 opsys
=powerunix
1969 NON_GNU_CPP
="cc -Xo -E -P"
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1
-hitachi-hiuxmpp* )
1973 machine
=sr2k opsys
=hiuxmpp
1975 hppa1.1
-hitachi-hiuxwe2* )
1976 machine
=sr2k opsys
=hiuxwe2
1979 xps
*-honeywell-sysv* )
1980 machine
=xps100 opsys
=usg5-2
1983 ## HP 9000 series 200 or 300
1985 machine
=hp9000s300 opsys
=bsd4-3
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1993 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1994 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1995 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1996 *) machine
=hp9000s300 opsys
=hpux
;;
2000 ## HP 9000 series 700 and 800, running HP/UX
2002 machine
=hp800 opsys
=hpux
2005 machine
=hp800 opsys
=hpux8
2007 hppa
*-hp-hpux9shr* )
2008 machine
=hp800 opsys
=hpux9shr
2011 machine
=hp800 opsys
=hpux9
2013 hppa
*-hp-hpux10.2
* )
2014 machine
=hp800 opsys
=hpux10-20
2017 machine
=hp800 opsys
=hpux10
2019 hppa
*-hp-hpux1[1-9]* )
2020 machine
=hp800 opsys
=hpux11
2023 hppa
*-*-linux-gnu* )
2024 machine
=hp800 opsys
=gnu-linux
2027 ## HP 9000 series 700 and 800, running HP/UX
2029 ## Cross-compilation? Nah!
2030 case "`uname -r`" in
2031 ## Someone's system reports A.B8.05 for this.
2032 ## I wonder what other possibilities there are.
2033 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2034 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2035 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2036 *) machine
=hp800 opsys
=hpux10
;;
2040 machine
=hp800 opsys
=nextstep
2045 machine
=orion opsys
=bsd4-2
2047 clipper-orion-bsd
* )
2048 machine
=orion105 opsys
=bsd4-2
2052 i
[3456]86-ibm-aix1.1
* )
2053 machine
=ibmps2-aix opsys
=usg5-2-2
2055 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2056 machine
=ibmps2-aix opsys
=usg5-3
2059 machine
=ibm370aix opsys
=usg5-3
2062 machine
=ibms390 opsys
=gnu-linux
2064 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2065 machine
=ibmrs6000 opsys
=aix3-1
2067 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2068 machine
=ibmrs6000 opsys
=aix3-2-5
2070 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2071 machine
=ibmrs6000 opsys
=aix4-1
2073 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2074 machine
=ibmrs6000 opsys
=aix4-2
2076 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2077 machine
=ibmrs6000 opsys
=aix4-2
2079 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2080 machine
=ibmrs6000 opsys
=aix4
2082 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2083 machine
=ibmrs6000 opsys
=aix4-1
2085 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2086 machine
=ibmrs6000 opsys
=aix3-2
2089 machine
=ibmrt opsys
=bsd4-3
2092 machine
=ibmrt opsys
=bsd4-2
2095 machine
=ibmrt opsys
=bsd4-3
2098 machine
=ibmrt opsys
=bsd4-2
2101 machine
=ibmrt opsys
=bsd4-3
2104 machine
=ibmrt opsys
=bsd4-3
2107 machine
=ibmrt-aix opsys
=usg5-2-2
2110 ## Integrated Solutions `Optimum V'
2112 machine
=isi-ov opsys
=bsd4-2
2115 machine
=isi-ov opsys
=bsd4-3
2118 ## Intel 386 machines where we do care about the manufacturer
2119 i
[3456]86-intsys-sysv* )
2120 machine
=is386 opsys
=usg5-2-2
2124 i
[3456]86-prime-sysv* )
2125 machine
=i386 opsys
=usg5-3
2128 ## Sequent Symmetry running Dynix
2129 i
[3456]86-sequent-bsd* )
2130 machine
=symmetry opsys
=bsd4-3
2133 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2134 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2135 machine
=sequent-ptx opsys
=ptx4
2136 NON_GNU_CPP
=/lib
/cpp
2139 ## Sequent Symmetry running DYNIX/ptx
2140 ## Use the old cpp rather than the newer ANSI one.
2141 i
[3456]86-sequent-ptx* )
2142 machine
=sequent-ptx opsys
=ptx
2143 NON_GNU_CPP
="/lib/cpp"
2146 ## ncr machine running svr4.3.
2147 i
[3456]86-ncr-sysv4.3
)
2148 machine
=ncr386 opsys
=usg5-4-3
2151 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2152 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2153 i
[3456]86-ncr-sysv* )
2154 machine
=ncr386 opsys
=usg5-4-2
2157 ## Intel Paragon OSF/1
2159 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2164 machine
=i860 opsys
=usg5-4
2165 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2166 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2169 ## Macintosh PowerPC
2170 powerpc
*-*-linux-gnu* )
2171 machine
=macppc opsys
=gnu-linux
2174 ## Masscomp machines
2175 m68
*-masscomp-rtu* )
2176 machine
=masscomp opsys
=rtu
2179 ## Megatest machines
2180 m68
*-megatest-bsd* )
2181 machine
=mega68 opsys
=bsd4-2
2184 ## Workstations sold by MIPS
2185 ## This is not necessarily all workstations using the MIPS processor -
2186 ## Irises are produced by SGI, and DECstations by DEC.
2188 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2189 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2190 ## it gives for choosing between the alternatives seems to be "Use
2191 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2192 ## the BSD world." I'll assume that these are instructions for
2193 ## handling two odd situations, and that every other situation
2194 ## should use mips.h and usg5-2-2, they being listed first.
2197 ## Fall through to the general code at the bottom to decide on the OS.
2199 mips-mips-riscos4
* )
2200 machine
=mips4 opsys
=bsd4-3
2201 NON_GNU_CC
="cc -systype bsd43"
2202 NON_GNU_CPP
="cc -systype bsd43 -E"
2204 mips-mips-riscos5
* )
2205 machine
=mips4 opsys
=riscos5
2206 NON_GNU_CC
="cc -systype bsd43"
2207 NON_GNU_CPP
="cc -systype bsd43 -E"
2210 machine
=mips opsys
=bsd4-3
2213 machine
=mips opsys
=usg5-2-2
2217 m68
*-next-* | m68k-
*-nextstep* )
2218 machine
=m68k opsys
=nextstep
2221 ## The complete machine from National Semiconductor
2223 machine
=ns32000 opsys
=usg5-2
2227 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2228 machine
=tower32 opsys
=usg5-2-2
2230 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2231 machine
=tower32v3 opsys
=usg5-3
2236 machine
=ews4800 opsys
=ux4800
2239 ## Nixdorf Targon 31
2240 m68
*-nixdorf-sysv* )
2241 machine
=targon31 opsys
=usg5-2-2
2246 machine
=nu opsys
=usg5-2
2251 machine
=plexus opsys
=usg5-2
2255 ## I don't really have any idea what sort of processor the Pyramid has,
2256 ## so I'm assuming it is its own architecture.
2257 pyramid-pyramid-bsd
* )
2258 machine
=pyramid opsys
=bsd4-2
2262 ns32k-sequent-bsd4.2
* )
2263 machine
=sequent opsys
=bsd4-2
2265 ns32k-sequent-bsd4.3
* )
2266 machine
=sequent opsys
=bsd4-3
2270 mips-siemens-sysv
* | mips-sni-sysv
*)
2271 machine
=mips-siemens opsys
=usg5-4
2272 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2273 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2276 ## Silicon Graphics machines
2277 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2279 machine
=irist opsys
=iris3-5
2281 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2282 machine
=irist opsys
=iris3-6
2286 machine
=iris4d opsys
=irix3-3
2289 machine
=iris4d opsys
=irix4-0
2292 machine
=iris4d opsys
=irix6-5
2293 # Without defining _LANGUAGE_C, things get masked out in the headers
2294 # so that, for instance, grepping for `free' in stdlib.h fails and
2295 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2296 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2297 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2300 machine
=iris4d opsys
=irix6-0
2301 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2302 # but presumably it does no harm.
2303 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2304 # -32 probably isn't necessary in later v.6s -- anyone know which?
2305 NON_GCC_TEST_OPTIONS
=-32
2307 mips-sgi-irix5.
[01]* )
2308 machine
=iris4d opsys
=irix5-0
2310 mips-sgi-irix5
* | mips-sgi-irix
* )
2311 machine
=iris4d opsys
=irix5-2
2316 machine
=news opsys
=bsd4-2
2319 machine
=news opsys
=bsd4-3
2321 m68
*-sony-newsos3* | m68
*-sony-news3*)
2322 machine
=news opsys
=bsd4-3
2324 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2325 machine
=news-risc opsys
=bsd4-3
2327 mips-sony-newsos6
* )
2328 machine
=news-r6 opsys
=newsos6
2331 machine
=news-risc opsys
=newsos5
2336 machine
=stride opsys
=usg5-2
2340 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2341 machine
=sparc opsys
=gnu-linux
2344 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2345 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2346 | rs6000-
*-solaris2*)
2347 case "${canonical}" in
2348 m68
*-sunos1* ) machine
=sun1
;;
2349 m68
*-sunos2* ) machine
=sun2
;;
2350 m68
* ) machine
=sun3
;;
2351 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2352 i
[3456]86-*-* ) machine
=intel386
;;
2353 powerpcle
* ) machine
=powerpcle
;;
2354 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2355 sparc
* ) machine
=sparc
;;
2358 case "${canonical}" in
2359 ## The Sun386 didn't get past 4.0.
2360 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2361 *-sunos4.0
* ) opsys
=sunos4-0
;;
2362 *-sunos4.1.
[3-9]*noshare
)
2363 ## This name is sunos413 instead of sunos4-1-3
2364 ## to avoid a file name conflict on MSDOS.
2366 NON_GNU_CPP
=/usr
/lib
/cpp
2367 NON_GCC_TEST_OPTIONS
=-Bstatic
2368 GCC_TEST_OPTIONS
=-static
2370 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2372 NON_GNU_CPP
=/usr
/lib
/cpp
2374 *-sunos4* |
*-sunos )
2376 NON_GCC_TEST_OPTIONS
=-Bstatic
2377 GCC_TEST_OPTIONS
=-static
2379 *-sunos5.3
* |
*-solaris2.3
* )
2381 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2383 *-sunos5.4
* |
*-solaris2.4
* )
2385 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2388 *-sunos5.5
* |
*-solaris2.5
* )
2390 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2393 *-sunos5.6
* |
*-solaris2.6
* )
2395 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2398 *-sunos5* |
*-solaris* )
2400 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2404 ## Watch out for a compiler that we know will not work.
2405 case "${canonical}" in
2406 *-solaris* |
*-sunos5* )
2407 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2408 ## /usr/ucb/cc doesn't work;
2409 ## we should find some other compiler that does work.
2417 machine
=sparc opsys
=nextstep
2421 m68
*-tadpole-sysv* )
2422 machine
=tad68k opsys
=usg5-3
2426 tahoe-tahoe-bsd4.2
* )
2427 machine
=tahoe opsys
=bsd4-2
2429 tahoe-tahoe-bsd4.3
* )
2430 machine
=tahoe opsys
=bsd4-3
2433 ## Tandem Integrity S2
2435 machine
=tandem-s2 opsys
=usg5-3
2439 m88k-tektronix-sysv3
* )
2440 machine
=tekxd88 opsys
=usg5-3
2443 ## Tektronix 16000 box (6130?)
2444 ns16k-tektronix-bsd
* )
2445 machine
=ns16000 opsys
=bsd4-2
2448 ## src/m/tek4300.h hints that this is a m68k machine.
2449 m68
*-tektronix-bsd* )
2450 machine
=tek4300 opsys
=bsd4-3
2454 ## We seem to have lost the machine-description file titan.h!
2456 machine
=titan opsys
=usg5-3
2459 ## Ustation E30 (SS5E)
2460 m68
*-unisys-uniplus* )
2461 machine
=ustation opsystem
=unipl5-2
2467 case "${canonical}" in
2468 *-bsd4.1
* ) opsys
=bsd4-1
;;
2469 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2470 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2471 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2472 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2473 *-vms* ) opsys
=vms
;;
2479 ns16k-whitechapel-
* )
2481 ## We don't know what sort of OS runs on these; we'll let the
2482 ## operating system guessing code below try.
2487 machine
=wicat opsys
=usg5-2
2492 machine
=ia64 opsys
=gnu-linux
2495 ## Intel 386 machines where we don't care about the manufacturer
2498 case "${canonical}" in
2499 *-cygwin ) opsys
=cygwin
;;
2500 *-lynxos* ) opsys
=lynxos
;;
2501 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2502 *-isc2.2
* ) opsys
=isc2-2
;;
2503 *-isc4.0
* ) opsys
=isc4-0
;;
2504 *-isc4.
* ) opsys
=isc4-1
2505 GCC_TEST_OPTIONS
=-posix
2506 NON_GCC_TEST_OPTIONS
=-Xp
2508 *-isc* ) opsys
=isc3-0
;;
2509 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2510 *-esix* ) opsys
=esix
;;
2511 *-xenix* ) opsys
=xenix
;;
2512 *-linux-gnu* ) opsys
=gnu-linux
;;
2513 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2514 *-sco3.2v5
* ) opsys
=sco5
2515 NON_GNU_CPP
=/lib
/cpp
2516 # Prevent -belf from being passed to $CPP.
2517 # /lib/cpp does not accept it.
2518 OVERRIDE_CPPFLAGS
=" "
2520 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2521 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2522 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2523 *-386bsd* ) opsys
=386bsd
;;
2524 *-nextstep* ) opsys
=nextstep
;;
2525 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2529 ## m68k Linux-based GNU system
2531 machine
=m68k opsys
=gnu-linux
2534 ## Mips Linux-based GNU system
2535 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2536 machine
=mips opsys
=gnu-linux
2540 sparc-fujitsu-sysv4
* )
2541 machine
=sparc opsys
=uxpds
2542 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2547 f301-fujitsu-uxpv4.1
)
2548 machine
=f301 opsys
=uxpv
2551 ## Darwin / Mac OS X
2552 powerpc-apple-darwin
* )
2553 machine
=powermac opsys
=darwin
2554 # Define CPP as follows to make autoconf work correctly.
2555 CPP
="cc -E -traditional-cpp"
2558 ## AMD x86-64 Linux-based GNU system
2559 x86_64-
*-linux-gnu* )
2560 machine
=amdx86-64 opsys
=gnu-linux
2568 ### If the code above didn't choose an operating system, just choose
2569 ### an operating system based on the configuration name. You really
2570 ### only want to use this when you have no idea what the right
2571 ### operating system is; if you know what operating systems a machine
2572 ### runs, it's cleaner to make it explicit in the case statement
2574 if test x
"${opsys}" = x
; then
2575 case "${canonical}" in
2576 *-gnu* ) opsys
=gnu
;;
2577 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2578 *-bsd4.2
) opsys
=bsd4-2
;;
2579 *-bsd4.3
) opsys
=bsd4-3
;;
2580 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2581 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2582 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2583 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2584 *-sysv4.2uw
* ) opsys
=unixware
;;
2585 *-sysv5uw* ) opsys
=unixware
;;
2586 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2587 *-sysv4.1
* |
*-sysvr4.1
* )
2588 NON_GNU_CPP
=/usr
/lib
/cpp
2590 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2591 if [ x
$NON_GNU_CPP = x
]; then
2592 if [ -f /usr
/ccs
/lib
/cpp
]; then
2593 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2595 NON_GNU_CPP
=/lib
/cpp
2599 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2608 if test $unported = yes; then
2609 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2610 Check \`etc/MACHINES' for recognized configuration names." >&5
2611 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2612 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2613 { (exit 1); exit 1; }; }
2616 machfile
="m/${machine}.h"
2617 opsysfile
="s/${opsys}.h"
2620 #### Choose a compiler.
2621 test -n "$CC" && cc_specified
=yes
2623 # Save the value of CFLAGS that the user specified.
2624 SPECIFIED_CFLAGS
="$CFLAGS"
2627 "yes" ) CC
="gcc" GCC
=yes ;;
2628 "no" ) : ${CC=cc} ;;
2632 ac_cpp
='$CPP $CPPFLAGS'
2633 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2638 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2639 echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC
="$CC" # Let the user override the test.
2647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir
=.
2652 for ac_exec_ext
in '' $ac_executable_extensions; do
2653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$CC"; then
2665 echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6
2668 echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6
2673 if test -z "$ac_cv_prog_CC"; then
2675 # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy gcc
; ac_word
=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir
=.
2690 for ac_exec_ext
in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_CC
="gcc"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2702 if test -n "$ac_ct_CC"; then
2703 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2704 echo "${ECHO_T}$ac_ct_CC" >&6
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2715 if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2718 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2719 echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC
="$CC" # Let the user override the test.
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir
=.
2732 for ac_exec_ext
in '' $ac_executable_extensions; do
2733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$CC"; then
2745 echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6
2748 echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2753 if test -z "$ac_cv_prog_CC"; then
2755 # Extract the first word of "cc", so it can be a program name with args.
2756 set dummy cc
; ac_word
=$2
2757 echo "$as_me:$LINENO: checking for $ac_word" >&5
2758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir
=.
2770 for ac_exec_ext
in '' $ac_executable_extensions; do
2771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_ac_ct_CC
="cc"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2784 echo "${ECHO_T}$ac_ct_CC" >&6
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2796 if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798 set dummy cc
; ac_word
=$2
2799 echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC
="$CC" # Let the user override the test.
2808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir
=.
2813 for ac_exec_ext
in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected
=yes
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy
$ac_cv_prog_CC
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2835 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2841 if test -n "$CC"; then
2842 echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2855 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC
="$CC" # Let the user override the test.
2864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir
=.
2869 for ac_exec_ext
in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test -n "$CC"; then
2882 echo "$as_me:$LINENO: result: $CC" >&5
2883 echo "${ECHO_T}$CC" >&6
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2889 test -n "$CC" && break
2892 if test -z "$CC"; then
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy
$ac_prog; ac_word
=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test -n "$ac_ct_CC"; then
2904 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir
=.
2911 for ac_exec_ext
in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_ac_ct_CC
="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2925 echo "${ECHO_T}$ac_ct_CC" >&6
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 test -n "$ac_ct_CC" && break
2940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: no acceptable C compiler found in \$PATH
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2946 # Provide some information about the compiler.
2947 echo "$as_me:$LINENO:" \
2948 "checking for C compiler version" >&5
2949 ac_compiler
=`set X $ac_compile; echo $2`
2950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2951 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2956 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2961 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2966 cat >conftest.
$ac_ext <<_ACEOF
2967 #line $LINENO "configure"
2970 cat confdefs.h
>>conftest.
$ac_ext
2971 cat >>conftest.
$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2982 ac_clean_files_save
=$ac_clean_files
2983 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2984 # Try to create an executable without -o first, disregard a.out.
2985 # It will help us diagnose broken compilers, and finding out an intuition
2987 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2988 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2989 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2990 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2991 (eval $ac_link_default) 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; then
2995 # Find the output, starting from the most likely. This scheme is
2996 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2999 # Be careful to initialize this variable, since it used to be cached.
3000 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3002 # b.out is created by i960 compilers.
3003 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3005 test -f "$ac_file" ||
continue
3007 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3010 # This is the source file.
3013 # We found the default executable, but exeext='' is most
3017 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 # FIXME: I believe we export ac_cv_exeext for Libtool,
3019 # but it would be cool to find out if it's true. Does anybody
3020 # maintain Libtool? --akim.
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.
$ac_ext >&5
3031 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: C compiler cannot create executables
3034 See \`config.log' for more details." >&2;}
3035 { (exit 77); exit 77; }; }
3038 ac_exeext
=$ac_cv_exeext
3039 echo "$as_me:$LINENO: result: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6
3042 # Check the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3045 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3046 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3047 # If not cross compiling, check that we can run a simple program.
3048 if test "$cross_compiling" != yes; then
3049 if { ac_try
='./$ac_file'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3057 if test "$cross_compiling" = maybe
; then
3060 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot run C compiled programs.
3064 If you meant to cross compile, use \`--host'.
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3070 echo "$as_me:$LINENO: result: yes" >&5
3071 echo "${ECHO_T}yes" >&6
3073 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3074 ac_clean_files
=$ac_clean_files_save
3075 # Check the compiler produces executables we can run. If not, either
3076 # the compiler is broken, or we cross compile.
3077 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3079 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3080 echo "${ECHO_T}$cross_compiling" >&6
3082 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085 (eval $ac_link) 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; then
3089 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3090 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3091 # work properly (i.e., refer to `conftest.exe'), while it won't with
3093 for ac_file
in conftest.exe conftest conftest.
*; do
3094 test -f "$ac_file" ||
continue
3096 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3097 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3111 rm -f conftest
$ac_cv_exeext
3112 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3113 echo "${ECHO_T}$ac_cv_exeext" >&6
3115 rm -f conftest.
$ac_ext
3116 EXEEXT
=$ac_cv_exeext
3118 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3119 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3120 if test "${ac_cv_objext+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 cat >conftest.
$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3127 cat confdefs.h
>>conftest.
$ac_ext
3128 cat >>conftest.
$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3139 rm -f conftest.o conftest.obj
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3147 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3148 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.
$ac_ext >&5
3156 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3163 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3165 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3166 echo "${ECHO_T}$ac_cv_objext" >&6
3167 OBJEXT
=$ac_cv_objext
3169 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3170 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3171 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 cat >conftest.
$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3178 cat confdefs.h
>>conftest.
$ac_ext
3179 cat >>conftest.
$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3193 rm -f conftest.
$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try
='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.
$ac_ext >&5
3212 rm -f conftest.
$ac_objext conftest.
$ac_ext
3213 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3216 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3217 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3218 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3219 ac_test_CFLAGS
=${CFLAGS+set}
3220 ac_save_CFLAGS
=$CFLAGS
3222 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3224 if test "${ac_cv_prog_cc_g+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 cat >conftest.
$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3231 cat confdefs.h
>>conftest.
$ac_ext
3232 cat >>conftest.
$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3243 rm -f conftest.
$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try
='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.
$ac_ext >&5
3262 rm -f conftest.
$ac_objext conftest.
$ac_ext
3264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3266 if test "$ac_test_CFLAGS" = set; then
3267 CFLAGS
=$ac_save_CFLAGS
3268 elif test $ac_cv_prog_cc_g = yes; then
3269 if test "$GCC" = yes; then
3275 if test "$GCC" = yes; then
3281 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3282 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 ac_cv_prog_cc_stdc
=no
3288 cat >conftest.
$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3292 cat confdefs.h
>>conftest.
$ac_ext
3293 cat >>conftest.
$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3313 s = g (p, va_arg (v,int));
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 # Don't try gcc -ansi; that turns off useful extensions and
3332 # breaks some systems' header files.
3333 # AIX -qlanglvl=ansi
3334 # Ultrix and OSF/1 -std1
3335 # HP-UX 10.20 and later -Ae
3336 # HP-UX older versions -Aa -D_HPUX_SOURCE
3337 # SVR4 -Xc -D__EXTENSIONS__
3338 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 CC
="$ac_save_CC $ac_arg"
3341 rm -f conftest.
$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cc_stdc
=$ac_arg
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3360 rm -f conftest.
$ac_objext
3362 rm -f conftest.
$ac_ext conftest.
$ac_objext
3367 case "x$ac_cv_prog_cc_stdc" in
3369 echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6 ;;
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3374 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3377 # Some people use a C++ compiler to compile C. Since we use `exit',
3378 # in C++ we need to declare it. In case someone uses the same compiler
3379 # for both compiling C and C++ we need to have the C++ compiler decide
3380 # the declaration of exit, since it's the most demanding environment.
3381 cat >conftest.
$ac_ext <<_ACEOF
3386 rm -f conftest.
$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try
='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 for ac_declaration
in \
3400 'extern "C" void std::exit (int) throw (); using std::exit;' \
3401 'extern "C" void std::exit (int); using std::exit;' \
3402 'extern "C" void exit (int) throw ();' \
3403 'extern "C" void exit (int);' \
3404 'void exit (int);' \
3405 '#include <stdlib.h>'
3407 cat >conftest.
$ac_ext <<_ACEOF
3408 #line $LINENO "configure"
3411 cat confdefs.h
>>conftest.
$ac_ext
3412 cat >>conftest.
$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3424 rm -f conftest.
$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try
='test -s conftest.$ac_objext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.
$ac_ext >&5
3443 rm -f conftest.
$ac_objext conftest.
$ac_ext
3444 cat >conftest.
$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3448 cat confdefs.h
>>conftest.
$ac_ext
3449 cat >>conftest.
$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3460 rm -f conftest.
$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try
='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.
$ac_ext >&5
3478 rm -f conftest.
$ac_objext conftest.
$ac_ext
3481 if test -n "$ac_declaration"; then
3482 echo '#ifdef __cplusplus' >>confdefs.h
3483 echo $ac_declaration >>confdefs.h
3484 echo '#endif' >>confdefs.h
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.
$ac_ext >&5
3492 rm -f conftest.
$ac_objext conftest.
$ac_ext
3494 ac_cpp
='$CPP $CPPFLAGS'
3495 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3500 # On Suns, sometimes $CPP names a directory.
3501 if test -n "$CPP" && test -d "$CPP"; then
3505 #### Some systems specify a CPP to use unless we are using GCC.
3506 #### Now that we know whether we are using GCC, we can decide whether
3507 #### to use that one.
3508 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3513 #### Some systems specify a CC to use unless we are using GCC.
3514 #### Now that we know whether we are using GCC, we can decide whether
3515 #### to use that one.
3516 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3517 test x
$cc_specified != xyes
3522 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3524 CC
="$CC $GCC_TEST_OPTIONS"
3527 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3529 CC
="$CC $NON_GCC_TEST_OPTIONS"
3532 #### Some other nice autoconf tests.
3534 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3535 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3537 if test "$LN_S" = "ln -s"; then
3538 echo "$as_me:$LINENO: result: yes" >&5
3539 echo "${ECHO_T}yes" >&6
3541 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3542 echo "${ECHO_T}no, using $LN_S" >&6
3546 ac_cpp
='$CPP $CPPFLAGS'
3547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3552 # On Suns, sometimes $CPP names a directory.
3553 if test -n "$CPP" && test -d "$CPP"; then
3556 if test -z "$CPP"; then
3557 if test "${ac_cv_prog_CPP+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 # Double quotes because CPP needs to be expanded
3561 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3564 for ac_c_preproc_warn_flag
in '' yes
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
3572 cat >conftest.
$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
3576 cat confdefs.h
>>conftest.
$ac_ext
3577 cat >>conftest.
$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3587 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3589 grep -v '^ *+' conftest.er1
>conftest.err
3591 cat conftest.err
>&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev
/null
; then
3594 if test -s conftest.err
; then
3595 ac_cpp_err
=$ac_c_preproc_warn_flag
3602 if test -z "$ac_cpp_err"; then
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.
$ac_ext >&5
3608 # Broken: fails on valid input.
3611 rm -f conftest.err conftest.
$ac_ext
3613 # OK, works on sane cases. Now check whether non-existent headers
3614 # can be detected and how.
3615 cat >conftest.
$ac_ext <<_ACEOF
3616 #line $LINENO "configure"
3619 cat confdefs.h
>>conftest.
$ac_ext
3620 cat >>conftest.
$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3627 grep -v '^ *+' conftest.er1
>conftest.err
3629 cat conftest.err
>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev
/null
; then
3632 if test -s conftest.err
; then
3633 ac_cpp_err
=$ac_c_preproc_warn_flag
3640 if test -z "$ac_cpp_err"; then
3641 # Broken: success on invalid input.
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.
$ac_ext >&5
3647 # Passes both tests.
3651 rm -f conftest.err conftest.
$ac_ext
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.
$ac_ext
3656 if $ac_preproc_ok; then
3668 echo "$as_me:$LINENO: result: $CPP" >&5
3669 echo "${ECHO_T}$CPP" >&6
3671 for ac_c_preproc_warn_flag
in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat >conftest.
$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3683 cat confdefs.h
>>conftest.
$ac_ext
3684 cat >>conftest.
$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3687 # include <limits.h>
3689 # include <assert.h>
3693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3694 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1
>conftest.err
3698 cat conftest.err
>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev
/null
; then
3701 if test -s conftest.err
; then
3702 ac_cpp_err
=$ac_c_preproc_warn_flag
3709 if test -z "$ac_cpp_err"; then
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.
$ac_ext >&5
3715 # Broken: fails on valid input.
3718 rm -f conftest.err conftest.
$ac_ext
3720 # OK, works on sane cases. Now check whether non-existent headers
3721 # can be detected and how.
3722 cat >conftest.
$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3726 cat confdefs.h
>>conftest.
$ac_ext
3727 cat >>conftest.
$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.h>
3731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3734 grep -v '^ *+' conftest.er1
>conftest.err
3736 cat conftest.err
>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev
/null
; then
3739 if test -s conftest.err
; then
3740 ac_cpp_err
=$ac_c_preproc_warn_flag
3747 if test -z "$ac_cpp_err"; then
3748 # Broken: success on invalid input.
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.
$ac_ext >&5
3754 # Passes both tests.
3758 rm -f conftest.err conftest.
$ac_ext
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.
$ac_ext
3763 if $ac_preproc_ok; then
3766 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3769 See \`config.log' for more details." >&2;}
3770 { (exit 1); exit 1; }; }
3774 ac_cpp
='$CPP $CPPFLAGS'
3775 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3779 # Find a good install program. We prefer a C program (faster),
3780 # so one script is as good as another. But avoid the broken or
3781 # incompatible versions:
3782 # SysV /etc/install, /usr/sbin/install
3783 # SunOS /usr/etc/install
3784 # IRIX /sbin/install
3786 # AmigaOS /C/install, which installs bootblocks on floppy discs
3787 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3790 # ./install, which can be erroneously created by make from ./install.sh.
3791 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3792 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3793 if test -z "$INSTALL"; then
3794 if test "${ac_cv_path_install+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir
=.
3802 # Account for people who put trailing slashes in PATH elements.
3804 .
/ | .
// |
/cC
/* | \
3805 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3808 # OSF1 and SCO ODT 3.0 have their own names for install.
3809 # Don't use installbsd from OSF since it installs stuff as root
3811 for ac_prog
in ginstall scoinst
install; do
3812 for ac_exec_ext
in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3814 if test $ac_prog = install &&
3815 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3816 # AIX install. It has an incompatible calling convention.
3818 elif test $ac_prog = install &&
3819 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3820 # program-specific install script used by HP pwplus--don't use.
3823 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3835 if test "${ac_cv_path_install+set}" = set; then
3836 INSTALL
=$ac_cv_path_install
3838 # As a last resort, use the slow shell script. We don't cache a
3839 # path for INSTALL within a source directory, because that will
3840 # break other packages using the cache if that directory is
3841 # removed, or if the path is relative.
3842 INSTALL
=$ac_install_sh
3845 echo "$as_me:$LINENO: result: $INSTALL" >&5
3846 echo "${ECHO_T}$INSTALL" >&6
3848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849 # It thinks the first close brace ends the variable substitution.
3850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3854 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3856 if test "x$RANLIB" = x
; then
3857 if test -n "$ac_tool_prefix"; then
3858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3859 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_RANLIB+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 if test -n "$RANLIB"; then
3866 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir
=.
3873 for ac_exec_ext
in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 RANLIB
=$ac_cv_prog_RANLIB
3885 if test -n "$RANLIB"; then
3886 echo "$as_me:$LINENO: result: $RANLIB" >&5
3887 echo "${ECHO_T}$RANLIB" >&6
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3894 if test -z "$ac_cv_prog_RANLIB"; then
3895 ac_ct_RANLIB
=$RANLIB
3896 # Extract the first word of "ranlib", so it can be a program name with args.
3897 set dummy ranlib
; ac_word
=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 if test -n "$ac_ct_RANLIB"; then
3904 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir
=.
3911 for ac_exec_ext
in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3923 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3924 if test -n "$ac_ct_RANLIB"; then
3925 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3926 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 RANLIB
=$ac_ct_RANLIB
3934 RANLIB
="$ac_cv_prog_RANLIB"
3938 # Extract the first word of "install-info", so it can be a program name with args.
3939 set dummy install-info
; ac_word
=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 case $INSTALL_INFO in
3947 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3954 test -z "$as_dir" && as_dir
=.
3955 for ac_exec_ext
in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3969 if test -n "$INSTALL_INFO"; then
3970 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3971 echo "${ECHO_T}$INSTALL_INFO" >&6
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3977 # Extract the first word of "install-info", so it can be a program name with args.
3978 set dummy install-info
; ac_word
=$2
3979 echo "$as_me:$LINENO: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 case $INSTALL_INFO in
3986 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 for as_dir
in /usr
/sbin
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4008 if test -n "$INSTALL_INFO"; then
4009 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4010 echo "${ECHO_T}$INSTALL_INFO" >&6
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4016 # Extract the first word of "install-info", so it can be a program name with args.
4017 set dummy install-info
; ac_word
=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 case $INSTALL_INFO in
4025 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir
=.
4033 for ac_exec_ext
in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4046 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4048 if test -n "$INSTALL_INFO"; then
4049 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4050 echo "${ECHO_T}$INSTALL_INFO" >&6
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4058 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4060 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4063 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4065 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4070 echo "$as_me:$LINENO: checking for egrep" >&5
4071 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4072 if test "${ac_cv_prog_egrep+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4076 then ac_cv_prog_egrep
='grep -E'
4077 else ac_cv_prog_egrep
='egrep'
4080 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4081 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4082 EGREP
=$ac_cv_prog_egrep
4086 echo "$as_me:$LINENO: checking for AIX" >&5
4087 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4088 cat >conftest.
$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4092 cat confdefs.h
>>conftest.
$ac_ext
4093 cat >>conftest.
$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "yes" >/dev
/null
2>&1; then
4102 echo "$as_me:$LINENO: result: yes" >&5
4103 echo "${ECHO_T}yes" >&6
4104 cat >>confdefs.h
<<\_ACEOF
4105 #define _ALL_SOURCE 1
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4116 #### Extract some information from the operating system and machine files.
4118 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4119 - which libraries the lib-src programs will want, and
4120 - whether the GNU malloc routines are usable..." >&5
4121 echo "$as_me: checking the machine- and system-dependent files to find out
4122 - which libraries the lib-src programs will want, and
4123 - whether the GNU malloc routines are usable..." >&6;}
4125 ### First figure out CFLAGS (which we use for running the compiler here)
4126 ### and REAL_CFLAGS (which we use for real compilation).
4127 ### The two are the same except on a few systems, where they are made
4128 ### different to work around various lossages. For example,
4129 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4130 ### as implying static linking.
4132 ### If the CFLAGS env var is specified, we use that value
4133 ### instead of the default.
4135 ### It's not important that this name contain the PID; you can't run
4136 ### two configures in the same directory and have anything work
4138 tempcname
="conftest.c"
4141 #include "'${srcdir}'/src/'${opsysfile}'"
4142 #include "'${srcdir}'/src/'${machfile}'"
4143 #ifndef LIBS_MACHINE
4144 #define LIBS_MACHINE
4149 #ifndef C_SWITCH_SYSTEM
4150 #define C_SWITCH_SYSTEM
4152 #ifndef C_SWITCH_MACHINE
4153 #define C_SWITCH_MACHINE
4155 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4156 configure___ c_switch_system=C_SWITCH_SYSTEM
4157 configure___ c_switch_machine=C_SWITCH_MACHINE
4160 #define LIB_X11_LIB -lX11
4163 #ifndef LIBX11_MACHINE
4164 #define LIBX11_MACHINE
4167 #ifndef LIBX11_SYSTEM
4168 #define LIBX11_SYSTEM
4170 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4173 configure___ unexec=UNEXEC
4175 configure___ unexec=unexec.o
4178 #ifdef SYSTEM_MALLOC
4179 configure___ system_malloc=yes
4181 configure___ system_malloc=no
4184 #ifdef USE_MMAP_FOR_BUFFERS
4185 configure___ use_mmap_for_buffers=yes
4187 configure___ use_mmap_for_buffers=no
4190 #ifndef C_DEBUG_SWITCH
4191 #define C_DEBUG_SWITCH -g
4194 #ifndef C_OPTIMIZE_SWITCH
4196 #define C_OPTIMIZE_SWITCH -O2
4198 #define C_OPTIMIZE_SWITCH -O
4202 #ifndef LD_SWITCH_MACHINE
4203 #define LD_SWITCH_MACHINE
4206 #ifndef LD_SWITCH_SYSTEM
4207 #define LD_SWITCH_SYSTEM
4210 #ifndef LD_SWITCH_X_SITE_AUX
4211 #define LD_SWITCH_X_SITE_AUX
4214 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4215 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4217 #ifdef THIS_IS_CONFIGURE
4219 /* Get the CFLAGS for tests in configure. */
4221 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4223 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4226 #else /* not THIS_IS_CONFIGURE */
4228 /* Get the CFLAGS for real compilation. */
4230 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4232 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4235 #endif /* not THIS_IS_CONFIGURE */
4238 # The value of CPP is a quoted variable reference, so we need to do this
4239 # to get its actual value...
4240 CPP
=`eval "echo $CPP"`
4241 eval `${CPP} -Isrc ${tempcname} \
4242 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4243 if test "x$SPECIFIED_CFLAGS" = x
; then
4244 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4245 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4247 REAL_CFLAGS
="$CFLAGS"
4251 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4253 ### Make sure subsequent tests use flags consistent with the build flags.
4255 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4256 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4258 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4264 cat >>confdefs.h
<<\_ACEOF
4265 #define _GNU_SOURCE 1
4270 # Check whether --enable-largefile or --disable-largefile was given.
4271 if test "${enable_largefile+set}" = set; then
4272 enableval
="$enable_largefile"
4275 if test "$enable_largefile" != no
; then
4277 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4278 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4279 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 ac_cv_sys_largefile_CC
=no
4283 if test "$GCC" != yes; then
4286 # IRIX 6.2 and later do not support large files by default,
4287 # so use the C compiler's -n32 option if that helps.
4288 cat >conftest.
$ac_ext <<_ACEOF
4289 #line $LINENO "configure"
4292 cat confdefs.h
>>conftest.
$ac_ext
4293 cat >>conftest.
$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <sys/types.h>
4296 /* Check that off_t can represent 2**63 - 1 correctly.
4297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4298 since some C++ compilers masquerading as C compilers
4299 incorrectly reject 9223372036854775807. */
4300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4302 && LARGE_OFF_T % 2147483647 == 1)
4312 rm -f conftest.
$ac_objext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try
='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.
$ac_ext >&5
4330 rm -f conftest.
$ac_objext
4332 rm -f conftest.
$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try
='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_sys_largefile_CC
=' -n32'; break
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.
$ac_ext >&5
4350 rm -f conftest.
$ac_objext
4354 rm -f conftest.
$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4358 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4359 if test "$ac_cv_sys_largefile_CC" != no
; then
4360 CC
=$CC$ac_cv_sys_largefile_CC
4363 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4364 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4365 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 ac_cv_sys_file_offset_bits
=no
4370 cat >conftest.
$ac_ext <<_ACEOF
4371 #line $LINENO "configure"
4374 cat confdefs.h
>>conftest.
$ac_ext
4375 cat >>conftest.
$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <sys/types.h>
4378 /* Check that off_t can represent 2**63 - 1 correctly.
4379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4380 since some C++ compilers masquerading as C compilers
4381 incorrectly reject 9223372036854775807. */
4382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4384 && LARGE_OFF_T % 2147483647 == 1)
4394 rm -f conftest.
$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try
='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.
$ac_ext >&5
4412 rm -f conftest.
$ac_objext conftest.
$ac_ext
4413 cat >conftest.
$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #define _FILE_OFFSET_BITS 64
4421 #include <sys/types.h>
4422 /* Check that off_t can represent 2**63 - 1 correctly.
4423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424 since some C++ compilers masquerading as C compilers
4425 incorrectly reject 9223372036854775807. */
4426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428 && LARGE_OFF_T % 2147483647 == 1)
4438 rm -f conftest.
$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try
='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_sys_file_offset_bits
=64; break
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.
$ac_ext >&5
4456 rm -f conftest.
$ac_objext conftest.
$ac_ext
4460 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4461 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4462 if test "$ac_cv_sys_file_offset_bits" != no
; then
4464 cat >>confdefs.h
<<_ACEOF
4465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4470 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4471 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4472 if test "${ac_cv_sys_large_files+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 ac_cv_sys_large_files
=no
4477 cat >conftest.
$ac_ext <<_ACEOF
4478 #line $LINENO "configure"
4481 cat confdefs.h
>>conftest.
$ac_ext
4482 cat >>conftest.
$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <sys/types.h>
4485 /* Check that off_t can represent 2**63 - 1 correctly.
4486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4487 since some C++ compilers masquerading as C compilers
4488 incorrectly reject 9223372036854775807. */
4489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4491 && LARGE_OFF_T % 2147483647 == 1)
4501 rm -f conftest.
$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try
='test -s conftest.$ac_objext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.
$ac_ext >&5
4519 rm -f conftest.
$ac_objext conftest.
$ac_ext
4520 cat >conftest.
$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4524 cat confdefs.h
>>conftest.
$ac_ext
4525 cat >>conftest.
$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #define _LARGE_FILES 1
4528 #include <sys/types.h>
4529 /* Check that off_t can represent 2**63 - 1 correctly.
4530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4531 since some C++ compilers masquerading as C compilers
4532 incorrectly reject 9223372036854775807. */
4533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4535 && LARGE_OFF_T % 2147483647 == 1)
4545 rm -f conftest.
$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try
='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_sys_large_files
=1; break
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.
$ac_ext >&5
4563 rm -f conftest.
$ac_objext conftest.
$ac_ext
4567 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4568 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4569 if test "$ac_cv_sys_large_files" != no
; then
4571 cat >>confdefs.h
<<_ACEOF
4572 #define _LARGE_FILES $ac_cv_sys_large_files
4580 if test "${with_sound}" != "no"; then
4581 # Sound support for GNU/Linux and the free BSDs.
4582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4584 if test "${ac_cv_header_stdc+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 cat >conftest.
$ac_ext <<_ACEOF
4588 #line $LINENO "configure"
4591 cat confdefs.h
>>conftest.
$ac_ext
4592 cat >>conftest.
$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4607 rm -f conftest.
$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try
='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_header_stdc
=yes
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4624 ac_cv_header_stdc
=no
4626 rm -f conftest.
$ac_objext conftest.
$ac_ext
4628 if test $ac_cv_header_stdc = yes; then
4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630 cat >conftest.
$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4634 cat confdefs.h
>>conftest.
$ac_ext
4635 cat >>conftest.
$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 $EGREP "memchr" >/dev
/null
2>&1; then
4644 ac_cv_header_stdc
=no
4650 if test $ac_cv_header_stdc = yes; then
4651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4652 cat >conftest.
$ac_ext <<_ACEOF
4653 #line $LINENO "configure"
4656 cat confdefs.h
>>conftest.
$ac_ext
4657 cat >>conftest.
$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "free" >/dev
/null
2>&1; then
4666 ac_cv_header_stdc
=no
4672 if test $ac_cv_header_stdc = yes; then
4673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674 if test "$cross_compiling" = yes; then
4677 cat >conftest.
$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4681 cat confdefs.h
>>conftest.
$ac_ext
4682 cat >>conftest.
$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4685 #if ((' ' & 0x0FF) == 0x020)
4686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4689 # define ISLOWER(c) \
4690 (('a' <= (c) && (c) <= 'i') \
4691 || ('j' <= (c) && (c) <= 'r') \
4692 || ('s' <= (c) && (c) <= 'z'))
4693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 for (i = 0; i < 256; i++)
4702 if (XOR (islower (i), ISLOWER (i))
4703 || toupper (i) != TOUPPER (i))
4708 rm -f conftest
$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4721 echo "$as_me: program exited with status $ac_status" >&5
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4726 ac_cv_header_stdc
=no
4728 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4734 if test $ac_cv_header_stdc = yes; then
4736 cat >>confdefs.h
<<\_ACEOF
4737 #define STDC_HEADERS 1
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4753 inttypes.h stdint.h unistd.h
4755 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 cat >conftest.
$ac_ext <<_ACEOF
4762 #line $LINENO "configure"
4765 cat confdefs.h
>>conftest.
$ac_ext
4766 cat >>conftest.
$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4770 #include <$ac_header>
4772 rm -f conftest.
$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try
='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 eval "$as_ac_Header=yes"
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.
$ac_ext >&5
4789 eval "$as_ac_Header=no"
4791 rm -f conftest.
$ac_objext conftest.
$ac_ext
4793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4796 cat >>confdefs.h
<<_ACEOF
4797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4808 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4810 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4812 echo "$as_me:$LINENO: checking for $ac_header" >&5
4813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4820 # Is the header compilable?
4821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4823 cat >conftest.
$ac_ext <<_ACEOF
4824 #line $LINENO "configure"
4827 cat confdefs.h
>>conftest.
$ac_ext
4828 cat >>conftest.
$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_includes_default
4831 #include <$ac_header>
4833 rm -f conftest.
$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try
='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_header_compiler
=yes
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.
$ac_ext >&5
4850 ac_header_compiler
=no
4852 rm -f conftest.
$ac_objext conftest.
$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4854 echo "${ECHO_T}$ac_header_compiler" >&6
4856 # Is the header present?
4857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4859 cat >conftest.
$ac_ext <<_ACEOF
4860 #line $LINENO "configure"
4863 cat confdefs.h
>>conftest.
$ac_ext
4864 cat >>conftest.
$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <$ac_header>
4868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4871 grep -v '^ *+' conftest.er1
>conftest.err
4873 cat conftest.err
>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev
/null
; then
4876 if test -s conftest.err
; then
4877 ac_cpp_err
=$ac_c_preproc_warn_flag
4884 if test -z "$ac_cpp_err"; then
4885 ac_header_preproc
=yes
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4890 ac_header_preproc
=no
4892 rm -f conftest.err conftest.
$ac_ext
4893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4894 echo "${ECHO_T}$ac_header_preproc" >&6
4896 # So? What about this header?
4897 case $ac_header_compiler:$ac_header_preproc in
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905 ## ------------------------------------ ##
4906 ## Report this to bug-autoconf@gnu.org. ##
4907 ## ------------------------------------ ##
4910 sed "s/^/$as_me: WARNING: /" >&2
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4921 ## ------------------------------------ ##
4922 ## Report this to bug-autoconf@gnu.org. ##
4923 ## ------------------------------------ ##
4926 sed "s/^/$as_me: WARNING: /" >&2
4929 echo "$as_me:$LINENO: checking for $ac_header" >&5
4930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 eval "$as_ac_Header=$ac_header_preproc"
4936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4941 cat >>confdefs.h
<<_ACEOF
4942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4949 # Emulation library used on NetBSD.
4950 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4951 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4952 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 ac_check_lib_save_LIBS
=$LIBS
4956 LIBS
="-lossaudio $LIBS"
4957 cat >conftest.
$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4961 cat confdefs.h
>>conftest.
$ac_ext
4962 cat >>conftest.
$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4980 rm -f conftest.
$ac_objext conftest
$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try
='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_lib_ossaudio__oss_ioctl
=yes
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.
$ac_ext >&5
4997 ac_cv_lib_ossaudio__oss_ioctl
=no
4999 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5000 LIBS
=$ac_check_lib_save_LIBS
5002 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5003 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5004 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5035 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5036 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5037 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5038 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h
5040 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5042 echo "$as_me:$LINENO: checking for $ac_header" >&5
5043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5050 # Is the header compilable?
5051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5053 cat >conftest.
$ac_ext <<_ACEOF
5054 #line $LINENO "configure"
5057 cat confdefs.h
>>conftest.
$ac_ext
5058 cat >>conftest.
$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 #include <$ac_header>
5063 rm -f conftest.
$ac_objext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065 (eval $ac_compile) 2>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try
='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 ac_header_compiler
=yes
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.
$ac_ext >&5
5080 ac_header_compiler
=no
5082 rm -f conftest.
$ac_objext conftest.
$ac_ext
5083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5084 echo "${ECHO_T}$ac_header_compiler" >&6
5086 # Is the header present?
5087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5089 cat >conftest.
$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5093 cat confdefs.h
>>conftest.
$ac_ext
5094 cat >>conftest.
$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 #include <$ac_header>
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5101 grep -v '^ *+' conftest.er1
>conftest.err
5103 cat conftest.err
>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev
/null
; then
5106 if test -s conftest.err
; then
5107 ac_cpp_err
=$ac_c_preproc_warn_flag
5114 if test -z "$ac_cpp_err"; then
5115 ac_header_preproc
=yes
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.
$ac_ext >&5
5120 ac_header_preproc
=no
5122 rm -f conftest.err conftest.
$ac_ext
5123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5124 echo "${ECHO_T}$ac_header_preproc" >&6
5126 # So? What about this header?
5127 case $ac_header_compiler:$ac_header_preproc in
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5135 ## ------------------------------------ ##
5136 ## Report this to bug-autoconf@gnu.org. ##
5137 ## ------------------------------------ ##
5140 sed "s/^/$as_me: WARNING: /" >&2
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5151 ## ------------------------------------ ##
5152 ## Report this to bug-autoconf@gnu.org. ##
5153 ## ------------------------------------ ##
5156 sed "s/^/$as_me: WARNING: /" >&2
5159 echo "$as_me:$LINENO: checking for $ac_header" >&5
5160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 eval "$as_ac_Header=$ac_header_preproc"
5166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5171 cat >>confdefs.h
<<_ACEOF
5172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5180 for ac_header
in term.h
5182 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5183 echo "$as_me:$LINENO: checking for $ac_header" >&5
5184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 cat >conftest.
$ac_ext <<_ACEOF
5189 #line $LINENO "configure"
5192 cat confdefs.h
>>conftest.
$ac_ext
5193 cat >>conftest.
$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #include <$ac_header>
5197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5198 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5200 grep -v '^ *+' conftest.er1
>conftest.err
5202 cat conftest.err
>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } >/dev
/null
; then
5205 if test -s conftest.err
; then
5206 ac_cpp_err
=$ac_c_preproc_warn_flag
5213 if test -z "$ac_cpp_err"; then
5214 eval "$as_ac_Header=yes"
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.
$ac_ext >&5
5219 eval "$as_ac_Header=no"
5221 rm -f conftest.err conftest.
$ac_ext
5223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5226 cat >>confdefs.h
<<_ACEOF
5227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5234 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5236 if test "${ac_cv_header_stdc+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 cat >conftest.
$ac_ext <<_ACEOF
5240 #line $LINENO "configure"
5243 cat confdefs.h
>>conftest.
$ac_ext
5244 cat >>conftest.
$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5259 rm -f conftest.
$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try
='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_header_stdc
=yes
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.
$ac_ext >&5
5276 ac_cv_header_stdc
=no
5278 rm -f conftest.
$ac_objext conftest.
$ac_ext
5280 if test $ac_cv_header_stdc = yes; then
5281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5282 cat >conftest.
$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5286 cat confdefs.h
>>conftest.
$ac_ext
5287 cat >>conftest.
$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "memchr" >/dev
/null
2>&1; then
5296 ac_cv_header_stdc
=no
5302 if test $ac_cv_header_stdc = yes; then
5303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5304 cat >conftest.
$ac_ext <<_ACEOF
5305 #line $LINENO "configure"
5308 cat confdefs.h
>>conftest.
$ac_ext
5309 cat >>conftest.
$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 $EGREP "free" >/dev
/null
2>&1; then
5318 ac_cv_header_stdc
=no
5324 if test $ac_cv_header_stdc = yes; then
5325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5326 if test "$cross_compiling" = yes; then
5329 cat >conftest.
$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5333 cat confdefs.h
>>conftest.
$ac_ext
5334 cat >>conftest.
$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5337 #if ((' ' & 0x0FF) == 0x020)
5338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5341 # define ISLOWER(c) \
5342 (('a' <= (c) && (c) <= 'i') \
5343 || ('j' <= (c) && (c) <= 'r') \
5344 || ('s' <= (c) && (c) <= 'z'))
5345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353 for (i = 0; i < 256; i++)
5354 if (XOR (islower (i), ISLOWER (i))
5355 || toupper (i) != TOUPPER (i))
5360 rm -f conftest
$ac_exeext
5361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5362 (eval $ac_link) 2>&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5373 echo "$as_me: program exited with status $ac_status" >&5
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.
$ac_ext >&5
5378 ac_cv_header_stdc
=no
5380 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5384 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5385 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5386 if test $ac_cv_header_stdc = yes; then
5388 cat >>confdefs.h
<<\_ACEOF
5389 #define STDC_HEADERS 1
5394 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5396 if test "${ac_cv_header_time+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 cat >conftest.
$ac_ext <<_ACEOF
5400 #line $LINENO "configure"
5403 cat confdefs.h
>>conftest.
$ac_ext
5404 cat >>conftest.
$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 #include <sys/types.h>
5407 #include <sys/time.h>
5413 if ((struct tm *) 0)
5419 rm -f conftest.
$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try
='test -s conftest.$ac_objext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_cv_header_time
=yes
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5436 ac_cv_header_time
=no
5438 rm -f conftest.
$ac_objext conftest.
$ac_ext
5440 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5441 echo "${ECHO_T}$ac_cv_header_time" >&6
5442 if test $ac_cv_header_time = yes; then
5444 cat >>confdefs.h
<<\_ACEOF
5445 #define TIME_WITH_SYS_TIME 1
5450 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5451 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5452 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 cat >conftest.
$ac_ext <<_ACEOF
5456 #line $LINENO "configure"
5459 cat confdefs.h
>>conftest.
$ac_ext
5460 cat >>conftest.
$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5467 char *p = (char *) sys_siglist;
5474 rm -f conftest.
$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try
='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_have_decl_sys_siglist
=yes
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.
$ac_ext >&5
5491 ac_cv_have_decl_sys_siglist
=no
5493 rm -f conftest.
$ac_objext conftest.
$ac_ext
5495 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5496 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5497 if test $ac_cv_have_decl_sys_siglist = yes; then
5499 cat >>confdefs.h
<<_ACEOF
5500 #define HAVE_DECL_SYS_SIGLIST 1
5505 cat >>confdefs.h
<<_ACEOF
5506 #define HAVE_DECL_SYS_SIGLIST 0
5513 if test $ac_cv_have_decl_sys_siglist != yes; then
5514 # For Tru64, at least:
5515 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5516 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5517 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 cat >conftest.
$ac_ext <<_ACEOF
5521 #line $LINENO "configure"
5524 cat confdefs.h
>>conftest.
$ac_ext
5525 cat >>conftest.
$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 $ac_includes_default
5531 #ifndef __sys_siglist
5532 char *p = (char *) __sys_siglist;
5539 rm -f conftest.
$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try
='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_have_decl___sys_siglist
=yes
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.
$ac_ext >&5
5556 ac_cv_have_decl___sys_siglist
=no
5558 rm -f conftest.
$ac_objext conftest.
$ac_ext
5560 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5561 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5562 if test $ac_cv_have_decl___sys_siglist = yes; then
5564 cat >>confdefs.h
<<_ACEOF
5565 #define HAVE_DECL___SYS_SIGLIST 1
5570 cat >>confdefs.h
<<_ACEOF
5571 #define HAVE_DECL___SYS_SIGLIST 0
5578 if test $ac_cv_have_decl___sys_siglist = yes; then
5580 cat >>confdefs.h
<<\_ACEOF
5581 #define sys_siglist __sys_siglist
5586 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5587 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5588 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 cat >conftest.
$ac_ext <<_ACEOF
5592 #line $LINENO "configure"
5595 cat confdefs.h
>>conftest.
$ac_ext
5596 cat >>conftest.
$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 #include <sys/types.h>
5599 #include <sys/wait.h>
5601 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5604 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5612 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5617 rm -f conftest.
$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try
='test -s conftest.$ac_objext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_cv_header_sys_wait_h
=yes
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.
$ac_ext >&5
5634 ac_cv_header_sys_wait_h
=no
5636 rm -f conftest.
$ac_objext conftest.
$ac_ext
5638 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5639 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5640 if test $ac_cv_header_sys_wait_h = yes; then
5642 cat >>confdefs.h
<<\_ACEOF
5643 #define HAVE_SYS_WAIT_H 1
5649 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5650 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5651 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 cat >conftest.
$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #ifdef TIME_WITH_SYS_TIME
5662 #include <sys/time.h>
5665 #ifdef HAVE_SYS_TIME_H
5666 #include <sys/time.h>
5677 static struct utimbuf x; x.actime = x.modtime;
5682 rm -f conftest.
$ac_objext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684 (eval $ac_compile) 2>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try
='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 emacs_cv_struct_utimbuf
=yes
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.
$ac_ext >&5
5699 emacs_cv_struct_utimbuf
=no
5701 rm -f conftest.
$ac_objext conftest.
$ac_ext
5703 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5704 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5705 if test $emacs_cv_struct_utimbuf = yes; then
5707 cat >>confdefs.h
<<\_ACEOF
5708 #define HAVE_STRUCT_UTIMBUF 1
5713 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5714 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5715 if test "${ac_cv_type_signal+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 cat >conftest.
$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5722 cat confdefs.h
>>conftest.
$ac_ext
5723 cat >>conftest.
$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 #include <sys/types.h>
5731 extern "C" void (*signal (int, void (*)(int)))(int);
5733 void (*signal ()) ();
5744 rm -f conftest.
$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try
='test -s conftest.$ac_objext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_cv_type_signal
=void
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.
$ac_ext >&5
5761 ac_cv_type_signal
=int
5763 rm -f conftest.
$ac_objext conftest.
$ac_ext
5765 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5766 echo "${ECHO_T}$ac_cv_type_signal" >&6
5768 cat >>confdefs.h
<<_ACEOF
5769 #define RETSIGTYPE $ac_cv_type_signal
5774 echo "$as_me:$LINENO: checking for speed_t" >&5
5775 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5776 if test "${emacs_cv_speed_t+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 cat >conftest.
$ac_ext <<_ACEOF
5780 #line $LINENO "configure"
5783 cat confdefs.h
>>conftest.
$ac_ext
5784 cat >>conftest.
$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #include <termios.h>
5795 rm -f conftest.
$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try
='test -s conftest.$ac_objext'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5807 emacs_cv_speed_t
=yes
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.
$ac_ext >&5
5814 rm -f conftest.
$ac_objext conftest.
$ac_ext
5816 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5817 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5818 if test $emacs_cv_speed_t = yes; then
5820 cat >>confdefs.h
<<\_ACEOF
5821 #define HAVE_SPEED_T 1
5826 echo "$as_me:$LINENO: checking for struct timeval" >&5
5827 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5828 if test "${emacs_cv_struct_timeval+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat >conftest.
$ac_ext <<_ACEOF
5832 #line $LINENO "configure"
5835 cat confdefs.h
>>conftest.
$ac_ext
5836 cat >>conftest.
$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #ifdef TIME_WITH_SYS_TIME
5839 #include <sys/time.h>
5842 #ifdef HAVE_SYS_TIME_H
5843 #include <sys/time.h>
5851 static struct timeval x; x.tv_sec = x.tv_usec;
5856 rm -f conftest.
$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try
='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 emacs_cv_struct_timeval
=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.
$ac_ext >&5
5873 emacs_cv_struct_timeval
=no
5875 rm -f conftest.
$ac_objext conftest.
$ac_ext
5877 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5878 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5879 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5880 if test $emacs_cv_struct_timeval = yes; then
5882 cat >>confdefs.h
<<\_ACEOF
5883 #define HAVE_TIMEVAL 1
5888 echo "$as_me:$LINENO: checking for struct exception" >&5
5889 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5890 if test "${emacs_cv_struct_exception+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cat >conftest.
$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5897 cat confdefs.h
>>conftest.
$ac_ext
5898 cat >>conftest.
$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5904 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5909 rm -f conftest.
$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try
='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 emacs_cv_struct_exception
=yes
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.
$ac_ext >&5
5926 emacs_cv_struct_exception
=no
5928 rm -f conftest.
$ac_objext conftest.
$ac_ext
5930 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5931 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5932 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5933 if test $emacs_cv_struct_exception != yes; then
5935 cat >>confdefs.h
<<\_ACEOF
5936 #define NO_MATHERR 1
5941 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5942 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5943 if test "${ac_cv_struct_tm+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 cat >conftest.
$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5950 cat confdefs.h
>>conftest.
$ac_ext
5951 cat >>conftest.
$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <sys/types.h>
5959 struct tm *tp; tp->tm_sec;
5964 rm -f conftest.
$ac_objext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5966 (eval $ac_compile) 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try
='test -s conftest.$ac_objext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_struct_tm
=time.h
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.
$ac_ext >&5
5981 ac_cv_struct_tm
=sys
/time.h
5983 rm -f conftest.
$ac_objext conftest.
$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5986 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5987 if test $ac_cv_struct_tm = sys
/time.h
; then
5989 cat >>confdefs.h
<<\_ACEOF
5990 #define TM_IN_SYS_TIME 1
5995 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5996 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5997 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 cat >conftest.
$ac_ext <<_ACEOF
6001 #line $LINENO "configure"
6004 cat confdefs.h
>>conftest.
$ac_ext
6005 cat >>conftest.
$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #include <sys/types.h>
6008 #include <$ac_cv_struct_tm>
6014 static struct tm ac_aggr;
6015 if (ac_aggr.tm_zone)
6021 rm -f conftest.
$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try
='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_member_struct_tm_tm_zone
=yes
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.
$ac_ext >&5
6038 cat >conftest.
$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6042 cat confdefs.h
>>conftest.
$ac_ext
6043 cat >>conftest.
$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 #include <sys/types.h>
6046 #include <$ac_cv_struct_tm>
6052 static struct tm ac_aggr;
6053 if (sizeof ac_aggr.tm_zone)
6059 rm -f conftest.
$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try
='test -s conftest.$ac_objext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_cv_member_struct_tm_tm_zone
=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.
$ac_ext >&5
6076 ac_cv_member_struct_tm_tm_zone
=no
6078 rm -f conftest.
$ac_objext conftest.
$ac_ext
6080 rm -f conftest.
$ac_objext conftest.
$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6083 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6084 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6086 cat >>confdefs.h
<<_ACEOF
6087 #define HAVE_STRUCT_TM_TM_ZONE 1
6093 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6095 cat >>confdefs.h
<<\_ACEOF
6096 #define HAVE_TM_ZONE 1
6100 echo "$as_me:$LINENO: checking for tzname" >&5
6101 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6102 if test "${ac_cv_var_tzname+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 cat >conftest.
$ac_ext <<_ACEOF
6106 #line $LINENO "configure"
6109 cat confdefs.h
>>conftest.
$ac_ext
6110 cat >>conftest.
$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 #ifndef tzname /* For SGI. */
6114 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6125 rm -f conftest.
$ac_objext conftest
$ac_exeext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try
='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_var_tzname
=yes
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.
$ac_ext >&5
6144 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6146 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6147 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6148 if test $ac_cv_var_tzname = yes; then
6150 cat >>confdefs.h
<<\_ACEOF
6151 #define HAVE_TZNAME 1
6157 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6158 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6159 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 cat >conftest.
$ac_ext <<_ACEOF
6163 #line $LINENO "configure"
6166 cat confdefs.h
>>conftest.
$ac_ext
6167 cat >>conftest.
$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6174 static struct tm ac_aggr;
6175 if (ac_aggr.tm_gmtoff)
6181 rm -f conftest.
$ac_objext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183 (eval $ac_compile) 2>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try
='test -s conftest.$ac_objext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_member_struct_tm_tm_gmtoff
=yes
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.
$ac_ext >&5
6198 cat >conftest.
$ac_ext <<_ACEOF
6199 #line $LINENO "configure"
6202 cat confdefs.h
>>conftest.
$ac_ext
6203 cat >>conftest.
$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6210 static struct tm ac_aggr;
6211 if (sizeof ac_aggr.tm_gmtoff)
6217 rm -f conftest.
$ac_objext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try
='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_cv_member_struct_tm_tm_gmtoff
=yes
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.
$ac_ext >&5
6234 ac_cv_member_struct_tm_tm_gmtoff
=no
6236 rm -f conftest.
$ac_objext conftest.
$ac_ext
6238 rm -f conftest.
$ac_objext conftest.
$ac_ext
6240 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6241 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6242 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6244 cat >>confdefs.h
<<\_ACEOF
6245 #define HAVE_TM_GMTOFF 1
6252 echo "$as_me:$LINENO: checking for function prototypes" >&5
6253 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6254 if test "$ac_cv_prog_cc_stdc" != no
; then
6255 echo "$as_me:$LINENO: result: yes" >&5
6256 echo "${ECHO_T}yes" >&6
6258 cat >>confdefs.h
<<\_ACEOF
6259 #define PROTOTYPES 1
6263 cat >>confdefs.h
<<\_ACEOF
6264 #define __PROTOTYPES 1
6268 echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6
6272 echo "$as_me:$LINENO: checking for working volatile" >&5
6273 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6274 if test "${ac_cv_c_volatile+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 cat >conftest.
$ac_ext <<_ACEOF
6278 #line $LINENO "configure"
6281 cat confdefs.h
>>conftest.
$ac_ext
6282 cat >>conftest.
$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6295 rm -f conftest.
$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try
='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_c_volatile
=yes
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.
$ac_ext >&5
6314 rm -f conftest.
$ac_objext conftest.
$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6317 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6318 if test $ac_cv_c_volatile = no
; then
6320 cat >>confdefs.h
<<\_ACEOF
6326 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6327 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6328 if test "${ac_cv_c_const+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.
$ac_ext <<_ACEOF
6332 #line $LINENO "configure"
6335 cat confdefs.h
>>conftest.
$ac_ext
6336 cat >>conftest.
$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6342 /* FIXME: Include the comments suggested by Paul. */
6344 /* Ultrix mips cc rejects this. */
6345 typedef int charset[2];
6347 /* SunOS 4.1.1 cc rejects this. */
6348 char const *const *ccp;
6350 /* NEC SVR4.0.2 mips cc rejects this. */
6351 struct point {int x, y;};
6352 static struct point const zero = {0,0};
6353 /* AIX XL C 1.02.0.0 rejects this.
6354 It does not let you subtract one const X* pointer from another in
6355 an arm of an if-expression whose if-part is not a constant
6357 const char *g = "string";
6358 ccp = &g + (g ? g-g : 0);
6359 /* HPUX 7.0 cc rejects these. */
6362 ccp = (char const *const *) p;
6363 { /* SCO 3.2v4 cc rejects this. */
6365 char const *s = 0 ? (char *) 0 : (char const *) 0;
6369 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6371 const int *foo = &x[0];
6374 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6375 typedef const int *iptr;
6379 { /* AIX XL C 1.02.0.0 rejects this saying
6380 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6381 struct s { int j; const int *ap[3]; };
6382 struct s *b; b->j = 5;
6384 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6393 rm -f conftest.
$ac_objext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395 (eval $ac_compile) 2>&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try
='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.
$ac_ext >&5
6412 rm -f conftest.
$ac_objext conftest.
$ac_ext
6414 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6415 echo "${ECHO_T}$ac_cv_c_const" >&6
6416 if test $ac_cv_c_const = no
; then
6418 cat >>confdefs.h
<<\_ACEOF
6424 echo "$as_me:$LINENO: checking for void * support" >&5
6425 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6426 if test "${emacs_cv_void_star+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 cat >conftest.
$ac_ext <<_ACEOF
6430 #line $LINENO "configure"
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6445 rm -f conftest.
$ac_objext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447 (eval $ac_compile) 2>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } &&
6451 { ac_try
='test -s conftest.$ac_objext'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6457 emacs_cv_void_star
=yes
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.
$ac_ext >&5
6462 emacs_cv_void_star
=no
6464 rm -f conftest.
$ac_objext conftest.
$ac_ext
6466 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6467 echo "${ECHO_T}$emacs_cv_void_star" >&6
6468 if test $emacs_cv_void_star = yes; then
6469 cat >>confdefs.h
<<\_ACEOF
6470 #define POINTER_TYPE void
6474 cat >>confdefs.h
<<\_ACEOF
6475 #define POINTER_TYPE char
6482 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6483 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6484 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6485 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 cat >conftest.
make <<\_ACEOF
6490 @
echo 'ac_maketemp="$(MAKE)"'
6492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6493 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6494 if test -n "$ac_maketemp"; then
6495 eval ac_cv_prog_make_
${ac_make}_set
=yes
6497 eval ac_cv_prog_make_
${ac_make}_set
=no
6501 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6502 echo "$as_me:$LINENO: result: yes" >&5
6503 echo "${ECHO_T}yes" >&6
6506 echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6
6508 SET_MAKE
="MAKE=${MAKE-make}"
6512 echo "$as_me:$LINENO: checking for long file names" >&5
6513 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6514 if test "${ac_cv_sys_long_file_names+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 ac_cv_sys_long_file_names
=yes
6518 # Test for long file names in all the places we know might matter:
6519 # . the current directory, where building will happen
6520 # $prefix/lib where we will be installing things
6521 # $exec_prefix/lib likewise
6522 # eval it to expand exec_prefix.
6523 # $TMPDIR if set, where it might want to write temporary files
6524 # if $TMPDIR is not set:
6525 # /tmp where it might want to write temporary files
6528 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6531 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6533 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6534 test -d $ac_dir ||
continue
6535 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6536 ac_xdir
=$ac_dir/cf$$
6537 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6538 ac_tf1
=$ac_xdir/conftest9012345
6539 ac_tf2
=$ac_xdir/conftest9012346
6540 (echo 1 >$ac_tf1) 2>/dev
/null
6541 (echo 2 >$ac_tf2) 2>/dev
/null
6542 ac_val
=`cat $ac_tf1 2>/dev/null`
6543 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6544 ac_cv_sys_long_file_names
=no
6545 rm -rf $ac_xdir 2>/dev
/null
6548 rm -rf $ac_xdir 2>/dev
/null
6551 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6552 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6553 if test $ac_cv_sys_long_file_names = yes; then
6555 cat >>confdefs.h
<<\_ACEOF
6556 #define HAVE_LONG_FILE_NAMES 1
6562 #### Choose a window system.
6564 echo "$as_me:$LINENO: checking for X" >&5
6565 echo $ECHO_N "checking for X... $ECHO_C" >&6
6568 # Check whether --with-x or --without-x was given.
6569 if test "${with_x+set}" = set; then
6573 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6574 if test "x$with_x" = xno
; then
6575 # The user explicitly disabled X.
6578 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6579 # Both variables are already set.
6582 if test "${ac_cv_have_x+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 # One or both of the vars are not set, and there is no cached value.
6586 ac_x_includes
=no ac_x_libraries
=no
6588 if mkdir conftest.dir
; then
6590 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6591 cat >Imakefile
<<'_ACEOF'
6593 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6595 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6597 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6598 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6599 for ac_extension
in a so sl
; do
6600 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6601 test -f $ac_im_libdir/libX11.
$ac_extension; then
6602 ac_im_usrlibdir
=$ac_im_libdir; break
6605 # Screen out bogus values from the imake configuration. They are
6606 # bogus both because they are the default anyway, and because
6607 # using them would break gcc on systems where it needs fixed includes.
6608 case $ac_im_incroot in
6610 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6612 case $ac_im_usrlibdir in
6614 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6621 # Standard set of common directories for X headers.
6622 # Check X11 before X11Rn because it is often a symlink to the current release.
6634 /usr/local/X11/include
6635 /usr/local/X11R6/include
6636 /usr/local/X11R5/include
6637 /usr/local/X11R4/include
6639 /usr/local/include/X11
6640 /usr/local/include/X11R6
6641 /usr/local/include/X11R5
6642 /usr/local/include/X11R4
6646 /usr/XFree86/include/X11
6650 /usr/unsupported/include
6652 /usr/local/x11r5/include
6653 /usr/lpp/Xamples/include
6655 /usr/openwin/include
6656 /usr/openwin/share/include'
6658 if test "$ac_x_includes" = no
; then
6659 # Guess where to find include files, by looking for Intrinsic.h.
6660 # First, try using that file with no special directory specified.
6661 cat >conftest.
$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6665 cat confdefs.h
>>conftest.
$ac_ext
6666 cat >>conftest.
$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #include <X11/Intrinsic.h>
6670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6671 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6673 grep -v '^ *+' conftest.er1
>conftest.err
6675 cat conftest.err
>&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } >/dev
/null
; then
6678 if test -s conftest.err
; then
6679 ac_cpp_err
=$ac_c_preproc_warn_flag
6686 if test -z "$ac_cpp_err"; then
6687 # We can compile using X headers with no special include directory.
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.
$ac_ext >&5
6693 for ac_dir
in $ac_x_header_dirs; do
6694 if test -r "$ac_dir/X11/Intrinsic.h"; then
6695 ac_x_includes
=$ac_dir
6700 rm -f conftest.err conftest.
$ac_ext
6701 fi # $ac_x_includes = no
6703 if test "$ac_x_libraries" = no
; then
6704 # Check for the libraries.
6705 # See if we find them without any special options.
6706 # Don't add to $LIBS permanently.
6709 cat >conftest.
$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6713 cat confdefs.h
>>conftest.
$ac_ext
6714 cat >>conftest.
$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 #include <X11/Intrinsic.h>
6725 rm -f conftest.
$ac_objext conftest
$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } &&
6731 { ac_try
='test -s conftest$ac_exeext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6738 # We can link X programs with no special library path.
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.
$ac_ext >&5
6745 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6747 # Don't even attempt the hair of trying to link an X program!
6748 for ac_extension
in a so sl
; do
6749 if test -r $ac_dir/libXt.
$ac_extension; then
6750 ac_x_libraries
=$ac_dir
6756 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6757 fi # $ac_x_libraries = no
6759 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6760 # Didn't find X anywhere. Cache the known absence of X.
6761 ac_cv_have_x
="have_x=no"
6763 # Record where we found X for the cache.
6764 ac_cv_have_x
="have_x=yes \
6765 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6770 eval "$ac_cv_have_x"
6773 if test "$have_x" != yes; then
6774 echo "$as_me:$LINENO: result: $have_x" >&5
6775 echo "${ECHO_T}$have_x" >&6
6778 # If each of the values was on the command line, it overrides each guess.
6779 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6780 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6781 # Update the cache value to reflect the command line values.
6782 ac_cv_have_x
="have_x=yes \
6783 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6784 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6785 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6788 if test "$no_x" = yes; then
6794 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6795 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6796 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6797 x_default_search_path
=""
6798 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6800 ${x_library}/X11/%L/%T/%N%C%S:\
6801 ${x_library}/X11/%l/%T/%N%C%S:\
6802 ${x_library}/X11/%T/%N%C%S:\
6803 ${x_library}/X11/%L/%T/%N%S:\
6804 ${x_library}/X11/%l/%T/%N%S:\
6805 ${x_library}/X11/%T/%N%S"
6806 if test x
"${x_default_search_path}" = x
; then
6807 x_default_search_path
=${x_search_path}
6809 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6813 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6814 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6817 if test x
"${x_includes}" = x
; then
6818 bitmapdir
=/usr
/include
/X11
/bitmaps
6820 # accumulate include directories that have X11 bitmap subdirectories
6822 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6823 if test -d "${bmd}/X11/bitmaps"; then
6824 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6826 if test -d "${bmd}/bitmaps"; then
6827 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6830 if test ${bmd_acc} != "dummyval"; then
6831 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6835 case "${window_system}" in
6839 case "${with_x_toolkit}" in
6840 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6841 motif
) USE_X_TOOLKIT
=MOTIF
;;
6843 USE_X_TOOLKIT
=none
;;
6844 no
) USE_X_TOOLKIT
=none
;;
6845 * ) USE_X_TOOLKIT
=maybe
;;
6855 ### If we're using X11, we should use the X menu package.
6858 yes ) HAVE_MENUS
=yes ;;
6861 if test "${opsys}" = "hpux9"; then
6862 case "${x_libraries}" in
6864 opsysfile
="s/hpux9-x11r4.h"
6869 if test "${opsys}" = "hpux9shr"; then
6870 case "${x_libraries}" in
6872 opsysfile
="s/hpux9shxr4.h"
6877 ### Compute the unexec source name from the object name.
6878 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6880 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6881 # Assume not, until told otherwise.
6884 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6885 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6886 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 cat >conftest.
$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6893 cat confdefs.h
>>conftest.
$ac_ext
6894 cat >>conftest.
$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 /* System header to define __stub macros and hopefully few prototypes,
6897 which can conflict with char malloc_get_state (); below.
6898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6899 <limits.h> exists even on freestanding compilers. */
6901 # include <limits.h>
6903 # include <assert.h>
6905 /* Override any gcc2 internal prototype to avoid an error. */
6910 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */
6912 char malloc_get_state ();
6913 /* The GNU C library defines this for functions which it implements
6914 to always fail with ENOSYS. Some functions are actually named
6915 something starting with __ and the normal name is an alias. */
6916 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6919 char (*f) () = malloc_get_state;
6928 return f != malloc_get_state;
6933 rm -f conftest.
$ac_objext conftest
$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935 (eval $ac_link) 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try
='test -s conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_func_malloc_get_state
=yes
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.
$ac_ext >&5
6950 ac_cv_func_malloc_get_state
=no
6952 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6954 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6955 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6956 if test $ac_cv_func_malloc_get_state = yes; then
6962 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6963 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6964 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.
$ac_ext <<_ACEOF
6968 #line $LINENO "configure"
6971 cat confdefs.h
>>conftest.
$ac_ext
6972 cat >>conftest.
$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char malloc_set_state (); below.
6976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6977 <limits.h> exists even on freestanding compilers. */
6979 # include <limits.h>
6981 # include <assert.h>
6983 /* Override any gcc2 internal prototype to avoid an error. */
6988 /* We use char because int might match the return type of a gcc2
6989 builtin and then its argument prototype would still apply. */
6990 char malloc_set_state ();
6991 /* The GNU C library defines this for functions which it implements
6992 to always fail with ENOSYS. Some functions are actually named
6993 something starting with __ and the normal name is an alias. */
6994 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6997 char (*f) () = malloc_set_state;
7006 return f != malloc_set_state;
7011 rm -f conftest.
$ac_objext conftest
$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try
='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_func_malloc_set_state
=yes
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.
$ac_ext >&5
7028 ac_cv_func_malloc_set_state
=no
7030 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7032 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7033 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7034 if test $ac_cv_func_malloc_set_state = yes; then
7040 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7041 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7042 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 cat >conftest.
$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7049 cat confdefs.h
>>conftest.
$ac_ext
7050 cat >>conftest.
$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 extern void (* __after_morecore_hook)();
7056 __after_morecore_hook = 0
7061 rm -f conftest.
$ac_objext conftest
$ac_exeext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7063 (eval $ac_link) 2>&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try
='test -s conftest$ac_exeext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 emacs_cv_var___after_morecore_hook
=yes
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.
$ac_ext >&5
7078 emacs_cv_var___after_morecore_hook
=no
7080 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7082 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7083 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7084 if test $emacs_cv_var___after_morecore_hook = no
; then
7087 if test "${system_malloc}" = "yes"; then
7090 (The GNU allocators don't work with this system configuration.)"
7092 if test "$doug_lea_malloc" = "yes" ; then
7093 if test "$GNU_MALLOC" = yes ; then
7095 (Using Doug Lea's new malloc from the GNU C Library.)"
7098 cat >>confdefs.h
<<\_ACEOF
7099 #define DOUG_LEA_MALLOC 1
7104 if test x
"${REL_ALLOC}" = x
; then
7105 REL_ALLOC
=${GNU_MALLOC}
7111 for ac_header
in stdlib.h unistd.h
7113 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7115 echo "$as_me:$LINENO: checking for $ac_header" >&5
7116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7123 # Is the header compilable?
7124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7126 cat >conftest.
$ac_ext <<_ACEOF
7127 #line $LINENO "configure"
7130 cat confdefs.h
>>conftest.
$ac_ext
7131 cat >>conftest.
$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 $ac_includes_default
7134 #include <$ac_header>
7136 rm -f conftest.
$ac_objext
7137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7138 (eval $ac_compile) 2>&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } &&
7142 { ac_try
='test -s conftest.$ac_objext'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 ac_header_compiler
=yes
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.
$ac_ext >&5
7153 ac_header_compiler
=no
7155 rm -f conftest.
$ac_objext conftest.
$ac_ext
7156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7157 echo "${ECHO_T}$ac_header_compiler" >&6
7159 # Is the header present?
7160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7162 cat >conftest.
$ac_ext <<_ACEOF
7163 #line $LINENO "configure"
7166 cat confdefs.h
>>conftest.
$ac_ext
7167 cat >>conftest.
$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 #include <$ac_header>
7171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7172 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } >/dev
/null
; then
7179 if test -s conftest.err
; then
7180 ac_cpp_err
=$ac_c_preproc_warn_flag
7187 if test -z "$ac_cpp_err"; then
7188 ac_header_preproc
=yes
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.
$ac_ext >&5
7193 ac_header_preproc
=no
7195 rm -f conftest.err conftest.
$ac_ext
7196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7197 echo "${ECHO_T}$ac_header_preproc" >&6
7199 # So? What about this header?
7200 case $ac_header_compiler:$ac_header_preproc in
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7208 ## ------------------------------------ ##
7209 ## Report this to bug-autoconf@gnu.org. ##
7210 ## ------------------------------------ ##
7213 sed "s/^/$as_me: WARNING: /" >&2
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7224 ## ------------------------------------ ##
7225 ## Report this to bug-autoconf@gnu.org. ##
7226 ## ------------------------------------ ##
7229 sed "s/^/$as_me: WARNING: /" >&2
7232 echo "$as_me:$LINENO: checking for $ac_header" >&5
7233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 eval "$as_ac_Header=$ac_header_preproc"
7239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7244 cat >>confdefs.h
<<_ACEOF
7245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7253 for ac_func
in getpagesize
7255 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7256 echo "$as_me:$LINENO: checking for $ac_func" >&5
7257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7258 if eval "test \"\${$as_ac_var+set}\" = set"; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 cat >conftest.
$ac_ext <<_ACEOF
7262 #line $LINENO "configure"
7265 cat confdefs.h
>>conftest.
$ac_ext
7266 cat >>conftest.
$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 /* System header to define __stub macros and hopefully few prototypes,
7269 which can conflict with char $ac_func (); below.
7270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271 <limits.h> exists even on freestanding compilers. */
7273 # include <limits.h>
7275 # include <assert.h>
7277 /* Override any gcc2 internal prototype to avoid an error. */
7282 /* We use char because int might match the return type of a gcc2
7283 builtin and then its argument prototype would still apply. */
7285 /* The GNU C library defines this for functions which it implements
7286 to always fail with ENOSYS. Some functions are actually named
7287 something starting with __ and the normal name is an alias. */
7288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7291 char (*f) () = $ac_func;
7300 return f != $ac_func;
7305 rm -f conftest.
$ac_objext conftest
$ac_exeext
7306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7307 (eval $ac_link) 2>&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try
='test -s conftest$ac_exeext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 eval "$as_ac_var=yes"
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.
$ac_ext >&5
7322 eval "$as_ac_var=no"
7324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7328 if test `eval echo '${'$as_ac_var'}'` = yes; then
7329 cat >>confdefs.h
<<_ACEOF
7330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7336 echo "$as_me:$LINENO: checking for working mmap" >&5
7337 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7338 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 if test "$cross_compiling" = yes; then
7342 ac_cv_func_mmap_fixed_mapped
=no
7344 cat >conftest.
$ac_ext <<_ACEOF
7345 #line $LINENO "configure"
7348 cat confdefs.h
>>conftest.
$ac_ext
7349 cat >>conftest.
$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7351 $ac_includes_default
7352 /* malloc might have been renamed as rpl_malloc. */
7355 /* Thanks to Mike Haertel and Jim Avera for this test.
7356 Here is a matrix of mmap possibilities:
7357 mmap private not fixed
7358 mmap private fixed at somewhere currently unmapped
7359 mmap private fixed at somewhere already mapped
7360 mmap shared not fixed
7361 mmap shared fixed at somewhere currently unmapped
7362 mmap shared fixed at somewhere already mapped
7363 For private mappings, we should verify that changes cannot be read()
7364 back from the file, nor mmap's back from the file at a different
7365 address. (There have been systems where private was not correctly
7366 implemented like the infamous i386 svr4.0, and systems where the
7367 VM page cache was not coherent with the file system buffer cache
7368 like early versions of FreeBSD and possibly contemporary NetBSD.)
7369 For shared mappings, we should conversely verify that changes get
7370 propagated back to all the places they're supposed to be.
7372 Grep wants private fixed already mapped.
7373 The main things grep needs to know about mmap are:
7374 * does it exist and is it safe to write into the mmap'd area
7375 * how to use it (BSD variants) */
7378 #include <sys/mman.h>
7380 #if !STDC_HEADERS && !HAVE_STDLIB_H
7384 /* This mess was copied from the GNU getpagesize.h. */
7385 #if !HAVE_GETPAGESIZE
7386 /* Assume that all systems that can run configure have sys/param.h. */
7387 # if !HAVE_SYS_PARAM_H
7388 # define HAVE_SYS_PARAM_H 1
7391 # ifdef _SC_PAGESIZE
7392 # define getpagesize() sysconf(_SC_PAGESIZE)
7393 # else /* no _SC_PAGESIZE */
7394 # if HAVE_SYS_PARAM_H
7395 # include <sys/param.h>
7396 # ifdef EXEC_PAGESIZE
7397 # define getpagesize() EXEC_PAGESIZE
7398 # else /* no EXEC_PAGESIZE */
7400 # define getpagesize() NBPG * CLSIZE
7403 # endif /* no CLSIZE */
7404 # else /* no NBPG */
7406 # define getpagesize() NBPC
7407 # else /* no NBPC */
7409 # define getpagesize() PAGESIZE
7410 # endif /* PAGESIZE */
7411 # endif /* no NBPC */
7412 # endif /* no NBPG */
7413 # endif /* no EXEC_PAGESIZE */
7414 # else /* no HAVE_SYS_PARAM_H */
7415 # define getpagesize() 8192 /* punt totally */
7416 # endif /* no HAVE_SYS_PARAM_H */
7417 # endif /* no _SC_PAGESIZE */
7419 #endif /* no HAVE_GETPAGESIZE */
7424 char *data, *data2, *data3;
7428 pagesize = getpagesize ();
7430 /* First, make a file with some known garbage in it. */
7431 data = (char *) malloc (pagesize);
7434 for (i = 0; i < pagesize; ++i)
7435 *(data + i) = rand ();
7437 fd = creat ("conftest.mmap", 0600);
7440 if (write (fd, data, pagesize) != pagesize)
7444 /* Next, try to mmap the file at a fixed address which already has
7445 something else allocated at it. If we can, also make sure that
7446 we see the same garbage. */
7447 fd = open ("conftest.mmap", O_RDWR);
7450 data2 = (char *) malloc (2 * pagesize);
7453 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7454 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7455 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7457 for (i = 0; i < pagesize; ++i)
7458 if (*(data + i) != *(data2 + i))
7461 /* Finally, make sure that changes to the mapped area do not
7462 percolate back to the file as seen by read(). (This is a bug on
7463 some variants of i386 svr4.0.) */
7464 for (i = 0; i < pagesize; ++i)
7465 *(data2 + i) = *(data2 + i) + 1;
7466 data3 = (char *) malloc (pagesize);
7469 if (read (fd, data3, pagesize) != pagesize)
7471 for (i = 0; i < pagesize; ++i)
7472 if (*(data + i) != *(data3 + i))
7478 rm -f conftest
$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480 (eval $ac_link) 2>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_func_mmap_fixed_mapped
=yes
7491 echo "$as_me: program exited with status $ac_status" >&5
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.
$ac_ext >&5
7496 ac_cv_func_mmap_fixed_mapped
=no
7498 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7501 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7502 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7503 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7505 cat >>confdefs.h
<<\_ACEOF
7512 if test $use_mmap_for_buffers = yes; then
7516 LIBS
="$libsrc_libs $LIBS"
7519 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7520 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7521 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 ac_check_lib_save_LIBS
=$LIBS
7526 cat >conftest.
$ac_ext <<_ACEOF
7527 #line $LINENO "configure"
7530 cat confdefs.h
>>conftest.
$ac_ext
7531 cat >>conftest.
$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7534 /* Override any gcc2 internal prototype to avoid an error. */
7538 /* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7549 rm -f conftest.
$ac_objext conftest
$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try
='test -s conftest$ac_exeext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 ac_cv_lib_dnet_dnet_ntoa
=yes
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.
$ac_ext >&5
7566 ac_cv_lib_dnet_dnet_ntoa
=no
7568 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7569 LIBS
=$ac_check_lib_save_LIBS
7571 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7572 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7573 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7574 cat >>confdefs.h
<<_ACEOF
7575 #define HAVE_LIBDNET 1
7583 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7584 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7585 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 ac_check_lib_save_LIBS
=$LIBS
7590 cat >conftest.
$ac_ext <<_ACEOF
7591 #line $LINENO "configure"
7594 cat confdefs.h
>>conftest.
$ac_ext
7595 cat >>conftest.
$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7607 rm -f conftest.
$ac_objext conftest
$ac_exeext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609 (eval $ac_link) 2>&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try
='test -s conftest$ac_exeext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_cv_lib_Xbsd_main
=yes
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.
$ac_ext >&5
7624 ac_cv_lib_Xbsd_main
=no
7626 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7627 LIBS
=$ac_check_lib_save_LIBS
7629 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7630 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7631 if test $ac_cv_lib_Xbsd_main = yes; then
7632 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7637 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7638 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7639 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_check_lib_save_LIBS
=$LIBS
7643 LIBS
="-lpthreads $LIBS"
7644 cat >conftest.
$ac_ext <<_ACEOF
7645 #line $LINENO "configure"
7648 cat confdefs.h
>>conftest.
$ac_ext
7649 cat >>conftest.
$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7652 /* Override any gcc2 internal prototype to avoid an error. */
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7667 rm -f conftest.
$ac_objext conftest
$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try
='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_lib_pthreads_cma_open
=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.
$ac_ext >&5
7684 ac_cv_lib_pthreads_cma_open
=no
7686 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7687 LIBS
=$ac_check_lib_save_LIBS
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7690 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7691 if test $ac_cv_lib_pthreads_cma_open = yes; then
7692 cat >>confdefs.h
<<_ACEOF
7693 #define HAVE_LIBPTHREADS 1
7696 LIBS
="-lpthreads $LIBS"
7701 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7702 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7703 if test -d /usr
/X386
/include
; then
7705 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7709 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7710 echo "${ECHO_T}$HAVE_XFREE386" >&6
7715 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7716 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7717 if test "${gdb_cv_bigtoc+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7723 *) gdb_cv_bigtoc
=-bbigtoc ;;
7726 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7727 cat >conftest.
$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7731 cat confdefs.h
>>conftest.
$ac_ext
7732 cat >>conftest.
$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7743 rm -f conftest.
$ac_objext conftest
$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -s conftest$ac_exeext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.
$ac_ext >&5
7762 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7765 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7766 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7770 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7771 # used for the tests that follow. We set them back to REAL_CFLAGS and
7772 # REAL_CPPFLAGS later on.
7774 REAL_CPPFLAGS
="$CPPFLAGS"
7776 if test "${HAVE_X11}" = "yes"; then
7777 DEFS
="$C_SWITCH_X_SITE $DEFS"
7778 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7780 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7781 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7783 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7784 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7785 # but it's more convenient here to set LD_RUN_PATH
7786 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7787 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7788 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7792 if test "${opsys}" = "gnu-linux"; then
7793 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7794 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7795 cat >conftest.
$ac_ext <<_ACEOF
7796 #line $LINENO "configure"
7799 cat confdefs.h
>>conftest.
$ac_ext
7800 cat >>conftest.
$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7806 XOpenDisplay ("foo");
7811 rm -f conftest.
$ac_objext conftest
$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try
='test -s conftest$ac_exeext'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 xlinux_first_failure
=no
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.
$ac_ext >&5
7828 xlinux_first_failure
=yes
7830 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7831 if test "${xlinux_first_failure}" = "yes"; then
7832 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7833 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7834 OLD_CPPFLAGS
="$CPPFLAGS"
7836 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7837 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7838 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7839 LIBS
="$LIBS -b i486-linuxaout"
7840 cat >conftest.
$ac_ext <<_ACEOF
7841 #line $LINENO "configure"
7844 cat confdefs.h
>>conftest.
$ac_ext
7845 cat >>conftest.
$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7851 XOpenDisplay ("foo");
7856 rm -f conftest.
$ac_objext conftest
$ac_exeext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7858 (eval $ac_link) 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try
='test -s conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 xlinux_second_failure
=no
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.
$ac_ext >&5
7873 xlinux_second_failure
=yes
7875 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7876 if test "${xlinux_second_failure}" = "yes"; then
7877 # If we get the same failure with -b, there is no use adding -b.
7878 # So take it out. This plays safe.
7879 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7880 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7881 CPPFLAGS
="$OLD_CPPFLAGS"
7883 echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7886 echo "$as_me:$LINENO: result: yes" >&5
7887 echo "${ECHO_T}yes" >&6
7890 echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6
7895 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7896 # header files included from there.
7897 echo "$as_me:$LINENO: checking for Xkb" >&5
7898 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7899 cat >conftest.
$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7903 cat confdefs.h
>>conftest.
$ac_ext
7904 cat >>conftest.
$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 #include <X11/Xlib.h>
7907 #include <X11/XKBlib.h>
7911 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7916 rm -f conftest.
$ac_objext conftest
$ac_exeext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try
='test -s conftest$ac_exeext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.
$ac_ext >&5
7935 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7936 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7937 echo "${ECHO_T}$emacs_xkb" >&6
7938 if test $emacs_xkb = yes; then
7940 cat >>confdefs.h
<<\_ACEOF
7941 #define HAVE_XKBGETKEYBOARD 1
7950 for ac_func
in XrmSetDatabase XScreenResourceString \
7951 XScreenNumberOfScreen XSetWMProtocols
7953 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7954 echo "$as_me:$LINENO: checking for $ac_func" >&5
7955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7956 if eval "test \"\${$as_ac_var+set}\" = set"; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 cat >conftest.
$ac_ext <<_ACEOF
7960 #line $LINENO "configure"
7963 cat confdefs.h
>>conftest.
$ac_ext
7964 cat >>conftest.
$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 /* System header to define __stub macros and hopefully few prototypes,
7967 which can conflict with char $ac_func (); below.
7968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7969 <limits.h> exists even on freestanding compilers. */
7971 # include <limits.h>
7973 # include <assert.h>
7975 /* Override any gcc2 internal prototype to avoid an error. */
7980 /* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7983 /* The GNU C library defines this for functions which it implements
7984 to always fail with ENOSYS. Some functions are actually named
7985 something starting with __ and the normal name is an alias. */
7986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7989 char (*f) () = $ac_func;
7998 return f != $ac_func;
8003 rm -f conftest.
$ac_objext conftest
$ac_exeext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005 (eval $ac_link) 2>&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try
='test -s conftest$ac_exeext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 eval "$as_ac_var=yes"
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.
$ac_ext >&5
8020 eval "$as_ac_var=no"
8022 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8026 if test `eval echo '${'$as_ac_var'}'` = yes; then
8027 cat >>confdefs.h
<<_ACEOF
8028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8036 if test "${window_system}" = "x11"; then
8037 echo "$as_me:$LINENO: checking X11 version 6" >&5
8038 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8039 if test "${emacs_cv_x11_version_6+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 cat >conftest.
$ac_ext <<_ACEOF
8043 #line $LINENO "configure"
8046 cat confdefs.h
>>conftest.
$ac_ext
8047 cat >>conftest.
$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 #include <X11/Xlib.h>
8053 #if XlibSpecificationRelease < 6
8061 rm -f conftest.
$ac_objext conftest
$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try
='test -s conftest$ac_exeext'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 emacs_cv_x11_version_6
=yes
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.
$ac_ext >&5
8078 emacs_cv_x11_version_6
=no
8080 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8083 if test $emacs_cv_x11_version_6 = yes; then
8084 echo "$as_me:$LINENO: result: 6 or newer" >&5
8085 echo "${ECHO_T}6 or newer" >&6
8087 cat >>confdefs.h
<<\_ACEOF
8088 #define HAVE_X11R6 1
8092 echo "$as_me:$LINENO: result: before 6" >&5
8093 echo "${ECHO_T}before 6" >&6
8097 if test "${window_system}" = "x11"; then
8098 echo "$as_me:$LINENO: checking X11 version 5" >&5
8099 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8100 if test "${emacs_cv_x11_version_5+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 cat >conftest.
$ac_ext <<_ACEOF
8104 #line $LINENO "configure"
8107 cat confdefs.h
>>conftest.
$ac_ext
8108 cat >>conftest.
$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 #include <X11/Xlib.h>
8114 #if XlibSpecificationRelease < 5
8122 rm -f conftest.
$ac_objext conftest
$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try
='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 emacs_cv_x11_version_5
=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.
$ac_ext >&5
8139 emacs_cv_x11_version_5
=no
8141 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8144 if test $emacs_cv_x11_version_5 = yes; then
8145 echo "$as_me:$LINENO: result: 5 or newer" >&5
8146 echo "${ECHO_T}5 or newer" >&6
8149 cat >>confdefs.h
<<\_ACEOF
8150 #define HAVE_X11R5 1
8155 echo "$as_me:$LINENO: result: before 5" >&5
8156 echo "${ECHO_T}before 5" >&6
8163 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8164 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8165 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8166 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8167 { (exit 1); exit 1; }; };
8171 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8173 if test "X${with_pkg_config_prog}" != X
; then
8174 PKG_CONFIG
="${with_pkg_config_prog}"
8179 if test -z "$PKG_CONFIG"; then
8180 # Extract the first word of "pkg-config", so it can be a program name with args.
8181 set dummy pkg-config
; ac_word
=$2
8182 echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8184 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir
=.
8197 for ac_exec_ext
in '' $ac_executable_extensions; do
8198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8210 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8212 if test -n "$PKG_CONFIG"; then
8213 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8214 echo "${ECHO_T}$PKG_CONFIG" >&6
8216 echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8222 if test "$PKG_CONFIG" = "no" ; then
8223 echo "*** The pkg-config script could not be found. Make sure it is"
8224 echo "*** in your path, or give the full path to pkg-config with"
8225 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8226 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8228 PKG_CONFIG_MIN_VERSION
=0.9.0
8229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8230 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8231 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8233 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8234 echo "$as_me:$LINENO: result: yes" >&5
8235 echo "${ECHO_T}yes" >&6
8238 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8239 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8240 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8241 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8242 echo "${ECHO_T}$GTK_CFLAGS" >&6
8244 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8245 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8246 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8247 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8248 echo "${ECHO_T}$GTK_LIBS" >&6
8252 ## If we have a custom action on failure, don't print errors, but
8253 ## do set a variable so people can do so.
8254 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8255 echo $GTK_PKG_ERRORS
8261 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8262 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8266 if test $succeeded = yes; then
8269 { { 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
8270 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;}
8271 { (exit 1); exit 1; }; }
8276 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8279 cat >>confdefs.h
<<\_ACEOF
8285 with_toolkit_scroll_bars
=yes
8288 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8289 if test x
"${HAVE_X11R5}" = xyes
; then
8290 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8291 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8292 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 cat >conftest.
$ac_ext <<_ACEOF
8296 #line $LINENO "configure"
8299 cat confdefs.h
>>conftest.
$ac_ext
8300 cat >>conftest.
$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8303 #include <X11/Intrinsic.h>
8304 #include <X11/Xaw/Simple.h>
8313 rm -f conftest.
$ac_objext conftest
$ac_exeext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8315 (eval $ac_link) 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try
='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 emacs_cv_x11_version_5_with_xaw
=yes
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.
$ac_ext >&5
8330 emacs_cv_x11_version_5_with_xaw
=no
8332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8335 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8336 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8337 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8340 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8341 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8349 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8351 if test "${USE_X_TOOLKIT}" != "none"; then
8352 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8353 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8354 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 cat >conftest.
$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8361 cat confdefs.h
>>conftest.
$ac_ext
8362 cat >>conftest.
$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <X11/Intrinsic.h>
8368 #if XtSpecificationRelease < 6
8376 rm -f conftest.
$ac_objext conftest
$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try
='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 emacs_cv_x11_toolkit_version_6
=yes
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.
$ac_ext >&5
8393 emacs_cv_x11_toolkit_version_6
=no
8395 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8398 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8399 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8400 echo "$as_me:$LINENO: result: 6 or newer" >&5
8401 echo "${ECHO_T}6 or newer" >&6
8403 cat >>confdefs.h
<<\_ACEOF
8404 #define HAVE_X11XTR6 1
8408 echo "$as_me:$LINENO: result: before 6" >&5
8409 echo "${ECHO_T}before 6" >&6
8413 if test x
$HAVE_X11XTR6 = xyes
; then
8414 LIBS
="-lXt -lSM -lICE $LIBS"
8419 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8420 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8421 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 ac_check_lib_save_LIBS
=$LIBS
8426 cat >conftest.
$ac_ext <<_ACEOF
8427 #line $LINENO "configure"
8430 cat confdefs.h
>>conftest.
$ac_ext
8431 cat >>conftest.
$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8434 /* Override any gcc2 internal prototype to avoid an error. */
8438 /* We use char because int might match the return type of a gcc2
8439 builtin and then its argument prototype would still apply. */
8440 char XmuConvertStandardSelection ();
8444 XmuConvertStandardSelection ();
8449 rm -f conftest.
$ac_objext conftest
$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try
='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.
$ac_ext >&5
8466 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8468 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8469 LIBS
=$ac_check_lib_save_LIBS
8471 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8472 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8473 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8474 cat >>confdefs.h
<<_ACEOF
8475 #define HAVE_LIBXMU 1
8482 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8485 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8486 if test "${HAVE_X11}" = "yes"; then
8487 if test "${USE_X_TOOLKIT}" != "none"; then
8489 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8490 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8491 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 ac_check_lib_save_LIBS
=$LIBS
8496 cat >conftest.
$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8500 cat confdefs.h
>>conftest.
$ac_ext
8501 cat >>conftest.
$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8504 /* Override any gcc2 internal prototype to avoid an error. */
8508 /* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8510 char XShapeQueryExtension ();
8514 XShapeQueryExtension ();
8519 rm -f conftest.
$ac_objext conftest
$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try
='test -s conftest$ac_exeext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.
$ac_ext >&5
8536 ac_cv_lib_Xext_XShapeQueryExtension
=no
8538 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8539 LIBS
=$ac_check_lib_save_LIBS
8541 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8542 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8543 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8544 cat >>confdefs.h
<<_ACEOF
8545 #define HAVE_LIBXEXT 1
8555 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8556 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8557 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8558 if test "${emacs_cv_lesstif+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 # We put this in CFLAGS temporarily to precede other -I options
8562 # that might be in CFLAGS temporarily.
8563 # We put this in CPPFLAGS where it precedes the other -I options.
8564 OLD_CPPFLAGS
=$CPPFLAGS
8566 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8567 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8568 cat >conftest.
$ac_ext <<_ACEOF
8569 #line $LINENO "configure"
8572 cat confdefs.h
>>conftest.
$ac_ext
8573 cat >>conftest.
$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8584 rm -f conftest.
$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586 (eval $ac_compile) 2>&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try
='test -s conftest.$ac_objext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 emacs_cv_lesstif
=yes
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.
$ac_ext >&5
8603 rm -f conftest.
$ac_objext conftest.
$ac_ext
8605 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8606 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8607 if test $emacs_cv_lesstif = yes; then
8608 # Make sure this -I option remains in CPPFLAGS after it is set
8609 # back to REAL_CPPFLAGS.
8610 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8611 # have those other -I options anyway. Ultimately, having this
8612 # directory ultimately in CPPFLAGS will be enough.
8613 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8614 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8617 CPPFLAGS
=$OLD_CPPFLAGS
8619 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8620 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8621 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 cat >conftest.
$ac_ext <<_ACEOF
8625 #line $LINENO "configure"
8628 cat confdefs.h
>>conftest.
$ac_ext
8629 cat >>conftest.
$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8635 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8638 Motif version prior to 2.1.
8644 rm -f conftest.
$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try
='test -s conftest.$ac_objext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 emacs_cv_motif_version_2_1
=yes
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.
$ac_ext >&5
8661 emacs_cv_motif_version_2_1
=no
8663 rm -f conftest.
$ac_objext conftest.
$ac_ext
8665 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8666 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8667 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8668 if test $emacs_cv_motif_version_2_1 = yes; then
8671 cat >>confdefs.h
<<\_ACEOF
8672 #define HAVE_MOTIF_2_1 1
8675 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8676 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8677 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ac_check_lib_save_LIBS
=$LIBS
8682 cat >conftest.
$ac_ext <<_ACEOF
8683 #line $LINENO "configure"
8686 cat confdefs.h
>>conftest.
$ac_ext
8687 cat >>conftest.
$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8690 /* Override any gcc2 internal prototype to avoid an error. */
8694 /* We use char because int might match the return type of a gcc2
8695 builtin and then its argument prototype would still apply. */
8696 char XpCreateContext ();
8705 rm -f conftest.
$ac_objext conftest
$ac_exeext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try
='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_lib_Xp_XpCreateContext
=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.
$ac_ext >&5
8722 ac_cv_lib_Xp_XpCreateContext
=no
8724 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8725 LIBS
=$ac_check_lib_save_LIBS
8727 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8728 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8729 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8733 if test ${HAVE_LIBXP} = yes; then
8735 cat >>confdefs.h
<<\_ACEOF
8736 #define HAVE_LIBXP 1
8743 ### Is -lXaw3d available?
8745 if test "${HAVE_X11}" = "yes"; then
8746 if test "${USE_X_TOOLKIT}" != "none"; then
8747 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8748 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8749 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 cat >conftest.
$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8756 cat confdefs.h
>>conftest.
$ac_ext
8757 cat >>conftest.
$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 #include <X11/Xaw3d/Scrollbar.h>
8761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8764 grep -v '^ *+' conftest.er1
>conftest.err
8766 cat conftest.err
>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } >/dev
/null
; then
8769 if test -s conftest.err
; then
8770 ac_cpp_err
=$ac_c_preproc_warn_flag
8777 if test -z "$ac_cpp_err"; then
8778 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.
$ac_ext >&5
8783 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8785 rm -f conftest.err conftest.
$ac_ext
8787 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8788 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8789 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8790 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8791 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8792 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 ac_check_lib_save_LIBS
=$LIBS
8796 LIBS
="-lXaw3d $LIBS"
8797 cat >conftest.
$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8801 cat confdefs.h
>>conftest.
$ac_ext
8802 cat >>conftest.
$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8805 /* Override any gcc2 internal prototype to avoid an error. */
8809 /* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8811 char XawScrollbarSetThumb ();
8815 XawScrollbarSetThumb ();
8820 rm -f conftest.
$ac_objext conftest
$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try
='test -s conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.
$ac_ext >&5
8837 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8839 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8840 LIBS
=$ac_check_lib_save_LIBS
8842 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8843 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8844 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8851 if test "${HAVE_XAW3D}" = "yes"; then
8853 cat >>confdefs.h
<<\_ACEOF
8854 #define HAVE_XAW3D 1
8863 USE_TOOLKIT_SCROLL_BARS
=no
8864 if test "${with_toolkit_scroll_bars}" != "no"; then
8865 if test "${USE_X_TOOLKIT}" != "none"; then
8866 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8867 cat >>confdefs.h
<<\_ACEOF
8868 #define USE_TOOLKIT_SCROLL_BARS 1
8872 USE_TOOLKIT_SCROLL_BARS
=yes
8873 elif test "${HAVE_XAW3D}" = "yes"; then
8874 cat >>confdefs.h
<<\_ACEOF
8875 #define USE_TOOLKIT_SCROLL_BARS 1
8878 USE_TOOLKIT_SCROLL_BARS
=yes
8880 elif test "${HAVE_GTK}" = "yes"; then
8881 cat >>confdefs.h
<<\_ACEOF
8882 #define USE_TOOLKIT_SCROLL_BARS 1
8885 USE_TOOLKIT_SCROLL_BARS
=yes
8890 if test "${with_xim}" != "no"; then
8892 cat >>confdefs.h
<<\_ACEOF
8898 ### Use -lXpm if available, unless `--with-xpm=no'.
8900 if test "${HAVE_X11}" = "yes"; then
8901 if test "${with_xpm}" != "no"; then
8902 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8903 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8904 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8905 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8909 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8911 # Is the header compilable?
8912 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8913 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8914 cat >conftest.
$ac_ext <<_ACEOF
8915 #line $LINENO "configure"
8918 cat confdefs.h
>>conftest.
$ac_ext
8919 cat >>conftest.
$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8921 $ac_includes_default
8922 #include <X11/xpm.h>
8924 rm -f conftest.
$ac_objext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try
='test -s conftest.$ac_objext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_header_compiler
=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.
$ac_ext >&5
8941 ac_header_compiler
=no
8943 rm -f conftest.
$ac_objext conftest.
$ac_ext
8944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8945 echo "${ECHO_T}$ac_header_compiler" >&6
8947 # Is the header present?
8948 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8949 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8950 cat >conftest.
$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8954 cat confdefs.h
>>conftest.
$ac_ext
8955 cat >>conftest.
$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 #include <X11/xpm.h>
8959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8960 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8962 grep -v '^ *+' conftest.er1
>conftest.err
8964 cat conftest.err
>&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } >/dev
/null
; then
8967 if test -s conftest.err
; then
8968 ac_cpp_err
=$ac_c_preproc_warn_flag
8975 if test -z "$ac_cpp_err"; then
8976 ac_header_preproc
=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.
$ac_ext >&5
8981 ac_header_preproc
=no
8983 rm -f conftest.err conftest.
$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6
8987 # So? What about this header?
8988 case $ac_header_compiler:$ac_header_preproc in
8990 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8996 ## ------------------------------------ ##
8997 ## Report this to bug-autoconf@gnu.org. ##
8998 ## ------------------------------------ ##
9001 sed "s/^/$as_me: WARNING: /" >&2
9004 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9005 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9007 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9009 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9012 ## ------------------------------------ ##
9013 ## Report this to bug-autoconf@gnu.org. ##
9014 ## ------------------------------------ ##
9017 sed "s/^/$as_me: WARNING: /" >&2
9020 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9021 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9022 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9027 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9028 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9031 if test $ac_cv_header_X11_xpm_h = yes; then
9032 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9033 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9034 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 ac_check_lib_save_LIBS
=$LIBS
9038 LIBS
="-lXpm -lX11 $LIBS"
9039 cat >conftest.
$ac_ext <<_ACEOF
9040 #line $LINENO "configure"
9043 cat confdefs.h
>>conftest.
$ac_ext
9044 cat >>conftest.
$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9047 /* Override any gcc2 internal prototype to avoid an error. */
9051 /* We use char because int might match the return type of a gcc2
9052 builtin and then its argument prototype would still apply. */
9053 char XpmReadFileToPixmap ();
9057 XpmReadFileToPixmap ();
9062 rm -f conftest.
$ac_objext conftest
$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try
='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.
$ac_ext >&5
9079 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9082 LIBS
=$ac_check_lib_save_LIBS
9084 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9085 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9086 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9093 if test "${HAVE_XPM}" = "yes"; then
9094 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9095 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9096 cat >conftest.
$ac_ext <<_ACEOF
9097 #line $LINENO "configure"
9100 cat confdefs.h
>>conftest.
$ac_ext
9101 cat >>conftest.
$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 #include "X11/xpm.h"
9104 #ifndef XpmReturnAllocPixels
9105 no_return_alloc_pixels
9109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9110 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9118 if test "${HAVE_XPM}" = "yes"; then
9119 echo "$as_me:$LINENO: result: yes" >&5
9120 echo "${ECHO_T}yes" >&6
9122 echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6
9128 if test "${HAVE_XPM}" = "yes"; then
9130 cat >>confdefs.h
<<\_ACEOF
9137 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9139 if test "${HAVE_X11}" = "yes"; then
9140 if test "${with_jpeg}" != "no"; then
9141 if test "${ac_cv_header_jerror_h+set}" = set; then
9142 echo "$as_me:$LINENO: checking for jerror.h" >&5
9143 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9144 if test "${ac_cv_header_jerror_h+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9148 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9150 # Is the header compilable?
9151 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9152 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9153 cat >conftest.
$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9157 cat confdefs.h
>>conftest.
$ac_ext
9158 cat >>conftest.
$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 $ac_includes_default
9163 rm -f conftest.
$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165 (eval $ac_compile) 2>&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try
='test -s conftest.$ac_objext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_header_compiler
=yes
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.
$ac_ext >&5
9180 ac_header_compiler
=no
9182 rm -f conftest.
$ac_objext conftest.
$ac_ext
9183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9184 echo "${ECHO_T}$ac_header_compiler" >&6
9186 # Is the header present?
9187 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9188 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9189 cat >conftest.
$ac_ext <<_ACEOF
9190 #line $LINENO "configure"
9193 cat confdefs.h
>>conftest.
$ac_ext
9194 cat >>conftest.
$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9201 grep -v '^ *+' conftest.er1
>conftest.err
9203 cat conftest.err
>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } >/dev
/null
; then
9206 if test -s conftest.err
; then
9207 ac_cpp_err
=$ac_c_preproc_warn_flag
9214 if test -z "$ac_cpp_err"; then
9215 ac_header_preproc
=yes
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.
$ac_ext >&5
9220 ac_header_preproc
=no
9222 rm -f conftest.err conftest.
$ac_ext
9223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9224 echo "${ECHO_T}$ac_header_preproc" >&6
9226 # So? What about this header?
9227 case $ac_header_compiler:$ac_header_preproc in
9229 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9230 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9232 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9235 ## ------------------------------------ ##
9236 ## Report this to bug-autoconf@gnu.org. ##
9237 ## ------------------------------------ ##
9240 sed "s/^/$as_me: WARNING: /" >&2
9243 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9244 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9246 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9248 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9251 ## ------------------------------------ ##
9252 ## Report this to bug-autoconf@gnu.org. ##
9253 ## ------------------------------------ ##
9256 sed "s/^/$as_me: WARNING: /" >&2
9259 echo "$as_me:$LINENO: checking for jerror.h" >&5
9260 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9261 if test "${ac_cv_header_jerror_h+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 ac_cv_header_jerror_h
=$ac_header_preproc
9266 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9267 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9270 if test $ac_cv_header_jerror_h = yes; then
9271 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9272 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9273 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 ac_check_lib_save_LIBS
=$LIBS
9278 cat >conftest.
$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9282 cat confdefs.h
>>conftest.
$ac_ext
9283 cat >>conftest.
$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9286 /* Override any gcc2 internal prototype to avoid an error. */
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9292 char jpeg_destroy_compress ();
9296 jpeg_destroy_compress ();
9301 rm -f conftest.
$ac_objext conftest
$ac_exeext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try
='test -s conftest$ac_exeext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.
$ac_ext >&5
9318 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9320 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9321 LIBS
=$ac_check_lib_save_LIBS
9323 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9324 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9325 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9335 if test "${HAVE_JPEG}" = "yes"; then
9336 cat >>confdefs.h
<<\_ACEOF
9340 cat >conftest.
$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9344 cat confdefs.h
>>conftest.
$ac_ext
9345 cat >>conftest.
$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 #include <jpeglib.h>
9348 version=JPEG_LIB_VERSION
9351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9352 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9353 cat >>confdefs.h
<<\_ACEOF
9358 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9359 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9367 ### Use -lpng if available, unless `--with-png=no'.
9369 if test "${HAVE_X11}" = "yes"; then
9370 if test "${with_png}" != "no"; then
9371 if test "${ac_cv_header_png_h+set}" = set; then
9372 echo "$as_me:$LINENO: checking for png.h" >&5
9373 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9374 if test "${ac_cv_header_png_h+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9378 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9380 # Is the header compilable?
9381 echo "$as_me:$LINENO: checking png.h usability" >&5
9382 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9383 cat >conftest.
$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9387 cat confdefs.h
>>conftest.
$ac_ext
9388 cat >>conftest.
$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390 $ac_includes_default
9393 rm -f conftest.
$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try
='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_header_compiler
=yes
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.
$ac_ext >&5
9410 ac_header_compiler
=no
9412 rm -f conftest.
$ac_objext conftest.
$ac_ext
9413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9414 echo "${ECHO_T}$ac_header_compiler" >&6
9416 # Is the header present?
9417 echo "$as_me:$LINENO: checking png.h presence" >&5
9418 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9419 cat >conftest.
$ac_ext <<_ACEOF
9420 #line $LINENO "configure"
9423 cat confdefs.h
>>conftest.
$ac_ext
9424 cat >>conftest.
$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9429 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9431 grep -v '^ *+' conftest.er1
>conftest.err
9433 cat conftest.err
>&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } >/dev
/null
; then
9436 if test -s conftest.err
; then
9437 ac_cpp_err
=$ac_c_preproc_warn_flag
9444 if test -z "$ac_cpp_err"; then
9445 ac_header_preproc
=yes
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.
$ac_ext >&5
9450 ac_header_preproc
=no
9452 rm -f conftest.err conftest.
$ac_ext
9453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9454 echo "${ECHO_T}$ac_header_preproc" >&6
9456 # So? What about this header?
9457 case $ac_header_compiler:$ac_header_preproc in
9459 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9460 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9462 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9465 ## ------------------------------------ ##
9466 ## Report this to bug-autoconf@gnu.org. ##
9467 ## ------------------------------------ ##
9470 sed "s/^/$as_me: WARNING: /" >&2
9473 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9474 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9476 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9478 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9481 ## ------------------------------------ ##
9482 ## Report this to bug-autoconf@gnu.org. ##
9483 ## ------------------------------------ ##
9486 sed "s/^/$as_me: WARNING: /" >&2
9489 echo "$as_me:$LINENO: checking for png.h" >&5
9490 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9491 if test "${ac_cv_header_png_h+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 ac_cv_header_png_h
=$ac_header_preproc
9496 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9497 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9500 if test $ac_cv_header_png_h = yes; then
9501 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9502 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9503 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 ac_check_lib_save_LIBS
=$LIBS
9507 LIBS
="-lpng -lz -lm $LIBS"
9508 cat >conftest.
$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9512 cat confdefs.h
>>conftest.
$ac_ext
9513 cat >>conftest.
$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9516 /* Override any gcc2 internal prototype to avoid an error. */
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9522 char png_get_channels ();
9526 png_get_channels ();
9531 rm -f conftest.
$ac_objext conftest
$ac_exeext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533 (eval $ac_link) 2>&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } &&
9537 { ac_try
='test -s conftest$ac_exeext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_lib_png_png_get_channels
=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.
$ac_ext >&5
9548 ac_cv_lib_png_png_get_channels
=no
9550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9551 LIBS
=$ac_check_lib_save_LIBS
9553 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9554 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9555 if test $ac_cv_lib_png_png_get_channels = yes; then
9564 if test "${HAVE_PNG}" = "yes"; then
9566 cat >>confdefs.h
<<\_ACEOF
9573 ### Use -ltiff if available, unless `--with-tiff=no'.
9575 if test "${HAVE_X11}" = "yes"; then
9576 if test "${with_tiff}" != "no"; then
9577 if test "${ac_cv_header_tiffio_h+set}" = set; then
9578 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9579 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9580 if test "${ac_cv_header_tiffio_h+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9584 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9586 # Is the header compilable?
9587 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9588 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9589 cat >conftest.
$ac_ext <<_ACEOF
9590 #line $LINENO "configure"
9593 cat confdefs.h
>>conftest.
$ac_ext
9594 cat >>conftest.
$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9596 $ac_includes_default
9599 rm -f conftest.
$ac_objext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9601 (eval $ac_compile) 2>&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try
='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_header_compiler
=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.
$ac_ext >&5
9616 ac_header_compiler
=no
9618 rm -f conftest.
$ac_objext conftest.
$ac_ext
9619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620 echo "${ECHO_T}$ac_header_compiler" >&6
9622 # Is the header present?
9623 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9624 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9625 cat >conftest.
$ac_ext <<_ACEOF
9626 #line $LINENO "configure"
9629 cat confdefs.h
>>conftest.
$ac_ext
9630 cat >>conftest.
$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9635 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9637 grep -v '^ *+' conftest.er1
>conftest.err
9639 cat conftest.err
>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } >/dev
/null
; then
9642 if test -s conftest.err
; then
9643 ac_cpp_err
=$ac_c_preproc_warn_flag
9650 if test -z "$ac_cpp_err"; then
9651 ac_header_preproc
=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.
$ac_ext >&5
9656 ac_header_preproc
=no
9658 rm -f conftest.err conftest.
$ac_ext
9659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9660 echo "${ECHO_T}$ac_header_preproc" >&6
9662 # So? What about this header?
9663 case $ac_header_compiler:$ac_header_preproc in
9665 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9666 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9668 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9671 ## ------------------------------------ ##
9672 ## Report this to bug-autoconf@gnu.org. ##
9673 ## ------------------------------------ ##
9676 sed "s/^/$as_me: WARNING: /" >&2
9679 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9680 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9682 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9684 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9687 ## ------------------------------------ ##
9688 ## Report this to bug-autoconf@gnu.org. ##
9689 ## ------------------------------------ ##
9692 sed "s/^/$as_me: WARNING: /" >&2
9695 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9696 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9697 if test "${ac_cv_header_tiffio_h+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 ac_cv_header_tiffio_h
=$ac_header_preproc
9702 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9703 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9706 if test $ac_cv_header_tiffio_h = yes; then
9708 # At least one tiff package requires the jpeg library.
9709 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9710 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9711 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9712 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 ac_check_lib_save_LIBS
=$LIBS
9716 LIBS
="-ltiff $tifflibs $LIBS"
9717 cat >conftest.
$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9721 cat confdefs.h
>>conftest.
$ac_ext
9722 cat >>conftest.
$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9725 /* Override any gcc2 internal prototype to avoid an error. */
9729 /* We use char because int might match the return type of a gcc2
9730 builtin and then its argument prototype would still apply. */
9731 char TIFFGetVersion ();
9740 rm -f conftest.
$ac_objext conftest
$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try
='test -s conftest$ac_exeext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_lib_tiff_TIFFGetVersion
=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.
$ac_ext >&5
9757 ac_cv_lib_tiff_TIFFGetVersion
=no
9759 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9760 LIBS
=$ac_check_lib_save_LIBS
9762 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9763 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9764 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9773 if test "${HAVE_TIFF}" = "yes"; then
9775 cat >>confdefs.h
<<\_ACEOF
9782 ### Use -lgif if available, unless `--with-gif=no'.
9784 if test "${HAVE_X11}" = "yes"; then
9785 if test "${with_gif}" != "no"; then
9786 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9787 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9788 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9789 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9793 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9795 # Is the header compilable?
9796 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9797 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9798 cat >conftest.
$ac_ext <<_ACEOF
9799 #line $LINENO "configure"
9802 cat confdefs.h
>>conftest.
$ac_ext
9803 cat >>conftest.
$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 $ac_includes_default
9806 #include <gif_lib.h>
9808 rm -f conftest.
$ac_objext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9810 (eval $ac_compile) 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try
='test -s conftest.$ac_objext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_header_compiler
=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.
$ac_ext >&5
9825 ac_header_compiler
=no
9827 rm -f conftest.
$ac_objext conftest.
$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9829 echo "${ECHO_T}$ac_header_compiler" >&6
9831 # Is the header present?
9832 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9833 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9834 cat >conftest.
$ac_ext <<_ACEOF
9835 #line $LINENO "configure"
9838 cat confdefs.h
>>conftest.
$ac_ext
9839 cat >>conftest.
$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 #include <gif_lib.h>
9843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9846 grep -v '^ *+' conftest.er1
>conftest.err
9848 cat conftest.err
>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } >/dev
/null
; then
9851 if test -s conftest.err
; then
9852 ac_cpp_err
=$ac_c_preproc_warn_flag
9859 if test -z "$ac_cpp_err"; then
9860 ac_header_preproc
=yes
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.
$ac_ext >&5
9865 ac_header_preproc
=no
9867 rm -f conftest.err conftest.
$ac_ext
9868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9869 echo "${ECHO_T}$ac_header_preproc" >&6
9871 # So? What about this header?
9872 case $ac_header_compiler:$ac_header_preproc in
9874 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9875 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9877 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9880 ## ------------------------------------ ##
9881 ## Report this to bug-autoconf@gnu.org. ##
9882 ## ------------------------------------ ##
9885 sed "s/^/$as_me: WARNING: /" >&2
9888 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9889 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9891 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9893 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9896 ## ------------------------------------ ##
9897 ## Report this to bug-autoconf@gnu.org. ##
9898 ## ------------------------------------ ##
9901 sed "s/^/$as_me: WARNING: /" >&2
9904 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9905 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9906 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 ac_cv_header_gif_lib_h
=$ac_header_preproc
9911 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9912 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9915 if test $ac_cv_header_gif_lib_h = yes; then
9916 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9917 # Earlier versions can crash Emacs.
9918 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9919 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9920 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 ac_check_lib_save_LIBS
=$LIBS
9924 LIBS
="-lungif $LIBS"
9925 cat >conftest.
$ac_ext <<_ACEOF
9926 #line $LINENO "configure"
9929 cat confdefs.h
>>conftest.
$ac_ext
9930 cat >>conftest.
$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any gcc2 internal prototype to avoid an error. */
9937 /* We use char because int might match the return type of a gcc2
9938 builtin and then its argument prototype would still apply. */
9939 char EGifPutExtensionLast ();
9943 EGifPutExtensionLast ();
9948 rm -f conftest.
$ac_objext conftest
$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try
='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9960 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.
$ac_ext >&5
9965 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9967 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9968 LIBS
=$ac_check_lib_save_LIBS
9970 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9971 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9972 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9981 if test "${HAVE_GIF}" = "yes"; then
9983 cat >>confdefs.h
<<\_ACEOF
9990 ### Use Mac OS X Carbon API to implement GUI.
9992 if test "${with_carbon}" != "no"; then
9993 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9994 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9995 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9996 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10000 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10002 # Is the header compilable?
10003 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10004 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10005 cat >conftest.
$ac_ext <<_ACEOF
10006 #line $LINENO "configure"
10009 cat confdefs.h
>>conftest.
$ac_ext
10010 cat >>conftest.
$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 $ac_includes_default
10013 #include <Carbon/Carbon.h>
10015 rm -f conftest.
$ac_objext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10017 (eval $ac_compile) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try
='test -s conftest.$ac_objext'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 ac_header_compiler
=yes
10029 echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.
$ac_ext >&5
10032 ac_header_compiler
=no
10034 rm -f conftest.
$ac_objext conftest.
$ac_ext
10035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10036 echo "${ECHO_T}$ac_header_compiler" >&6
10038 # Is the header present?
10039 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10040 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10041 cat >conftest.
$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10045 cat confdefs.h
>>conftest.
$ac_ext
10046 cat >>conftest.
$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <Carbon/Carbon.h>
10050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10053 grep -v '^ *+' conftest.er1
>conftest.err
10055 cat conftest.err
>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } >/dev
/null
; then
10058 if test -s conftest.err
; then
10059 ac_cpp_err
=$ac_c_preproc_warn_flag
10066 if test -z "$ac_cpp_err"; then
10067 ac_header_preproc
=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 ac_header_preproc
=no
10074 rm -f conftest.err conftest.
$ac_ext
10075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10076 echo "${ECHO_T}$ac_header_preproc" >&6
10078 # So? What about this header?
10079 case $ac_header_compiler:$ac_header_preproc in
10081 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10082 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10084 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10087 ## ------------------------------------ ##
10088 ## Report this to bug-autoconf@gnu.org. ##
10089 ## ------------------------------------ ##
10092 sed "s/^/$as_me: WARNING: /" >&2
10095 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10096 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10097 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10098 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10100 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10103 ## ------------------------------------ ##
10104 ## Report this to bug-autoconf@gnu.org. ##
10105 ## ------------------------------------ ##
10108 sed "s/^/$as_me: WARNING: /" >&2
10111 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10112 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10113 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10118 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10119 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10122 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10129 if test "${HAVE_CARBON}" = "yes"; then
10131 cat >>confdefs.h
<<\_ACEOF
10132 #define HAVE_CARBON 1
10136 ## Specify the install directory
10138 if test "${carbon_appdir_x}" != ""; then
10139 case ${carbon_appdir_x} in
10140 y | ye |
yes) carbon_appdir
=/Applications
;;
10141 * ) carbon_appdir
=${carbon_appdir_x} ;;
10144 # We also have mouse menus.
10148 ### Use session management (-lSM -lICE) if available
10150 if test "${HAVE_X11}" = "yes"; then
10151 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10152 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10153 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10154 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10158 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10160 # Is the header compilable?
10161 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10162 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10163 cat >conftest.
$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10167 cat confdefs.h
>>conftest.
$ac_ext
10168 cat >>conftest.
$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 $ac_includes_default
10171 #include <X11/SM/SMlib.h>
10173 rm -f conftest.
$ac_objext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175 (eval $ac_compile) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try
='test -s conftest.$ac_objext'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
10185 ac_header_compiler
=yes
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.
$ac_ext >&5
10190 ac_header_compiler
=no
10192 rm -f conftest.
$ac_objext conftest.
$ac_ext
10193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10194 echo "${ECHO_T}$ac_header_compiler" >&6
10196 # Is the header present?
10197 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10198 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10199 cat >conftest.
$ac_ext <<_ACEOF
10200 #line $LINENO "configure"
10203 cat confdefs.h
>>conftest.
$ac_ext
10204 cat >>conftest.
$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <X11/SM/SMlib.h>
10208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10209 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10211 grep -v '^ *+' conftest.er1
>conftest.err
10213 cat conftest.err
>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } >/dev
/null
; then
10216 if test -s conftest.err
; then
10217 ac_cpp_err
=$ac_c_preproc_warn_flag
10224 if test -z "$ac_cpp_err"; then
10225 ac_header_preproc
=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.
$ac_ext >&5
10230 ac_header_preproc
=no
10232 rm -f conftest.err conftest.
$ac_ext
10233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10234 echo "${ECHO_T}$ac_header_preproc" >&6
10236 # So? What about this header?
10237 case $ac_header_compiler:$ac_header_preproc in
10239 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10240 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10242 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10245 ## ------------------------------------ ##
10246 ## Report this to bug-autoconf@gnu.org. ##
10247 ## ------------------------------------ ##
10250 sed "s/^/$as_me: WARNING: /" >&2
10253 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10254 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10256 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10258 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10261 ## ------------------------------------ ##
10262 ## Report this to bug-autoconf@gnu.org. ##
10263 ## ------------------------------------ ##
10266 sed "s/^/$as_me: WARNING: /" >&2
10269 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10270 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10271 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10276 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10277 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10280 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10281 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10282 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10283 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 ac_check_lib_save_LIBS
=$LIBS
10288 cat >conftest.
$ac_ext <<_ACEOF
10289 #line $LINENO "configure"
10292 cat confdefs.h
>>conftest.
$ac_ext
10293 cat >>conftest.
$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10296 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char SmcOpenConnection ();
10306 SmcOpenConnection ();
10311 rm -f conftest.
$ac_objext conftest
$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try
='test -s conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_lib_SM_SmcOpenConnection
=yes
10325 echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.
$ac_ext >&5
10328 ac_cv_lib_SM_SmcOpenConnection
=no
10330 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10331 LIBS
=$ac_check_lib_save_LIBS
10333 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10334 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10335 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10345 if test "${HAVE_X_SM}" = "yes"; then
10347 cat >>confdefs.h
<<\_ACEOF
10348 #define HAVE_X_SM 1
10353 *) LIBS
="-lSM -lICE $LIBS" ;;
10358 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10359 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10360 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10361 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 cat >conftest.
$ac_ext <<_ACEOF
10365 #line $LINENO "configure"
10368 cat confdefs.h
>>conftest.
$ac_ext
10369 cat >>conftest.
$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10380 rm -f conftest.
$ac_objext conftest
$ac_exeext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try
='test -s conftest$ac_exeext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 emacs_cv_netdb_declares_h_errno
=yes
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.
$ac_ext >&5
10397 emacs_cv_netdb_declares_h_errno
=no
10399 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10401 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10402 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10403 if test $emacs_cv_netdb_declares_h_errno = yes; then
10405 cat >>confdefs.h
<<\_ACEOF
10406 #define HAVE_H_ERRNO 1
10411 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10412 # for constant arguments. Useless!
10413 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10414 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10415 if test "${ac_cv_working_alloca_h+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 cat >conftest.
$ac_ext <<_ACEOF
10419 #line $LINENO "configure"
10422 cat confdefs.h
>>conftest.
$ac_ext
10423 cat >>conftest.
$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10425 #include <alloca.h>
10429 char *p = (char *) alloca (2 * sizeof (int));
10434 rm -f conftest.
$ac_objext conftest
$ac_exeext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436 (eval $ac_link) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try
='test -s conftest$ac_exeext'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_cv_working_alloca_h
=yes
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.
$ac_ext >&5
10451 ac_cv_working_alloca_h
=no
10453 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10455 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10456 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10457 if test $ac_cv_working_alloca_h = yes; then
10459 cat >>confdefs.h
<<\_ACEOF
10460 #define HAVE_ALLOCA_H 1
10465 echo "$as_me:$LINENO: checking for alloca" >&5
10466 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10467 if test "${ac_cv_func_alloca_works+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 cat >conftest.
$ac_ext <<_ACEOF
10471 #line $LINENO "configure"
10474 cat confdefs.h
>>conftest.
$ac_ext
10475 cat >>conftest.
$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10478 # define alloca __builtin_alloca
10481 # include <malloc.h>
10482 # define alloca _alloca
10485 # include <alloca.h>
10490 # ifndef alloca /* predefined by HP cc +Olibcalls */
10501 char *p = (char *) alloca (1);
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_func_alloca_works
=yes
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.
$ac_ext >&5
10523 ac_cv_func_alloca_works
=no
10525 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10527 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10528 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10530 if test $ac_cv_func_alloca_works = yes; then
10532 cat >>confdefs.h
<<\_ACEOF
10533 #define HAVE_ALLOCA 1
10537 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10538 # that cause trouble. Some versions do not even contain alloca or
10539 # contain a buggy version. If you still want to use their alloca,
10540 # use ar to extract alloca.o from them instead of compiling alloca.c.
10542 ALLOCA
=alloca.
$ac_objext
10544 cat >>confdefs.h
<<\_ACEOF
10549 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10550 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10551 if test "${ac_cv_os_cray+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 cat >conftest.
$ac_ext <<_ACEOF
10555 #line $LINENO "configure"
10558 cat confdefs.h
>>conftest.
$ac_ext
10559 cat >>conftest.
$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 #if defined(CRAY) && ! defined(CRAY2)
10568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10569 $EGREP "webecray" >/dev
/null
2>&1; then
10577 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10578 echo "${ECHO_T}$ac_cv_os_cray" >&6
10579 if test $ac_cv_os_cray = yes; then
10580 for ac_func
in _getb67 GETB67 getb67
; do
10581 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10582 echo "$as_me:$LINENO: checking for $ac_func" >&5
10583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10584 if eval "test \"\${$as_ac_var+set}\" = set"; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 cat >conftest.
$ac_ext <<_ACEOF
10588 #line $LINENO "configure"
10591 cat confdefs.h
>>conftest.
$ac_ext
10592 cat >>conftest.
$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594 /* System header to define __stub macros and hopefully few prototypes,
10595 which can conflict with char $ac_func (); below.
10596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10597 <limits.h> exists even on freestanding compilers. */
10599 # include <limits.h>
10601 # include <assert.h>
10603 /* Override any gcc2 internal prototype to avoid an error. */
10608 /* We use char because int might match the return type of a gcc2
10609 builtin and then its argument prototype would still apply. */
10611 /* The GNU C library defines this for functions which it implements
10612 to always fail with ENOSYS. Some functions are actually named
10613 something starting with __ and the normal name is an alias. */
10614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10617 char (*f) () = $ac_func;
10626 return f != $ac_func;
10631 rm -f conftest.
$ac_objext conftest
$ac_exeext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633 (eval $ac_link) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try
='test -s conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 eval "$as_ac_var=yes"
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.
$ac_ext >&5
10648 eval "$as_ac_var=no"
10650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10654 if test `eval echo '${'$as_ac_var'}'` = yes; then
10656 cat >>confdefs.h
<<_ACEOF
10657 #define CRAY_STACKSEG_END $ac_func
10666 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10667 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10668 if test "${ac_cv_c_stack_direction+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 if test "$cross_compiling" = yes; then
10672 ac_cv_c_stack_direction
=0
10674 cat >conftest.
$ac_ext <<_ACEOF
10675 #line $LINENO "configure"
10678 cat confdefs.h
>>conftest.
$ac_ext
10679 cat >>conftest.
$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10682 find_stack_direction ()
10684 static char *addr = 0;
10689 return find_stack_direction ();
10692 return (&dummy > addr) ? 1 : -1;
10698 exit (find_stack_direction () < 0);
10701 rm -f conftest
$ac_exeext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703 (eval $ac_link) 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_cv_c_stack_direction
=1
10714 echo "$as_me: program exited with status $ac_status" >&5
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.
$ac_ext >&5
10718 ( exit $ac_status )
10719 ac_cv_c_stack_direction
=-1
10721 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10724 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10725 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10727 cat >>confdefs.h
<<_ACEOF
10728 #define STACK_DIRECTION $ac_cv_c_stack_direction
10735 # fmod, logb, and frexp are found in -lm on most systems.
10736 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10738 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10739 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10740 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 ac_check_lib_save_LIBS
=$LIBS
10745 cat >conftest.
$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10749 cat confdefs.h
>>conftest.
$ac_ext
10750 cat >>conftest.
$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10753 /* Override any gcc2 internal prototype to avoid an error. */
10757 /* We use char because int might match the return type of a gcc2
10758 builtin and then its argument prototype would still apply. */
10768 rm -f conftest.
$ac_objext conftest
$ac_exeext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770 (eval $ac_link) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try
='test -s conftest$ac_exeext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_cv_lib_m_sqrt
=yes
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.
$ac_ext >&5
10785 ac_cv_lib_m_sqrt
=no
10787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10788 LIBS
=$ac_check_lib_save_LIBS
10790 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10791 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10792 if test $ac_cv_lib_m_sqrt = yes; then
10793 cat >>confdefs.h
<<_ACEOF
10794 #define HAVE_LIBM 1
10802 # Check for mail-locking functions in a "mail" library. Probably this should
10803 # have the same check as for liblockfile below.
10805 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10806 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10807 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 ac_check_lib_save_LIBS
=$LIBS
10811 LIBS
="-lmail $LIBS"
10812 cat >conftest.
$ac_ext <<_ACEOF
10813 #line $LINENO "configure"
10816 cat confdefs.h
>>conftest.
$ac_ext
10817 cat >>conftest.
$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10820 /* Override any gcc2 internal prototype to avoid an error. */
10824 /* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10835 rm -f conftest.
$ac_objext conftest
$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try
='test -s conftest$ac_exeext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 ac_cv_lib_mail_maillock
=yes
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.
$ac_ext >&5
10852 ac_cv_lib_mail_maillock
=no
10854 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10855 LIBS
=$ac_check_lib_save_LIBS
10857 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10858 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10859 if test $ac_cv_lib_mail_maillock = yes; then
10860 cat >>confdefs.h
<<_ACEOF
10861 #define HAVE_LIBMAIL 1
10864 LIBS
="-lmail $LIBS"
10869 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10870 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10871 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 ac_check_lib_save_LIBS
=$LIBS
10875 LIBS
="-llockfile $LIBS"
10876 cat >conftest.
$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10880 cat confdefs.h
>>conftest.
$ac_ext
10881 cat >>conftest.
$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10884 /* Override any gcc2 internal prototype to avoid an error. */
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10899 rm -f conftest.
$ac_objext conftest
$ac_exeext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10901 (eval $ac_link) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try
='test -s conftest$ac_exeext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_lib_lockfile_maillock
=yes
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.
$ac_ext >&5
10916 ac_cv_lib_lockfile_maillock
=no
10918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10919 LIBS
=$ac_check_lib_save_LIBS
10921 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10922 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10923 if test $ac_cv_lib_lockfile_maillock = yes; then
10924 cat >>confdefs.h
<<_ACEOF
10925 #define HAVE_LIBLOCKFILE 1
10928 LIBS
="-llockfile $LIBS"
10932 # If we have the shared liblockfile, assume we must use it for mail
10933 # locking (e.g. Debian). If we couldn't link against liblockfile
10934 # (no liblockfile.a installed), ensure that we don't need to.
10935 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10936 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10937 set dummy liblockfile.so
; ac_word
=$2
10938 echo "$as_me:$LINENO: checking for $ac_word" >&5
10939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10940 if test "${ac_cv_prog_liblockfile+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 if test -n "$liblockfile"; then
10944 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10947 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10948 for as_dir
in $as_dummy
10951 test -z "$as_dir" && as_dir
=.
10952 for ac_exec_ext
in '' $ac_executable_extensions; do
10953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10954 ac_cv_prog_liblockfile
="yes"
10955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10964 liblockfile
=$ac_cv_prog_liblockfile
10965 if test -n "$liblockfile"; then
10966 echo "$as_me:$LINENO: result: $liblockfile" >&5
10967 echo "${ECHO_T}$liblockfile" >&6
10969 echo "$as_me:$LINENO: result: no" >&5
10970 echo "${ECHO_T}no" >&6
10973 if test $ac_cv_prog_liblockfile = yes; then
10974 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10975 This probably means that movemail could lose mail.
10976 There may be a \`development' package to install containing liblockfile." >&5
10977 echo "$as_me: error: Shared liblockfile found but can't link against it.
10978 This probably means that movemail could lose mail.
10979 There may be a \`development' package to install containing liblockfile." >&2;}
10980 { (exit 1); exit 1; }; }
10985 for ac_func
in touchlock
10987 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10988 echo "$as_me:$LINENO: checking for $ac_func" >&5
10989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10990 if eval "test \"\${$as_ac_var+set}\" = set"; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 cat >conftest.
$ac_ext <<_ACEOF
10994 #line $LINENO "configure"
10997 cat confdefs.h
>>conftest.
$ac_ext
10998 cat >>conftest.
$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 /* System header to define __stub macros and hopefully few prototypes,
11001 which can conflict with char $ac_func (); below.
11002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11003 <limits.h> exists even on freestanding compilers. */
11005 # include <limits.h>
11007 # include <assert.h>
11009 /* Override any gcc2 internal prototype to avoid an error. */
11014 /* We use char because int might match the return type of a gcc2
11015 builtin and then its argument prototype would still apply. */
11017 /* The GNU C library defines this for functions which it implements
11018 to always fail with ENOSYS. Some functions are actually named
11019 something starting with __ and the normal name is an alias. */
11020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11023 char (*f) () = $ac_func;
11032 return f != $ac_func;
11037 rm -f conftest.
$ac_objext conftest
$ac_exeext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 (eval $ac_link) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try
='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 eval "$as_ac_var=yes"
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.
$ac_ext >&5
11054 eval "$as_ac_var=no"
11056 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061 cat >>confdefs.h
<<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11069 for ac_header
in maillock.h
11071 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11073 echo "$as_me:$LINENO: checking for $ac_header" >&5
11074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11081 # Is the header compilable?
11082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11084 cat >conftest.
$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11088 cat confdefs.h
>>conftest.
$ac_ext
11089 cat >>conftest.
$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 $ac_includes_default
11092 #include <$ac_header>
11094 rm -f conftest.
$ac_objext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try
='test -s conftest.$ac_objext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_header_compiler
=yes
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.
$ac_ext >&5
11111 ac_header_compiler
=no
11113 rm -f conftest.
$ac_objext conftest.
$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115 echo "${ECHO_T}$ac_header_compiler" >&6
11117 # Is the header present?
11118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11120 cat >conftest.
$ac_ext <<_ACEOF
11121 #line $LINENO "configure"
11124 cat confdefs.h
>>conftest.
$ac_ext
11125 cat >>conftest.
$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <$ac_header>
11129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11132 grep -v '^ *+' conftest.er1
>conftest.err
11134 cat conftest.err
>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } >/dev
/null
; then
11137 if test -s conftest.err
; then
11138 ac_cpp_err
=$ac_c_preproc_warn_flag
11145 if test -z "$ac_cpp_err"; then
11146 ac_header_preproc
=yes
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.
$ac_ext >&5
11151 ac_header_preproc
=no
11153 rm -f conftest.err conftest.
$ac_ext
11154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11155 echo "${ECHO_T}$ac_header_preproc" >&6
11157 # So? What about this header?
11158 case $ac_header_compiler:$ac_header_preproc in
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11166 ## ------------------------------------ ##
11167 ## Report this to bug-autoconf@gnu.org. ##
11168 ## ------------------------------------ ##
11171 sed "s/^/$as_me: WARNING: /" >&2
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11182 ## ------------------------------------ ##
11183 ## Report this to bug-autoconf@gnu.org. ##
11184 ## ------------------------------------ ##
11187 sed "s/^/$as_me: WARNING: /" >&2
11190 echo "$as_me:$LINENO: checking for $ac_header" >&5
11191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 eval "$as_ac_Header=$ac_header_preproc"
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11202 cat >>confdefs.h
<<_ACEOF
11203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11277 for ac_func
in gethostname getdomainname dup2 \
11278 rename closedir mkdir
rmdir sysinfo \
11279 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11280 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11281 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11282 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11283 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11284 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11285 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen
11287 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11288 echo "$as_me:$LINENO: checking for $ac_func" >&5
11289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11290 if eval "test \"\${$as_ac_var+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 cat >conftest.
$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11297 cat confdefs.h
>>conftest.
$ac_ext
11298 cat >>conftest.
$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 /* System header to define __stub macros and hopefully few prototypes,
11301 which can conflict with char $ac_func (); below.
11302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11303 <limits.h> exists even on freestanding compilers. */
11305 # include <limits.h>
11307 # include <assert.h>
11309 /* Override any gcc2 internal prototype to avoid an error. */
11314 /* We use char because int might match the return type of a gcc2
11315 builtin and then its argument prototype would still apply. */
11317 /* The GNU C library defines this for functions which it implements
11318 to always fail with ENOSYS. Some functions are actually named
11319 something starting with __ and the normal name is an alias. */
11320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11323 char (*f) () = $ac_func;
11332 return f != $ac_func;
11337 rm -f conftest.
$ac_objext conftest
$ac_exeext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11339 (eval $ac_link) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try
='test -s conftest$ac_exeext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 eval "$as_ac_var=yes"
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.
$ac_ext >&5
11354 eval "$as_ac_var=no"
11356 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11360 if test `eval echo '${'$as_ac_var'}'` = yes; then
11361 cat >>confdefs.h
<<_ACEOF
11362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11370 for ac_header
in sys
/un.h
11372 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11374 echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11382 # Is the header compilable?
11383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11385 cat >conftest.
$ac_ext <<_ACEOF
11386 #line $LINENO "configure"
11389 cat confdefs.h
>>conftest.
$ac_ext
11390 cat >>conftest.
$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 $ac_includes_default
11393 #include <$ac_header>
11395 rm -f conftest.
$ac_objext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11397 (eval $ac_compile) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try
='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_header_compiler
=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.
$ac_ext >&5
11412 ac_header_compiler
=no
11414 rm -f conftest.
$ac_objext conftest.
$ac_ext
11415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416 echo "${ECHO_T}$ac_header_compiler" >&6
11418 # Is the header present?
11419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11421 cat >conftest.
$ac_ext <<_ACEOF
11422 #line $LINENO "configure"
11425 cat confdefs.h
>>conftest.
$ac_ext
11426 cat >>conftest.
$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 #include <$ac_header>
11430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11433 grep -v '^ *+' conftest.er1
>conftest.err
11435 cat conftest.err
>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } >/dev
/null
; then
11438 if test -s conftest.err
; then
11439 ac_cpp_err
=$ac_c_preproc_warn_flag
11446 if test -z "$ac_cpp_err"; then
11447 ac_header_preproc
=yes
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.
$ac_ext >&5
11452 ac_header_preproc
=no
11454 rm -f conftest.err conftest.
$ac_ext
11455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456 echo "${ECHO_T}$ac_header_preproc" >&6
11458 # So? What about this header?
11459 case $ac_header_compiler:$ac_header_preproc in
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467 ## ------------------------------------ ##
11468 ## Report this to bug-autoconf@gnu.org. ##
11469 ## ------------------------------------ ##
11472 sed "s/^/$as_me: WARNING: /" >&2
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11483 ## ------------------------------------ ##
11484 ## Report this to bug-autoconf@gnu.org. ##
11485 ## ------------------------------------ ##
11488 sed "s/^/$as_me: WARNING: /" >&2
11491 echo "$as_me:$LINENO: checking for $ac_header" >&5
11492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 eval "$as_ac_Header=$ac_header_preproc"
11498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11503 cat >>confdefs.h
<<_ACEOF
11504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11514 for ac_header
in sys
/time.h unistd.h
11516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11518 echo "$as_me:$LINENO: checking for $ac_header" >&5
11519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11526 # Is the header compilable?
11527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11529 cat >conftest.
$ac_ext <<_ACEOF
11530 #line $LINENO "configure"
11533 cat confdefs.h
>>conftest.
$ac_ext
11534 cat >>conftest.
$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 $ac_includes_default
11537 #include <$ac_header>
11539 rm -f conftest.
$ac_objext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11541 (eval $ac_compile) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
11545 { ac_try
='test -s conftest.$ac_objext'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 ac_header_compiler
=yes
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.
$ac_ext >&5
11556 ac_header_compiler
=no
11558 rm -f conftest.
$ac_objext conftest.
$ac_ext
11559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11560 echo "${ECHO_T}$ac_header_compiler" >&6
11562 # Is the header present?
11563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11565 cat >conftest.
$ac_ext <<_ACEOF
11566 #line $LINENO "configure"
11569 cat confdefs.h
>>conftest.
$ac_ext
11570 cat >>conftest.
$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 #include <$ac_header>
11574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11577 grep -v '^ *+' conftest.er1
>conftest.err
11579 cat conftest.err
>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } >/dev
/null
; then
11582 if test -s conftest.err
; then
11583 ac_cpp_err
=$ac_c_preproc_warn_flag
11590 if test -z "$ac_cpp_err"; then
11591 ac_header_preproc
=yes
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.
$ac_ext >&5
11596 ac_header_preproc
=no
11598 rm -f conftest.err conftest.
$ac_ext
11599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11600 echo "${ECHO_T}$ac_header_preproc" >&6
11602 # So? What about this header?
11603 case $ac_header_compiler:$ac_header_preproc in
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11611 ## ------------------------------------ ##
11612 ## Report this to bug-autoconf@gnu.org. ##
11613 ## ------------------------------------ ##
11616 sed "s/^/$as_me: WARNING: /" >&2
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11627 ## ------------------------------------ ##
11628 ## Report this to bug-autoconf@gnu.org. ##
11629 ## ------------------------------------ ##
11632 sed "s/^/$as_me: WARNING: /" >&2
11635 echo "$as_me:$LINENO: checking for $ac_header" >&5
11636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 eval "$as_ac_Header=$ac_header_preproc"
11642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11647 cat >>confdefs.h
<<_ACEOF
11648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11656 for ac_func
in alarm
11658 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11659 echo "$as_me:$LINENO: checking for $ac_func" >&5
11660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11661 if eval "test \"\${$as_ac_var+set}\" = set"; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 cat >conftest.
$ac_ext <<_ACEOF
11665 #line $LINENO "configure"
11668 cat confdefs.h
>>conftest.
$ac_ext
11669 cat >>conftest.
$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 /* System header to define __stub macros and hopefully few prototypes,
11672 which can conflict with char $ac_func (); below.
11673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674 <limits.h> exists even on freestanding compilers. */
11676 # include <limits.h>
11678 # include <assert.h>
11680 /* Override any gcc2 internal prototype to avoid an error. */
11685 /* We use char because int might match the return type of a gcc2
11686 builtin and then its argument prototype would still apply. */
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11694 char (*f) () = $ac_func;
11703 return f != $ac_func;
11708 rm -f conftest.
$ac_objext conftest
$ac_exeext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11710 (eval $ac_link) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try
='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.
$ac_ext >&5
11725 eval "$as_ac_var=no"
11727 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11731 if test `eval echo '${'$as_ac_var'}'` = yes; then
11732 cat >>confdefs.h
<<_ACEOF
11733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11739 echo "$as_me:$LINENO: checking for working mktime" >&5
11740 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11741 if test "${ac_cv_func_working_mktime+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 if test "$cross_compiling" = yes; then
11745 ac_cv_func_working_mktime
=no
11747 cat >conftest.
$ac_ext <<_ACEOF
11748 #line $LINENO "configure"
11751 cat confdefs.h
>>conftest.
$ac_ext
11752 cat >>conftest.
$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 /* Test program from Paul Eggert and Tony Leneis. */
11755 #if TIME_WITH_SYS_TIME
11756 # include <sys/time.h>
11759 # if HAVE_SYS_TIME_H
11760 # include <sys/time.h>
11767 # include <unistd.h>
11771 # define alarm(X) /* empty */
11774 /* Work around redefinition to rpl_putenv by other config tests. */
11777 static time_t time_t_max;
11779 /* Values we'll use to set the TZ environment variable. */
11780 static const char *const tz_strings[] = {
11781 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11782 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11784 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11786 /* Fail if mktime fails to convert a date in the spring-forward gap.
11787 Based on a problem report from Andreas Jaeger. */
11789 spring_forward_gap ()
11791 /* glibc (up to about 1998-10-07) failed this test. */
11794 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11795 instead of "TZ=America/Vancouver" in order to detect the bug even
11796 on systems that don't support the Olson extension, or don't have the
11797 full zoneinfo tables installed. */
11798 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11807 if (mktime (&tm) == (time_t)-1)
11816 if ((lt = localtime (&now)) && mktime (lt) != now)
11818 now = time_t_max - now;
11819 if ((lt = localtime (&now)) && mktime (lt) != now)
11826 /* Based on code from Ariel Faigon. */
11836 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11846 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11847 now = mktime (&tm);
11848 if (now != (time_t) -1)
11850 struct tm *lt = localtime (&now);
11852 && lt->tm_year == tm.tm_year
11853 && lt->tm_mon == tm.tm_mon
11854 && lt->tm_mday == tm.tm_mday
11855 && lt->tm_hour == tm.tm_hour
11856 && lt->tm_min == tm.tm_min
11857 && lt->tm_sec == tm.tm_sec
11858 && lt->tm_yday == tm.tm_yday
11859 && lt->tm_wday == tm.tm_wday
11860 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11861 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11872 /* This test makes some buggy mktime implementations loop.
11873 Give up after 60 seconds; a mktime slower than that
11874 isn't worth using anyway. */
11877 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11880 delta = time_t_max / 997; /* a suitable prime number */
11881 for (i = 0; i < N_STRINGS; i++)
11884 putenv (tz_strings[i]);
11886 for (t = 0; t <= time_t_max - delta; t += delta)
11888 mktime_test ((time_t) 60 * 60);
11889 mktime_test ((time_t) 60 * 60 * 24);
11891 for (j = 1; 0 < j; j *= 2)
11893 bigtime_test (j - 1);
11896 spring_forward_gap ();
11900 rm -f conftest
$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 ac_cv_func_working_mktime
=yes
11913 echo "$as_me: program exited with status $ac_status" >&5
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.
$ac_ext >&5
11917 ( exit $ac_status )
11918 ac_cv_func_working_mktime
=no
11920 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11923 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11924 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11925 if test $ac_cv_func_working_mktime = no
; then
11926 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11929 if test "$ac_cv_func_working_mktime" = no
; then
11931 cat >>confdefs.h
<<\_ACEOF
11932 #define BROKEN_MKTIME 1
11937 ac_have_func
=no
# yes means we've found a way to get the load average.
11939 # Make sure getloadavg.c is where it belongs, at configure-time.
11940 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11941 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11942 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11943 { (exit 1); exit 1; }; }
11947 # Check for getloadavg, but be sure not to touch the cache variable.
11948 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11949 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11950 if test "${ac_cv_func_getloadavg+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 cat >conftest.
$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11957 cat confdefs.h
>>conftest.
$ac_ext
11958 cat >>conftest.
$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 /* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char getloadavg (); below.
11962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963 <limits.h> exists even on freestanding compilers. */
11965 # include <limits.h>
11967 # include <assert.h>
11969 /* Override any gcc2 internal prototype to avoid an error. */
11974 /* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11976 char getloadavg ();
11977 /* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11983 char (*f) () = getloadavg;
11992 return f != getloadavg;
11997 rm -f conftest.
$ac_objext conftest
$ac_exeext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999 (eval $ac_link) 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try
='test -s conftest$ac_exeext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_func_getloadavg
=yes
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.
$ac_ext >&5
12014 ac_cv_func_getloadavg
=no
12016 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12018 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12019 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12020 if test $ac_cv_func_getloadavg = yes; then
12025 ) && ac_have_func
=yes
12027 # On HPUX9, an unprivileged user can get load averages through this function.
12029 for ac_func
in pstat_getdynamic
12031 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12032 echo "$as_me:$LINENO: checking for $ac_func" >&5
12033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12034 if eval "test \"\${$as_ac_var+set}\" = set"; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 cat >conftest.
$ac_ext <<_ACEOF
12038 #line $LINENO "configure"
12041 cat confdefs.h
>>conftest.
$ac_ext
12042 cat >>conftest.
$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 /* System header to define __stub macros and hopefully few prototypes,
12045 which can conflict with char $ac_func (); below.
12046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12047 <limits.h> exists even on freestanding compilers. */
12049 # include <limits.h>
12051 # include <assert.h>
12053 /* Override any gcc2 internal prototype to avoid an error. */
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12061 /* The GNU C library defines this for functions which it implements
12062 to always fail with ENOSYS. Some functions are actually named
12063 something starting with __ and the normal name is an alias. */
12064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12067 char (*f) () = $ac_func;
12076 return f != $ac_func;
12081 rm -f conftest.
$ac_objext conftest
$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083 (eval $ac_link) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try
='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 eval "$as_ac_var=yes"
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.
$ac_ext >&5
12098 eval "$as_ac_var=no"
12100 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12104 if test `eval echo '${'$as_ac_var'}'` = yes; then
12105 cat >>confdefs.h
<<_ACEOF
12106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 # Solaris has libkstat which does not require root.
12115 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12116 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12117 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 ac_check_lib_save_LIBS
=$LIBS
12121 LIBS
="-lkstat $LIBS"
12122 cat >conftest.
$ac_ext <<_ACEOF
12123 #line $LINENO "configure"
12126 cat confdefs.h
>>conftest.
$ac_ext
12127 cat >>conftest.
$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12130 /* Override any gcc2 internal prototype to avoid an error. */
12134 /* We use char because int might match the return type of a gcc2
12135 builtin and then its argument prototype would still apply. */
12136 char kstat_open ();
12145 rm -f conftest.
$ac_objext conftest
$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147 (eval $ac_link) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try
='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_lib_kstat_kstat_open
=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.
$ac_ext >&5
12162 ac_cv_lib_kstat_kstat_open
=no
12164 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12165 LIBS
=$ac_check_lib_save_LIBS
12167 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12168 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12169 if test $ac_cv_lib_kstat_kstat_open = yes; then
12170 cat >>confdefs.h
<<_ACEOF
12171 #define HAVE_LIBKSTAT 1
12174 LIBS
="-lkstat $LIBS"
12178 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12180 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12181 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12182 # to get the right answer into the cache.
12183 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12184 if test $ac_have_func = no
; then
12185 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12186 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12187 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 ac_check_lib_save_LIBS
=$LIBS
12192 cat >conftest.
$ac_ext <<_ACEOF
12193 #line $LINENO "configure"
12196 cat confdefs.h
>>conftest.
$ac_ext
12197 cat >>conftest.
$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12200 /* Override any gcc2 internal prototype to avoid an error. */
12204 /* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12215 rm -f conftest.
$ac_objext conftest
$ac_exeext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12217 (eval $ac_link) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try
='test -s conftest$ac_exeext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_elf_elf_begin
=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.
$ac_ext >&5
12232 ac_cv_lib_elf_elf_begin
=no
12234 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12235 LIBS
=$ac_check_lib_save_LIBS
12237 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12238 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12239 if test $ac_cv_lib_elf_elf_begin = yes; then
12244 if test $ac_have_func = no
; then
12245 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12246 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12247 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 ac_check_lib_save_LIBS
=$LIBS
12252 cat >conftest.
$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12256 cat confdefs.h
>>conftest.
$ac_ext
12257 cat >>conftest.
$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12260 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12275 rm -f conftest.
$ac_objext conftest
$ac_exeext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277 (eval $ac_link) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try
='test -s conftest$ac_exeext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_lib_kvm_kvm_open
=yes
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.
$ac_ext >&5
12292 ac_cv_lib_kvm_kvm_open
=no
12294 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12295 LIBS
=$ac_check_lib_save_LIBS
12297 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12298 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12299 if test $ac_cv_lib_kvm_kvm_open = yes; then
12303 # Check for the 4.4BSD definition of getloadavg.
12304 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12305 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12306 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 ac_check_lib_save_LIBS
=$LIBS
12310 LIBS
="-lutil $LIBS"
12311 cat >conftest.
$ac_ext <<_ACEOF
12312 #line $LINENO "configure"
12315 cat confdefs.h
>>conftest.
$ac_ext
12316 cat >>conftest.
$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 /* Override any gcc2 internal prototype to avoid an error. */
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12325 char getloadavg ();
12334 rm -f conftest.
$ac_objext conftest
$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try
='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_lib_util_getloadavg
=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.
$ac_ext >&5
12351 ac_cv_lib_util_getloadavg
=no
12353 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12354 LIBS
=$ac_check_lib_save_LIBS
12356 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12357 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12358 if test $ac_cv_lib_util_getloadavg = yes; then
12359 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12364 if test $ac_have_func = no
; then
12365 # There is a commonly available library for RS/6000 AIX.
12366 # Since it is not a standard part of AIX, it might be installed locally.
12367 ac_getloadavg_LIBS
=$LIBS
12368 LIBS
="-L/usr/local/lib $LIBS"
12369 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12370 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12371 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 ac_check_lib_save_LIBS
=$LIBS
12375 LIBS
="-lgetloadavg $LIBS"
12376 cat >conftest.
$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12380 cat confdefs.h
>>conftest.
$ac_ext
12381 cat >>conftest.
$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12384 /* Override any gcc2 internal prototype to avoid an error. */
12388 /* We use char because int might match the return type of a gcc2
12389 builtin and then its argument prototype would still apply. */
12390 char getloadavg ();
12399 rm -f conftest.
$ac_objext conftest
$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try
='test -s conftest$ac_exeext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_lib_getloadavg_getloadavg
=yes
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.
$ac_ext >&5
12416 ac_cv_lib_getloadavg_getloadavg
=no
12418 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12419 LIBS
=$ac_check_lib_save_LIBS
12421 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12422 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12423 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12424 LIBS
="-lgetloadavg $LIBS"
12426 LIBS
=$ac_getloadavg_LIBS
12431 # Make sure it is really in the library, if we think we found it,
12432 # otherwise set up the replacement function.
12434 for ac_func
in getloadavg
12436 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437 echo "$as_me:$LINENO: checking for $ac_func" >&5
12438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12439 if eval "test \"\${$as_ac_var+set}\" = set"; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 cat >conftest.
$ac_ext <<_ACEOF
12443 #line $LINENO "configure"
12446 cat confdefs.h
>>conftest.
$ac_ext
12447 cat >>conftest.
$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 /* System header to define __stub macros and hopefully few prototypes,
12450 which can conflict with char $ac_func (); below.
12451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12452 <limits.h> exists even on freestanding compilers. */
12454 # include <limits.h>
12456 # include <assert.h>
12458 /* Override any gcc2 internal prototype to avoid an error. */
12463 /* We use char because int might match the return type of a gcc2
12464 builtin and then its argument prototype would still apply. */
12466 /* The GNU C library defines this for functions which it implements
12467 to always fail with ENOSYS. Some functions are actually named
12468 something starting with __ and the normal name is an alias. */
12469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12472 char (*f) () = $ac_func;
12481 return f != $ac_func;
12486 rm -f conftest.
$ac_objext conftest
$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488 (eval $ac_link) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try
='test -s conftest$ac_exeext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 eval "$as_ac_var=yes"
12500 echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.
$ac_ext >&5
12503 eval "$as_ac_var=no"
12505 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12509 if test `eval echo '${'$as_ac_var'}'` = yes; then
12510 cat >>confdefs.h
<<_ACEOF
12511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12515 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12517 cat >>confdefs.h
<<\_ACEOF
12518 #define C_GETLOADAVG 1
12521 # Figure out what our getloadavg.c needs.
12523 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12524 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12525 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12526 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12530 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12532 # Is the header compilable?
12533 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12534 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12535 cat >conftest.
$ac_ext <<_ACEOF
12536 #line $LINENO "configure"
12539 cat confdefs.h
>>conftest.
$ac_ext
12540 cat >>conftest.
$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 $ac_includes_default
12543 #include <sys/dg_sys_info.h>
12545 rm -f conftest.
$ac_objext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12547 (eval $ac_compile) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try
='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_header_compiler
=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.
$ac_ext >&5
12562 ac_header_compiler
=no
12564 rm -f conftest.
$ac_objext conftest.
$ac_ext
12565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12566 echo "${ECHO_T}$ac_header_compiler" >&6
12568 # Is the header present?
12569 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12570 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12571 cat >conftest.
$ac_ext <<_ACEOF
12572 #line $LINENO "configure"
12575 cat confdefs.h
>>conftest.
$ac_ext
12576 cat >>conftest.
$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 #include <sys/dg_sys_info.h>
12580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12581 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12583 grep -v '^ *+' conftest.er1
>conftest.err
12585 cat conftest.err
>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } >/dev
/null
; then
12588 if test -s conftest.err
; then
12589 ac_cpp_err
=$ac_c_preproc_warn_flag
12596 if test -z "$ac_cpp_err"; then
12597 ac_header_preproc
=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.
$ac_ext >&5
12602 ac_header_preproc
=no
12604 rm -f conftest.err conftest.
$ac_ext
12605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12606 echo "${ECHO_T}$ac_header_preproc" >&6
12608 # So? What about this header?
12609 case $ac_header_compiler:$ac_header_preproc in
12611 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12612 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12614 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12617 ## ------------------------------------ ##
12618 ## Report this to bug-autoconf@gnu.org. ##
12619 ## ------------------------------------ ##
12622 sed "s/^/$as_me: WARNING: /" >&2
12625 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12626 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12627 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12628 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12629 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12630 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12633 ## ------------------------------------ ##
12634 ## Report this to bug-autoconf@gnu.org. ##
12635 ## ------------------------------------ ##
12638 sed "s/^/$as_me: WARNING: /" >&2
12641 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12642 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12643 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12648 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12649 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12652 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12655 cat >>confdefs.h
<<\_ACEOF
12660 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12661 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12662 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 ac_check_lib_save_LIBS
=$LIBS
12667 cat >conftest.
$ac_ext <<_ACEOF
12668 #line $LINENO "configure"
12671 cat confdefs.h
>>conftest.
$ac_ext
12672 cat >>conftest.
$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12675 /* Override any gcc2 internal prototype to avoid an error. */
12679 /* We use char because int might match the return type of a gcc2
12680 builtin and then its argument prototype would still apply. */
12681 char dg_sys_info ();
12690 rm -f conftest.
$ac_objext conftest
$ac_exeext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12692 (eval $ac_link) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try
='test -s conftest$ac_exeext'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_lib_dgc_dg_sys_info
=yes
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.
$ac_ext >&5
12707 ac_cv_lib_dgc_dg_sys_info
=no
12709 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12710 LIBS
=$ac_check_lib_save_LIBS
12712 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12713 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12714 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12715 cat >>confdefs.h
<<_ACEOF
12716 #define HAVE_LIBDGC 1
12727 if test "${ac_cv_header_locale_h+set}" = set; then
12728 echo "$as_me:$LINENO: checking for locale.h" >&5
12729 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12730 if test "${ac_cv_header_locale_h+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12734 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12736 # Is the header compilable?
12737 echo "$as_me:$LINENO: checking locale.h usability" >&5
12738 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12739 cat >conftest.
$ac_ext <<_ACEOF
12740 #line $LINENO "configure"
12743 cat confdefs.h
>>conftest.
$ac_ext
12744 cat >>conftest.
$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12746 $ac_includes_default
12747 #include <locale.h>
12749 rm -f conftest.
$ac_objext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751 (eval $ac_compile) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try
='test -s conftest.$ac_objext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_header_compiler
=yes
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.
$ac_ext >&5
12766 ac_header_compiler
=no
12768 rm -f conftest.
$ac_objext conftest.
$ac_ext
12769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12770 echo "${ECHO_T}$ac_header_compiler" >&6
12772 # Is the header present?
12773 echo "$as_me:$LINENO: checking locale.h presence" >&5
12774 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12775 cat >conftest.
$ac_ext <<_ACEOF
12776 #line $LINENO "configure"
12779 cat confdefs.h
>>conftest.
$ac_ext
12780 cat >>conftest.
$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 #include <locale.h>
12784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12787 grep -v '^ *+' conftest.er1
>conftest.err
12789 cat conftest.err
>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } >/dev
/null
; then
12792 if test -s conftest.err
; then
12793 ac_cpp_err
=$ac_c_preproc_warn_flag
12800 if test -z "$ac_cpp_err"; then
12801 ac_header_preproc
=yes
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.
$ac_ext >&5
12806 ac_header_preproc
=no
12808 rm -f conftest.err conftest.
$ac_ext
12809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12810 echo "${ECHO_T}$ac_header_preproc" >&6
12812 # So? What about this header?
12813 case $ac_header_compiler:$ac_header_preproc in
12815 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12816 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12818 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12821 ## ------------------------------------ ##
12822 ## Report this to bug-autoconf@gnu.org. ##
12823 ## ------------------------------------ ##
12826 sed "s/^/$as_me: WARNING: /" >&2
12829 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12830 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12832 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12834 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12837 ## ------------------------------------ ##
12838 ## Report this to bug-autoconf@gnu.org. ##
12839 ## ------------------------------------ ##
12842 sed "s/^/$as_me: WARNING: /" >&2
12845 echo "$as_me:$LINENO: checking for locale.h" >&5
12846 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12847 if test "${ac_cv_header_locale_h+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 ac_cv_header_locale_h
=$ac_header_preproc
12852 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12853 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12859 for ac_func
in setlocale
12861 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12862 echo "$as_me:$LINENO: checking for $ac_func" >&5
12863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12864 if eval "test \"\${$as_ac_var+set}\" = set"; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 cat >conftest.
$ac_ext <<_ACEOF
12868 #line $LINENO "configure"
12871 cat confdefs.h
>>conftest.
$ac_ext
12872 cat >>conftest.
$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 /* System header to define __stub macros and hopefully few prototypes,
12875 which can conflict with char $ac_func (); below.
12876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12877 <limits.h> exists even on freestanding compilers. */
12879 # include <limits.h>
12881 # include <assert.h>
12883 /* Override any gcc2 internal prototype to avoid an error. */
12888 /* We use char because int might match the return type of a gcc2
12889 builtin and then its argument prototype would still apply. */
12891 /* The GNU C library defines this for functions which it implements
12892 to always fail with ENOSYS. Some functions are actually named
12893 something starting with __ and the normal name is an alias. */
12894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12897 char (*f) () = $ac_func;
12906 return f != $ac_func;
12911 rm -f conftest.
$ac_objext conftest
$ac_exeext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12913 (eval $ac_link) 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try
='test -s conftest$ac_exeext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 eval "$as_ac_var=yes"
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.
$ac_ext >&5
12928 eval "$as_ac_var=no"
12930 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12934 if test `eval echo '${'$as_ac_var'}'` = yes; then
12935 cat >>confdefs.h
<<_ACEOF
12936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12943 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12944 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12945 # Irix 4.0.5F has the header but not the library.
12946 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12949 cat >>confdefs.h
<<\_ACEOF
12955 if test $ac_have_func = no
; then
12956 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12957 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12958 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12959 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12963 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12965 # Is the header compilable?
12966 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12967 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12968 cat >conftest.
$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12972 cat confdefs.h
>>conftest.
$ac_ext
12973 cat >>conftest.
$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975 $ac_includes_default
12976 #include <inq_stats/cpustats.h>
12978 rm -f conftest.
$ac_objext
12979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try
='test -s conftest.$ac_objext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_header_compiler
=yes
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.
$ac_ext >&5
12995 ac_header_compiler
=no
12997 rm -f conftest.
$ac_objext conftest.
$ac_ext
12998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12999 echo "${ECHO_T}$ac_header_compiler" >&6
13001 # Is the header present?
13002 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13003 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13004 cat >conftest.
$ac_ext <<_ACEOF
13005 #line $LINENO "configure"
13008 cat confdefs.h
>>conftest.
$ac_ext
13009 cat >>conftest.
$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13011 #include <inq_stats/cpustats.h>
13013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13014 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13016 grep -v '^ *+' conftest.er1
>conftest.err
13018 cat conftest.err
>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } >/dev
/null
; then
13021 if test -s conftest.err
; then
13022 ac_cpp_err
=$ac_c_preproc_warn_flag
13029 if test -z "$ac_cpp_err"; then
13030 ac_header_preproc
=yes
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.
$ac_ext >&5
13035 ac_header_preproc
=no
13037 rm -f conftest.err conftest.
$ac_ext
13038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13039 echo "${ECHO_T}$ac_header_preproc" >&6
13041 # So? What about this header?
13042 case $ac_header_compiler:$ac_header_preproc in
13044 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13045 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13047 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13050 ## ------------------------------------ ##
13051 ## Report this to bug-autoconf@gnu.org. ##
13052 ## ------------------------------------ ##
13055 sed "s/^/$as_me: WARNING: /" >&2
13058 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13059 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13061 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13062 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13063 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13066 ## ------------------------------------ ##
13067 ## Report this to bug-autoconf@gnu.org. ##
13068 ## ------------------------------------ ##
13071 sed "s/^/$as_me: WARNING: /" >&2
13074 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13075 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13076 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13081 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13082 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13085 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13088 cat >>confdefs.h
<<\_ACEOF
13093 cat >>confdefs.h
<<\_ACEOF
13102 if test $ac_have_func = no
; then
13103 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13104 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13105 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13106 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13110 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13112 # Is the header compilable?
13113 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13114 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13115 cat >conftest.
$ac_ext <<_ACEOF
13116 #line $LINENO "configure"
13119 cat confdefs.h
>>conftest.
$ac_ext
13120 cat >>conftest.
$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13123 #include <sys/cpustats.h>
13125 rm -f conftest.
$ac_objext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127 (eval $ac_compile) 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
13131 { ac_try
='test -s conftest.$ac_objext'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 ac_header_compiler
=yes
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.
$ac_ext >&5
13142 ac_header_compiler
=no
13144 rm -f conftest.
$ac_objext conftest.
$ac_ext
13145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13146 echo "${ECHO_T}$ac_header_compiler" >&6
13148 # Is the header present?
13149 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13150 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13151 cat >conftest.
$ac_ext <<_ACEOF
13152 #line $LINENO "configure"
13155 cat confdefs.h
>>conftest.
$ac_ext
13156 cat >>conftest.
$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 #include <sys/cpustats.h>
13160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13161 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13163 grep -v '^ *+' conftest.er1
>conftest.err
13165 cat conftest.err
>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } >/dev
/null
; then
13168 if test -s conftest.err
; then
13169 ac_cpp_err
=$ac_c_preproc_warn_flag
13176 if test -z "$ac_cpp_err"; then
13177 ac_header_preproc
=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.
$ac_ext >&5
13182 ac_header_preproc
=no
13184 rm -f conftest.err conftest.
$ac_ext
13185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13186 echo "${ECHO_T}$ac_header_preproc" >&6
13188 # So? What about this header?
13189 case $ac_header_compiler:$ac_header_preproc in
13191 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13192 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13193 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13194 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13197 ## ------------------------------------ ##
13198 ## Report this to bug-autoconf@gnu.org. ##
13199 ## ------------------------------------ ##
13202 sed "s/^/$as_me: WARNING: /" >&2
13205 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13206 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13207 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13208 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13210 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13213 ## ------------------------------------ ##
13214 ## Report this to bug-autoconf@gnu.org. ##
13215 ## ------------------------------------ ##
13218 sed "s/^/$as_me: WARNING: /" >&2
13221 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13222 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13223 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13228 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13229 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13232 if test $ac_cv_header_sys_cpustats_h = yes; then
13233 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13242 if test $ac_have_func = no
; then
13244 for ac_header
in mach
/mach.h
13246 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13248 echo "$as_me:$LINENO: checking for $ac_header" >&5
13249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13256 # Is the header compilable?
13257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13259 cat >conftest.
$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13263 cat confdefs.h
>>conftest.
$ac_ext
13264 cat >>conftest.
$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13267 #include <$ac_header>
13269 rm -f conftest.
$ac_objext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13271 (eval $ac_compile) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try
='test -s conftest.$ac_objext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_header_compiler
=yes
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.
$ac_ext >&5
13286 ac_header_compiler
=no
13288 rm -f conftest.
$ac_objext conftest.
$ac_ext
13289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13290 echo "${ECHO_T}$ac_header_compiler" >&6
13292 # Is the header present?
13293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13295 cat >conftest.
$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13299 cat confdefs.h
>>conftest.
$ac_ext
13300 cat >>conftest.
$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <$ac_header>
13304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13305 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13307 grep -v '^ *+' conftest.er1
>conftest.err
13309 cat conftest.err
>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } >/dev
/null
; then
13312 if test -s conftest.err
; then
13313 ac_cpp_err
=$ac_c_preproc_warn_flag
13320 if test -z "$ac_cpp_err"; then
13321 ac_header_preproc
=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.
$ac_ext >&5
13326 ac_header_preproc
=no
13328 rm -f conftest.err conftest.
$ac_ext
13329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13330 echo "${ECHO_T}$ac_header_preproc" >&6
13332 # So? What about this header?
13333 case $ac_header_compiler:$ac_header_preproc in
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13341 ## ------------------------------------ ##
13342 ## Report this to bug-autoconf@gnu.org. ##
13343 ## ------------------------------------ ##
13346 sed "s/^/$as_me: WARNING: /" >&2
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13357 ## ------------------------------------ ##
13358 ## Report this to bug-autoconf@gnu.org. ##
13359 ## ------------------------------------ ##
13362 sed "s/^/$as_me: WARNING: /" >&2
13365 echo "$as_me:$LINENO: checking for $ac_header" >&5
13366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 eval "$as_ac_Header=$ac_header_preproc"
13372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13377 cat >>confdefs.h
<<_ACEOF
13378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13388 for ac_header
in nlist.h
13390 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13392 echo "$as_me:$LINENO: checking for $ac_header" >&5
13393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13400 # Is the header compilable?
13401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13403 cat >conftest.
$ac_ext <<_ACEOF
13404 #line $LINENO "configure"
13407 cat confdefs.h
>>conftest.
$ac_ext
13408 cat >>conftest.
$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 $ac_includes_default
13411 #include <$ac_header>
13413 rm -f conftest.
$ac_objext
13414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13415 (eval $ac_compile) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try
='test -s conftest.$ac_objext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_header_compiler
=yes
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.
$ac_ext >&5
13430 ac_header_compiler
=no
13432 rm -f conftest.
$ac_objext conftest.
$ac_ext
13433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13434 echo "${ECHO_T}$ac_header_compiler" >&6
13436 # Is the header present?
13437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13439 cat >conftest.
$ac_ext <<_ACEOF
13440 #line $LINENO "configure"
13443 cat confdefs.h
>>conftest.
$ac_ext
13444 cat >>conftest.
$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 #include <$ac_header>
13448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13449 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13451 grep -v '^ *+' conftest.er1
>conftest.err
13453 cat conftest.err
>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } >/dev
/null
; then
13456 if test -s conftest.err
; then
13457 ac_cpp_err
=$ac_c_preproc_warn_flag
13464 if test -z "$ac_cpp_err"; then
13465 ac_header_preproc
=yes
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.
$ac_ext >&5
13470 ac_header_preproc
=no
13472 rm -f conftest.err conftest.
$ac_ext
13473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13474 echo "${ECHO_T}$ac_header_preproc" >&6
13476 # So? What about this header?
13477 case $ac_header_compiler:$ac_header_preproc in
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13485 ## ------------------------------------ ##
13486 ## Report this to bug-autoconf@gnu.org. ##
13487 ## ------------------------------------ ##
13490 sed "s/^/$as_me: WARNING: /" >&2
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13501 ## ------------------------------------ ##
13502 ## Report this to bug-autoconf@gnu.org. ##
13503 ## ------------------------------------ ##
13506 sed "s/^/$as_me: WARNING: /" >&2
13509 echo "$as_me:$LINENO: checking for $ac_header" >&5
13510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 eval "$as_ac_Header=$ac_header_preproc"
13516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13521 cat >>confdefs.h
<<_ACEOF
13522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13524 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13525 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13526 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 cat >conftest.
$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13533 cat confdefs.h
>>conftest.
$ac_ext
13534 cat >>conftest.
$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13541 static struct nlist ac_aggr;
13542 if (ac_aggr.n_un.n_name)
13548 rm -f conftest.
$ac_objext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try
='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_cv_member_struct_nlist_n_un_n_name
=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.
$ac_ext >&5
13565 cat >conftest.
$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13569 cat confdefs.h
>>conftest.
$ac_ext
13570 cat >>conftest.
$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13577 static struct nlist ac_aggr;
13578 if (sizeof ac_aggr.n_un.n_name)
13584 rm -f conftest.
$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try
='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_cv_member_struct_nlist_n_un_n_name
=yes
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.
$ac_ext >&5
13601 ac_cv_member_struct_nlist_n_un_n_name
=no
13603 rm -f conftest.
$ac_objext conftest.
$ac_ext
13605 rm -f conftest.
$ac_objext conftest.
$ac_ext
13607 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13608 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13609 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13611 cat >>confdefs.h
<<_ACEOF
13612 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13616 cat >>confdefs.h
<<\_ACEOF
13617 #define NLIST_NAME_UNION 1
13631 # Some definitions of getloadavg require that the program be installed setgid.
13632 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13633 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13634 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 cat >conftest.
$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13641 cat confdefs.h
>>conftest.
$ac_ext
13642 cat >>conftest.
$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13645 #ifdef LDAV_PRIVILEGED
13646 Yowza Am I SETGID yet
13649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13650 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13651 ac_cv_func_getloadavg_setgid
=yes
13653 ac_cv_func_getloadavg_setgid
=no
13658 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13659 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13660 if test $ac_cv_func_getloadavg_setgid = yes; then
13663 cat >>confdefs.h
<<\_ACEOF
13664 #define GETLOADAVG_PRIVILEGED 1
13671 if test $ac_cv_func_getloadavg_setgid = yes; then
13672 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13673 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13674 if test "${ac_cv_group_kmem+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13678 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13679 # If we got an error (system does not support symlinks), try without -L.
13680 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13681 ac_cv_group_kmem
=`echo $ac_ls_output \
13682 | sed -ne 's/[ ][ ]*/ /g;
13683 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13687 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13688 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13689 KMEM_GROUP
=$ac_cv_group_kmem
13691 if test "x$ac_save_LIBS" = x
; then
13692 GETLOADAVG_LIBS
=$LIBS
13694 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13700 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13701 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13702 if test "${ac_cv_sys_largefile_source+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 ac_cv_sys_largefile_source
=no
13707 cat >conftest.
$ac_ext <<_ACEOF
13708 #line $LINENO "configure"
13711 cat confdefs.h
>>conftest.
$ac_ext
13712 cat >>conftest.
$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13723 rm -f conftest.
$ac_objext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 (eval $ac_compile) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try
='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.
$ac_ext >&5
13741 rm -f conftest.
$ac_objext conftest.
$ac_ext
13742 cat >conftest.
$ac_ext <<_ACEOF
13743 #line $LINENO "configure"
13746 cat confdefs.h
>>conftest.
$ac_ext
13747 cat >>conftest.
$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 #define _LARGEFILE_SOURCE 1
13759 rm -f conftest.
$ac_objext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13761 (eval $ac_compile) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try
='test -s conftest.$ac_objext'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 ac_cv_sys_largefile_source
=1; break
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.
$ac_ext >&5
13777 rm -f conftest.
$ac_objext conftest.
$ac_ext
13781 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13782 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13783 if test "$ac_cv_sys_largefile_source" != no
; then
13785 cat >>confdefs.h
<<_ACEOF
13786 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13792 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13793 # in glibc 2.1.3, but that breaks too many other things.
13794 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13795 echo "$as_me:$LINENO: checking for fseeko" >&5
13796 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13797 if test "${ac_cv_func_fseeko+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 cat >conftest.
$ac_ext <<_ACEOF
13801 #line $LINENO "configure"
13804 cat confdefs.h
>>conftest.
$ac_ext
13805 cat >>conftest.
$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13811 return fseeko && fseeko (stdin, 0, 0);
13816 rm -f conftest.
$ac_objext conftest
$ac_exeext
13817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13818 (eval $ac_link) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
13822 { ac_try
='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_func_fseeko
=yes
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.
$ac_ext >&5
13833 ac_cv_func_fseeko
=no
13835 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13837 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13838 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13839 if test $ac_cv_func_fseeko = yes; then
13841 cat >>confdefs.h
<<\_ACEOF
13842 #define HAVE_FSEEKO 1
13848 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13849 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13850 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 # Use it with a single arg.
13854 cat >conftest.
$ac_ext <<_ACEOF
13855 #line $LINENO "configure"
13858 cat confdefs.h
>>conftest.
$ac_ext
13859 cat >>conftest.
$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 $ac_includes_default
13870 rm -f conftest.
$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872 (eval $ac_compile) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try
='test -s conftest.$ac_objext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_func_getpgrp_void
=no
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.
$ac_ext >&5
13887 ac_cv_func_getpgrp_void
=yes
13889 rm -f conftest.
$ac_objext conftest.
$ac_ext
13892 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13893 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13894 if test $ac_cv_func_getpgrp_void = yes; then
13896 cat >>confdefs.h
<<\_ACEOF
13897 #define GETPGRP_VOID 1
13904 for ac_func
in strftime
13906 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13907 echo "$as_me:$LINENO: checking for $ac_func" >&5
13908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13909 if eval "test \"\${$as_ac_var+set}\" = set"; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 cat >conftest.
$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13916 cat confdefs.h
>>conftest.
$ac_ext
13917 cat >>conftest.
$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 /* System header to define __stub macros and hopefully few prototypes,
13920 which can conflict with char $ac_func (); below.
13921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13922 <limits.h> exists even on freestanding compilers. */
13924 # include <limits.h>
13926 # include <assert.h>
13928 /* Override any gcc2 internal prototype to avoid an error. */
13933 /* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13936 /* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13942 char (*f) () = $ac_func;
13951 return f != $ac_func;
13956 rm -f conftest.
$ac_objext conftest
$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try
='test -s conftest$ac_exeext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 eval "$as_ac_var=yes"
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.
$ac_ext >&5
13973 eval "$as_ac_var=no"
13975 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13979 if test `eval echo '${'$as_ac_var'}'` = yes; then
13980 cat >>confdefs.h
<<_ACEOF
13981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13985 # strftime is in -lintl on SCO UNIX.
13986 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13987 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13988 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 ac_check_lib_save_LIBS
=$LIBS
13992 LIBS
="-lintl $LIBS"
13993 cat >conftest.
$ac_ext <<_ACEOF
13994 #line $LINENO "configure"
13997 cat confdefs.h
>>conftest.
$ac_ext
13998 cat >>conftest.
$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14001 /* Override any gcc2 internal prototype to avoid an error. */
14005 /* We use char because int might match the return type of a gcc2
14006 builtin and then its argument prototype would still apply. */
14016 rm -f conftest.
$ac_objext conftest
$ac_exeext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018 (eval $ac_link) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try
='test -s conftest$ac_exeext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_cv_lib_intl_strftime
=yes
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.
$ac_ext >&5
14033 ac_cv_lib_intl_strftime
=no
14035 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14036 LIBS
=$ac_check_lib_save_LIBS
14038 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14039 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14040 if test $ac_cv_lib_intl_strftime = yes; then
14041 cat >>confdefs.h
<<\_ACEOF
14042 #define HAVE_STRFTIME 1
14045 LIBS
="-lintl $LIBS"
14054 for ac_func
in grantpt
14056 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14057 echo "$as_me:$LINENO: checking for $ac_func" >&5
14058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14059 if eval "test \"\${$as_ac_var+set}\" = set"; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 cat >conftest.
$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14066 cat confdefs.h
>>conftest.
$ac_ext
14067 cat >>conftest.
$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 /* System header to define __stub macros and hopefully few prototypes,
14070 which can conflict with char $ac_func (); below.
14071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14072 <limits.h> exists even on freestanding compilers. */
14074 # include <limits.h>
14076 # include <assert.h>
14078 /* Override any gcc2 internal prototype to avoid an error. */
14083 /* We use char because int might match the return type of a gcc2
14084 builtin and then its argument prototype would still apply. */
14086 /* The GNU C library defines this for functions which it implements
14087 to always fail with ENOSYS. Some functions are actually named
14088 something starting with __ and the normal name is an alias. */
14089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14092 char (*f) () = $ac_func;
14101 return f != $ac_func;
14106 rm -f conftest.
$ac_objext conftest
$ac_exeext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14108 (eval $ac_link) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try
='test -s conftest$ac_exeext'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; }; then
14118 eval "$as_ac_var=yes"
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.
$ac_ext >&5
14123 eval "$as_ac_var=no"
14125 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14129 if test `eval echo '${'$as_ac_var'}'` = yes; then
14130 cat >>confdefs.h
<<_ACEOF
14131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14138 # PTY-related GNU extensions.
14140 for ac_func
in getpt
14142 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14143 echo "$as_me:$LINENO: checking for $ac_func" >&5
14144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14145 if eval "test \"\${$as_ac_var+set}\" = set"; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 cat >conftest.
$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14152 cat confdefs.h
>>conftest.
$ac_ext
14153 cat >>conftest.
$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 /* System header to define __stub macros and hopefully few prototypes,
14156 which can conflict with char $ac_func (); below.
14157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158 <limits.h> exists even on freestanding compilers. */
14160 # include <limits.h>
14162 # include <assert.h>
14164 /* Override any gcc2 internal prototype to avoid an error. */
14169 /* We use char because int might match the return type of a gcc2
14170 builtin and then its argument prototype would still apply. */
14172 /* The GNU C library defines this for functions which it implements
14173 to always fail with ENOSYS. Some functions are actually named
14174 something starting with __ and the normal name is an alias. */
14175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14178 char (*f) () = $ac_func;
14187 return f != $ac_func;
14192 rm -f conftest.
$ac_objext conftest
$ac_exeext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14194 (eval $ac_link) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try
='test -s conftest$ac_exeext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 eval "$as_ac_var=yes"
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.
$ac_ext >&5
14209 eval "$as_ac_var=no"
14211 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14215 if test `eval echo '${'$as_ac_var'}'` = yes; then
14216 cat >>confdefs.h
<<_ACEOF
14217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14224 # Check this now, so that we will NOT find the above functions in ncurses.
14225 # That is because we have not set up to link ncurses in lib-src.
14226 # It's better to believe a function is not available
14227 # than to expect to find it in ncurses.
14229 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14230 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14231 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 ac_check_lib_save_LIBS
=$LIBS
14235 LIBS
="-lncurses $LIBS"
14236 cat >conftest.
$ac_ext <<_ACEOF
14237 #line $LINENO "configure"
14240 cat confdefs.h
>>conftest.
$ac_ext
14241 cat >>conftest.
$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14244 /* Override any gcc2 internal prototype to avoid an error. */
14248 /* We use char because int might match the return type of a gcc2
14249 builtin and then its argument prototype would still apply. */
14259 rm -f conftest.
$ac_objext conftest
$ac_exeext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14261 (eval $ac_link) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try
='test -s conftest$ac_exeext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_lib_ncurses_tparm
=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.
$ac_ext >&5
14276 ac_cv_lib_ncurses_tparm
=no
14278 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14279 LIBS
=$ac_check_lib_save_LIBS
14281 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14282 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14283 if test $ac_cv_lib_ncurses_tparm = yes; then
14284 cat >>confdefs.h
<<_ACEOF
14285 #define HAVE_LIBNCURSES 1
14288 LIBS
="-lncurses $LIBS"
14293 # Do we need the Hesiod library to provide the support routines?
14294 if test "$with_hesiod" = yes ; then
14295 # Don't set $LIBS here -- see comments above.
14297 echo "$as_me:$LINENO: checking for res_send" >&5
14298 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14299 if test "${ac_cv_func_res_send+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 cat >conftest.
$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14306 cat confdefs.h
>>conftest.
$ac_ext
14307 cat >>conftest.
$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 /* System header to define __stub macros and hopefully few prototypes,
14310 which can conflict with char res_send (); below.
14311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14312 <limits.h> exists even on freestanding compilers. */
14314 # include <limits.h>
14316 # include <assert.h>
14318 /* Override any gcc2 internal prototype to avoid an error. */
14323 /* We use char because int might match the return type of a gcc2
14324 builtin and then its argument prototype would still apply. */
14326 /* The GNU C library defines this for functions which it implements
14327 to always fail with ENOSYS. Some functions are actually named
14328 something starting with __ and the normal name is an alias. */
14329 #if defined (__stub_res_send) || defined (__stub___res_send)
14332 char (*f) () = res_send;
14341 return f != res_send;
14346 rm -f conftest.
$ac_objext conftest
$ac_exeext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14348 (eval $ac_link) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
14352 { ac_try
='test -s conftest$ac_exeext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14358 ac_cv_func_res_send
=yes
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.
$ac_ext >&5
14363 ac_cv_func_res_send
=no
14365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14367 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14368 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14369 if test $ac_cv_func_res_send = yes; then
14372 echo "$as_me:$LINENO: checking for __res_send" >&5
14373 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14374 if test "${ac_cv_func___res_send+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 cat >conftest.
$ac_ext <<_ACEOF
14378 #line $LINENO "configure"
14381 cat confdefs.h
>>conftest.
$ac_ext
14382 cat >>conftest.
$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 /* System header to define __stub macros and hopefully few prototypes,
14385 which can conflict with char __res_send (); below.
14386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14387 <limits.h> exists even on freestanding compilers. */
14389 # include <limits.h>
14391 # include <assert.h>
14393 /* Override any gcc2 internal prototype to avoid an error. */
14398 /* We use char because int might match the return type of a gcc2
14399 builtin and then its argument prototype would still apply. */
14400 char __res_send ();
14401 /* The GNU C library defines this for functions which it implements
14402 to always fail with ENOSYS. Some functions are actually named
14403 something starting with __ and the normal name is an alias. */
14404 #if defined (__stub___res_send) || defined (__stub_____res_send)
14407 char (*f) () = __res_send;
14416 return f != __res_send;
14421 rm -f conftest.
$ac_objext conftest
$ac_exeext
14422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14423 (eval $ac_link) 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
14427 { ac_try
='test -s conftest$ac_exeext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_func___res_send
=yes
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.
$ac_ext >&5
14438 ac_cv_func___res_send
=no
14440 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14442 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14443 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14444 if test $ac_cv_func___res_send = yes; then
14447 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14448 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14449 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 ac_check_lib_save_LIBS
=$LIBS
14453 LIBS
="-lresolv $LIBS"
14454 cat >conftest.
$ac_ext <<_ACEOF
14455 #line $LINENO "configure"
14458 cat confdefs.h
>>conftest.
$ac_ext
14459 cat >>conftest.
$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14462 /* Override any gcc2 internal prototype to avoid an error. */
14466 /* We use char because int might match the return type of a gcc2
14467 builtin and then its argument prototype would still apply. */
14477 rm -f conftest.
$ac_objext conftest
$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try
='test -s conftest$ac_exeext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 ac_cv_lib_resolv_res_send
=yes
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.
$ac_ext >&5
14494 ac_cv_lib_resolv_res_send
=no
14496 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14497 LIBS
=$ac_check_lib_save_LIBS
14499 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14500 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14501 if test $ac_cv_lib_resolv_res_send = yes; then
14504 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14505 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14506 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 ac_check_lib_save_LIBS
=$LIBS
14510 LIBS
="-lresolv $LIBS"
14511 cat >conftest.
$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14515 cat confdefs.h
>>conftest.
$ac_ext
14516 cat >>conftest.
$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 /* Override any gcc2 internal prototype to avoid an error. */
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14525 char __res_send ();
14534 rm -f conftest.
$ac_objext conftest
$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try
='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_lib_resolv___res_send
=yes
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.
$ac_ext >&5
14551 ac_cv_lib_resolv___res_send
=no
14553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14554 LIBS
=$ac_check_lib_save_LIBS
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14557 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14558 if test $ac_cv_lib_resolv___res_send = yes; then
14568 if test "$resolv" = yes ; then
14571 cat >>confdefs.h
<<\_ACEOF
14572 #define HAVE_LIBRESOLV 1
14578 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14579 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14580 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 cat >conftest.
$ac_ext <<_ACEOF
14584 #line $LINENO "configure"
14587 cat confdefs.h
>>conftest.
$ac_ext
14588 cat >>conftest.
$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 /* System header to define __stub macros and hopefully few prototypes,
14591 which can conflict with char hes_getmailhost (); below.
14592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14593 <limits.h> exists even on freestanding compilers. */
14595 # include <limits.h>
14597 # include <assert.h>
14599 /* Override any gcc2 internal prototype to avoid an error. */
14604 /* We use char because int might match the return type of a gcc2
14605 builtin and then its argument prototype would still apply. */
14606 char hes_getmailhost ();
14607 /* The GNU C library defines this for functions which it implements
14608 to always fail with ENOSYS. Some functions are actually named
14609 something starting with __ and the normal name is an alias. */
14610 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14613 char (*f) () = hes_getmailhost;
14622 return f != hes_getmailhost;
14627 rm -f conftest.
$ac_objext conftest
$ac_exeext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14629 (eval $ac_link) 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
14633 { ac_try
='test -s conftest$ac_exeext'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; }; then
14639 ac_cv_func_hes_getmailhost
=yes
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.
$ac_ext >&5
14644 ac_cv_func_hes_getmailhost
=no
14646 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14648 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14649 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14650 if test $ac_cv_func_hes_getmailhost = yes; then
14653 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14654 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14655 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 ac_check_lib_save_LIBS
=$LIBS
14659 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14660 cat >conftest.
$ac_ext <<_ACEOF
14661 #line $LINENO "configure"
14664 cat confdefs.h
>>conftest.
$ac_ext
14665 cat >>conftest.
$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14668 /* Override any gcc2 internal prototype to avoid an error. */
14672 /* We use char because int might match the return type of a gcc2
14673 builtin and then its argument prototype would still apply. */
14674 char hes_getmailhost ();
14678 hes_getmailhost ();
14683 rm -f conftest.
$ac_objext conftest
$ac_exeext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14685 (eval $ac_link) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } &&
14689 { ac_try
='test -s conftest$ac_exeext'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14695 ac_cv_lib_hesiod_hes_getmailhost
=yes
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.
$ac_ext >&5
14700 ac_cv_lib_hesiod_hes_getmailhost
=no
14702 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14703 LIBS
=$ac_check_lib_save_LIBS
14705 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14706 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14707 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14709 cat >>confdefs.h
<<\_ACEOF
14710 #define HAVE_LIBHESIOD 1
14721 # These tell us which Kerberos-related libraries to use.
14722 if test "${with_kerberos+set}" = set; then
14724 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14725 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14726 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 ac_check_lib_save_LIBS
=$LIBS
14730 LIBS
="-lcom_err $LIBS"
14731 cat >conftest.
$ac_ext <<_ACEOF
14732 #line $LINENO "configure"
14735 cat confdefs.h
>>conftest.
$ac_ext
14736 cat >>conftest.
$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14739 /* Override any gcc2 internal prototype to avoid an error. */
14743 /* We use char because int might match the return type of a gcc2
14744 builtin and then its argument prototype would still apply. */
14754 rm -f conftest.
$ac_objext conftest
$ac_exeext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14756 (eval $ac_link) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try
='test -s conftest$ac_exeext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_cv_lib_com_err_com_err
=yes
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.
$ac_ext >&5
14771 ac_cv_lib_com_err_com_err
=no
14773 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14774 LIBS
=$ac_check_lib_save_LIBS
14776 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14777 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14778 if test $ac_cv_lib_com_err_com_err = yes; then
14779 cat >>confdefs.h
<<_ACEOF
14780 #define HAVE_LIBCOM_ERR 1
14783 LIBS
="-lcom_err $LIBS"
14788 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14789 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14790 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 ac_check_lib_save_LIBS
=$LIBS
14794 LIBS
="-lk5crypto $LIBS"
14795 cat >conftest.
$ac_ext <<_ACEOF
14796 #line $LINENO "configure"
14799 cat confdefs.h
>>conftest.
$ac_ext
14800 cat >>conftest.
$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14803 /* Override any gcc2 internal prototype to avoid an error. */
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14809 char mit_des_cbc_encrypt ();
14813 mit_des_cbc_encrypt ();
14818 rm -f conftest.
$ac_objext conftest
$ac_exeext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14820 (eval $ac_link) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try
='test -s conftest$ac_exeext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.
$ac_ext >&5
14835 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14837 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14838 LIBS
=$ac_check_lib_save_LIBS
14840 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14841 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14842 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14843 cat >>confdefs.h
<<_ACEOF
14844 #define HAVE_LIBK5CRYPTO 1
14847 LIBS
="-lk5crypto $LIBS"
14852 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14853 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14854 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 ac_check_lib_save_LIBS
=$LIBS
14858 LIBS
="-lcrypto $LIBS"
14859 cat >conftest.
$ac_ext <<_ACEOF
14860 #line $LINENO "configure"
14863 cat confdefs.h
>>conftest.
$ac_ext
14864 cat >>conftest.
$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14867 /* Override any gcc2 internal prototype to avoid an error. */
14871 /* We use char because int might match the return type of a gcc2
14872 builtin and then its argument prototype would still apply. */
14873 char mit_des_cbc_encrypt ();
14877 mit_des_cbc_encrypt ();
14882 rm -f conftest.
$ac_objext conftest
$ac_exeext
14883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14884 (eval $ac_link) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try
='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.
$ac_ext >&5
14899 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14901 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14902 LIBS
=$ac_check_lib_save_LIBS
14904 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14905 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14906 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14907 cat >>confdefs.h
<<_ACEOF
14908 #define HAVE_LIBCRYPTO 1
14911 LIBS
="-lcrypto $LIBS"
14916 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14917 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14918 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 ac_check_lib_save_LIBS
=$LIBS
14922 LIBS
="-lkrb5 $LIBS"
14923 cat >conftest.
$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14927 cat confdefs.h
>>conftest.
$ac_ext
14928 cat >>conftest.
$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14931 /* Override any gcc2 internal prototype to avoid an error. */
14935 /* We use char because int might match the return type of a gcc2
14936 builtin and then its argument prototype would still apply. */
14937 char krb5_init_context ();
14941 krb5_init_context ();
14946 rm -f conftest.
$ac_objext conftest
$ac_exeext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14948 (eval $ac_link) 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
14952 { ac_try
='test -s conftest$ac_exeext'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_lib_krb5_krb5_init_context
=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.
$ac_ext >&5
14963 ac_cv_lib_krb5_krb5_init_context
=no
14965 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14966 LIBS
=$ac_check_lib_save_LIBS
14968 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14969 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14970 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14971 cat >>confdefs.h
<<_ACEOF
14972 #define HAVE_LIBKRB5 1
14975 LIBS
="-lkrb5 $LIBS"
14979 if test "${with_kerberos5+set}" != set; then
14981 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14982 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14983 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 ac_check_lib_save_LIBS
=$LIBS
14987 LIBS
="-ldes425 $LIBS"
14988 cat >conftest.
$ac_ext <<_ACEOF
14989 #line $LINENO "configure"
14992 cat confdefs.h
>>conftest.
$ac_ext
14993 cat >>conftest.
$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14996 /* Override any gcc2 internal prototype to avoid an error. */
15000 /* We use char because int might match the return type of a gcc2
15001 builtin and then its argument prototype would still apply. */
15002 char des_cbc_encrypt ();
15006 des_cbc_encrypt ();
15011 rm -f conftest.
$ac_objext conftest
$ac_exeext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013 (eval $ac_link) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try
='test -s conftest$ac_exeext'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 ac_cv_lib_des425_des_cbc_encrypt
=yes
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.
$ac_ext >&5
15028 ac_cv_lib_des425_des_cbc_encrypt
=no
15030 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15031 LIBS
=$ac_check_lib_save_LIBS
15033 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15034 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15035 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15036 cat >>confdefs.h
<<_ACEOF
15037 #define HAVE_LIBDES425 1
15040 LIBS
="-ldes425 $LIBS"
15044 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15045 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15046 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 ac_check_lib_save_LIBS
=$LIBS
15051 cat >conftest.
$ac_ext <<_ACEOF
15052 #line $LINENO "configure"
15055 cat confdefs.h
>>conftest.
$ac_ext
15056 cat >>conftest.
$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15059 /* Override any gcc2 internal prototype to avoid an error. */
15063 /* We use char because int might match the return type of a gcc2
15064 builtin and then its argument prototype would still apply. */
15065 char des_cbc_encrypt ();
15069 des_cbc_encrypt ();
15074 rm -f conftest.
$ac_objext conftest
$ac_exeext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15076 (eval $ac_link) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try
='test -s conftest$ac_exeext'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 ac_cv_lib_des_des_cbc_encrypt
=yes
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.
$ac_ext >&5
15091 ac_cv_lib_des_des_cbc_encrypt
=no
15093 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15094 LIBS
=$ac_check_lib_save_LIBS
15096 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15097 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15098 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15099 cat >>confdefs.h
<<_ACEOF
15100 #define HAVE_LIBDES 1
15110 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15111 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15112 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 ac_check_lib_save_LIBS
=$LIBS
15116 LIBS
="-lkrb4 $LIBS"
15117 cat >conftest.
$ac_ext <<_ACEOF
15118 #line $LINENO "configure"
15121 cat confdefs.h
>>conftest.
$ac_ext
15122 cat >>conftest.
$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 /* Override any gcc2 internal prototype to avoid an error. */
15129 /* We use char because int might match the return type of a gcc2
15130 builtin and then its argument prototype would still apply. */
15131 char krb_get_cred ();
15140 rm -f conftest.
$ac_objext conftest
$ac_exeext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142 (eval $ac_link) 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try
='test -s conftest$ac_exeext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_cv_lib_krb4_krb_get_cred
=yes
15154 echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.
$ac_ext >&5
15157 ac_cv_lib_krb4_krb_get_cred
=no
15159 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15160 LIBS
=$ac_check_lib_save_LIBS
15162 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15163 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15164 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15165 cat >>confdefs.h
<<_ACEOF
15166 #define HAVE_LIBKRB4 1
15169 LIBS
="-lkrb4 $LIBS"
15173 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15174 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15175 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 ac_check_lib_save_LIBS
=$LIBS
15180 cat >conftest.
$ac_ext <<_ACEOF
15181 #line $LINENO "configure"
15184 cat confdefs.h
>>conftest.
$ac_ext
15185 cat >>conftest.
$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15188 /* Override any gcc2 internal prototype to avoid an error. */
15192 /* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15194 char krb_get_cred ();
15203 rm -f conftest.
$ac_objext conftest
$ac_exeext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15205 (eval $ac_link) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try
='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_lib_krb_krb_get_cred
=yes
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.
$ac_ext >&5
15220 ac_cv_lib_krb_krb_get_cred
=no
15222 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15223 LIBS
=$ac_check_lib_save_LIBS
15225 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15226 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15227 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15228 cat >>confdefs.h
<<_ACEOF
15229 #define HAVE_LIBKRB 1
15240 if test "${with_kerberos5+set}" = set; then
15242 for ac_header
in krb5.h
15244 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15246 echo "$as_me:$LINENO: checking for $ac_header" >&5
15247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15254 # Is the header compilable?
15255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15257 cat >conftest.
$ac_ext <<_ACEOF
15258 #line $LINENO "configure"
15261 cat confdefs.h
>>conftest.
$ac_ext
15262 cat >>conftest.
$ac_ext <<_ACEOF
15263 /* end confdefs.h. */
15264 $ac_includes_default
15265 #include <$ac_header>
15267 rm -f conftest.
$ac_objext
15268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15269 (eval $ac_compile) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try
='test -s conftest.$ac_objext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_header_compiler
=yes
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.
$ac_ext >&5
15284 ac_header_compiler
=no
15286 rm -f conftest.
$ac_objext conftest.
$ac_ext
15287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15288 echo "${ECHO_T}$ac_header_compiler" >&6
15290 # Is the header present?
15291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15293 cat >conftest.
$ac_ext <<_ACEOF
15294 #line $LINENO "configure"
15297 cat confdefs.h
>>conftest.
$ac_ext
15298 cat >>conftest.
$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 #include <$ac_header>
15302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15305 grep -v '^ *+' conftest.er1
>conftest.err
15307 cat conftest.err
>&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev
/null
; then
15310 if test -s conftest.err
; then
15311 ac_cpp_err
=$ac_c_preproc_warn_flag
15318 if test -z "$ac_cpp_err"; then
15319 ac_header_preproc
=yes
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.
$ac_ext >&5
15324 ac_header_preproc
=no
15326 rm -f conftest.err conftest.
$ac_ext
15327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15328 echo "${ECHO_T}$ac_header_preproc" >&6
15330 # So? What about this header?
15331 case $ac_header_compiler:$ac_header_preproc in
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15339 ## ------------------------------------ ##
15340 ## Report this to bug-autoconf@gnu.org. ##
15341 ## ------------------------------------ ##
15344 sed "s/^/$as_me: WARNING: /" >&2
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15355 ## ------------------------------------ ##
15356 ## Report this to bug-autoconf@gnu.org. ##
15357 ## ------------------------------------ ##
15360 sed "s/^/$as_me: WARNING: /" >&2
15363 echo "$as_me:$LINENO: checking for $ac_header" >&5
15364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 eval "$as_ac_Header=$ac_header_preproc"
15370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375 cat >>confdefs.h
<<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15385 for ac_header
in des.h
15387 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15389 echo "$as_me:$LINENO: checking for $ac_header" >&5
15390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15397 # Is the header compilable?
15398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15400 cat >conftest.
$ac_ext <<_ACEOF
15401 #line $LINENO "configure"
15404 cat confdefs.h
>>conftest.
$ac_ext
15405 cat >>conftest.
$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 $ac_includes_default
15408 #include <$ac_header>
15410 rm -f conftest.
$ac_objext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15412 (eval $ac_compile) 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } &&
15416 { ac_try
='test -s conftest.$ac_objext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_header_compiler
=yes
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.
$ac_ext >&5
15427 ac_header_compiler
=no
15429 rm -f conftest.
$ac_objext conftest.
$ac_ext
15430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15431 echo "${ECHO_T}$ac_header_compiler" >&6
15433 # Is the header present?
15434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15436 cat >conftest.
$ac_ext <<_ACEOF
15437 #line $LINENO "configure"
15440 cat confdefs.h
>>conftest.
$ac_ext
15441 cat >>conftest.
$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 #include <$ac_header>
15445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15448 grep -v '^ *+' conftest.er1
>conftest.err
15450 cat conftest.err
>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } >/dev
/null
; then
15453 if test -s conftest.err
; then
15454 ac_cpp_err
=$ac_c_preproc_warn_flag
15461 if test -z "$ac_cpp_err"; then
15462 ac_header_preproc
=yes
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.
$ac_ext >&5
15467 ac_header_preproc
=no
15469 rm -f conftest.err conftest.
$ac_ext
15470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15471 echo "${ECHO_T}$ac_header_preproc" >&6
15473 # So? What about this header?
15474 case $ac_header_compiler:$ac_header_preproc in
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15482 ## ------------------------------------ ##
15483 ## Report this to bug-autoconf@gnu.org. ##
15484 ## ------------------------------------ ##
15487 sed "s/^/$as_me: WARNING: /" >&2
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15498 ## ------------------------------------ ##
15499 ## Report this to bug-autoconf@gnu.org. ##
15500 ## ------------------------------------ ##
15503 sed "s/^/$as_me: WARNING: /" >&2
15506 echo "$as_me:$LINENO: checking for $ac_header" >&5
15507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 eval "$as_ac_Header=$ac_header_preproc"
15513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15518 cat >>confdefs.h
<<_ACEOF
15519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15524 for ac_header
in kerberosIV
/des.h
15526 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15528 echo "$as_me:$LINENO: checking for $ac_header" >&5
15529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15536 # Is the header compilable?
15537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15539 cat >conftest.
$ac_ext <<_ACEOF
15540 #line $LINENO "configure"
15543 cat confdefs.h
>>conftest.
$ac_ext
15544 cat >>conftest.
$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546 $ac_includes_default
15547 #include <$ac_header>
15549 rm -f conftest.
$ac_objext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15551 (eval $ac_compile) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } &&
15555 { ac_try
='test -s conftest.$ac_objext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_header_compiler
=yes
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.
$ac_ext >&5
15566 ac_header_compiler
=no
15568 rm -f conftest.
$ac_objext conftest.
$ac_ext
15569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570 echo "${ECHO_T}$ac_header_compiler" >&6
15572 # Is the header present?
15573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15575 cat >conftest.
$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15579 cat confdefs.h
>>conftest.
$ac_ext
15580 cat >>conftest.
$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <$ac_header>
15584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15585 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15587 grep -v '^ *+' conftest.er1
>conftest.err
15589 cat conftest.err
>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } >/dev
/null
; then
15592 if test -s conftest.err
; then
15593 ac_cpp_err
=$ac_c_preproc_warn_flag
15600 if test -z "$ac_cpp_err"; then
15601 ac_header_preproc
=yes
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.
$ac_ext >&5
15606 ac_header_preproc
=no
15608 rm -f conftest.err conftest.
$ac_ext
15609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15610 echo "${ECHO_T}$ac_header_preproc" >&6
15612 # So? What about this header?
15613 case $ac_header_compiler:$ac_header_preproc in
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15621 ## ------------------------------------ ##
15622 ## Report this to bug-autoconf@gnu.org. ##
15623 ## ------------------------------------ ##
15626 sed "s/^/$as_me: WARNING: /" >&2
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15637 ## ------------------------------------ ##
15638 ## Report this to bug-autoconf@gnu.org. ##
15639 ## ------------------------------------ ##
15642 sed "s/^/$as_me: WARNING: /" >&2
15645 echo "$as_me:$LINENO: checking for $ac_header" >&5
15646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 eval "$as_ac_Header=$ac_header_preproc"
15652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15657 cat >>confdefs.h
<<_ACEOF
15658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15663 for ac_header
in kerberos
/des.h
15665 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15667 echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15675 # Is the header compilable?
15676 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15678 cat >conftest.
$ac_ext <<_ACEOF
15679 #line $LINENO "configure"
15682 cat confdefs.h
>>conftest.
$ac_ext
15683 cat >>conftest.
$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 $ac_includes_default
15686 #include <$ac_header>
15688 rm -f conftest.
$ac_objext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690 (eval $ac_compile) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try
='test -s conftest.$ac_objext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_header_compiler
=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.
$ac_ext >&5
15705 ac_header_compiler
=no
15707 rm -f conftest.
$ac_objext conftest.
$ac_ext
15708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15709 echo "${ECHO_T}$ac_header_compiler" >&6
15711 # Is the header present?
15712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15714 cat >conftest.
$ac_ext <<_ACEOF
15715 #line $LINENO "configure"
15718 cat confdefs.h
>>conftest.
$ac_ext
15719 cat >>conftest.
$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 #include <$ac_header>
15723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15726 grep -v '^ *+' conftest.er1
>conftest.err
15728 cat conftest.err
>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } >/dev
/null
; then
15731 if test -s conftest.err
; then
15732 ac_cpp_err
=$ac_c_preproc_warn_flag
15739 if test -z "$ac_cpp_err"; then
15740 ac_header_preproc
=yes
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.
$ac_ext >&5
15745 ac_header_preproc
=no
15747 rm -f conftest.err conftest.
$ac_ext
15748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15749 echo "${ECHO_T}$ac_header_preproc" >&6
15751 # So? What about this header?
15752 case $ac_header_compiler:$ac_header_preproc in
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15760 ## ------------------------------------ ##
15761 ## Report this to bug-autoconf@gnu.org. ##
15762 ## ------------------------------------ ##
15765 sed "s/^/$as_me: WARNING: /" >&2
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776 ## ------------------------------------ ##
15777 ## Report this to bug-autoconf@gnu.org. ##
15778 ## ------------------------------------ ##
15781 sed "s/^/$as_me: WARNING: /" >&2
15784 echo "$as_me:$LINENO: checking for $ac_header" >&5
15785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 eval "$as_ac_Header=$ac_header_preproc"
15791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15796 cat >>confdefs.h
<<_ACEOF
15797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15813 for ac_header
in krb.h
15815 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15817 echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15825 # Is the header compilable?
15826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15828 cat >conftest.
$ac_ext <<_ACEOF
15829 #line $LINENO "configure"
15832 cat confdefs.h
>>conftest.
$ac_ext
15833 cat >>conftest.
$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 $ac_includes_default
15836 #include <$ac_header>
15838 rm -f conftest.
$ac_objext
15839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840 (eval $ac_compile) 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
15844 { ac_try
='test -s conftest.$ac_objext'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 ac_header_compiler
=yes
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.
$ac_ext >&5
15855 ac_header_compiler
=no
15857 rm -f conftest.
$ac_objext conftest.
$ac_ext
15858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15859 echo "${ECHO_T}$ac_header_compiler" >&6
15861 # Is the header present?
15862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15864 cat >conftest.
$ac_ext <<_ACEOF
15865 #line $LINENO "configure"
15868 cat confdefs.h
>>conftest.
$ac_ext
15869 cat >>conftest.
$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 #include <$ac_header>
15873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15874 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15876 grep -v '^ *+' conftest.er1
>conftest.err
15878 cat conftest.err
>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } >/dev
/null
; then
15881 if test -s conftest.err
; then
15882 ac_cpp_err
=$ac_c_preproc_warn_flag
15889 if test -z "$ac_cpp_err"; then
15890 ac_header_preproc
=yes
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.
$ac_ext >&5
15895 ac_header_preproc
=no
15897 rm -f conftest.err conftest.
$ac_ext
15898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15899 echo "${ECHO_T}$ac_header_preproc" >&6
15901 # So? What about this header?
15902 case $ac_header_compiler:$ac_header_preproc in
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15910 ## ------------------------------------ ##
15911 ## Report this to bug-autoconf@gnu.org. ##
15912 ## ------------------------------------ ##
15915 sed "s/^/$as_me: WARNING: /" >&2
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15926 ## ------------------------------------ ##
15927 ## Report this to bug-autoconf@gnu.org. ##
15928 ## ------------------------------------ ##
15931 sed "s/^/$as_me: WARNING: /" >&2
15934 echo "$as_me:$LINENO: checking for $ac_header" >&5
15935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15937 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 eval "$as_ac_Header=$ac_header_preproc"
15941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15946 cat >>confdefs.h
<<_ACEOF
15947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15952 for ac_header
in kerberosIV
/krb.h
15954 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15956 echo "$as_me:$LINENO: checking for $ac_header" >&5
15957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15964 # Is the header compilable?
15965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15967 cat >conftest.
$ac_ext <<_ACEOF
15968 #line $LINENO "configure"
15971 cat confdefs.h
>>conftest.
$ac_ext
15972 cat >>conftest.
$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 $ac_includes_default
15975 #include <$ac_header>
15977 rm -f conftest.
$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try
='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_header_compiler
=yes
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.
$ac_ext >&5
15994 ac_header_compiler
=no
15996 rm -f conftest.
$ac_objext conftest.
$ac_ext
15997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15998 echo "${ECHO_T}$ac_header_compiler" >&6
16000 # Is the header present?
16001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16003 cat >conftest.
$ac_ext <<_ACEOF
16004 #line $LINENO "configure"
16007 cat confdefs.h
>>conftest.
$ac_ext
16008 cat >>conftest.
$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 #include <$ac_header>
16012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16015 grep -v '^ *+' conftest.er1
>conftest.err
16017 cat conftest.err
>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } >/dev
/null
; then
16020 if test -s conftest.err
; then
16021 ac_cpp_err
=$ac_c_preproc_warn_flag
16028 if test -z "$ac_cpp_err"; then
16029 ac_header_preproc
=yes
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.
$ac_ext >&5
16034 ac_header_preproc
=no
16036 rm -f conftest.err conftest.
$ac_ext
16037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16038 echo "${ECHO_T}$ac_header_preproc" >&6
16040 # So? What about this header?
16041 case $ac_header_compiler:$ac_header_preproc in
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16049 ## ------------------------------------ ##
16050 ## Report this to bug-autoconf@gnu.org. ##
16051 ## ------------------------------------ ##
16054 sed "s/^/$as_me: WARNING: /" >&2
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16065 ## ------------------------------------ ##
16066 ## Report this to bug-autoconf@gnu.org. ##
16067 ## ------------------------------------ ##
16070 sed "s/^/$as_me: WARNING: /" >&2
16073 echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 eval "$as_ac_Header=$ac_header_preproc"
16080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16085 cat >>confdefs.h
<<_ACEOF
16086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16091 for ac_header
in kerberos
/krb.h
16093 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16095 echo "$as_me:$LINENO: checking for $ac_header" >&5
16096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16103 # Is the header compilable?
16104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16106 cat >conftest.
$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16110 cat confdefs.h
>>conftest.
$ac_ext
16111 cat >>conftest.
$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 $ac_includes_default
16114 #include <$ac_header>
16116 rm -f conftest.
$ac_objext
16117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118 (eval $ac_compile) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } &&
16122 { ac_try
='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_header_compiler
=yes
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.
$ac_ext >&5
16133 ac_header_compiler
=no
16135 rm -f conftest.
$ac_objext conftest.
$ac_ext
16136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16137 echo "${ECHO_T}$ac_header_compiler" >&6
16139 # Is the header present?
16140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16142 cat >conftest.
$ac_ext <<_ACEOF
16143 #line $LINENO "configure"
16146 cat confdefs.h
>>conftest.
$ac_ext
16147 cat >>conftest.
$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149 #include <$ac_header>
16151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16152 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16154 grep -v '^ *+' conftest.er1
>conftest.err
16156 cat conftest.err
>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } >/dev
/null
; then
16159 if test -s conftest.err
; then
16160 ac_cpp_err
=$ac_c_preproc_warn_flag
16167 if test -z "$ac_cpp_err"; then
16168 ac_header_preproc
=yes
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.
$ac_ext >&5
16173 ac_header_preproc
=no
16175 rm -f conftest.err conftest.
$ac_ext
16176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16177 echo "${ECHO_T}$ac_header_preproc" >&6
16179 # So? What about this header?
16180 case $ac_header_compiler:$ac_header_preproc in
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16188 ## ------------------------------------ ##
16189 ## Report this to bug-autoconf@gnu.org. ##
16190 ## ------------------------------------ ##
16193 sed "s/^/$as_me: WARNING: /" >&2
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16204 ## ------------------------------------ ##
16205 ## Report this to bug-autoconf@gnu.org. ##
16206 ## ------------------------------------ ##
16209 sed "s/^/$as_me: WARNING: /" >&2
16212 echo "$as_me:$LINENO: checking for $ac_header" >&5
16213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 eval "$as_ac_Header=$ac_header_preproc"
16219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16224 cat >>confdefs.h
<<_ACEOF
16225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16242 for ac_header
in com_err.h
16244 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16246 echo "$as_me:$LINENO: checking for $ac_header" >&5
16247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16254 # Is the header compilable?
16255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16257 cat >conftest.
$ac_ext <<_ACEOF
16258 #line $LINENO "configure"
16261 cat confdefs.h
>>conftest.
$ac_ext
16262 cat >>conftest.
$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 $ac_includes_default
16265 #include <$ac_header>
16267 rm -f conftest.
$ac_objext
16268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16269 (eval $ac_compile) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try
='test -s conftest.$ac_objext'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 ac_header_compiler
=yes
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.
$ac_ext >&5
16284 ac_header_compiler
=no
16286 rm -f conftest.
$ac_objext conftest.
$ac_ext
16287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16288 echo "${ECHO_T}$ac_header_compiler" >&6
16290 # Is the header present?
16291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16293 cat >conftest.
$ac_ext <<_ACEOF
16294 #line $LINENO "configure"
16297 cat confdefs.h
>>conftest.
$ac_ext
16298 cat >>conftest.
$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 #include <$ac_header>
16302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16305 grep -v '^ *+' conftest.er1
>conftest.err
16307 cat conftest.err
>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } >/dev
/null
; then
16310 if test -s conftest.err
; then
16311 ac_cpp_err
=$ac_c_preproc_warn_flag
16318 if test -z "$ac_cpp_err"; then
16319 ac_header_preproc
=yes
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.
$ac_ext >&5
16324 ac_header_preproc
=no
16326 rm -f conftest.err conftest.
$ac_ext
16327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16328 echo "${ECHO_T}$ac_header_preproc" >&6
16330 # So? What about this header?
16331 case $ac_header_compiler:$ac_header_preproc in
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16339 ## ------------------------------------ ##
16340 ## Report this to bug-autoconf@gnu.org. ##
16341 ## ------------------------------------ ##
16344 sed "s/^/$as_me: WARNING: /" >&2
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16355 ## ------------------------------------ ##
16356 ## Report this to bug-autoconf@gnu.org. ##
16357 ## ------------------------------------ ##
16360 sed "s/^/$as_me: WARNING: /" >&2
16363 echo "$as_me:$LINENO: checking for $ac_header" >&5
16364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 eval "$as_ac_Header=$ac_header_preproc"
16370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16375 cat >>confdefs.h
<<_ACEOF
16376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16385 # Solaris requires -lintl if you want strerror (which calls dgettext)
16386 # to return localized messages.
16388 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16389 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16390 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 ac_check_lib_save_LIBS
=$LIBS
16394 LIBS
="-lintl $LIBS"
16395 cat >conftest.
$ac_ext <<_ACEOF
16396 #line $LINENO "configure"
16399 cat confdefs.h
>>conftest.
$ac_ext
16400 cat >>conftest.
$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16403 /* Override any gcc2 internal prototype to avoid an error. */
16407 /* We use char because int might match the return type of a gcc2
16408 builtin and then its argument prototype would still apply. */
16418 rm -f conftest.
$ac_objext conftest
$ac_exeext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16420 (eval $ac_link) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try
='test -s conftest$ac_exeext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_cv_lib_intl_dgettext
=yes
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.
$ac_ext >&5
16435 ac_cv_lib_intl_dgettext
=no
16437 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16438 LIBS
=$ac_check_lib_save_LIBS
16440 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16441 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16442 if test $ac_cv_lib_intl_dgettext = yes; then
16443 cat >>confdefs.h
<<_ACEOF
16444 #define HAVE_LIBINTL 1
16447 LIBS
="-lintl $LIBS"
16452 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16453 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16454 if test "${emacs_cv_localtime_cache+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 if test x
$ac_cv_func_tzset = xyes
; then
16458 if test "$cross_compiling" = yes; then
16459 # If we have tzset, assume the worst when cross-compiling.
16460 emacs_cv_localtime_cache
=yes
16462 cat >conftest.
$ac_ext <<_ACEOF
16463 #line $LINENO "configure"
16466 cat confdefs.h
>>conftest.
$ac_ext
16467 cat >>conftest.
$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16470 extern char **environ;
16474 for (to = from = environ; (*to = *from); from++)
16475 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16478 char TZ_GMT0[] = "TZ=GMT0";
16479 char TZ_PST8[] = "TZ=PST8";
16482 time_t now = time ((time_t *) 0);
16483 int hour_GMT0, hour_unset;
16484 if (putenv (TZ_GMT0) != 0)
16486 hour_GMT0 = localtime (&now)->tm_hour;
16488 hour_unset = localtime (&now)->tm_hour;
16489 if (putenv (TZ_PST8) != 0)
16491 if (localtime (&now)->tm_hour == hour_GMT0)
16494 if (localtime (&now)->tm_hour != hour_unset)
16499 rm -f conftest
$ac_exeext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16501 (eval $ac_link) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 emacs_cv_localtime_cache
=no
16512 echo "$as_me: program exited with status $ac_status" >&5
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.
$ac_ext >&5
16516 ( exit $ac_status )
16517 emacs_cv_localtime_cache
=yes
16519 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16522 # If we lack tzset, report that localtime does not cache TZ,
16523 # since we can't invalidate the cache if we don't have tzset.
16524 emacs_cv_localtime_cache
=no
16527 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16528 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16529 if test $emacs_cv_localtime_cache = yes; then
16531 cat >>confdefs.h
<<\_ACEOF
16532 #define LOCALTIME_CACHE 1
16537 if test "x$HAVE_TIMEVAL" = xyes
; then
16539 for ac_func
in gettimeofday
16541 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16542 echo "$as_me:$LINENO: checking for $ac_func" >&5
16543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16544 if eval "test \"\${$as_ac_var+set}\" = set"; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 cat >conftest.
$ac_ext <<_ACEOF
16548 #line $LINENO "configure"
16551 cat confdefs.h
>>conftest.
$ac_ext
16552 cat >>conftest.
$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 /* System header to define __stub macros and hopefully few prototypes,
16555 which can conflict with char $ac_func (); below.
16556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16557 <limits.h> exists even on freestanding compilers. */
16559 # include <limits.h>
16561 # include <assert.h>
16563 /* Override any gcc2 internal prototype to avoid an error. */
16568 /* We use char because int might match the return type of a gcc2
16569 builtin and then its argument prototype would still apply. */
16571 /* The GNU C library defines this for functions which it implements
16572 to always fail with ENOSYS. Some functions are actually named
16573 something starting with __ and the normal name is an alias. */
16574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16577 char (*f) () = $ac_func;
16586 return f != $ac_func;
16591 rm -f conftest.
$ac_objext conftest
$ac_exeext
16592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593 (eval $ac_link) 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try
='test -s conftest$ac_exeext'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 eval "$as_ac_var=yes"
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.
$ac_ext >&5
16608 eval "$as_ac_var=no"
16610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16614 if test `eval echo '${'$as_ac_var'}'` = yes; then
16615 cat >>confdefs.h
<<_ACEOF
16616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16622 if test $ac_cv_func_gettimeofday = yes; then
16623 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16624 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16625 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 cat >conftest.
$ac_ext <<_ACEOF
16629 #line $LINENO "configure"
16632 cat confdefs.h
>>conftest.
$ac_ext
16633 cat >>conftest.
$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16636 #ifdef TIME_WITH_SYS_TIME
16637 #include <sys/time.h>
16640 #ifdef HAVE_SYS_TIME_H
16641 #include <sys/time.h>
16649 struct timeval time;
16650 gettimeofday (&time, 0);
16655 rm -f conftest.
$ac_objext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16657 (eval $ac_compile) 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try
='test -s conftest.$ac_objext'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 emacs_cv_gettimeofday_two_arguments
=yes
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.
$ac_ext >&5
16672 emacs_cv_gettimeofday_two_arguments
=no
16674 rm -f conftest.
$ac_objext conftest.
$ac_ext
16676 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16677 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16678 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16680 cat >>confdefs.h
<<\_ACEOF
16681 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16688 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16689 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16690 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16691 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 cat >conftest.
$ac_ext <<_ACEOF
16695 #line $LINENO "configure"
16698 cat confdefs.h
>>conftest.
$ac_ext
16699 cat >>conftest.
$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 #include <sys/types.h>
16702 #include <$ac_cv_struct_tm>
16708 static struct tm ac_aggr;
16709 if (ac_aggr.tm_zone)
16715 rm -f conftest.
$ac_objext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try
='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_cv_member_struct_tm_tm_zone
=yes
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.
$ac_ext >&5
16732 cat >conftest.
$ac_ext <<_ACEOF
16733 #line $LINENO "configure"
16736 cat confdefs.h
>>conftest.
$ac_ext
16737 cat >>conftest.
$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 #include <sys/types.h>
16740 #include <$ac_cv_struct_tm>
16746 static struct tm ac_aggr;
16747 if (sizeof ac_aggr.tm_zone)
16753 rm -f conftest.
$ac_objext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16755 (eval $ac_compile) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try
='test -s conftest.$ac_objext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 ac_cv_member_struct_tm_tm_zone
=yes
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.
$ac_ext >&5
16770 ac_cv_member_struct_tm_tm_zone
=no
16772 rm -f conftest.
$ac_objext conftest.
$ac_ext
16774 rm -f conftest.
$ac_objext conftest.
$ac_ext
16776 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16777 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16778 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16780 cat >>confdefs.h
<<_ACEOF
16781 #define HAVE_STRUCT_TM_TM_ZONE 1
16787 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16789 cat >>confdefs.h
<<\_ACEOF
16790 #define HAVE_TM_ZONE 1
16794 echo "$as_me:$LINENO: checking for tzname" >&5
16795 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16796 if test "${ac_cv_var_tzname+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 cat >conftest.
$ac_ext <<_ACEOF
16800 #line $LINENO "configure"
16803 cat confdefs.h
>>conftest.
$ac_ext
16804 cat >>conftest.
$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16807 #ifndef tzname /* For SGI. */
16808 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16819 rm -f conftest.
$ac_objext conftest
$ac_exeext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16821 (eval $ac_link) 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try
='test -s conftest$ac_exeext'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 ac_cv_var_tzname
=yes
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.
$ac_ext >&5
16836 ac_cv_var_tzname
=no
16838 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16840 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16841 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16842 if test $ac_cv_var_tzname = yes; then
16844 cat >>confdefs.h
<<\_ACEOF
16845 #define HAVE_TZNAME 1
16852 if test "$ac_cv_func_gettimeofday" = yes; then
16853 echo "$as_me:$LINENO: checking for struct timezone" >&5
16854 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16855 if test "${emacs_cv_struct_timezone+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 cat >conftest.
$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16862 cat confdefs.h
>>conftest.
$ac_ext
16863 cat >>conftest.
$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <sys/time.h>
16869 struct timezone tz;
16874 rm -f conftest.
$ac_objext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16876 (eval $ac_compile) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try
='test -s conftest.$ac_objext'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 if test "$cross_compiling" = yes; then
16887 emacs_cv_struct_timezone
=yes
16889 cat >conftest.
$ac_ext <<_ACEOF
16890 #line $LINENO "configure"
16893 cat confdefs.h
>>conftest.
$ac_ext
16894 cat >>conftest.
$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16897 #ifdef TIME_WITH_SYS_TIME
16898 #include <sys/time.h>
16901 #ifdef HAVE_SYS_TIME_H
16902 #include <sys/time.h>
16908 struct timeval time;
16909 struct timezone dummy;
16910 exit (gettimeofday (&time, &dummy));
16913 rm -f conftest
$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915 (eval $ac_link) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 emacs_cv_struct_timezone
=yes
16926 echo "$as_me: program exited with status $ac_status" >&5
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.
$ac_ext >&5
16930 ( exit $ac_status )
16931 emacs_cv_struct_timezone
=no
16933 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.
$ac_ext >&5
16939 emacs_cv_struct_timezone
=no
16941 rm -f conftest.
$ac_objext conftest.
$ac_ext
16943 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16944 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16948 echo "$as_me:$LINENO: checking for socket" >&5
16949 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16950 if test "${ac_cv_func_socket+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 cat >conftest.
$ac_ext <<_ACEOF
16954 #line $LINENO "configure"
16957 cat confdefs.h
>>conftest.
$ac_ext
16958 cat >>conftest.
$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 /* System header to define __stub macros and hopefully few prototypes,
16961 which can conflict with char socket (); below.
16962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16963 <limits.h> exists even on freestanding compilers. */
16965 # include <limits.h>
16967 # include <assert.h>
16969 /* Override any gcc2 internal prototype to avoid an error. */
16974 /* We use char because int might match the return type of a gcc2
16975 builtin and then its argument prototype would still apply. */
16977 /* The GNU C library defines this for functions which it implements
16978 to always fail with ENOSYS. Some functions are actually named
16979 something starting with __ and the normal name is an alias. */
16980 #if defined (__stub_socket) || defined (__stub___socket)
16983 char (*f) () = socket;
16992 return f != socket;
16997 rm -f conftest.
$ac_objext conftest
$ac_exeext
16998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16999 (eval $ac_link) 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
17003 { ac_try
='test -s conftest$ac_exeext'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_cv_func_socket
=yes
17011 echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.
$ac_ext >&5
17014 ac_cv_func_socket
=no
17016 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17018 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17019 echo "${ECHO_T}$ac_cv_func_socket" >&6
17020 if test $ac_cv_func_socket = yes; then
17026 if test $ok_so_far = yes; then
17027 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17028 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17029 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17030 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17034 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17036 # Is the header compilable?
17037 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17038 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17039 cat >conftest.
$ac_ext <<_ACEOF
17040 #line $LINENO "configure"
17043 cat confdefs.h
>>conftest.
$ac_ext
17044 cat >>conftest.
$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 $ac_includes_default
17047 #include <netinet/in.h>
17049 rm -f conftest.
$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } &&
17055 { ac_try
='test -s conftest.$ac_objext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_header_compiler
=yes
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.
$ac_ext >&5
17066 ac_header_compiler
=no
17068 rm -f conftest.
$ac_objext conftest.
$ac_ext
17069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17070 echo "${ECHO_T}$ac_header_compiler" >&6
17072 # Is the header present?
17073 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17074 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17075 cat >conftest.
$ac_ext <<_ACEOF
17076 #line $LINENO "configure"
17079 cat confdefs.h
>>conftest.
$ac_ext
17080 cat >>conftest.
$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 #include <netinet/in.h>
17084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17087 grep -v '^ *+' conftest.er1
>conftest.err
17089 cat conftest.err
>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } >/dev
/null
; then
17092 if test -s conftest.err
; then
17093 ac_cpp_err
=$ac_c_preproc_warn_flag
17100 if test -z "$ac_cpp_err"; then
17101 ac_header_preproc
=yes
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.
$ac_ext >&5
17106 ac_header_preproc
=no
17108 rm -f conftest.err conftest.
$ac_ext
17109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17110 echo "${ECHO_T}$ac_header_preproc" >&6
17112 # So? What about this header?
17113 case $ac_header_compiler:$ac_header_preproc in
17115 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17116 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17117 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17118 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17121 ## ------------------------------------ ##
17122 ## Report this to bug-autoconf@gnu.org. ##
17123 ## ------------------------------------ ##
17126 sed "s/^/$as_me: WARNING: /" >&2
17129 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17130 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17131 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17132 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17133 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17134 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17137 ## ------------------------------------ ##
17138 ## Report this to bug-autoconf@gnu.org. ##
17139 ## ------------------------------------ ##
17142 sed "s/^/$as_me: WARNING: /" >&2
17145 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17146 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17147 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 ac_cv_header_netinet_in_h
=$ac_header_preproc
17152 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17153 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17156 if test $ac_cv_header_netinet_in_h = yes; then
17164 if test $ok_so_far = yes; then
17165 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17166 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17167 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17168 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17172 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17174 # Is the header compilable?
17175 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17176 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17177 cat >conftest.
$ac_ext <<_ACEOF
17178 #line $LINENO "configure"
17181 cat confdefs.h
>>conftest.
$ac_ext
17182 cat >>conftest.
$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 $ac_includes_default
17185 #include <arpa/inet.h>
17187 rm -f conftest.
$ac_objext
17188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17189 (eval $ac_compile) 2>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try
='test -s conftest.$ac_objext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_header_compiler
=yes
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.
$ac_ext >&5
17204 ac_header_compiler
=no
17206 rm -f conftest.
$ac_objext conftest.
$ac_ext
17207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17208 echo "${ECHO_T}$ac_header_compiler" >&6
17210 # Is the header present?
17211 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17212 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17213 cat >conftest.
$ac_ext <<_ACEOF
17214 #line $LINENO "configure"
17217 cat confdefs.h
>>conftest.
$ac_ext
17218 cat >>conftest.
$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17220 #include <arpa/inet.h>
17222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17225 grep -v '^ *+' conftest.er1
>conftest.err
17227 cat conftest.err
>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } >/dev
/null
; then
17230 if test -s conftest.err
; then
17231 ac_cpp_err
=$ac_c_preproc_warn_flag
17238 if test -z "$ac_cpp_err"; then
17239 ac_header_preproc
=yes
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.
$ac_ext >&5
17244 ac_header_preproc
=no
17246 rm -f conftest.err conftest.
$ac_ext
17247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17248 echo "${ECHO_T}$ac_header_preproc" >&6
17250 # So? What about this header?
17251 case $ac_header_compiler:$ac_header_preproc in
17253 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17254 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17256 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17259 ## ------------------------------------ ##
17260 ## Report this to bug-autoconf@gnu.org. ##
17261 ## ------------------------------------ ##
17264 sed "s/^/$as_me: WARNING: /" >&2
17267 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17268 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17269 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17270 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17271 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17272 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17275 ## ------------------------------------ ##
17276 ## Report this to bug-autoconf@gnu.org. ##
17277 ## ------------------------------------ ##
17280 sed "s/^/$as_me: WARNING: /" >&2
17283 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17284 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17285 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17290 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17291 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17294 if test $ac_cv_header_arpa_inet_h = yes; then
17302 if test $ok_so_far = yes; then
17304 cat >>confdefs.h
<<\_ACEOF
17305 #define HAVE_INET_SOCKETS 1
17310 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
17312 cat >>confdefs.h
<<\_ACEOF
17313 #define HAVE_AIX_SMT_EXP 1
17318 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17319 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17320 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
17321 echo "$as_me:$LINENO: result: yes" >&5
17322 echo "${ECHO_T}yes" >&6
17324 cat >>confdefs.h
<<\_ACEOF
17325 #define HAVE_DEV_PTMX 1
17329 echo "$as_me:$LINENO: result: no" >&5
17330 echo "${ECHO_T}no" >&6
17333 echo "$as_me:$LINENO: checking for pid_t" >&5
17334 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17335 if test "${ac_cv_type_pid_t+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 cat >conftest.
$ac_ext <<_ACEOF
17339 #line $LINENO "configure"
17342 cat confdefs.h
>>conftest.
$ac_ext
17343 cat >>conftest.
$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 $ac_includes_default
17351 if (sizeof (pid_t))
17357 rm -f conftest.
$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359 (eval $ac_compile) 2>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try
='test -s conftest.$ac_objext'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_cv_type_pid_t
=yes
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.
$ac_ext >&5
17374 ac_cv_type_pid_t
=no
17376 rm -f conftest.
$ac_objext conftest.
$ac_ext
17378 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17379 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17380 if test $ac_cv_type_pid_t = yes; then
17384 cat >>confdefs.h
<<_ACEOF
17392 for ac_header
in unistd.h vfork.h
17394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17396 echo "$as_me:$LINENO: checking for $ac_header" >&5
17397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17404 # Is the header compilable?
17405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17407 cat >conftest.
$ac_ext <<_ACEOF
17408 #line $LINENO "configure"
17411 cat confdefs.h
>>conftest.
$ac_ext
17412 cat >>conftest.
$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 $ac_includes_default
17415 #include <$ac_header>
17417 rm -f conftest.
$ac_objext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419 (eval $ac_compile) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try
='test -s conftest.$ac_objext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_header_compiler
=yes
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.
$ac_ext >&5
17434 ac_header_compiler
=no
17436 rm -f conftest.
$ac_objext conftest.
$ac_ext
17437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17438 echo "${ECHO_T}$ac_header_compiler" >&6
17440 # Is the header present?
17441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17443 cat >conftest.
$ac_ext <<_ACEOF
17444 #line $LINENO "configure"
17447 cat confdefs.h
>>conftest.
$ac_ext
17448 cat >>conftest.
$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17450 #include <$ac_header>
17452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17453 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17455 grep -v '^ *+' conftest.er1
>conftest.err
17457 cat conftest.err
>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } >/dev
/null
; then
17460 if test -s conftest.err
; then
17461 ac_cpp_err
=$ac_c_preproc_warn_flag
17468 if test -z "$ac_cpp_err"; then
17469 ac_header_preproc
=yes
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.
$ac_ext >&5
17474 ac_header_preproc
=no
17476 rm -f conftest.err conftest.
$ac_ext
17477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17478 echo "${ECHO_T}$ac_header_preproc" >&6
17480 # So? What about this header?
17481 case $ac_header_compiler:$ac_header_preproc in
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17489 ## ------------------------------------ ##
17490 ## Report this to bug-autoconf@gnu.org. ##
17491 ## ------------------------------------ ##
17494 sed "s/^/$as_me: WARNING: /" >&2
17497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17505 ## ------------------------------------ ##
17506 ## Report this to bug-autoconf@gnu.org. ##
17507 ## ------------------------------------ ##
17510 sed "s/^/$as_me: WARNING: /" >&2
17513 echo "$as_me:$LINENO: checking for $ac_header" >&5
17514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17518 eval "$as_ac_Header=$ac_header_preproc"
17520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17525 cat >>confdefs.h
<<_ACEOF
17526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17535 for ac_func
in fork vfork
17537 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17538 echo "$as_me:$LINENO: checking for $ac_func" >&5
17539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17540 if eval "test \"\${$as_ac_var+set}\" = set"; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 cat >conftest.
$ac_ext <<_ACEOF
17544 #line $LINENO "configure"
17547 cat confdefs.h
>>conftest.
$ac_ext
17548 cat >>conftest.
$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 /* System header to define __stub macros and hopefully few prototypes,
17551 which can conflict with char $ac_func (); below.
17552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17553 <limits.h> exists even on freestanding compilers. */
17555 # include <limits.h>
17557 # include <assert.h>
17559 /* Override any gcc2 internal prototype to avoid an error. */
17564 /* We use char because int might match the return type of a gcc2
17565 builtin and then its argument prototype would still apply. */
17567 /* The GNU C library defines this for functions which it implements
17568 to always fail with ENOSYS. Some functions are actually named
17569 something starting with __ and the normal name is an alias. */
17570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17573 char (*f) () = $ac_func;
17582 return f != $ac_func;
17587 rm -f conftest.
$ac_objext conftest
$ac_exeext
17588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17589 (eval $ac_link) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try
='test -s conftest$ac_exeext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 eval "$as_ac_var=yes"
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.
$ac_ext >&5
17604 eval "$as_ac_var=no"
17606 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17610 if test `eval echo '${'$as_ac_var'}'` = yes; then
17611 cat >>confdefs.h
<<_ACEOF
17612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17618 if test "x$ac_cv_func_fork" = xyes
; then
17619 echo "$as_me:$LINENO: checking for working fork" >&5
17620 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17621 if test "${ac_cv_func_fork_works+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 if test "$cross_compiling" = yes; then
17625 ac_cv_func_fork_works
=cross
17627 cat >conftest.
$ac_ext <<_ACEOF
17628 /* By Ruediger Kuhlmann. */
17629 #include <sys/types.h>
17631 # include <unistd.h>
17633 /* Some systems only have a dummy stub for fork() */
17641 rm -f conftest
$ac_exeext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17643 (eval $ac_link) 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_cv_func_fork_works
=yes
17654 echo "$as_me: program exited with status $ac_status" >&5
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.
$ac_ext >&5
17658 ( exit $ac_status )
17659 ac_cv_func_fork_works
=no
17661 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17664 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17665 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17668 ac_cv_func_fork_works
=$ac_cv_func_fork
17670 if test "x$ac_cv_func_fork_works" = xcross
; then
17672 *-*-amigaos* |
*-*-msdosdjgpp*)
17673 # Override, as these systems have only a dummy fork() stub
17674 ac_cv_func_fork_works
=no
17677 ac_cv_func_fork_works
=yes
17680 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17681 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17683 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17684 if test "x$ac_cv_func_vfork" = xyes
; then
17685 echo "$as_me:$LINENO: checking for working vfork" >&5
17686 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17687 if test "${ac_cv_func_vfork_works+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 if test "$cross_compiling" = yes; then
17691 ac_cv_func_vfork_works
=cross
17693 cat >conftest.
$ac_ext <<_ACEOF
17694 #line $LINENO "configure"
17697 cat confdefs.h
>>conftest.
$ac_ext
17698 cat >>conftest.
$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700 /* Thanks to Paul Eggert for this test. */
17702 #include <stdlib.h>
17703 #include <sys/types.h>
17704 #include <sys/stat.h>
17705 #include <sys/wait.h>
17707 # include <unistd.h>
17710 # include <vfork.h>
17712 /* On some sparc systems, changes by the child to local and incoming
17713 argument registers are propagated back to the parent. The compiler
17714 is told about this with #include <vfork.h>, but some compilers
17715 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17716 static variable whose address is put into a register that is
17717 clobbered by the vfork. */
17720 sparc_address_test (int arg)
17722 sparc_address_test (arg) int arg;
17725 static pid_t child;
17743 pid_t parent = getpid ();
17746 sparc_address_test (0);
17751 /* Here is another test for sparc vfork register problems. This
17752 test uses lots of local variables, at least as many local
17753 variables as main has allocated so far including compiler
17754 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17755 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17756 reuse the register of parent for one of the local variables,
17757 since it will think that parent can't possibly be used any more
17758 in this routine. Assigning to the local variable will thus
17759 munge parent in the parent process. */
17761 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17762 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17763 /* Convince the compiler that p..p7 are live; otherwise, it might
17764 use the same hardware register for all 8 local variables. */
17765 if (p != p1 || p != p2 || p != p3 || p != p4
17766 || p != p5 || p != p6 || p != p7)
17769 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17770 from child file descriptors. If the child closes a descriptor
17771 before it execs or exits, this munges the parent's descriptor
17772 as well. Test for this by closing stdout in the child. */
17773 _exit(close(fileno(stdout)) != 0);
17778 while (wait(&status) != child)
17781 /* Was there some problem with vforking? */
17784 /* Did the child fail? (This shouldn't happen.) */
17787 /* Did the vfork/compiler bug occur? */
17788 || parent != getpid()
17790 /* Did the file descriptor bug occur? */
17791 || fstat(fileno(stdout), &st) != 0
17796 rm -f conftest
$ac_exeext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17798 (eval $ac_link) 2>&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 ac_cv_func_vfork_works
=yes
17809 echo "$as_me: program exited with status $ac_status" >&5
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.
$ac_ext >&5
17813 ( exit $ac_status )
17814 ac_cv_func_vfork_works
=no
17816 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17819 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17820 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17823 if test "x$ac_cv_func_fork_works" = xcross
; then
17824 ac_cv_func_vfork_works
=ac_cv_func_vfork
17825 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17826 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17829 if test "x$ac_cv_func_vfork_works" = xyes
; then
17831 cat >>confdefs.h
<<\_ACEOF
17832 #define HAVE_WORKING_VFORK 1
17837 cat >>confdefs.h
<<\_ACEOF
17842 if test "x$ac_cv_func_fork_works" = xyes
; then
17844 cat >>confdefs.h
<<\_ACEOF
17845 #define HAVE_WORKING_FORK 1
17851 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17852 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17853 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 cat >conftest.
$ac_ext <<_ACEOF
17857 #line $LINENO "configure"
17860 cat confdefs.h
>>conftest.
$ac_ext
17861 cat >>conftest.
$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 #include <langinfo.h>
17867 char* cs = nl_langinfo(CODESET);
17872 rm -f conftest.
$ac_objext conftest
$ac_exeext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17874 (eval $ac_link) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
17878 { ac_try
='test -s conftest$ac_exeext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 emacs_cv_langinfo_codeset
=yes
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.
$ac_ext >&5
17889 emacs_cv_langinfo_codeset
=no
17891 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17894 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17895 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17896 if test $emacs_cv_langinfo_codeset = yes; then
17898 cat >>confdefs.h
<<\_ACEOF
17899 #define HAVE_LANGINFO_CODESET 1
17904 echo "$as_me:$LINENO: checking for size_t" >&5
17905 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17906 if test "${ac_cv_type_size_t+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 cat >conftest.
$ac_ext <<_ACEOF
17910 #line $LINENO "configure"
17913 cat confdefs.h
>>conftest.
$ac_ext
17914 cat >>conftest.
$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17922 if (sizeof (size_t))
17928 rm -f conftest.
$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930 (eval $ac_compile) 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try
='test -s conftest.$ac_objext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_cv_type_size_t
=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.
$ac_ext >&5
17945 ac_cv_type_size_t
=no
17947 rm -f conftest.
$ac_objext conftest.
$ac_ext
17949 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17950 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17951 if test $ac_cv_type_size_t = yes; then
17953 cat >>confdefs.h
<<_ACEOF
17954 #define HAVE_SIZE_T 1
17961 echo "$as_me:$LINENO: checking for mbstate_t" >&5
17962 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17963 if test "${ac_cv_type_mbstate_t+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 cat >conftest.
$ac_ext <<_ACEOF
17967 #line $LINENO "configure"
17970 cat confdefs.h
>>conftest.
$ac_ext
17971 cat >>conftest.
$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17973 $ac_includes_default
17974 # include <wchar.h>
17978 mbstate_t x; return sizeof x;
17983 rm -f conftest.
$ac_objext
17984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17985 (eval $ac_compile) 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try
='test -s conftest.$ac_objext'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17995 ac_cv_type_mbstate_t
=yes
17997 echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.
$ac_ext >&5
18000 ac_cv_type_mbstate_t
=no
18002 rm -f conftest.
$ac_objext conftest.
$ac_ext
18004 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18005 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18006 if test $ac_cv_type_mbstate_t = yes; then
18008 cat >>confdefs.h
<<\_ACEOF
18009 #define HAVE_MBSTATE_T 1
18014 cat >>confdefs.h
<<\_ACEOF
18015 #define mbstate_t int
18020 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18021 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18022 if test "${emacs_cv_c_restrict+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 cat >conftest.
$ac_ext <<_ACEOF
18026 #line $LINENO "configure"
18029 cat confdefs.h
>>conftest.
$ac_ext
18030 cat >>conftest.
$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 void fred (int *restrict x);
18041 rm -f conftest.
$ac_objext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18043 (eval $ac_compile) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try
='test -s conftest.$ac_objext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 emacs_cv_c_restrict
=yes
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.
$ac_ext >&5
18058 cat >conftest.
$ac_ext <<_ACEOF
18059 #line $LINENO "configure"
18062 cat confdefs.h
>>conftest.
$ac_ext
18063 cat >>conftest.
$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 void fred (int *__restrict x);
18074 rm -f conftest.
$ac_objext
18075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18076 (eval $ac_compile) 2>&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
18080 { ac_try
='test -s conftest.$ac_objext'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
18086 emacs_cv_c_restrict
=__restrict
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.
$ac_ext >&5
18091 emacs_cv_c_restrict
=no
18093 rm -f conftest.
$ac_objext conftest.
$ac_ext
18095 rm -f conftest.
$ac_objext conftest.
$ac_ext
18097 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18098 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18099 case "$emacs_cv_c_restrict" in
18100 yes) emacs_restrict
=restrict
;;
18101 no
) emacs_restrict
="";;
18102 *) emacs_restrict
="$emacs_cv_c_restrict";;
18104 if test "$emacs_restrict" != __restrict
; then
18106 cat >>confdefs.h
<<_ACEOF
18107 #define __restrict $emacs_restrict
18112 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18113 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18114 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 cat >conftest.
$ac_ext <<_ACEOF
18118 #line $LINENO "configure"
18121 cat confdefs.h
>>conftest.
$ac_ext
18122 cat >>conftest.
$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 void fred (int x[__restrict]);
18133 rm -f conftest.
$ac_objext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18135 (eval $ac_compile) 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try
='test -s conftest.$ac_objext'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 emacs_cv_c_restrict_arr
=yes
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.
$ac_ext >&5
18150 emacs_cv_c_restrict_arr
=no
18152 rm -f conftest.
$ac_objext conftest.
$ac_ext
18154 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18155 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18156 if test "$emacs_cv_c_restrict_arr" = yes; then
18158 cat >>confdefs.h
<<\_ACEOF
18159 #define __restrict_arr __restrict
18166 # Set up the CFLAGS for real compilation, so we can substitute it.
18167 CFLAGS
="$REAL_CFLAGS"
18168 CPPFLAGS
="$REAL_CPPFLAGS"
18170 #### Find out which version of Emacs this is.
18171 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18172 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18173 if test x
"${version}" = x
; then
18174 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18175 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18176 { (exit 1); exit 1; }; }
18179 ### Specify what sort of things we'll be editing into Makefile and config.h.
18180 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18216 cat >>confdefs.h
<<_ACEOF
18217 #define EMACS_CONFIGURATION "${canonical}"
18221 cat >>confdefs.h
<<_ACEOF
18222 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18226 cat >>confdefs.h
<<_ACEOF
18227 #define config_machfile "${machfile}"
18231 cat >>confdefs.h
<<_ACEOF
18232 #define config_opsysfile "${opsysfile}"
18236 cat >>confdefs.h
<<_ACEOF
18237 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18241 cat >>confdefs.h
<<_ACEOF
18242 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18246 cat >>confdefs.h
<<_ACEOF
18247 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18251 cat >>confdefs.h
<<_ACEOF
18252 #define UNEXEC_SRC ${UNEXEC_SRC}
18256 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18258 cat >>confdefs.h
<<\_ACEOF
18259 #define HAVE_X_WINDOWS 1
18263 if test "${USE_X_TOOLKIT}" != "none" ; then
18265 cat >>confdefs.h
<<\_ACEOF
18266 #define USE_X_TOOLKIT 1
18270 if test "${HAVE_X11}" = "yes" ; then
18272 cat >>confdefs.h
<<\_ACEOF
18277 if test "${HAVE_XFREE386}" = "yes" ; then
18279 cat >>confdefs.h
<<\_ACEOF
18280 #define HAVE_XFREE386 1
18284 if test "${HAVE_MENUS}" = "yes" ; then
18286 cat >>confdefs.h
<<\_ACEOF
18287 #define HAVE_MENUS 1
18291 if test "${GNU_MALLOC}" = "yes" ; then
18293 cat >>confdefs.h
<<\_ACEOF
18294 #define GNU_MALLOC 1
18298 if test "${REL_ALLOC}" = "yes" ; then
18300 cat >>confdefs.h
<<\_ACEOF
18301 #define REL_ALLOC 1
18310 #### Report on what we decided to do.
18311 #### Report GTK as a toolkit, even if it doesn't use Xt.
18312 #### It makes printing result more understandable as using GTK sets
18313 #### toolkit_scroll_bars to yes by default.
18314 if test "${HAVE_GTK}" = "yes"; then
18319 Configured for \`${canonical}'.
18321 Where should the build process find the source code? ${srcdir}
18322 What operating system and machine description files should Emacs use?
18323 \`${opsysfile}' and \`${machfile}'
18324 What compiler should emacs be built with? ${CC} ${CFLAGS}
18325 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18326 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18327 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18328 What window system should Emacs use? ${window_system}
18329 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18331 if test -n "${x_includes}"; then
18332 echo " Where do we find X Windows header files? ${x_includes}"
18334 echo " Where do we find X Windows header files? Standard dirs"
18336 if test -n "${x_libraries}"; then
18337 echo " Where do we find X Windows libraries? ${x_libraries}"
18339 echo " Where do we find X Windows libraries? Standard dirs"
18342 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18343 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18344 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18345 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18346 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18347 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18348 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18351 # Remove any trailing slashes in these variables.
18352 test "${prefix}" != NONE
&&
18353 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18354 test "${exec_prefix}" != NONE
&&
18355 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18357 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18358 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18359 ## from Makefile.c can correctly provide the arg `-traditional' to the
18362 cat >conftest.
$ac_ext <<_ACEOF
18363 #line $LINENO "configure"
18366 cat confdefs.h
>>conftest.
$ac_ext
18367 cat >>conftest.
$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18372 $EGREP "yes..yes" >/dev
/null
2>&1; then
18373 CPP_NEED_TRADITIONAL
=no
18375 CPP_NEED_TRADITIONAL
=yes
18380 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"
18381 ac_config_commands
="$ac_config_commands default"
18382 cat >confcache
<<\_ACEOF
18383 # This file is a shell script that caches the results of configure
18384 # tests run on this system so they can be shared between configure
18385 # scripts and configure runs, see configure's option --config-cache.
18386 # It is not useful on other systems. If it contains results you don't
18387 # want to keep, you may remove or edit it.
18389 # config.status only pays attention to the cache file if you give it
18390 # the --recheck option to rerun configure.
18392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18394 # following values.
18398 # The following way of writing the cache mishandles newlines in values,
18399 # but we know of no workaround that is simple, portable, and efficient.
18400 # So, don't put newlines in cache variables' values.
18401 # Ultrix sh set writes to stderr and can't be redirected directly,
18402 # and sets the high bit in the cache file unless we assign to the vars.
18405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18407 # `set' does not quote correctly, so add quotes (double-quote
18408 # substitution turns \\\\ into \\, and sed turns \\ into \).
18411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18414 # `set' quotes correctly as required by POSIX, so do not add quotes.
18416 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18425 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18427 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18428 if test -w $cache_file; then
18429 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18430 cat confcache
>$cache_file
18432 echo "not updating unwritable cache $cache_file"
18437 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18438 # Let make expand exec_prefix.
18439 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18441 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18442 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18443 # trailing colons and then remove the whole line if VPATH becomes empty
18444 # (actually we leave an empty line to preserve line numbers).
18445 if test "x$srcdir" = x.
; then
18446 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18447 s/:*\$(srcdir):*/:/;
18448 s/:*\${srcdir}:*/:/;
18450 s/^\([^=]*=[ ]*\):*/\1/;
18456 DEFS
=-DHAVE_CONFIG_H
18460 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18461 # 1. Remove the extension, and $U if already installed.
18462 ac_i
=`echo "$ac_i" |
18463 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18465 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18466 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18468 LIBOBJS
=$ac_libobjs
18470 LTLIBOBJS
=$ac_ltlibobjs
18474 : ${CONFIG_STATUS=./config.status}
18475 ac_clean_files_save
=$ac_clean_files
18476 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18477 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18478 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18479 cat >$CONFIG_STATUS <<_ACEOF
18481 # Generated by $as_me.
18482 # Run this file to recreate the current configuration.
18483 # Compiler output produced by configure, useful for debugging
18484 # configure, is in config.log if it exists.
18487 ac_cs_recheck=false
18489 SHELL=\${CONFIG_SHELL-$SHELL}
18492 cat >>$CONFIG_STATUS <<\_ACEOF
18493 ## --------------------- ##
18494 ## M4sh Initialization. ##
18495 ## --------------------- ##
18497 # Be Bourne compatible
18498 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18501 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18502 # is contrary to our usage. Disable this feature.
18503 alias -g '${1+"$@"}'='"$@"'
18504 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18508 # Support unset when possible.
18509 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18516 # Work around bugs in pre-3.0 UWIN ksh.
18517 $as_unset ENV MAIL MAILPATH
18524 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18525 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18526 LC_TELEPHONE LC_TIME
18528 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18529 eval $as_var=C
; export $as_var
18535 # Required to use basename.
18536 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18542 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18543 as_basename
=basename
18549 # Name of the executable.
18550 as_me
=`$as_basename "$0" ||
18551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18552 X"$0" : 'X\(//\)$' \| \
18553 X"$0" : 'X\(/\)$' \| \
18554 . : '\(.\)' 2>/dev/null ||
18556 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18557 /^X\/\(\/\/\)$/{ s//\1/; q; }
18558 /^X\/\(\/\).*/{ s//\1/; q; }
18562 # PATH needs CR, and LINENO needs CR and PATH.
18563 # Avoid depending upon Character Ranges.
18564 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18565 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18566 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18567 as_cr_digits
='0123456789'
18568 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18570 # The user is always right.
18571 if test "${PATH_SEPARATOR+set}" != set; then
18572 echo "#! /bin/sh" >conf$$.sh
18573 echo "exit 0" >>conf$$.sh
18575 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18584 as_lineno_1
=$LINENO
18585 as_lineno_2
=$LINENO
18586 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18587 test "x$as_lineno_1" != "x$as_lineno_2" &&
18588 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18589 # Find who we are. Look in the path if we contain no path at all
18592 *[\\/]* ) as_myself
=$0 ;;
18593 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18594 for as_dir
in $PATH
18597 test -z "$as_dir" && as_dir
=.
18598 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18603 # We did not find ourselves, most probably we were run as `sh COMMAND'
18604 # in which case we are not to be found in the path.
18605 if test "x$as_myself" = x
; then
18608 if test ! -f "$as_myself"; then
18609 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18610 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18611 { (exit 1); exit 1; }; }
18613 case $CONFIG_SHELL in
18615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18616 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18619 test -z "$as_dir" && as_dir
=.
18620 for as_base
in sh bash ksh sh5
; do
18623 if ("$as_dir/$as_base" -c '
18624 as_lineno_1=$LINENO
18625 as_lineno_2=$LINENO
18626 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18627 test "x$as_lineno_1" != "x$as_lineno_2" &&
18628 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18629 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18630 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18631 CONFIG_SHELL
=$as_dir/$as_base
18632 export CONFIG_SHELL
18633 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18642 # uniformly replaced by the line number. The first 'sed' inserts a
18643 # line-number line before each line; the second 'sed' does the real
18644 # work. The second script uses 'N' to pair each line-number line
18645 # with the numbered line, and appends trailing '-' during
18646 # substitution so that $LINENO is not a special case at line end.
18647 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18648 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18649 sed '=' <$as_myself |
18654 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18657 s,^['$as_cr_digits']*\n,,
18658 ' >$as_me.lineno
&&
18659 chmod +x
$as_me.lineno ||
18660 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18661 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18662 { (exit 1); exit 1; }; }
18664 # Don't try to exec as it changes $[0], causing all sort of problems
18665 # (the dirname of $[0] is not the place where we might find the
18666 # original and so on. Autoconf is especially sensible to this).
18668 # Exit status is that of the last command.
18673 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18674 *c
*,-n*) ECHO_N
= ECHO_C
='
18676 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18677 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18680 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18686 rm -f conf$$ conf$$.exe conf$$.
file
18688 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18689 # We could just check for DJGPP; but this test a) works b) is more generic
18690 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18691 if test -f conf$$.exe
; then
18692 # Don't use ln at all; we don't have any links
18697 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18702 rm -f conf$$ conf$$.exe conf$$.
file
18704 if mkdir
-p .
2>/dev
/null
; then
18710 as_executable_p
="test -f"
18712 # Sed expression to map a string onto a valid CPP name.
18713 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18715 # Sed expression to map a string onto a valid variable name.
18716 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18720 # We need space, tab and new line, in precisely that order.
18730 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18731 # report actual input values of CONFIG_FILES etc. instead of their
18732 # values after options handling. Logging --version etc. is OK.
18736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18737 ## Running $as_me. ##
18742 This file was extended by $as_me, which was
18743 generated by GNU Autoconf 2.57. Invocation command line was
18745 CONFIG_FILES = $CONFIG_FILES
18746 CONFIG_HEADERS = $CONFIG_HEADERS
18747 CONFIG_LINKS = $CONFIG_LINKS
18748 CONFIG_COMMANDS = $CONFIG_COMMANDS
18752 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18756 # Files that config.status was made for.
18757 if test -n "$ac_config_files"; then
18758 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18761 if test -n "$ac_config_headers"; then
18762 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18765 if test -n "$ac_config_links"; then
18766 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18769 if test -n "$ac_config_commands"; then
18770 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18773 cat >>$CONFIG_STATUS <<\_ACEOF
18776 \`$as_me' instantiates files from templates according to the
18777 current configuration.
18779 Usage: $0 [OPTIONS] [FILE]...
18781 -h, --help print this help, then exit
18782 -V, --version print version number, then exit
18783 -q, --quiet do not print progress messages
18784 -d, --debug don't remove temporary files
18785 --recheck update $as_me by reconfiguring in the same conditions
18786 --file=FILE[:TEMPLATE]
18787 instantiate the configuration file FILE
18788 --header=FILE[:TEMPLATE]
18789 instantiate the configuration header FILE
18791 Configuration files:
18794 Configuration headers:
18797 Configuration commands:
18800 Report bugs to <bug-autoconf@gnu.org>."
18803 cat >>$CONFIG_STATUS <<_ACEOF
18806 configured by $0, generated by GNU Autoconf 2.57,
18807 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18809 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18810 Free Software Foundation, Inc.
18811 This config.status script is free software; the Free Software Foundation
18812 gives unlimited permission to copy, distribute and modify it."
18817 cat >>$CONFIG_STATUS <<\_ACEOF
18818 # If no file are specified by the user, then we need to provide default
18819 # value. By we need to know if files were specified by the user.
18825 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18826 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18834 *) # This is not an option, so the user has probably given explicit
18837 ac_need_defaults
=false
;;
18841 # Handling of the options.
18843 cat >>$CONFIG_STATUS <<\_ACEOF
18844 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18846 --version |
--vers* |
-V )
18847 echo "$ac_cs_version"; exit 0 ;;
18849 # Conflict between --help and --header
18850 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18851 Try \`$0 --help' for more information." >&5
18852 echo "$as_me: error: ambiguous option: $1
18853 Try \`$0 --help' for more information." >&2;}
18854 { (exit 1); exit 1; }; };;
18855 --help |
--hel |
-h )
18856 echo "$ac_cs_usage"; exit 0 ;;
18857 --debug |
--d* |
-d )
18859 --file |
--fil |
--fi |
--f )
18861 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18862 ac_need_defaults
=false
;;
18863 --header |
--heade |
--head |
--hea )
18865 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18866 ac_need_defaults
=false
;;
18867 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18868 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18871 # This is an error.
18872 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18873 Try \`$0 --help' for more information." >&5
18874 echo "$as_me: error: unrecognized option: $1
18875 Try \`$0 --help' for more information." >&2;}
18876 { (exit 1); exit 1; }; } ;;
18878 *) ac_config_targets
="$ac_config_targets $1" ;;
18884 ac_configure_extra_args
=
18886 if $ac_cs_silent; then
18888 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18892 cat >>$CONFIG_STATUS <<_ACEOF
18893 if \$ac_cs_recheck; then
18894 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18895 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18900 cat >>$CONFIG_STATUS <<_ACEOF
18902 # INIT-COMMANDS section.
18905 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18911 cat >>$CONFIG_STATUS <<\_ACEOF
18912 for ac_config_target
in $ac_config_targets
18914 case "$ac_config_target" in
18915 # Handling of arguments.
18916 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18917 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18918 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18919 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18920 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18921 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18922 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18923 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18924 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18925 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18926 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18927 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18929 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18930 { (exit 1); exit 1; }; };;
18934 # If the user did not use the arguments to specify the items to instantiate,
18935 # then the envvar interface is used. Set only those that are not.
18936 # We use the long form for the default assignment because of an extremely
18937 # bizarre bug on SunOS 4.1.3.
18938 if $ac_need_defaults; then
18939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18944 # Have a temporary directory for convenience. Make it in the build tree
18945 # simply because there is no reason to put it here, and in addition,
18946 # creating and moving files from /tmp can sometimes cause problems.
18947 # Create a temporary directory, and hook for its removal unless debugging.
18950 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18951 trap '{ (exit 1); exit 1; }' 1 2 13 15
18954 # Create a (secure) tmp directory for tmp files.
18957 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18958 test -n "$tmp" && test -d "$tmp"
18961 tmp
=.
/confstat$$
-$RANDOM
18962 (umask 077 && mkdir
$tmp)
18965 echo "$me: cannot create a temporary directory in ." >&2
18966 { (exit 1); exit 1; }
18971 cat >>$CONFIG_STATUS <<_ACEOF
18974 # CONFIG_FILES section.
18977 # No need to generate the scripts if there are no CONFIG_FILES.
18978 # This happens for instance when ./config.status config.h
18979 if test -n "\$CONFIG_FILES"; then
18980 # Protect against being on the right side of a sed subst in config.status.
18981 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18982 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18983 s,@SHELL@,$SHELL,;t t
18984 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18985 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18986 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18987 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18988 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18989 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18990 s,@exec_prefix@,$exec_prefix,;t t
18991 s,@prefix@,$prefix,;t t
18992 s,@program_transform_name@,$program_transform_name,;t t
18993 s,@bindir@,$bindir,;t t
18994 s,@sbindir@,$sbindir,;t t
18995 s,@libexecdir@,$libexecdir,;t t
18996 s,@datadir@,$datadir,;t t
18997 s,@sysconfdir@,$sysconfdir,;t t
18998 s,@sharedstatedir@,$sharedstatedir,;t t
18999 s,@localstatedir@,$localstatedir,;t t
19000 s,@libdir@,$libdir,;t t
19001 s,@includedir@,$includedir,;t t
19002 s,@oldincludedir@,$oldincludedir,;t t
19003 s,@infodir@,$infodir,;t t
19004 s,@mandir@,$mandir,;t t
19005 s,@build_alias@,$build_alias,;t t
19006 s,@host_alias@,$host_alias,;t t
19007 s,@target_alias@,$target_alias,;t t
19008 s,@DEFS@,$DEFS,;t t
19009 s,@ECHO_C@,$ECHO_C,;t t
19010 s,@ECHO_N@,$ECHO_N,;t t
19011 s,@ECHO_T@,$ECHO_T,;t t
19012 s,@LIBS@,$LIBS,;t t
19013 s,@build@,$build,;t t
19014 s,@build_cpu@,$build_cpu,;t t
19015 s,@build_vendor@,$build_vendor,;t t
19016 s,@build_os@,$build_os,;t t
19017 s,@host@,$host,;t t
19018 s,@host_cpu@,$host_cpu,;t t
19019 s,@host_vendor@,$host_vendor,;t t
19020 s,@host_os@,$host_os,;t t
19022 s,@CFLAGS@,$CFLAGS,;t t
19023 s,@LDFLAGS@,$LDFLAGS,;t t
19024 s,@CPPFLAGS@,$CPPFLAGS,;t t
19025 s,@ac_ct_CC@,$ac_ct_CC,;t t
19026 s,@EXEEXT@,$EXEEXT,;t t
19027 s,@OBJEXT@,$OBJEXT,;t t
19028 s,@LN_S@,$LN_S,;t t
19030 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19031 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19032 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19033 s,@RANLIB@,$RANLIB,;t t
19034 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19035 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19036 s,@EGREP@,$EGREP,;t t
19037 s,@LIBSOUND@,$LIBSOUND,;t t
19038 s,@SET_MAKE@,$SET_MAKE,;t t
19039 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19040 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19041 s,@GTK_LIBS@,$GTK_LIBS,;t t
19042 s,@ALLOCA@,$ALLOCA,;t t
19043 s,@liblockfile@,$liblockfile,;t t
19044 s,@LIBOBJS@,$LIBOBJS,;t t
19045 s,@NEED_SETGID@,$NEED_SETGID,;t t
19046 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19047 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19048 s,@version@,$version,;t t
19049 s,@configuration@,$configuration,;t t
19050 s,@canonical@,$canonical,;t t
19051 s,@srcdir@,$srcdir,;t t
19052 s,@lispdir@,$lispdir,;t t
19053 s,@locallisppath@,$locallisppath,;t t
19054 s,@lisppath@,$lisppath,;t t
19055 s,@x_default_search_path@,$x_default_search_path,;t t
19056 s,@etcdir@,$etcdir,;t t
19057 s,@archlibdir@,$archlibdir,;t t
19058 s,@docdir@,$docdir,;t t
19059 s,@bitmapdir@,$bitmapdir,;t t
19060 s,@gamedir@,$gamedir,;t t
19061 s,@gameuser@,$gameuser,;t t
19062 s,@c_switch_system@,$c_switch_system,;t t
19063 s,@c_switch_machine@,$c_switch_machine,;t t
19064 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19065 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19066 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19067 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19068 s,@machfile@,$machfile,;t t
19069 s,@opsysfile@,$opsysfile,;t t
19070 s,@carbon_appdir@,$carbon_appdir,;t t
19071 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19076 cat >>$CONFIG_STATUS <<\_ACEOF
19077 # Split the substitutions into bite-sized pieces for seds with
19078 # small command number limits, like on Digital OSF/1 and HP-UX.
19079 ac_max_sed_lines
=48
19080 ac_sed_frag
=1 # Number of current file.
19081 ac_beg
=1 # First line for current file.
19082 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19085 while $ac_more_lines; do
19086 if test $ac_beg -gt 1; then
19087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19089 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19091 if test ! -s $tmp/subs.frag
; then
19092 ac_more_lines
=false
19094 # The purpose of the label and of the branching condition is to
19095 # speed up the sed processing (if there are no `@' at all, there
19096 # is no need to browse any of the substitutions).
19097 # These are the two extra sed commands mentioned above.
19099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19100 if test -z "$ac_sed_cmds"; then
19101 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19103 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19105 ac_sed_frag
=`expr $ac_sed_frag + 1`
19107 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19110 if test -z "$ac_sed_cmds"; then
19113 fi # test -n "$CONFIG_FILES"
19116 cat >>$CONFIG_STATUS <<\_ACEOF
19117 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19118 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19120 - |
*:- |
*:-:* ) # input from stdin
19122 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19123 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19124 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19125 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19126 * ) ac_file_in
=$ac_file.
in ;;
19129 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19130 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19132 X"$ac_file" : 'X\(//\)[^/]' \| \
19133 X"$ac_file" : 'X\(//\)$' \| \
19134 X"$ac_file" : 'X\(/\)' \| \
19135 . : '\(.\)' 2>/dev/null ||
19137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19139 /^X\(\/\/\)$/{ s//\1/; q; }
19140 /^X\(\/\).*/{ s//\1/; q; }
19142 { if $as_mkdir_p; then
19147 while test ! -d "$as_dir"; do
19148 as_dirs
="$as_dir $as_dirs"
19149 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19151 X"$as_dir" : 'X\(//\)[^/]' \| \
19152 X"$as_dir" : 'X\(//\)$' \| \
19153 X"$as_dir" : 'X\(/\)' \| \
19154 . : '\(.\)' 2>/dev/null ||
19156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19158 /^X\(\/\/\)$/{ s//\1/; q; }
19159 /^X\(\/\).*/{ s//\1/; q; }
19162 test ! -n "$as_dirs" || mkdir
$as_dirs
19163 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19165 { (exit 1); exit 1; }; }; }
19169 if test "$ac_dir" != .
; then
19170 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19171 # A "../" for each directory in $ac_dir_suffix.
19172 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19174 ac_dir_suffix
= ac_top_builddir
=
19178 .
) # No --srcdir option. We are building in place.
19180 if test -z "$ac_top_builddir"; then
19183 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19185 [\\/]* | ?
:[\\/]* ) # Absolute path.
19186 ac_srcdir
=$srcdir$ac_dir_suffix;
19187 ac_top_srcdir
=$srcdir ;;
19188 *) # Relative path.
19189 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19190 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19192 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19194 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19195 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19196 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19197 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19201 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19202 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19205 if test x
"$ac_file" != x-
; then
19206 { echo "$as_me:$LINENO: creating $ac_file" >&5
19207 echo "$as_me: creating $ac_file" >&6;}
19210 # Let's still pretend it is `configure' which instantiates (i.e., don't
19211 # use $as_me), people would be surprised to read:
19212 # /* config.h. Generated by config.status. */
19213 if test x
"$ac_file" = x-
; then
19216 configure_input
="$ac_file. "
19218 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19219 sed 's,.*/,,'` by configure."
19221 # First look for the input files in the build tree, otherwise in the
19223 ac_file_inputs
=`IFS=:
19224 for f in $ac_file_in; do
19226 -) echo $tmp/stdin ;;
19228 # Absolute (can't be DOS-style, as IFS=:)
19229 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19230 echo "$as_me: error: cannot find input file: $f" >&2;}
19231 { (exit 1); exit 1; }; }
19234 if test -f "$f"; then
19237 elif test -f "$srcdir/$f"; then
19242 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19243 echo "$as_me: error: cannot find input file: $f" >&2;}
19244 { (exit 1); exit 1; }; }
19247 done` ||
{ (exit 1); exit 1; }
19249 cat >>$CONFIG_STATUS <<_ACEOF
19253 cat >>$CONFIG_STATUS <<\_ACEOF
19255 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19256 s
,@configure_input@
,$configure_input,;t t
19257 s
,@srcdir@
,$ac_srcdir,;t t
19258 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19259 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19260 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19261 s
,@builddir@
,$ac_builddir,;t t
19262 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19263 s
,@top_builddir@
,$ac_top_builddir,;t t
19264 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19265 s
,@INSTALL@
,$ac_INSTALL,;t t
19266 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19268 if test x"$ac_file" != x-; then
19269 mv $tmp/out $ac_file
19277 cat >>$CONFIG_STATUS <<\_ACEOF
19280 # CONFIG_HEADER section.
19283 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19284 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19286 # ac_d sets the value in "#define NAME VALUE" lines.
19287 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19288 ac_dB
='[ ].*$,\1#\2'
19291 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19292 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19293 ac_uB
='$,\1#\2define\3'
19297 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19300 - |
*:- |
*:-:* ) # input from stdin
19302 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19303 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19304 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19305 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19306 * ) ac_file_in
=$ac_file.
in ;;
19309 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19310 echo "$as_me: creating $ac_file" >&6;}
19312 # First look for the input files in the build tree, otherwise in the
19314 ac_file_inputs
=`IFS=:
19315 for f in $ac_file_in; do
19317 -) echo $tmp/stdin ;;
19319 # Absolute (can't be DOS-style, as IFS=:)
19320 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19321 echo "$as_me: error: cannot find input file: $f" >&2;}
19322 { (exit 1); exit 1; }; }
19325 if test -f "$f"; then
19328 elif test -f "$srcdir/$f"; then
19333 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19334 echo "$as_me: error: cannot find input file: $f" >&2;}
19335 { (exit 1); exit 1; }; }
19338 done` ||
{ (exit 1); exit 1; }
19339 # Remove the trailing spaces.
19340 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19344 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19345 # `conftest.undefs', that substitutes the proper values into
19346 # config.h.in to produce config.h. The first handles `#define'
19347 # templates, and the second `#undef' templates.
19348 # And first: Protect against being on the right side of a sed subst in
19349 # config.status. Protect against being in an unquoted here document
19350 # in config.status.
19351 rm -f conftest.defines conftest.undefs
19352 # Using a here document instead of a string reduces the quoting nightmare.
19353 # Putting comments in sed scripts is not portable.
19355 # `end' is used to avoid that the second main sed command (meant for
19356 # 0-ary CPP macros) applies to n-ary macro definitions.
19357 # See the Autoconf documentation for `clear'.
19358 cat >confdef2sed.
sed <<\_ACEOF
19363 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19365 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19368 # If some macros were called several times there might be several times
19369 # the same #defines, which is useless. Nevertheless, we may not want to
19370 # sort them, since we want the *last* AC-DEFINE to be honored.
19371 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19372 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19373 rm -f confdef2sed.sed
19375 # This sed command replaces #undef with comments. This is necessary, for
19376 # example, in the case of _POSIX_SOURCE, which is predefined and required
19377 # on some systems where configure will not decide to define it.
19378 cat >>conftest.undefs <<\_ACEOF
19379 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19382 # Break up conftest.defines because some shells have a limit on the size
19383 # of here documents, and old seds have small limits too (100 cmds).
19384 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19385 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19386 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19387 echo ' :' >>$CONFIG_STATUS
19388 rm -f conftest.tail
19389 while grep . conftest.defines >/dev/null
19391 # Write a limited-size here document to $tmp/defines.sed.
19392 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19393 # Speed up: don't consider the non `#define' lines.
19394 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19395 # Work around the forget-to-reset-the-flag bug.
19396 echo 't clr' >>$CONFIG_STATUS
19397 echo ': clr' >>$CONFIG_STATUS
19398 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19400 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19402 mv $tmp/out $tmp/in
19404 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19405 rm -f conftest.defines
19406 mv conftest.
tail conftest.defines
19408 rm -f conftest.defines
19409 echo ' fi # grep' >>$CONFIG_STATUS
19410 echo >>$CONFIG_STATUS
19412 # Break up conftest.undefs because some shells have a limit on the size
19413 # of here documents, and old seds have small limits too (100 cmds).
19414 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19415 rm -f conftest.
tail
19416 while grep . conftest.undefs
>/dev
/null
19418 # Write a limited-size here document to $tmp/undefs.sed.
19419 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19420 # Speed up: don't consider the non
`#undef'
19421 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19422 # Work around the forget-to-reset-the-flag bug.
19423 echo 't clr' >>$CONFIG_STATUS
19424 echo ': clr' >>$CONFIG_STATUS
19425 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19427 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19429 mv $tmp/out $tmp/in
19431 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19432 rm -f conftest.undefs
19433 mv conftest.tail conftest.undefs
19435 rm -f conftest.undefs
19437 cat >>$CONFIG_STATUS <<\_ACEOF
19438 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19439 # use $as_me), people would be surprised to read:
19440 # /* config.h. Generated by config.status. */
19441 if test x
"$ac_file" = x-
; then
19442 echo "/* Generated by configure. */" >$tmp/config.h
19444 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19446 cat $tmp/in >>$tmp/config.h
19448 if test x
"$ac_file" != x-
; then
19449 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19450 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19451 echo "$as_me: $ac_file is unchanged" >&6;}
19453 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19455 X"$ac_file" : 'X\(//\)[^/]' \| \
19456 X"$ac_file" : 'X\(//\)$' \| \
19457 X"$ac_file" : 'X\(/\)' \| \
19458 . : '\(.\)' 2>/dev/null ||
19460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19462 /^X\(\/\/\)$/{ s//\1/; q; }
19463 /^X\(\/\).*/{ s//\1/; q; }
19465 { if $as_mkdir_p; then
19470 while test ! -d "$as_dir"; do
19471 as_dirs
="$as_dir $as_dirs"
19472 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19474 X"$as_dir" : 'X\(//\)[^/]' \| \
19475 X"$as_dir" : 'X\(//\)$' \| \
19476 X"$as_dir" : 'X\(/\)' \| \
19477 . : '\(.\)' 2>/dev/null ||
19479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19481 /^X\(\/\/\)$/{ s//\1/; q; }
19482 /^X\(\/\).*/{ s//\1/; q; }
19485 test ! -n "$as_dirs" || mkdir
$as_dirs
19486 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19487 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19488 { (exit 1); exit 1; }; }; }
19491 mv $tmp/config.h
$ac_file
19495 rm -f $tmp/config.h
19499 cat >>$CONFIG_STATUS <<\_ACEOF
19502 # CONFIG_COMMANDS section.
19504 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19505 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19506 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19507 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19508 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19509 X"$ac_dest" : 'X\(//\)[^/]' \| \
19510 X"$ac_dest" : 'X\(//\)$' \| \
19511 X"$ac_dest" : 'X\(/\)' \| \
19512 . : '\(.\)' 2>/dev/null ||
19514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19516 /^X\(\/\/\)$/{ s//\1/; q; }
19517 /^X\(\/\).*/{ s//\1/; q; }
19521 if test "$ac_dir" != .
; then
19522 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19523 # A "../" for each directory in $ac_dir_suffix.
19524 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19526 ac_dir_suffix
= ac_top_builddir
=
19530 .
) # No --srcdir option. We are building in place.
19532 if test -z "$ac_top_builddir"; then
19535 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19537 [\\/]* | ?
:[\\/]* ) # Absolute path.
19538 ac_srcdir
=$srcdir$ac_dir_suffix;
19539 ac_top_srcdir
=$srcdir ;;
19540 *) # Relative path.
19541 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19542 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19544 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19546 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19547 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19548 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19549 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19552 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19553 echo "$as_me: executing $ac_dest commands" >&6;}
19557 ### Make the necessary directories, if they don't exist.
19558 for dir
in etc lisp
; do
19559 test -d ${dir} || mkdir
${dir}
19562 # Build src/Makefile from ${srcdir}/src/Makefile.c
19563 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19564 # This must be done after src/config.h is built, since we rely on that file.
19566 # Now get this: Some word that is part of the ${srcdir} directory name
19567 # or the ${configuration} value might, just might, happen to be an
19568 # identifier like `sun4' or `i386' or something, and be predefined by
19569 # the C preprocessor to some helpful value like 1, or maybe the empty
19570 # string. Needless to say consequent macro substitutions are less
19571 # than conducive to the makefile finding the correct directory.
19572 undefs
="`echo $top_srcdir $configuration $canonical |
19573 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19574 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19577 echo creating src
/epaths.h
19578 ${MAKE-make} epaths-force
19580 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19581 # `..' to `. .' unless invoked with -traditional
19583 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19584 CPPFLAGS
="$CPPFLAGS -traditional"
19587 echo creating lib-src
/Makefile
19589 rm -f junk.c junk1.c junk2.c
19590 sed -e '/start of cpp stuff/q' \
19591 < Makefile.c
> junk1.c
19592 sed -e '1,/start of cpp stuff/d'\
19593 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19594 < Makefile.c
> junk.c
19595 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19596 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19597 cat junk1.c junk2.c
> Makefile.new
19598 rm -f junk.c junk1.c junk2.c
19599 chmod 444 Makefile.new
19600 mv -f Makefile.new Makefile
19603 echo creating src
/Makefile
19605 rm -f junk.c junk1.c junk2.c
19606 sed -e '/start of cpp stuff/q' \
19607 < Makefile.c
> junk1.c
19608 sed -e '1,/start of cpp stuff/d'\
19609 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19610 < Makefile.c
> junk.c
19611 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19612 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19613 cat junk1.c junk2.c
> Makefile.new
19614 rm -f junk.c junk1.c junk2.c
19615 chmod 444 Makefile.new
19616 mv -f Makefile.new Makefile
19619 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19620 echo creating src
/.gdbinit
19621 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19624 # This is how we know whether to re-run configure in certain cases.
19625 touch src
/config.stamp
19632 cat >>$CONFIG_STATUS <<\_ACEOF
19634 { (exit 0); exit 0; }
19636 chmod +x
$CONFIG_STATUS
19637 ac_clean_files
=$ac_clean_files_save
19640 # configure is writing to config.log, and then calls config.status.
19641 # config.status does its own redirection, appending to config.log.
19642 # Unfortunately, on DOS this fails, as config.log is still kept open
19643 # by configure, so config.status won't be able to write to it; its
19644 # output is simply discarded. So we exec the FD to /dev/null,
19645 # effectively closing config.log, so it can be properly (re)opened and
19646 # appended to by config.status. When coming back to configure, we
19647 # need to make the FD available again.
19648 if test "$no_create" != yes; then
19650 ac_config_status_args
=
19651 test "$silent" = yes &&
19652 ac_config_status_args
="$ac_config_status_args --quiet"
19654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19657 # would make configure fail if this is the last instruction.
19658 $ac_cs_success ||
{ (exit 1); exit 1; }