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 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 (KIT = yes/lucid/athena/motif/no)
870 --with-xpm use -lXpm for displaying XPM images
871 --with-jpeg use -ljpeg for displaying JPEG images
872 --with-tiff use -ltiff for displaying TIFF images
873 --with-gif use -lungif for displaying GIF images
874 --with-png use -lpng for displaying PNG images
875 --without-toolkit-scroll-bars
876 don't use Motif or Xaw3d scroll bars
877 --without-xim don
't use X11 XIM
878 --without-carbon don't use Carbon GUI on Mac OS X
879 --with-x use the X Window System
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by $as_me, which was
969 generated by GNU Autoconf 2.57. Invocation command line was
980 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
981 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
982 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
983 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
984 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
986 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
987 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
989 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
990 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
991 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
992 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
993 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
994 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
995 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Strip out --silent because we don't want to record it for future runs.
1022 # Also quote any args containing shell meta-characters.
1023 # Make two passes to allow for proper duplicate-argument suppression.
1028 ac_must_keep_next=false
1034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1038 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1042 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1044 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1045 if test $ac_must_keep_next = true; then
1046 ac_must_keep_next=false # Got value, back to normal.
1049 *=* | --config-cache | -C | -disable-* | --disable-* \
1050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1052 | -with-* | --with-* | -without-* | --without-* | --x)
1053 case "$ac_configure_args0 " in
1054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1057 -* ) ac_must_keep_next=true ;;
1060 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061 # Get rid of the leading space.
1067 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1068 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1070 # When interrupted or exit'd, cleanup temporary files, and complete
1071 # config.log. We remove comments because anyway the quotes in there
1072 # would cause problems or look ugly.
1073 # WARNING: Be sure not to use single quotes in there, as some shells,
1074 # such as our DU 5.0 friend, will then `close
' the trap.
1075 trap 'exit_status
=$?
1076 # Save into config.log some information that might help in debugging.
1081 ## ---------------- ##
1082 ## Cache variables. ##
1083 ## ---------------- ##
1086 # The following way of writing the cache mishandles newlines in values,
1089 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104 ## ----------------- ##
1105 ## Output variables. ##
1106 ## ----------------- ##
1109 for ac_var
in $ac_subst_vars
1111 eval ac_val
=$
`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1116 if test -n "$ac_subst_files"; then
1123 for ac_var
in $ac_subst_files
1125 eval ac_val
=$
`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1131 if test -s confdefs.h
; then
1138 sed "/^$/d" confdefs.h |
sort
1141 test "$ac_signal" != 0 &&
1142 echo "$as_me: caught signal $ac_signal"
1143 echo "$as_me: exit $exit_status"
1145 rm -f core core.
* *.core
&&
1146 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1149 for ac_signal in 1 2 13 15; do
1150 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1155 rm -rf conftest* confdefs.h
1156 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1159 # Predefined preprocessor variables.
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 # Let the site file select an alternate cache file if it wants to.
1187 # Prefer explicitly selected file to automatically selected ones.
1188 if test -z "$CONFIG_SITE"; then
1189 if test "x$prefix" != xNONE; then
1190 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1192 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1195 for ac_site_file in $CONFIG_SITE; do
1196 if test -r "$ac_site_file"; then
1197 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1198 echo "$as_me: loading site script $ac_site_file" >&6;}
1199 sed 's
/^
/|
/' "$ac_site_file" >&5
1204 if test -r "$cache_file"; then
1205 # Some versions of bash will fail to source /dev/null (special
1206 # files actually), so we avoid doing that.
1207 if test -f "$cache_file"; then
1208 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1209 echo "$as_me: loading cache $cache_file" >&6;}
1211 [\\/]* | ?:[\\/]* ) . $cache_file;;
1212 *) . ./$cache_file;;
1216 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1217 echo "$as_me: creating cache $cache_file" >&6;}
1221 # Check that the precious variables saved in the cache have kept the same
1223 ac_cache_corrupted=false
1224 for ac_var in `(set) 2>&1 |
1225 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1227 eval ac_new_set=\$ac_env_${ac_var}_set
1228 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1229 eval ac_new_val="\$ac_env_${ac_var}_value"
1230 case $ac_old_set,$ac_new_set in
1232 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1234 ac_cache_corrupted=: ;;
1236 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1241 if test "x$ac_old_val" != "x$ac_new_val"; then
1242 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1243 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1244 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1245 echo "$as_me: former value: $ac_old_val" >&2;}
1246 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1247 echo "$as_me: current value: $ac_new_val" >&2;}
1248 ac_cache_corrupted=:
1251 # Pass precious variables to config.status.
1252 if test "$ac_new_set" = set; then
1254 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1256 *) ac_arg=$ac_var=$ac_new_val ;;
1258 case " $ac_configure_args " in
1259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1260 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 if $ac_cache_corrupted; then
1265 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1266 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1267 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1268 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1269 { (exit 1); exit 1; }; }
1273 ac_cpp='$CPP $CPPFLAGS'
1274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1275 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1299 test "$program_prefix" != NONE &&
1300 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1301 # Use a double $ so make ignores it.
1302 test "$program_suffix" != NONE &&
1303 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1304 # Double any \ or $. echo might interpret backslashes.
1305 # By default was `s,x,x', remove it
if useless.
1306 cat <<\_ACEOF
>conftest.
sed
1307 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1309 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1313 lispdir
='${datadir}/emacs/${version}/lisp'
1314 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1315 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1316 lisppath
='${locallisppath}:${lispdir}'
1317 etcdir
='${datadir}/emacs/${version}/etc'
1318 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1319 docdir
='${datadir}/emacs/${version}/etc'
1320 gamedir
='${localstatedir}/games/emacs'
1325 # Check whether --with-gcc or --without-gcc was given.
1326 if test "${with_gcc+set}" = set; then
1331 # Check whether --with-pop or --without-pop was given.
1332 if test "${with_pop+set}" = set; then
1334 if test "$withval" = yes; then
1335 cat >>confdefs.h
<<\_ACEOF
1336 #define MAIL_USE_POP 1
1342 cat >>confdefs.h
<<\_ACEOF
1343 #define MAIL_USE_POP 1
1349 # Check whether --with-kerberos or --without-kerberos was given.
1350 if test "${with_kerberos+set}" = set; then
1351 withval
="$with_kerberos"
1352 cat >>confdefs.h
<<\_ACEOF
1359 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1360 if test "${with_kerberos5+set}" = set; then
1361 withval
="$with_kerberos5"
1362 if test "${with_kerberos5+set}" = set; then
1363 if test "${with_kerberos+set}" != set; then
1365 cat >>confdefs.h
<<\_ACEOF
1372 cat >>confdefs.h
<<\_ACEOF
1378 # Check whether --with-hesiod or --without-hesiod was given.
1379 if test "${with_hesiod+set}" = set; then
1380 withval
="$with_hesiod"
1382 cat >>confdefs.h
<<\_ACEOF
1389 # Check whether --with-sound or --without-sound was given.
1390 if test "${with_sound+set}" = set; then
1391 withval
="$with_sound"
1396 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1397 if test "${with_x_toolkit+set}" = set; then
1398 withval
="$with_x_toolkit"
1399 case "${withval}" in
1400 y | ye |
yes ) val
=athena
;;
1402 l | lu | luc | luci | lucid
) val
=lucid
;;
1403 a |
at | ath | athe | athen | athena
) val
=athena
;;
1404 m | mo | mot | moti | motif
) val
=motif
;;
1406 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1407 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1408 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1409 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1410 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1411 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1412 { (exit 1); exit 1; }; }
1419 # Check whether --with-xpm or --without-xpm was given.
1420 if test "${with_xpm+set}" = set; then
1425 # Check whether --with-jpeg or --without-jpeg was given.
1426 if test "${with_jpeg+set}" = set; then
1427 withval
="$with_jpeg"
1431 # Check whether --with-tiff or --without-tiff was given.
1432 if test "${with_tiff+set}" = set; then
1433 withval
="$with_tiff"
1437 # Check whether --with-gif or --without-gif was given.
1438 if test "${with_gif+set}" = set; then
1443 # Check whether --with-png or --without-png was given.
1444 if test "${with_png+set}" = set; then
1449 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1450 if test "${with_toolkit_scroll_bars+set}" = set; then
1451 withval
="$with_toolkit_scroll_bars"
1455 # Check whether --with-xim or --without-xim was given.
1456 if test "${with_xim+set}" = set; then
1461 # Check whether --with-carbon or --without-carbon was given.
1462 if test "${with_carbon+set}" = set; then
1463 withval
="$with_carbon"
1466 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1467 if test "${enable_carbon_app+set}" = set; then
1468 enableval
="$enable_carbon_app"
1469 carbon_appdir_x
=${enableval}
1472 #### Make srcdir absolute, if it isn't already. It's important to
1473 #### avoid running the path through pwd unnecessarily, since pwd can
1474 #### give you automounter prefixes, which can go away. We do all this
1475 #### so Emacs can find its files when run uninstalled.
1476 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1481 ## We may be able to use the $PWD environment variable to make this
1482 ## absolute. But sometimes PWD is inaccurate.
1483 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1484 ## but that tested only for a well-formed and valid PWD,
1485 ## it did not object when PWD was well-formed and valid but just wrong.
1486 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1490 srcdir
="`(cd ${srcdir}; pwd)`"
1493 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1496 #### Check if the source directory already has a configured system in it.
1497 if test `pwd` != `(cd ${srcdir} && pwd)` \
1498 && test -f "${srcdir}/src/config.h" ; then
1499 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1500 as a build directory right now; it has been configured in its own
1501 right. To configure in another directory as well, you MUST
1502 use GNU make. If you do not have GNU make, then you must
1503 now do \`make distclean' in ${srcdir},
1504 and then run $0 again." >&5
1505 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1506 as a build directory right now; it has been configured in its own
1507 right. To configure in another directory as well, you MUST
1508 use GNU make. If you do not have GNU make, then you must
1509 now do \`make distclean' in ${srcdir},
1510 and then run $0 again." >&2;}
1512 extrasub
='/^VPATH[ ]*=/c\
1513 vpath %.c $(srcdir)\
1514 vpath %.h $(srcdir)\
1515 vpath %.y $(srcdir)\
1516 vpath %.l $(srcdir)\
1517 vpath %.s $(srcdir)\
1518 vpath %.in $(srcdir)\
1519 vpath %.texi $(srcdir)'
1522 #### Given the configuration name, set machfile and opsysfile to the
1523 #### names of the m/*.h and s/*.h files we should use.
1525 ### Canonicalize the configuration name.
1528 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1529 if test -f $ac_dir/install-sh
; then
1531 ac_install_sh
="$ac_aux_dir/install-sh -c"
1533 elif test -f $ac_dir/install.sh
; then
1535 ac_install_sh
="$ac_aux_dir/install.sh -c"
1537 elif test -f $ac_dir/shtool
; then
1539 ac_install_sh
="$ac_aux_dir/shtool install -c"
1543 if test -z "$ac_aux_dir"; then
1544 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1545 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1546 { (exit 1); exit 1; }; }
1548 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1549 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1550 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1554 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 ac_cv_build_alias
=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565 ac_cv_build_alias
=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569 { (exit 1); exit 1; }; }
1570 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1571 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573 { (exit 1); exit 1; }; }
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1579 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 ac_cv_host_alias
=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591 ac_cv_host_alias
=$ac_cv_build_alias
1592 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1601 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607 configuration
=${host_alias-$host}
1611 ### If you add support for a new configuration, add code to this
1612 ### switch statement to recognize your configuration name and select
1613 ### the appropriate operating system and machine description files.
1615 ### You would hope that you could choose an m/*.h file pretty much
1616 ### based on the machine portion of the configuration name, and an s-
1617 ### file based on the operating system portion. However, it turns out
1618 ### that each m/*.h file is pretty manufacturer-specific - for
1619 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1620 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1621 ### machines. So we basically have to have a special case for each
1622 ### configuration name.
1624 ### As far as handling version numbers on operating systems is
1625 ### concerned, make sure things will fail in a fixable way. If
1626 ### /etc/MACHINES doesn't say anything about version numbers, be
1627 ### prepared to handle anything reasonably. If version numbers
1628 ### matter, be sure /etc/MACHINES says something about it.
1630 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1631 ### "System V Release 4"; he writes, "The old convention encouraged
1632 ### confusion between `system' and `release' levels'."
1634 machine
='' opsys
='' unported
=no
1635 case "${canonical}" in
1640 case "${canonical}" in
1641 alpha
*-*-freebsd*) machine
=alpha
;;
1642 i
[3456]86-*-freebsd*) machine
=intel386
;;
1649 case "${canonical}" in
1650 alpha
*-*-netbsd*) machine
=alpha
;;
1651 i
[3456]86-*-netbsd*) machine
=intel386
;;
1653 # This is somewhat bogus.
1654 machine
=hp9000s300
;;
1655 powerpc-apple-netbsd
*) machine
=macppc
;;
1656 mips-
*-netbsd*) machine
=pmax
;;
1657 mipsel-
*-netbsd*) machine
=pmax
;;
1658 mipseb-
*-netbsd*) machine
=pmax
;;
1659 ns32k-
*-netbsd*) machine
=ns32000
;;
1660 powerpc-
*-netbsd*) machine
=macppc
;;
1661 sparc
*-*-netbsd*) machine
=sparc
;;
1662 vax-
*-netbsd*) machine
=vax
;;
1663 arm-
*-netbsd*) machine
=arm
;;
1670 case "${canonical}" in
1671 alpha
*-*-openbsd*) machine
=alpha
;;
1672 i386-
*-openbsd*) machine
=intel386
;;
1673 m68k-
*-openbsd*) machine
=hp9000s300
;;
1674 mipsel-
*-openbsd*) machine
=pmax
;;
1675 ns32k-
*-openbsd*) machine
=ns32000
;;
1676 sparc-
*-openbsd*) machine
=sparc
;;
1677 vax-
*-openbsd*) machine
=vax
;;
1682 arm-acorn-riscix1.1
* )
1683 machine
=acorn opsys
=riscix1-1
1685 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1686 ## This name is riscix12 instead of riscix1.2
1687 ## to avoid a file name conflict on MSDOS.
1688 machine
=acorn opsys
=riscix12
1694 case "${canonical}" in
1695 i
[345]86-*-bsdi*) machine
=intel386
;;
1696 sparc-
*-bsdi*) machine
=sparc
;;
1697 powerpc-
*-bsdi*) machine
=macppc
;;
1699 case "${canonical}" in
1700 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1701 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1702 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1703 *-*-bsdi3* ) opsys
=bsdos3
;;
1704 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1709 ## Strictly speaking, we need the version of the alliant operating
1710 ## system to choose the right machine file, but currently the
1711 ## configuration name doesn't tell us enough to choose the right
1712 ## one; we need to give alliants their own operating system name to
1713 ## do this right. When someone cares, they can help us.
1715 machine
=alliant4 opsys
=bsd4-2
1718 machine
=alliant-2800 opsys
=bsd4-3
1721 ## Alpha (DEC) machines.
1723 machine
=alpha opsys
=osf1
1724 # This is needed to find X11R6.1 libraries for certain tests.
1725 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1726 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1727 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1728 # due to non-traditional preprocessing with the current compiler
1729 # defaults. OSF 4 can also have that compiler version, and there
1730 # seems always to have been a usable /usr/bin/cpp.
1731 NON_GNU_CPP
=/usr
/bin
/cpp
1732 case "${canonical}" in
1733 alpha
*-dec-osf[5-9]*)
1738 alpha
*-*-linux-gnu* )
1739 machine
=alpha opsys
=gnu-linux
1743 machine
=arm opsys
=gnu-linux
1748 machine
=macppc opsys
=gnu-linux
1753 machine
=altos opsys
=usg5-2
1758 machine
=amdahl opsys
=usg5-2-2
1761 ## Apollo, Domain/OS
1763 machine
=apollo opsys
=bsd4-3
1766 ## AT&T 3b2, 3b5, 3b15, 3b20
1768 machine
=att3b opsys
=usg5-2-2
1771 ## AT&T 3b1 - The Mighty Unix PC!
1773 machine
=7300 opsys
=usg5-2-2
1778 machine
=ibmrs6000 opsys
=aix3-2
1783 machine
=dpx2 opsys
=usg5-3
1788 machine
=sps7 opsys
=usg5-2
1791 ## CCI 5/32, 6/32 -- see "Tahoe".
1794 ## I don't know what configuration name to use for this; config.sub
1795 ## doesn't seem to know anything about it. Hey, Celerity users, get
1796 ## in touch with us!
1797 celerity-celerity-bsd
* )
1798 machine
=celerity opsys
=bsd4-2
1802 ## What operating systems does this chip run that Emacs has been
1806 ## We'll use the catch-all code at the bottom to guess the
1807 ## operating system.
1811 mips-compaq-nonstopux
* )
1812 machine
=nonstopux opsys
=nonstopux
1816 *-convex-bsd* |
*-convex-convexos* )
1817 machine
=convex opsys
=bsd4-3
1818 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1819 NON_GNU_CPP
="cc -E -P"
1823 i
[3456]86-cubix-sysv* )
1824 machine
=intel386 opsys
=usg5-3
1828 cydra
*-cydrome-sysv* )
1829 machine
=cydra5 opsys
=usg5-3
1832 ## Data General AViiON Machines
1833 ## DG changed naming conventions with the release of 5.4.4.10, they
1834 ## dropped the initial 5.4 but left the intervening R. Because of the
1835 ## R this shouldn't conflict with older versions of the OS (which I
1836 ## think were named like dgux4.*). In addition, DG new AViiONs series
1837 ## uses either Motorola M88k or Intel Pentium CPUs.
1838 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1839 machine
=aviion opsys
=dgux4
1841 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1842 ## This name is dgux5-4-3 instead of dgux5-4r3
1843 ## to avoid a file name conflict on MSDOS.
1844 machine
=aviion opsys
=dgux5-4-3
1846 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1847 machine
=aviion opsys
=dgux5-4r2
1850 machine
=aviion opsys
=dgux
1853 ## Data General AViiON Intel (x86) Machines
1854 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1855 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1856 i
[345]86-dg-dguxR4* )
1857 machine
=aviion-intel opsys
=dgux4
1861 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1862 machine
=pmax opsys
=bsd4-2
1864 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1865 machine
=pmax opsys
=bsd4-3
1868 machine
=pmax opsys
=ultrix4-3
1871 machine
=pmax opsys
=osf1
1873 mips-dec-mach_bsd4.3
* )
1874 machine
=pmax opsys
=mach-bsd4-3
1877 ## Motorola Delta m88k
1878 m88k-motorola-sysv4
* )
1879 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1880 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1881 # I hope there are not other 4.0 versions for this machine
1882 # which really need usg5-4 instead.
1883 machine
=delta88k opsys
=usg5-4-2
1885 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1886 machine
=delta88k opsys
=usg5-3
1891 machine
=dual opsys
=usg5-2
1893 m68
*-dual-uniplus* )
1894 machine
=dual opsys
=unipl5-2
1899 machine
=elxsi opsys
=usg5-2
1904 machine
=ns16000 opsys
=umax
1907 ## The GEC 63 - apparently, this port isn't really finished yet.
1908 # I'm sure we finished off the last of the machines, though. -- fx
1910 ## Gould Power Node and NP1
1912 machine
=gould opsys
=bsd4-2
1915 machine
=gould opsys
=bsd4-3
1918 machine
=gould-np1 opsys
=bsd4-3
1921 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1922 ## as far as Emacs is concerned).
1924 # Build needs to be different on 7.0 and later releases
1925 case "`uname -r`" in
1926 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1927 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1929 NON_GNU_CPP
="/lib/cpp"
1931 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1933 machine
=nh3000 opsys
=cxux
1935 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1936 powerpc-harris-powerunix
)
1937 machine
=nh6000 opsys
=powerunix
1938 NON_GNU_CPP
="cc -Xo -E -P"
1940 ## SR2001/SR2201 running HI-UX/MPP
1941 hppa1.1
-hitachi-hiuxmpp* )
1942 machine
=sr2k opsys
=hiuxmpp
1944 hppa1.1
-hitachi-hiuxwe2* )
1945 machine
=sr2k opsys
=hiuxwe2
1948 xps
*-honeywell-sysv* )
1949 machine
=xps100 opsys
=usg5-2
1952 ## HP 9000 series 200 or 300
1954 machine
=hp9000s300 opsys
=bsd4-3
1956 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1958 case "`uname -r`" in
1959 ## Someone's system reports A.B8.05 for this.
1960 ## I wonder what other possibilities there are.
1961 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1962 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1963 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1964 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1965 *) machine
=hp9000s300 opsys
=hpux
;;
1969 ## HP 9000 series 700 and 800, running HP/UX
1971 machine
=hp800 opsys
=hpux
1974 machine
=hp800 opsys
=hpux8
1976 hppa
*-hp-hpux9shr* )
1977 machine
=hp800 opsys
=hpux9shr
1980 machine
=hp800 opsys
=hpux9
1983 machine
=hp800 opsys
=hpux10
1985 hppa
*-hp-hpux1[1-9]* )
1986 machine
=hp800 opsys
=hpux11
1989 hppa
*-*-linux-gnu* )
1990 machine
=hp800 opsys
=gnu-linux
1993 ## HP 9000 series 700 and 800, running HP/UX
1995 ## Cross-compilation? Nah!
1996 case "`uname -r`" in
1997 ## Someone's system reports A.B8.05 for this.
1998 ## I wonder what other possibilities there are.
1999 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2000 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2001 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2002 *) machine
=hp800 opsys
=hpux10
;;
2006 machine
=hp800 opsys
=nextstep
2011 machine
=orion opsys
=bsd4-2
2013 clipper-orion-bsd
* )
2014 machine
=orion105 opsys
=bsd4-2
2018 i
[3456]86-ibm-aix1.1
* )
2019 machine
=ibmps2-aix opsys
=usg5-2-2
2021 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2022 machine
=ibmps2-aix opsys
=usg5-3
2025 machine
=ibm370aix opsys
=usg5-3
2028 machine
=ibms390 opsys
=gnu-linux
2030 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2031 machine
=ibmrs6000 opsys
=aix3-1
2033 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2034 machine
=ibmrs6000 opsys
=aix3-2-5
2036 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2037 machine
=ibmrs6000 opsys
=aix4-1
2039 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2040 machine
=ibmrs6000 opsys
=aix4-2
2042 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2043 machine
=ibmrs6000 opsys
=aix4-2
2045 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2046 machine
=ibmrs6000 opsys
=aix4
2048 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2049 machine
=ibmrs6000 opsys
=aix4-1
2051 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2052 machine
=ibmrs6000 opsys
=aix3-2
2055 machine
=ibmrt opsys
=bsd4-3
2058 machine
=ibmrt opsys
=bsd4-2
2061 machine
=ibmrt opsys
=bsd4-3
2064 machine
=ibmrt opsys
=bsd4-2
2067 machine
=ibmrt opsys
=bsd4-3
2070 machine
=ibmrt opsys
=bsd4-3
2073 machine
=ibmrt-aix opsys
=usg5-2-2
2076 ## Integrated Solutions `Optimum V'
2078 machine
=isi-ov opsys
=bsd4-2
2081 machine
=isi-ov opsys
=bsd4-3
2084 ## Intel 386 machines where we do care about the manufacturer
2085 i
[3456]86-intsys-sysv* )
2086 machine
=is386 opsys
=usg5-2-2
2090 i
[3456]86-prime-sysv* )
2091 machine
=i386 opsys
=usg5-3
2094 ## Sequent Symmetry running Dynix
2095 i
[3456]86-sequent-bsd* )
2096 machine
=symmetry opsys
=bsd4-3
2099 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2100 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2101 machine
=sequent-ptx opsys
=ptx4
2102 NON_GNU_CPP
=/lib
/cpp
2105 ## Sequent Symmetry running DYNIX/ptx
2106 ## Use the old cpp rather than the newer ANSI one.
2107 i
[3456]86-sequent-ptx* )
2108 machine
=sequent-ptx opsys
=ptx
2109 NON_GNU_CPP
="/lib/cpp"
2112 ## ncr machine running svr4.3.
2113 i
[3456]86-ncr-sysv4.3
)
2114 machine
=ncr386 opsys
=usg5-4-3
2117 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2118 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2119 i
[3456]86-ncr-sysv* )
2120 machine
=ncr386 opsys
=usg5-4-2
2123 ## Intel Paragon OSF/1
2125 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2130 machine
=i860 opsys
=usg5-4
2131 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2132 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2135 ## Macintosh PowerPC
2136 powerpc
*-*-linux-gnu* )
2137 machine
=macppc opsys
=gnu-linux
2140 ## Masscomp machines
2141 m68
*-masscomp-rtu* )
2142 machine
=masscomp opsys
=rtu
2145 ## Megatest machines
2146 m68
*-megatest-bsd* )
2147 machine
=mega68 opsys
=bsd4-2
2150 ## Workstations sold by MIPS
2151 ## This is not necessarily all workstations using the MIPS processor -
2152 ## Irises are produced by SGI, and DECstations by DEC.
2154 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2155 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2156 ## it gives for choosing between the alternatives seems to be "Use
2157 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2158 ## the BSD world." I'll assume that these are instructions for
2159 ## handling two odd situations, and that every other situation
2160 ## should use mips.h and usg5-2-2, they being listed first.
2163 ## Fall through to the general code at the bottom to decide on the OS.
2165 mips-mips-riscos4
* )
2166 machine
=mips4 opsys
=bsd4-3
2167 NON_GNU_CC
="cc -systype bsd43"
2168 NON_GNU_CPP
="cc -systype bsd43 -E"
2170 mips-mips-riscos5
* )
2171 machine
=mips4 opsys
=riscos5
2172 NON_GNU_CC
="cc -systype bsd43"
2173 NON_GNU_CPP
="cc -systype bsd43 -E"
2176 machine
=mips opsys
=bsd4-3
2179 machine
=mips opsys
=usg5-2-2
2183 m68
*-next-* | m68k-
*-nextstep* )
2184 machine
=m68k opsys
=nextstep
2187 ## The complete machine from National Semiconductor
2189 machine
=ns32000 opsys
=usg5-2
2193 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2194 machine
=tower32 opsys
=usg5-2-2
2196 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2197 machine
=tower32v3 opsys
=usg5-3
2202 machine
=ews4800 opsys
=ux4800
2205 ## Nixdorf Targon 31
2206 m68
*-nixdorf-sysv* )
2207 machine
=targon31 opsys
=usg5-2-2
2212 machine
=nu opsys
=usg5-2
2217 machine
=plexus opsys
=usg5-2
2221 ## I don't really have any idea what sort of processor the Pyramid has,
2222 ## so I'm assuming it is its own architecture.
2223 pyramid-pyramid-bsd
* )
2224 machine
=pyramid opsys
=bsd4-2
2228 ns32k-sequent-bsd4.2
* )
2229 machine
=sequent opsys
=bsd4-2
2231 ns32k-sequent-bsd4.3
* )
2232 machine
=sequent opsys
=bsd4-3
2236 mips-siemens-sysv
* | mips-sni-sysv
*)
2237 machine
=mips-siemens opsys
=usg5-4
2238 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2239 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2242 ## Silicon Graphics machines
2243 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2245 machine
=irist opsys
=iris3-5
2247 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2248 machine
=irist opsys
=iris3-6
2252 machine
=iris4d opsys
=irix3-3
2255 machine
=iris4d opsys
=irix4-0
2258 machine
=iris4d opsys
=irix6-5
2259 # Without defining _LANGUAGE_C, things get masked out in the headers
2260 # so that, for instance, grepping for `free' in stdlib.h fails and
2261 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2262 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2263 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2266 machine
=iris4d opsys
=irix6-0
2267 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2268 # but presumably it does no harm.
2269 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2270 # -32 probably isn't necessary in later v.6s -- anyone know which?
2271 NON_GCC_TEST_OPTIONS
=-32
2273 mips-sgi-irix5.
[01]* )
2274 machine
=iris4d opsys
=irix5-0
2276 mips-sgi-irix5
* | mips-sgi-irix
* )
2277 machine
=iris4d opsys
=irix5-2
2282 machine
=news opsys
=bsd4-2
2285 machine
=news opsys
=bsd4-3
2287 m68
*-sony-newsos3* | m68
*-sony-news3*)
2288 machine
=news opsys
=bsd4-3
2290 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2291 machine
=news-risc opsys
=bsd4-3
2293 mips-sony-newsos6
* )
2294 machine
=news-r6 opsys
=newsos6
2297 machine
=news-risc opsys
=newsos5
2302 machine
=stride opsys
=usg5-2
2306 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2307 machine
=sparc opsys
=gnu-linux
2310 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2311 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2312 | rs6000-
*-solaris2*)
2313 case "${canonical}" in
2314 m68
*-sunos1* ) machine
=sun1
;;
2315 m68
*-sunos2* ) machine
=sun2
;;
2316 m68
* ) machine
=sun3
;;
2317 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2318 i
[3456]86-*-* ) machine
=intel386
;;
2319 powerpcle
* ) machine
=powerpcle
;;
2320 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2321 sparc
* ) machine
=sparc
;;
2324 case "${canonical}" in
2325 ## The Sun386 didn't get past 4.0.
2326 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2327 *-sunos4.0
* ) opsys
=sunos4-0
;;
2328 *-sunos4.1.
[3-9]*noshare
)
2329 ## This name is sunos413 instead of sunos4-1-3
2330 ## to avoid a file name conflict on MSDOS.
2332 NON_GNU_CPP
=/usr
/lib
/cpp
2333 NON_GCC_TEST_OPTIONS
=-Bstatic
2334 GCC_TEST_OPTIONS
=-static
2336 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2338 NON_GNU_CPP
=/usr
/lib
/cpp
2340 *-sunos4* |
*-sunos )
2342 NON_GCC_TEST_OPTIONS
=-Bstatic
2343 GCC_TEST_OPTIONS
=-static
2345 *-sunos5.3
* |
*-solaris2.3
* )
2347 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2349 *-sunos5.4
* |
*-solaris2.4
* )
2351 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2354 *-sunos5.5
* |
*-solaris2.5
* )
2356 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2359 *-sunos5.6
* |
*-solaris2.6
* )
2361 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2364 *-sunos5* |
*-solaris* )
2366 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2370 ## Watch out for a compiler that we know will not work.
2371 case "${canonical}" in
2372 *-solaris* |
*-sunos5* )
2373 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2374 ## /usr/ucb/cc doesn't work;
2375 ## we should find some other compiler that does work.
2383 machine
=sparc opsys
=nextstep
2387 m68
*-tadpole-sysv* )
2388 machine
=tad68k opsys
=usg5-3
2392 tahoe-tahoe-bsd4.2
* )
2393 machine
=tahoe opsys
=bsd4-2
2395 tahoe-tahoe-bsd4.3
* )
2396 machine
=tahoe opsys
=bsd4-3
2399 ## Tandem Integrity S2
2401 machine
=tandem-s2 opsys
=usg5-3
2405 m88k-tektronix-sysv3
* )
2406 machine
=tekxd88 opsys
=usg5-3
2409 ## Tektronix 16000 box (6130?)
2410 ns16k-tektronix-bsd
* )
2411 machine
=ns16000 opsys
=bsd4-2
2414 ## src/m/tek4300.h hints that this is a m68k machine.
2415 m68
*-tektronix-bsd* )
2416 machine
=tek4300 opsys
=bsd4-3
2420 ## We seem to have lost the machine-description file titan.h!
2422 machine
=titan opsys
=usg5-3
2425 ## Ustation E30 (SS5E)
2426 m68
*-unisys-uniplus* )
2427 machine
=ustation opsystem
=unipl5-2
2433 case "${canonical}" in
2434 *-bsd4.1
* ) opsys
=bsd4-1
;;
2435 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2436 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2437 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2438 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2439 *-vms* ) opsys
=vms
;;
2445 ns16k-whitechapel-
* )
2447 ## We don't know what sort of OS runs on these; we'll let the
2448 ## operating system guessing code below try.
2453 machine
=wicat opsys
=usg5-2
2458 machine
=ia64 opsys
=gnu-linux
2461 ## Intel 386 machines where we don't care about the manufacturer
2464 case "${canonical}" in
2465 *-lynxos* ) opsys
=lynxos
;;
2466 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2467 *-isc2.2
* ) opsys
=isc2-2
;;
2468 *-isc4.0
* ) opsys
=isc4-0
;;
2469 *-isc4.
* ) opsys
=isc4-1
2470 GCC_TEST_OPTIONS
=-posix
2471 NON_GCC_TEST_OPTIONS
=-Xp
2473 *-isc* ) opsys
=isc3-0
;;
2474 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2475 *-esix* ) opsys
=esix
;;
2476 *-xenix* ) opsys
=xenix
;;
2477 *-linux-gnu* ) opsys
=gnu-linux
;;
2478 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2479 *-sco3.2v5
* ) opsys
=sco5
2480 NON_GNU_CPP
=/lib
/cpp
2481 # Prevent -belf from being passed to $CPP.
2482 # /lib/cpp does not accept it.
2483 OVERRIDE_CPPFLAGS
=" "
2485 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2486 *-386bsd* ) opsys
=386bsd
;;
2487 *-nextstep* ) opsys
=nextstep
;;
2488 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2492 ## m68k Linux-based GNU system
2494 machine
=m68k opsys
=gnu-linux
2497 ## Mips Linux-based GNU system
2498 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2499 machine
=mips opsys
=gnu-linux
2503 sparc-fujitsu-sysv4
* )
2504 machine
=sparc opsys
=uxpds
2505 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2510 f301-fujitsu-uxpv4.1
)
2511 machine
=f301 opsys
=uxpv
2514 ## Darwin / Mac OS X
2515 powerpc-apple-darwin
* )
2516 machine
=powermac opsys
=darwin
2517 # Define CPP as follows to make autoconf work correctly.
2518 CPP
="cc -E -traditional-cpp"
2521 ## AMD x86-64 Linux-based GNU system
2522 x86_64-
*-linux-gnu* )
2523 machine
=amdx86-64 opsys
=gnu-linux
2531 ### If the code above didn't choose an operating system, just choose
2532 ### an operating system based on the configuration name. You really
2533 ### only want to use this when you have no idea what the right
2534 ### operating system is; if you know what operating systems a machine
2535 ### runs, it's cleaner to make it explicit in the case statement
2537 if test x
"${opsys}" = x
; then
2538 case "${canonical}" in
2539 *-gnu* ) opsys
=gnu
;;
2540 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2541 *-bsd4.2
) opsys
=bsd4-2
;;
2542 *-bsd4.3
) opsys
=bsd4-3
;;
2543 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2544 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2545 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2546 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2547 *-sysv4.2uw
* ) opsys
=unixware
;;
2548 *-sysv4.1
* |
*-sysvr4.1
* )
2549 NON_GNU_CPP
=/usr
/lib
/cpp
2551 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2552 if [ x
$NON_GNU_CPP = x
]; then
2553 if [ -f /usr
/ccs
/lib
/cpp
]; then
2554 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2556 NON_GNU_CPP
=/lib
/cpp
2560 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2569 if test $unported = yes; then
2570 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2571 Check \`etc/MACHINES' for recognized configuration names." >&5
2572 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2573 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2574 { (exit 1); exit 1; }; }
2577 machfile
="m/${machine}.h"
2578 opsysfile
="s/${opsys}.h"
2581 #### Choose a compiler.
2582 test -n "$CC" && cc_specified
=yes
2584 # Save the value of CFLAGS that the user specified.
2585 SPECIFIED_CFLAGS
="$CFLAGS"
2588 "yes" ) CC
="gcc" GCC
=yes ;;
2589 "no" ) : ${CC=cc} ;;
2593 ac_cpp
='$CPP $CPPFLAGS'
2594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2597 if test -n "$ac_tool_prefix"; then
2598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2599 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2600 echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$CC"; then
2606 ac_cv_prog_CC
="$CC" # Let the user override the test.
2608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir
=.
2613 for ac_exec_ext
in '' $ac_executable_extensions; do
2614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 if test -n "$CC"; then
2626 echo "$as_me:$LINENO: result: $CC" >&5
2627 echo "${ECHO_T}$CC" >&6
2629 echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2634 if test -z "$ac_cv_prog_CC"; then
2636 # Extract the first word of "gcc", so it can be a program name with args.
2637 set dummy gcc
; ac_word
=$2
2638 echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 if test -n "$ac_ct_CC"; then
2644 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir
=.
2651 for ac_exec_ext
in '' $ac_executable_extensions; do
2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_ac_ct_CC
="gcc"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665 echo "${ECHO_T}$ac_ct_CC" >&6
2667 echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2676 if test -z "$CC"; then
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2679 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC
="$CC" # Let the user override the test.
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir
=.
2693 for ac_exec_ext
in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test -n "$CC"; then
2706 echo "$as_me:$LINENO: result: $CC" >&5
2707 echo "${ECHO_T}$CC" >&6
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2714 if test -z "$ac_cv_prog_CC"; then
2716 # Extract the first word of "cc", so it can be a program name with args.
2717 set dummy cc
; ac_word
=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir
=.
2731 for ac_exec_ext
in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CC
="cc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2745 echo "${ECHO_T}$ac_ct_CC" >&6
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2757 if test -z "$CC"; then
2758 # Extract the first word of "cc", so it can be a program name with args.
2759 set dummy cc
; ac_word
=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC
="$CC" # Let the user override the test.
2769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir
=.
2774 for ac_exec_ext
in '' $ac_executable_extensions; do
2775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2777 ac_prog_rejected
=yes
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 if test $ac_prog_rejected = yes; then
2788 # We found a bogon in the path, so make sure we never use it.
2789 set dummy
$ac_cv_prog_CC
2791 if test $# != 0; then
2792 # We chose a different compiler from the bogus one.
2793 # However, it has the same basename, so the bogon will be chosen
2794 # first if we set CC to just the basename; use the full file name.
2796 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2802 if test -n "$CC"; then
2803 echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2811 if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC
="$CC" # Let the user override the test.
2825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir
=.
2830 for ac_exec_ext
in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CC"; then
2843 echo "$as_me:$LINENO: result: $CC" >&5
2844 echo "${ECHO_T}$CC" >&6
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2850 test -n "$CC" && break
2853 if test -z "$CC"; then
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy
$ac_prog; ac_word
=$2
2859 echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -n "$ac_ct_CC"; then
2865 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir
=.
2872 for ac_exec_ext
in '' $ac_executable_extensions; do
2873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_ac_ct_CC
="$ac_prog"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2884 if test -n "$ac_ct_CC"; then
2885 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2886 echo "${ECHO_T}$ac_ct_CC" >&6
2888 echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2892 test -n "$ac_ct_CC" && break
2901 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2907 # Provide some information about the compiler.
2908 echo "$as_me:$LINENO:" \
2909 "checking for C compiler version" >&5
2910 ac_compiler
=`set X $ac_compile; echo $2`
2911 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2912 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2917 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2922 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2927 cat >conftest.
$ac_ext <<_ACEOF
2928 #line $LINENO "configure"
2931 cat confdefs.h
>>conftest.
$ac_ext
2932 cat >>conftest.
$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2943 ac_clean_files_save
=$ac_clean_files
2944 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2945 # Try to create an executable without -o first, disregard a.out.
2946 # It will help us diagnose broken compilers, and finding out an intuition
2948 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2949 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2950 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2951 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2952 (eval $ac_link_default) 2>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; then
2956 # Find the output, starting from the most likely. This scheme is
2957 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2960 # Be careful to initialize this variable, since it used to be cached.
2961 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2963 # b.out is created by i960 compilers.
2964 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2966 test -f "$ac_file" ||
continue
2968 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2971 # This is the source file.
2974 # We found the default executable, but exeext='' is most
2978 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 # FIXME: I believe we export ac_cv_exeext for Libtool,
2980 # but it would be cool to find out if it's true. Does anybody
2981 # maintain Libtool? --akim.
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.
$ac_ext >&5
2992 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&2;}
2996 { (exit 77); exit 77; }; }
2999 ac_exeext
=$ac_cv_exeext
3000 echo "$as_me:$LINENO: result: $ac_file" >&5
3001 echo "${ECHO_T}$ac_file" >&6
3003 # Check the compiler produces executables we can run. If not, either
3004 # the compiler is broken, or we cross compile.
3005 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3006 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3007 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3008 # If not cross compiling, check that we can run a simple program.
3009 if test "$cross_compiling" != yes; then
3010 if { ac_try
='./$ac_file'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3018 if test "$cross_compiling" = maybe
; then
3021 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3022 If you meant to cross compile, use \`--host'.
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: cannot run C compiled programs.
3025 If you meant to cross compile, use \`--host'.
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3031 echo "$as_me:$LINENO: result: yes" >&5
3032 echo "${ECHO_T}yes" >&6
3034 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3035 ac_clean_files
=$ac_clean_files_save
3036 # Check the compiler produces executables we can run. If not, either
3037 # the compiler is broken, or we cross compile.
3038 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3039 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3040 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3041 echo "${ECHO_T}$cross_compiling" >&6
3043 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3044 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046 (eval $ac_link) 2>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
3050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3052 # work properly (i.e., refer to `conftest.exe'), while it won't with
3054 for ac_file
in conftest.exe conftest conftest.
*; do
3055 test -f "$ac_file" ||
continue
3057 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3058 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3068 See \`config.log' for more details." >&2;}
3069 { (exit 1); exit 1; }; }
3072 rm -f conftest
$ac_cv_exeext
3073 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3074 echo "${ECHO_T}$ac_cv_exeext" >&6
3076 rm -f conftest.
$ac_ext
3077 EXEEXT
=$ac_cv_exeext
3079 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3080 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3081 if test "${ac_cv_objext+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 cat >conftest.
$ac_ext <<_ACEOF
3085 #line $LINENO "configure"
3088 cat confdefs.h
>>conftest.
$ac_ext
3089 cat >>conftest.
$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.o conftest.obj
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; then
3106 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3108 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3109 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.
$ac_ext >&5
3117 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3126 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3127 echo "${ECHO_T}$ac_cv_objext" >&6
3128 OBJEXT
=$ac_cv_objext
3130 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3131 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3132 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 cat >conftest.
$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3139 cat confdefs.h
>>conftest.
$ac_ext
3140 cat >>conftest.
$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3154 rm -f conftest.
$ac_objext
3155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try
='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.
$ac_ext >&5
3173 rm -f conftest.
$ac_objext conftest.
$ac_ext
3174 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3177 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3178 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3179 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3180 ac_test_CFLAGS
=${CFLAGS+set}
3181 ac_save_CFLAGS
=$CFLAGS
3183 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3184 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3185 if test "${ac_cv_prog_cc_g+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.
$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3192 cat confdefs.h
>>conftest.
$ac_ext
3193 cat >>conftest.
$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3204 rm -f conftest.
$ac_objext
3205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3206 (eval $ac_compile) 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
3210 { ac_try
='test -s conftest.$ac_objext'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; }; then
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.
$ac_ext >&5
3223 rm -f conftest.
$ac_objext conftest.
$ac_ext
3225 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3227 if test "$ac_test_CFLAGS" = set; then
3228 CFLAGS
=$ac_save_CFLAGS
3229 elif test $ac_cv_prog_cc_g = yes; then
3230 if test "$GCC" = yes; then
3236 if test "$GCC" = yes; then
3242 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3243 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3244 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 ac_cv_prog_cc_stdc
=no
3249 cat >conftest.
$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3253 cat confdefs.h
>>conftest.
$ac_ext
3254 cat >>conftest.
$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3258 #include <sys/types.h>
3259 #include <sys/stat.h>
3260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3261 struct buf { int x; };
3262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263 static char *e (p, i)
3269 static char *f (char * (*g) (char **, int), char **p, ...)
3274 s = g (p, va_arg (v,int));
3278 int test (int i, double x);
3279 struct s1 {int (*f) (int a);};
3280 struct s2 {int (*f) (double a);};
3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3292 # Don't try gcc -ansi; that turns off useful extensions and
3293 # breaks some systems' header files.
3294 # AIX -qlanglvl=ansi
3295 # Ultrix and OSF/1 -std1
3296 # HP-UX 10.20 and later -Ae
3297 # HP-UX older versions -Aa -D_HPUX_SOURCE
3298 # SVR4 -Xc -D__EXTENSIONS__
3299 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3301 CC
="$ac_save_CC $ac_arg"
3302 rm -f conftest.
$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try
='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 ac_cv_prog_cc_stdc
=$ac_arg
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.
$ac_ext >&5
3321 rm -f conftest.
$ac_objext
3323 rm -f conftest.
$ac_ext conftest.
$ac_objext
3328 case "x$ac_cv_prog_cc_stdc" in
3330 echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6 ;;
3333 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3334 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3335 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3338 # Some people use a C++ compiler to compile C. Since we use `exit',
3339 # in C++ we need to declare it. In case someone uses the same compiler
3340 # for both compiling C and C++ we need to have the C++ compiler decide
3341 # the declaration of exit, since it's the most demanding environment.
3342 cat >conftest.
$ac_ext <<_ACEOF
3347 rm -f conftest.
$ac_objext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349 (eval $ac_compile) 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try
='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 for ac_declaration
in \
3361 '#include <stdlib.h>' \
3362 'extern "C" void std::exit (int) throw (); using std::exit;' \
3363 'extern "C" void std::exit (int); using std::exit;' \
3364 'extern "C" void exit (int) throw ();' \
3365 'extern "C" void exit (int);' \
3368 cat >conftest.
$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3372 cat confdefs.h
>>conftest.
$ac_ext
3373 cat >>conftest.
$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3385 rm -f conftest.
$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try
='test -s conftest.$ac_objext'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.
$ac_ext >&5
3404 rm -f conftest.
$ac_objext conftest.
$ac_ext
3405 cat >conftest.
$ac_ext <<_ACEOF
3406 #line $LINENO "configure"
3409 cat confdefs.h
>>conftest.
$ac_ext
3410 cat >>conftest.
$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3421 rm -f conftest.
$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try
='test -s conftest.$ac_objext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.
$ac_ext >&5
3439 rm -f conftest.
$ac_objext conftest.
$ac_ext
3442 if test -n "$ac_declaration"; then
3443 echo '#ifdef __cplusplus' >>confdefs.h
3444 echo $ac_declaration >>confdefs.h
3445 echo '#endif' >>confdefs.h
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.
$ac_ext >&5
3453 rm -f conftest.
$ac_objext conftest.
$ac_ext
3455 ac_cpp
='$CPP $CPPFLAGS'
3456 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3461 # On Suns, sometimes $CPP names a directory.
3462 if test -n "$CPP" && test -d "$CPP"; then
3466 #### Some systems specify a CPP to use unless we are using GCC.
3467 #### Now that we know whether we are using GCC, we can decide whether
3468 #### to use that one.
3469 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3474 #### Some systems specify a CC to use unless we are using GCC.
3475 #### Now that we know whether we are using GCC, we can decide whether
3476 #### to use that one.
3477 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3478 test x
$cc_specified != xyes
3483 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3485 CC
="$CC $GCC_TEST_OPTIONS"
3488 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3490 CC
="$CC $NON_GCC_TEST_OPTIONS"
3493 #### Some other nice autoconf tests.
3495 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3496 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3498 if test "$LN_S" = "ln -s"; then
3499 echo "$as_me:$LINENO: result: yes" >&5
3500 echo "${ECHO_T}yes" >&6
3502 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3503 echo "${ECHO_T}no, using $LN_S" >&6
3507 ac_cpp
='$CPP $CPPFLAGS'
3508 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3511 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3512 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3513 # On Suns, sometimes $CPP names a directory.
3514 if test -n "$CPP" && test -d "$CPP"; then
3517 if test -z "$CPP"; then
3518 if test "${ac_cv_prog_CPP+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 # Double quotes because CPP needs to be expanded
3522 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3525 for ac_c_preproc_warn_flag
in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat >conftest.
$ac_ext <<_ACEOF
3534 #line $LINENO "configure"
3537 cat confdefs.h
>>conftest.
$ac_ext
3538 cat >>conftest.
$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3541 # include <limits.h>
3543 # include <assert.h>
3547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3548 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1
>conftest.err
3552 cat conftest.err
>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } >/dev
/null
; then
3555 if test -s conftest.err
; then
3556 ac_cpp_err
=$ac_c_preproc_warn_flag
3563 if test -z "$ac_cpp_err"; then
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.
$ac_ext >&5
3569 # Broken: fails on valid input.
3572 rm -f conftest.err conftest.
$ac_ext
3574 # OK, works on sane cases. Now check whether non-existent headers
3575 # can be detected and how.
3576 cat >conftest.
$ac_ext <<_ACEOF
3577 #line $LINENO "configure"
3580 cat confdefs.h
>>conftest.
$ac_ext
3581 cat >>conftest.
$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #include <ac_nonexistent.h>
3585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3586 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3588 grep -v '^ *+' conftest.er1
>conftest.err
3590 cat conftest.err
>&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev
/null
; then
3593 if test -s conftest.err
; then
3594 ac_cpp_err
=$ac_c_preproc_warn_flag
3601 if test -z "$ac_cpp_err"; then
3602 # Broken: success on invalid input.
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.
$ac_ext >&5
3608 # Passes both tests.
3612 rm -f conftest.err conftest.
$ac_ext
3615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616 rm -f conftest.err conftest.
$ac_ext
3617 if $ac_preproc_ok; then
3629 echo "$as_me:$LINENO: result: $CPP" >&5
3630 echo "${ECHO_T}$CPP" >&6
3632 for ac_c_preproc_warn_flag
in '' yes
3634 # Use a header file that comes with gcc, so configuring glibc
3635 # with a fresh cross-compiler works.
3636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3637 # <limits.h> exists even on freestanding compilers.
3638 # On the NeXT, cc -E runs the code through the compiler's parser,
3639 # not just through cpp. "Syntax error" is here to catch this case.
3640 cat >conftest.
$ac_ext <<_ACEOF
3641 #line $LINENO "configure"
3644 cat confdefs.h
>>conftest.
$ac_ext
3645 cat >>conftest.
$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3648 # include <limits.h>
3650 # include <assert.h>
3654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3655 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3657 grep -v '^ *+' conftest.er1
>conftest.err
3659 cat conftest.err
>&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } >/dev
/null
; then
3662 if test -s conftest.err
; then
3663 ac_cpp_err
=$ac_c_preproc_warn_flag
3670 if test -z "$ac_cpp_err"; then
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.
$ac_ext >&5
3676 # Broken: fails on valid input.
3679 rm -f conftest.err conftest.
$ac_ext
3681 # OK, works on sane cases. Now check whether non-existent headers
3682 # can be detected and how.
3683 cat >conftest.
$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3687 cat confdefs.h
>>conftest.
$ac_ext
3688 cat >>conftest.
$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <ac_nonexistent.h>
3692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3693 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3695 grep -v '^ *+' conftest.er1
>conftest.err
3697 cat conftest.err
>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev
/null
; then
3700 if test -s conftest.err
; then
3701 ac_cpp_err
=$ac_c_preproc_warn_flag
3708 if test -z "$ac_cpp_err"; then
3709 # Broken: success on invalid input.
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.
$ac_ext >&5
3715 # Passes both tests.
3719 rm -f conftest.err conftest.
$ac_ext
3722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3723 rm -f conftest.err conftest.
$ac_ext
3724 if $ac_preproc_ok; then
3727 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3728 See \`config.log' for more details." >&5
3729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3730 See \`config.log' for more details." >&2;}
3731 { (exit 1); exit 1; }; }
3735 ac_cpp
='$CPP $CPPFLAGS'
3736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3740 # Find a good install program. We prefer a C program (faster),
3741 # so one script is as good as another. But avoid the broken or
3742 # incompatible versions:
3743 # SysV /etc/install, /usr/sbin/install
3744 # SunOS /usr/etc/install
3745 # IRIX /sbin/install
3747 # AmigaOS /C/install, which installs bootblocks on floppy discs
3748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3751 # ./install, which can be erroneously created by make from ./install.sh.
3752 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3753 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3754 if test -z "$INSTALL"; then
3755 if test "${ac_cv_path_install+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir
=.
3763 # Account for people who put trailing slashes in PATH elements.
3765 .
/ | .
// |
/cC
/* | \
3766 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3769 # OSF1 and SCO ODT 3.0 have their own names for install.
3770 # Don't use installbsd from OSF since it installs stuff as root
3772 for ac_prog
in ginstall scoinst
install; do
3773 for ac_exec_ext
in '' $ac_executable_extensions; do
3774 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3775 if test $ac_prog = install &&
3776 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3777 # AIX install. It has an incompatible calling convention.
3779 elif test $ac_prog = install &&
3780 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3781 # program-specific install script used by HP pwplus--don't use.
3784 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3796 if test "${ac_cv_path_install+set}" = set; then
3797 INSTALL
=$ac_cv_path_install
3799 # As a last resort, use the slow shell script. We don't cache a
3800 # path for INSTALL within a source directory, because that will
3801 # break other packages using the cache if that directory is
3802 # removed, or if the path is relative.
3803 INSTALL
=$ac_install_sh
3806 echo "$as_me:$LINENO: result: $INSTALL" >&5
3807 echo "${ECHO_T}$INSTALL" >&6
3809 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3810 # It thinks the first close brace ends the variable substitution.
3811 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3813 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3815 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3817 if test "x$RANLIB" = x
; then
3818 if test -n "$ac_tool_prefix"; then
3819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3820 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3821 echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823 if test "${ac_cv_prog_RANLIB+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 if test -n "$RANLIB"; then
3827 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3833 test -z "$as_dir" && as_dir
=.
3834 for ac_exec_ext
in '' $ac_executable_extensions; do
3835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 RANLIB
=$ac_cv_prog_RANLIB
3846 if test -n "$RANLIB"; then
3847 echo "$as_me:$LINENO: result: $RANLIB" >&5
3848 echo "${ECHO_T}$RANLIB" >&6
3850 echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3855 if test -z "$ac_cv_prog_RANLIB"; then
3856 ac_ct_RANLIB
=$RANLIB
3857 # Extract the first word of "ranlib", so it can be a program name with args.
3858 set dummy ranlib
; ac_word
=$2
3859 echo "$as_me:$LINENO: checking for $ac_word" >&5
3860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if test -n "$ac_ct_RANLIB"; then
3865 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir
=.
3872 for ac_exec_ext
in '' $ac_executable_extensions; do
3873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3884 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3885 if test -n "$ac_ct_RANLIB"; then
3886 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3887 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3893 RANLIB
=$ac_ct_RANLIB
3895 RANLIB
="$ac_cv_prog_RANLIB"
3899 # Extract the first word of "install-info", so it can be a program name with args.
3900 set dummy install-info
; ac_word
=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 case $INSTALL_INFO in
3908 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir
=.
3916 for ac_exec_ext
in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3930 if test -n "$INSTALL_INFO"; then
3931 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3932 echo "${ECHO_T}$INSTALL_INFO" >&6
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
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
3951 for as_dir
in /usr
/sbin
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
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
4003 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4007 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4009 if test -n "$INSTALL_INFO"; then
4010 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4011 echo "${ECHO_T}$INSTALL_INFO" >&6
4013 echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4019 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4021 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4024 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4026 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4031 echo "$as_me:$LINENO: checking for egrep" >&5
4032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4033 if test "${ac_cv_prog_egrep+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4037 then ac_cv_prog_egrep
='grep -E'
4038 else ac_cv_prog_egrep
='egrep'
4041 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4042 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4043 EGREP
=$ac_cv_prog_egrep
4047 echo "$as_me:$LINENO: checking for AIX" >&5
4048 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4049 cat >conftest.
$ac_ext <<_ACEOF
4050 #line $LINENO "configure"
4053 cat confdefs.h
>>conftest.
$ac_ext
4054 cat >>conftest.
$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4062 $EGREP "yes" >/dev
/null
2>&1; then
4063 echo "$as_me:$LINENO: result: yes" >&5
4064 echo "${ECHO_T}yes" >&6
4065 cat >>confdefs.h
<<\_ACEOF
4066 #define _ALL_SOURCE 1
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4077 #### Extract some information from the operating system and machine files.
4079 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4080 - which libraries the lib-src programs will want, and
4081 - whether the GNU malloc routines are usable..." >&5
4082 echo "$as_me: checking the machine- and system-dependent files to find out
4083 - which libraries the lib-src programs will want, and
4084 - whether the GNU malloc routines are usable..." >&6;}
4086 ### First figure out CFLAGS (which we use for running the compiler here)
4087 ### and REAL_CFLAGS (which we use for real compilation).
4088 ### The two are the same except on a few systems, where they are made
4089 ### different to work around various lossages. For example,
4090 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4091 ### as implying static linking.
4093 ### If the CFLAGS env var is specified, we use that value
4094 ### instead of the default.
4096 ### It's not important that this name contain the PID; you can't run
4097 ### two configures in the same directory and have anything work
4099 tempcname
="conftest.c"
4102 #include "'${srcdir}'/src/'${opsysfile}'"
4103 #include "'${srcdir}'/src/'${machfile}'"
4104 #ifndef LIBS_MACHINE
4105 #define LIBS_MACHINE
4110 #ifndef C_SWITCH_SYSTEM
4111 #define C_SWITCH_SYSTEM
4113 #ifndef C_SWITCH_MACHINE
4114 #define C_SWITCH_MACHINE
4116 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4117 configure___ c_switch_system=C_SWITCH_SYSTEM
4118 configure___ c_switch_machine=C_SWITCH_MACHINE
4121 #define LIB_X11_LIB -lX11
4124 #ifndef LIBX11_MACHINE
4125 #define LIBX11_MACHINE
4128 #ifndef LIBX11_SYSTEM
4129 #define LIBX11_SYSTEM
4131 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4134 configure___ unexec=UNEXEC
4136 configure___ unexec=unexec.o
4139 #ifdef SYSTEM_MALLOC
4140 configure___ system_malloc=yes
4142 configure___ system_malloc=no
4145 #ifdef USE_MMAP_FOR_BUFFERS
4146 configure___ use_mmap_for_buffers=yes
4148 configure___ use_mmap_for_buffers=no
4151 #ifndef C_DEBUG_SWITCH
4152 #define C_DEBUG_SWITCH -g
4155 #ifndef C_OPTIMIZE_SWITCH
4157 #define C_OPTIMIZE_SWITCH -O2
4159 #define C_OPTIMIZE_SWITCH -O
4163 #ifndef LD_SWITCH_MACHINE
4164 #define LD_SWITCH_MACHINE
4167 #ifndef LD_SWITCH_SYSTEM
4168 #define LD_SWITCH_SYSTEM
4171 #ifndef LD_SWITCH_X_SITE_AUX
4172 #define LD_SWITCH_X_SITE_AUX
4175 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4176 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4178 #ifdef THIS_IS_CONFIGURE
4180 /* Get the CFLAGS for tests in configure. */
4182 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4184 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4187 #else /* not THIS_IS_CONFIGURE */
4189 /* Get the CFLAGS for real compilation. */
4191 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4193 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4196 #endif /* not THIS_IS_CONFIGURE */
4199 # The value of CPP is a quoted variable reference, so we need to do this
4200 # to get its actual value...
4201 CPP
=`eval "echo $CPP"`
4202 eval `${CPP} -Isrc ${tempcname} \
4203 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4204 if test "x$SPECIFIED_CFLAGS" = x
; then
4205 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4206 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4208 REAL_CFLAGS
="$CFLAGS"
4212 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4214 ### Make sure subsequent tests use flags consistent with the build flags.
4216 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4217 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4219 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4225 cat >>confdefs.h
<<\_ACEOF
4226 #define _GNU_SOURCE 1
4231 # Check whether --enable-largefile or --disable-largefile was given.
4232 if test "${enable_largefile+set}" = set; then
4233 enableval
="$enable_largefile"
4236 if test "$enable_largefile" != no
; then
4238 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4239 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4240 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 ac_cv_sys_largefile_CC
=no
4244 if test "$GCC" != yes; then
4247 # IRIX 6.2 and later do not support large files by default,
4248 # so use the C compiler's -n32 option if that helps.
4249 cat >conftest.
$ac_ext <<_ACEOF
4250 #line $LINENO "configure"
4253 cat confdefs.h
>>conftest.
$ac_ext
4254 cat >>conftest.
$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 /* Check that off_t can represent 2**63 - 1 correctly.
4258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4259 since some C++ compilers masquerading as C compilers
4260 incorrectly reject 9223372036854775807. */
4261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4263 && LARGE_OFF_T % 2147483647 == 1)
4273 rm -f conftest.
$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try
='test -s conftest.$ac_objext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.
$ac_ext >&5
4291 rm -f conftest.
$ac_objext
4293 rm -f conftest.
$ac_objext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4295 (eval $ac_compile) 2>&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try
='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_sys_largefile_CC
=' -n32'; break
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.
$ac_ext >&5
4311 rm -f conftest.
$ac_objext
4315 rm -f conftest.
$ac_ext
4318 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4319 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4320 if test "$ac_cv_sys_largefile_CC" != no
; then
4321 CC
=$CC$ac_cv_sys_largefile_CC
4324 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4325 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4326 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 ac_cv_sys_file_offset_bits
=no
4331 cat >conftest.
$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4335 cat confdefs.h
>>conftest.
$ac_ext
4336 cat >>conftest.
$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <sys/types.h>
4339 /* Check that off_t can represent 2**63 - 1 correctly.
4340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4341 since some C++ compilers masquerading as C compilers
4342 incorrectly reject 9223372036854775807. */
4343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4345 && LARGE_OFF_T % 2147483647 == 1)
4355 rm -f conftest.
$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try
='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.
$ac_ext >&5
4373 rm -f conftest.
$ac_objext conftest.
$ac_ext
4374 cat >conftest.
$ac_ext <<_ACEOF
4375 #line $LINENO "configure"
4378 cat confdefs.h
>>conftest.
$ac_ext
4379 cat >>conftest.
$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 #define _FILE_OFFSET_BITS 64
4382 #include <sys/types.h>
4383 /* Check that off_t can represent 2**63 - 1 correctly.
4384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4385 since some C++ compilers masquerading as C compilers
4386 incorrectly reject 9223372036854775807. */
4387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4389 && LARGE_OFF_T % 2147483647 == 1)
4399 rm -f conftest.
$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try
='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_cv_sys_file_offset_bits
=64; break
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.
$ac_ext >&5
4417 rm -f conftest.
$ac_objext conftest.
$ac_ext
4421 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4422 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4423 if test "$ac_cv_sys_file_offset_bits" != no
; then
4425 cat >>confdefs.h
<<_ACEOF
4426 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4431 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4432 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4433 if test "${ac_cv_sys_large_files+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 ac_cv_sys_large_files
=no
4438 cat >conftest.
$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4442 cat confdefs.h
>>conftest.
$ac_ext
4443 cat >>conftest.
$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <sys/types.h>
4446 /* Check that off_t can represent 2**63 - 1 correctly.
4447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4448 since some C++ compilers masquerading as C compilers
4449 incorrectly reject 9223372036854775807. */
4450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4452 && LARGE_OFF_T % 2147483647 == 1)
4462 rm -f conftest.
$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try
='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.
$ac_ext >&5
4480 rm -f conftest.
$ac_objext conftest.
$ac_ext
4481 cat >conftest.
$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4485 cat confdefs.h
>>conftest.
$ac_ext
4486 cat >>conftest.
$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #define _LARGE_FILES 1
4489 #include <sys/types.h>
4490 /* Check that off_t can represent 2**63 - 1 correctly.
4491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4492 since some C++ compilers masquerading as C compilers
4493 incorrectly reject 9223372036854775807. */
4494 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4496 && LARGE_OFF_T % 2147483647 == 1)
4506 rm -f conftest.
$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try
='test -s conftest.$ac_objext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_sys_large_files
=1; break
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.
$ac_ext >&5
4524 rm -f conftest.
$ac_objext conftest.
$ac_ext
4528 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4529 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4530 if test "$ac_cv_sys_large_files" != no
; then
4532 cat >>confdefs.h
<<_ACEOF
4533 #define _LARGE_FILES $ac_cv_sys_large_files
4541 if test "${with_sound}" != "no"; then
4542 # Sound support for GNU/Linux and the free BSDs.
4543 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4544 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4545 if test "${ac_cv_header_stdc+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 cat >conftest.
$ac_ext <<_ACEOF
4549 #line $LINENO "configure"
4552 cat confdefs.h
>>conftest.
$ac_ext
4553 cat >>conftest.
$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4568 rm -f conftest.
$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try
='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_cv_header_stdc
=yes
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.
$ac_ext >&5
4585 ac_cv_header_stdc
=no
4587 rm -f conftest.
$ac_objext conftest.
$ac_ext
4589 if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat >conftest.
$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4595 cat confdefs.h
>>conftest.
$ac_ext
4596 cat >>conftest.
$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 $EGREP "memchr" >/dev
/null
2>&1; then
4605 ac_cv_header_stdc
=no
4611 if test $ac_cv_header_stdc = yes; then
4612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613 cat >conftest.
$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4617 cat confdefs.h
>>conftest.
$ac_ext
4618 cat >>conftest.
$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 $EGREP "free" >/dev
/null
2>&1; then
4627 ac_cv_header_stdc
=no
4633 if test $ac_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then
4638 cat >conftest.
$ac_ext <<_ACEOF
4639 #line $LINENO "configure"
4642 cat confdefs.h
>>conftest.
$ac_ext
4643 cat >>conftest.
$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650 # define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
4652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4669 rm -f conftest
$ac_exeext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671 (eval $ac_link) 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4682 echo "$as_me: program exited with status $ac_status" >&5
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4687 ac_cv_header_stdc
=no
4689 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4693 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4695 if test $ac_cv_header_stdc = yes; then
4697 cat >>confdefs.h
<<\_ACEOF
4698 #define STDC_HEADERS 1
4703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4714 inttypes.h stdint.h unistd.h
4716 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 echo "$as_me:$LINENO: checking for $ac_header" >&5
4718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 cat >conftest.
$ac_ext <<_ACEOF
4723 #line $LINENO "configure"
4726 cat confdefs.h
>>conftest.
$ac_ext
4727 cat >>conftest.
$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4731 #include <$ac_header>
4733 rm -f conftest.
$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try
='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 eval "$as_ac_Header=yes"
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.
$ac_ext >&5
4750 eval "$as_ac_Header=no"
4752 rm -f conftest.
$ac_objext conftest.
$ac_ext
4754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4757 cat >>confdefs.h
<<_ACEOF
4758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4769 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4771 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4773 echo "$as_me:$LINENO: checking for $ac_header" >&5
4774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4781 # Is the header compilable?
4782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4784 cat >conftest.
$ac_ext <<_ACEOF
4785 #line $LINENO "configure"
4788 cat confdefs.h
>>conftest.
$ac_ext
4789 cat >>conftest.
$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4792 #include <$ac_header>
4794 rm -f conftest.
$ac_objext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try
='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_header_compiler
=yes
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.
$ac_ext >&5
4811 ac_header_compiler
=no
4813 rm -f conftest.
$ac_objext conftest.
$ac_ext
4814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4815 echo "${ECHO_T}$ac_header_compiler" >&6
4817 # Is the header present?
4818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4820 cat >conftest.
$ac_ext <<_ACEOF
4821 #line $LINENO "configure"
4824 cat confdefs.h
>>conftest.
$ac_ext
4825 cat >>conftest.
$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <$ac_header>
4829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4832 grep -v '^ *+' conftest.er1
>conftest.err
4834 cat conftest.err
>&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } >/dev
/null
; then
4837 if test -s conftest.err
; then
4838 ac_cpp_err
=$ac_c_preproc_warn_flag
4845 if test -z "$ac_cpp_err"; then
4846 ac_header_preproc
=yes
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.
$ac_ext >&5
4851 ac_header_preproc
=no
4853 rm -f conftest.err conftest.
$ac_ext
4854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4855 echo "${ECHO_T}$ac_header_preproc" >&6
4857 # So? What about this header?
4858 case $ac_header_compiler:$ac_header_preproc in
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4866 ## ------------------------------------ ##
4867 ## Report this to bug-autoconf@gnu.org. ##
4868 ## ------------------------------------ ##
4871 sed "s/^/$as_me: WARNING: /" >&2
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882 ## ------------------------------------ ##
4883 ## Report this to bug-autoconf@gnu.org. ##
4884 ## ------------------------------------ ##
4887 sed "s/^/$as_me: WARNING: /" >&2
4890 echo "$as_me:$LINENO: checking for $ac_header" >&5
4891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 eval "$as_ac_Header=$ac_header_preproc"
4897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4902 cat >>confdefs.h
<<_ACEOF
4903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910 # Emulation library used on NetBSD.
4911 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4912 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4913 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_check_lib_save_LIBS
=$LIBS
4917 LIBS
="-lossaudio $LIBS"
4918 cat >conftest.
$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4922 cat confdefs.h
>>conftest.
$ac_ext
4923 cat >>conftest.
$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4926 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4941 rm -f conftest.
$ac_objext conftest
$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try
='test -s conftest$ac_exeext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_cv_lib_ossaudio__oss_ioctl
=yes
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.
$ac_ext >&5
4958 ac_cv_lib_ossaudio__oss_ioctl
=no
4960 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4961 LIBS
=$ac_check_lib_save_LIBS
4963 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4964 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4965 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4996 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4997 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4998 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h pty.h sys
/mman.h \
4999 sys
/param.h sys
/vlimit.h sys
/resource.h
5001 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5003 echo "$as_me:$LINENO: checking for $ac_header" >&5
5004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5011 # Is the header compilable?
5012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5014 cat >conftest.
$ac_ext <<_ACEOF
5015 #line $LINENO "configure"
5018 cat confdefs.h
>>conftest.
$ac_ext
5019 cat >>conftest.
$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 $ac_includes_default
5022 #include <$ac_header>
5024 rm -f conftest.
$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try
='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 ac_header_compiler
=yes
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.
$ac_ext >&5
5041 ac_header_compiler
=no
5043 rm -f conftest.
$ac_objext conftest.
$ac_ext
5044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5045 echo "${ECHO_T}$ac_header_compiler" >&6
5047 # Is the header present?
5048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5050 cat >conftest.
$ac_ext <<_ACEOF
5051 #line $LINENO "configure"
5054 cat confdefs.h
>>conftest.
$ac_ext
5055 cat >>conftest.
$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <$ac_header>
5059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5062 grep -v '^ *+' conftest.er1
>conftest.err
5064 cat conftest.err
>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } >/dev
/null
; then
5067 if test -s conftest.err
; then
5068 ac_cpp_err
=$ac_c_preproc_warn_flag
5075 if test -z "$ac_cpp_err"; then
5076 ac_header_preproc
=yes
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.
$ac_ext >&5
5081 ac_header_preproc
=no
5083 rm -f conftest.err conftest.
$ac_ext
5084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5085 echo "${ECHO_T}$ac_header_preproc" >&6
5087 # So? What about this header?
5088 case $ac_header_compiler:$ac_header_preproc in
5090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5096 ## ------------------------------------ ##
5097 ## Report this to bug-autoconf@gnu.org. ##
5098 ## ------------------------------------ ##
5101 sed "s/^/$as_me: WARNING: /" >&2
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5112 ## ------------------------------------ ##
5113 ## Report this to bug-autoconf@gnu.org. ##
5114 ## ------------------------------------ ##
5117 sed "s/^/$as_me: WARNING: /" >&2
5120 echo "$as_me:$LINENO: checking for $ac_header" >&5
5121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 eval "$as_ac_Header=$ac_header_preproc"
5127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5132 cat >>confdefs.h
<<_ACEOF
5133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141 for ac_header
in term.h
5143 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5144 echo "$as_me:$LINENO: checking for $ac_header" >&5
5145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 cat >conftest.
$ac_ext <<_ACEOF
5150 #line $LINENO "configure"
5153 cat confdefs.h
>>conftest.
$ac_ext
5154 cat >>conftest.
$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 #include <$ac_header>
5158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5159 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1
>conftest.err
5163 cat conftest.err
>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } >/dev
/null
; then
5166 if test -s conftest.err
; then
5167 ac_cpp_err
=$ac_c_preproc_warn_flag
5174 if test -z "$ac_cpp_err"; then
5175 eval "$as_ac_Header=yes"
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.
$ac_ext >&5
5180 eval "$as_ac_Header=no"
5182 rm -f conftest.err conftest.
$ac_ext
5184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5187 cat >>confdefs.h
<<_ACEOF
5188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5197 if test "${ac_cv_header_stdc+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.
$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5204 cat confdefs.h
>>conftest.
$ac_ext
5205 cat >>conftest.
$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5220 rm -f conftest.
$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try
='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_header_stdc
=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.
$ac_ext >&5
5237 ac_cv_header_stdc
=no
5239 rm -f conftest.
$ac_objext conftest.
$ac_ext
5241 if test $ac_cv_header_stdc = yes; then
5242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5243 cat >conftest.
$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5247 cat confdefs.h
>>conftest.
$ac_ext
5248 cat >>conftest.
$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "memchr" >/dev
/null
2>&1; then
5257 ac_cv_header_stdc
=no
5263 if test $ac_cv_header_stdc = yes; then
5264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5265 cat >conftest.
$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5269 cat confdefs.h
>>conftest.
$ac_ext
5270 cat >>conftest.
$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "free" >/dev
/null
2>&1; then
5279 ac_cv_header_stdc
=no
5285 if test $ac_cv_header_stdc = yes; then
5286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5287 if test "$cross_compiling" = yes; then
5290 cat >conftest.
$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5294 cat confdefs.h
>>conftest.
$ac_ext
5295 cat >>conftest.
$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5298 #if ((' ' & 0x0FF) == 0x020)
5299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5302 # define ISLOWER(c) \
5303 (('a' <= (c) && (c) <= 'i') \
5304 || ('j' <= (c) && (c) <= 'r') \
5305 || ('s' <= (c) && (c) <= 'z'))
5306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 for (i = 0; i < 256; i++)
5315 if (XOR (islower (i), ISLOWER (i))
5316 || toupper (i) != TOUPPER (i))
5321 rm -f conftest
$ac_exeext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323 (eval $ac_link) 2>&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5334 echo "$as_me: program exited with status $ac_status" >&5
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5339 ac_cv_header_stdc
=no
5341 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5345 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5346 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5347 if test $ac_cv_header_stdc = yes; then
5349 cat >>confdefs.h
<<\_ACEOF
5350 #define STDC_HEADERS 1
5355 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5356 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5357 if test "${ac_cv_header_time+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 cat >conftest.
$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5364 cat confdefs.h
>>conftest.
$ac_ext
5365 cat >>conftest.
$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <sys/types.h>
5368 #include <sys/time.h>
5374 if ((struct tm *) 0)
5380 rm -f conftest.
$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382 (eval $ac_compile) 2>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try
='test -s conftest.$ac_objext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_cv_header_time
=yes
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.
$ac_ext >&5
5397 ac_cv_header_time
=no
5399 rm -f conftest.
$ac_objext conftest.
$ac_ext
5401 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5402 echo "${ECHO_T}$ac_cv_header_time" >&6
5403 if test $ac_cv_header_time = yes; then
5405 cat >>confdefs.h
<<\_ACEOF
5406 #define TIME_WITH_SYS_TIME 1
5411 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5412 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5413 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 cat >conftest.
$ac_ext <<_ACEOF
5417 #line $LINENO "configure"
5420 cat confdefs.h
>>conftest.
$ac_ext
5421 cat >>conftest.
$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5428 char *p = (char *) sys_siglist;
5435 rm -f conftest.
$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try
='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_have_decl_sys_siglist
=yes
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.
$ac_ext >&5
5452 ac_cv_have_decl_sys_siglist
=no
5454 rm -f conftest.
$ac_objext conftest.
$ac_ext
5456 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5457 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5458 if test $ac_cv_have_decl_sys_siglist = yes; then
5460 cat >>confdefs.h
<<_ACEOF
5461 #define HAVE_DECL_SYS_SIGLIST 1
5466 cat >>confdefs.h
<<_ACEOF
5467 #define HAVE_DECL_SYS_SIGLIST 0
5474 if test $ac_cv_have_decl_sys_siglist != yes; then
5475 # For Tru64, at least:
5476 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5477 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5478 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 cat >conftest.
$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5485 cat confdefs.h
>>conftest.
$ac_ext
5486 cat >>conftest.
$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5492 #ifndef __sys_siglist
5493 char *p = (char *) __sys_siglist;
5500 rm -f conftest.
$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try
='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 ac_cv_have_decl___sys_siglist
=yes
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.
$ac_ext >&5
5517 ac_cv_have_decl___sys_siglist
=no
5519 rm -f conftest.
$ac_objext conftest.
$ac_ext
5521 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5522 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5523 if test $ac_cv_have_decl___sys_siglist = yes; then
5525 cat >>confdefs.h
<<_ACEOF
5526 #define HAVE_DECL___SYS_SIGLIST 1
5531 cat >>confdefs.h
<<_ACEOF
5532 #define HAVE_DECL___SYS_SIGLIST 0
5539 if test $ac_cv_have_decl___sys_siglist = yes; then
5541 cat >>confdefs.h
<<\_ACEOF
5542 #define sys_siglist __sys_siglist
5547 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5548 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5549 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 cat >conftest.
$ac_ext <<_ACEOF
5553 #line $LINENO "configure"
5556 cat confdefs.h
>>conftest.
$ac_ext
5557 cat >>conftest.
$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 #include <sys/types.h>
5560 #include <sys/wait.h>
5562 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5565 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5573 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5578 rm -f conftest.
$ac_objext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try
='test -s conftest.$ac_objext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 ac_cv_header_sys_wait_h
=yes
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.
$ac_ext >&5
5595 ac_cv_header_sys_wait_h
=no
5597 rm -f conftest.
$ac_objext conftest.
$ac_ext
5599 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5600 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5601 if test $ac_cv_header_sys_wait_h = yes; then
5603 cat >>confdefs.h
<<\_ACEOF
5604 #define HAVE_SYS_WAIT_H 1
5610 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5611 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5612 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5619 cat confdefs.h
>>conftest.
$ac_ext
5620 cat >>conftest.
$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #ifdef TIME_WITH_SYS_TIME
5623 #include <sys/time.h>
5626 #ifdef HAVE_SYS_TIME_H
5627 #include <sys/time.h>
5638 static struct utimbuf x; x.actime = x.modtime;
5643 rm -f conftest.
$ac_objext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645 (eval $ac_compile) 2>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } &&
5649 { ac_try
='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 emacs_cv_struct_utimbuf
=yes
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.
$ac_ext >&5
5660 emacs_cv_struct_utimbuf
=no
5662 rm -f conftest.
$ac_objext conftest.
$ac_ext
5664 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5665 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5666 if test $emacs_cv_struct_utimbuf = yes; then
5668 cat >>confdefs.h
<<\_ACEOF
5669 #define HAVE_STRUCT_UTIMBUF 1
5674 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5675 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5676 if test "${ac_cv_type_signal+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 cat >conftest.
$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #include <sys/types.h>
5692 extern "C" void (*signal (int, void (*)(int)))(int);
5694 void (*signal ()) ();
5705 rm -f conftest.
$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try
='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_type_signal
=void
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.
$ac_ext >&5
5722 ac_cv_type_signal
=int
5724 rm -f conftest.
$ac_objext conftest.
$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5727 echo "${ECHO_T}$ac_cv_type_signal" >&6
5729 cat >>confdefs.h
<<_ACEOF
5730 #define RETSIGTYPE $ac_cv_type_signal
5735 echo "$as_me:$LINENO: checking for speed_t" >&5
5736 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5737 if test "${emacs_cv_speed_t+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 cat >conftest.
$ac_ext <<_ACEOF
5741 #line $LINENO "configure"
5744 cat confdefs.h
>>conftest.
$ac_ext
5745 cat >>conftest.
$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #include <termios.h>
5756 rm -f conftest.
$ac_objext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758 (eval $ac_compile) 2>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try
='test -s conftest.$ac_objext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 emacs_cv_speed_t
=yes
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.
$ac_ext >&5
5775 rm -f conftest.
$ac_objext conftest.
$ac_ext
5777 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5778 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5779 if test $emacs_cv_speed_t = yes; then
5781 cat >>confdefs.h
<<\_ACEOF
5782 #define HAVE_SPEED_T 1
5787 echo "$as_me:$LINENO: checking for struct timeval" >&5
5788 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5789 if test "${emacs_cv_struct_timeval+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.
$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #ifdef TIME_WITH_SYS_TIME
5800 #include <sys/time.h>
5803 #ifdef HAVE_SYS_TIME_H
5804 #include <sys/time.h>
5812 static struct timeval x; x.tv_sec = x.tv_usec;
5817 rm -f conftest.
$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try
='test -s conftest.$ac_objext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 emacs_cv_struct_timeval
=yes
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.
$ac_ext >&5
5834 emacs_cv_struct_timeval
=no
5836 rm -f conftest.
$ac_objext conftest.
$ac_ext
5838 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5839 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5840 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5841 if test $emacs_cv_struct_timeval = yes; then
5843 cat >>confdefs.h
<<\_ACEOF
5844 #define HAVE_TIMEVAL 1
5849 echo "$as_me:$LINENO: checking for struct exception" >&5
5850 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5851 if test "${emacs_cv_struct_exception+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 cat >conftest.
$ac_ext <<_ACEOF
5855 #line $LINENO "configure"
5858 cat confdefs.h
>>conftest.
$ac_ext
5859 cat >>conftest.
$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5865 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5870 rm -f conftest.
$ac_objext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872 (eval $ac_compile) 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try
='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 emacs_cv_struct_exception
=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 emacs_cv_struct_exception
=no
5889 rm -f conftest.
$ac_objext conftest.
$ac_ext
5891 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5892 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5893 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5894 if test $emacs_cv_struct_exception != yes; then
5896 cat >>confdefs.h
<<\_ACEOF
5897 #define NO_MATHERR 1
5902 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5903 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5904 if test "${ac_cv_struct_tm+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 cat >conftest.
$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5911 cat confdefs.h
>>conftest.
$ac_ext
5912 cat >>conftest.
$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <sys/types.h>
5920 struct tm *tp; tp->tm_sec;
5925 rm -f conftest.
$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927 (eval $ac_compile) 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try
='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_struct_tm
=time.h
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5942 ac_cv_struct_tm
=sys
/time.h
5944 rm -f conftest.
$ac_objext conftest.
$ac_ext
5946 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5947 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5948 if test $ac_cv_struct_tm = sys
/time.h
; then
5950 cat >>confdefs.h
<<\_ACEOF
5951 #define TM_IN_SYS_TIME 1
5956 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5957 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5958 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 cat >conftest.
$ac_ext <<_ACEOF
5962 #line $LINENO "configure"
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <sys/types.h>
5969 #include <$ac_cv_struct_tm>
5975 static struct tm ac_aggr;
5976 if (ac_aggr.tm_zone)
5982 rm -f conftest.
$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try
='test -s conftest.$ac_objext'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 ac_cv_member_struct_tm_tm_zone
=yes
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.
$ac_ext >&5
5999 cat >conftest.
$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6003 cat confdefs.h
>>conftest.
$ac_ext
6004 cat >>conftest.
$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #include <sys/types.h>
6007 #include <$ac_cv_struct_tm>
6013 static struct tm ac_aggr;
6014 if (sizeof ac_aggr.tm_zone)
6020 rm -f conftest.
$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try
='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_member_struct_tm_tm_zone
=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.
$ac_ext >&5
6037 ac_cv_member_struct_tm_tm_zone
=no
6039 rm -f conftest.
$ac_objext conftest.
$ac_ext
6041 rm -f conftest.
$ac_objext conftest.
$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6044 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6045 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6047 cat >>confdefs.h
<<_ACEOF
6048 #define HAVE_STRUCT_TM_TM_ZONE 1
6054 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6056 cat >>confdefs.h
<<\_ACEOF
6057 #define HAVE_TM_ZONE 1
6061 echo "$as_me:$LINENO: checking for tzname" >&5
6062 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6063 if test "${ac_cv_var_tzname+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 cat >conftest.
$ac_ext <<_ACEOF
6067 #line $LINENO "configure"
6070 cat confdefs.h
>>conftest.
$ac_ext
6071 cat >>conftest.
$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6074 #ifndef tzname /* For SGI. */
6075 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6086 rm -f conftest.
$ac_objext conftest
$ac_exeext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6088 (eval $ac_link) 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try
='test -s conftest$ac_exeext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_var_tzname
=yes
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6105 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6108 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6109 if test $ac_cv_var_tzname = yes; then
6111 cat >>confdefs.h
<<\_ACEOF
6112 #define HAVE_TZNAME 1
6118 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6119 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6120 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 cat >conftest.
$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6135 static struct tm ac_aggr;
6136 if (ac_aggr.tm_gmtoff)
6142 rm -f conftest.
$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try
='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_member_struct_tm_tm_gmtoff
=yes
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.
$ac_ext >&5
6159 cat >conftest.
$ac_ext <<_ACEOF
6160 #line $LINENO "configure"
6163 cat confdefs.h
>>conftest.
$ac_ext
6164 cat >>conftest.
$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6171 static struct tm ac_aggr;
6172 if (sizeof ac_aggr.tm_gmtoff)
6178 rm -f conftest.
$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try
='test -s conftest.$ac_objext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_member_struct_tm_tm_gmtoff
=yes
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.
$ac_ext >&5
6195 ac_cv_member_struct_tm_tm_gmtoff
=no
6197 rm -f conftest.
$ac_objext conftest.
$ac_ext
6199 rm -f conftest.
$ac_objext conftest.
$ac_ext
6201 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6202 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6203 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6205 cat >>confdefs.h
<<\_ACEOF
6206 #define HAVE_TM_GMTOFF 1
6213 echo "$as_me:$LINENO: checking for function prototypes" >&5
6214 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6215 if test "$ac_cv_prog_cc_stdc" != no
; then
6216 echo "$as_me:$LINENO: result: yes" >&5
6217 echo "${ECHO_T}yes" >&6
6219 cat >>confdefs.h
<<\_ACEOF
6220 #define PROTOTYPES 1
6224 cat >>confdefs.h
<<\_ACEOF
6225 #define __PROTOTYPES 1
6229 echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6
6233 echo "$as_me:$LINENO: checking for working volatile" >&5
6234 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6235 if test "${ac_cv_c_volatile+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 cat >conftest.
$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6242 cat confdefs.h
>>conftest.
$ac_ext
6243 cat >>conftest.
$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6256 rm -f conftest.
$ac_objext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258 (eval $ac_compile) 2>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try
='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_cv_c_volatile
=yes
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.
$ac_ext >&5
6275 rm -f conftest.
$ac_objext conftest.
$ac_ext
6277 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6278 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6279 if test $ac_cv_c_volatile = no
; then
6281 cat >>confdefs.h
<<\_ACEOF
6287 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6288 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6289 if test "${ac_cv_c_const+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.
$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6296 cat confdefs.h
>>conftest.
$ac_ext
6297 cat >>conftest.
$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6303 /* FIXME: Include the comments suggested by Paul. */
6305 /* Ultrix mips cc rejects this. */
6306 typedef int charset[2];
6308 /* SunOS 4.1.1 cc rejects this. */
6309 char const *const *ccp;
6311 /* NEC SVR4.0.2 mips cc rejects this. */
6312 struct point {int x, y;};
6313 static struct point const zero = {0,0};
6314 /* AIX XL C 1.02.0.0 rejects this.
6315 It does not let you subtract one const X* pointer from another in
6316 an arm of an if-expression whose if-part is not a constant
6318 const char *g = "string";
6319 ccp = &g + (g ? g-g : 0);
6320 /* HPUX 7.0 cc rejects these. */
6323 ccp = (char const *const *) p;
6324 { /* SCO 3.2v4 cc rejects this. */
6326 char const *s = 0 ? (char *) 0 : (char const *) 0;
6330 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6332 const int *foo = &x[0];
6335 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6336 typedef const int *iptr;
6340 { /* AIX XL C 1.02.0.0 rejects this saying
6341 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6342 struct s { int j; const int *ap[3]; };
6343 struct s *b; b->j = 5;
6345 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6354 rm -f conftest.
$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try
='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.
$ac_ext >&5
6373 rm -f conftest.
$ac_objext conftest.
$ac_ext
6375 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6376 echo "${ECHO_T}$ac_cv_c_const" >&6
6377 if test $ac_cv_c_const = no
; then
6379 cat >>confdefs.h
<<\_ACEOF
6385 echo "$as_me:$LINENO: checking for void * support" >&5
6386 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6387 if test "${emacs_cv_void_star+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6391 #line $LINENO "configure"
6394 cat confdefs.h
>>conftest.
$ac_ext
6395 cat >>conftest.
$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6406 rm -f conftest.
$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try
='test -s conftest.$ac_objext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 emacs_cv_void_star
=yes
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.
$ac_ext >&5
6423 emacs_cv_void_star
=no
6425 rm -f conftest.
$ac_objext conftest.
$ac_ext
6427 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6428 echo "${ECHO_T}$emacs_cv_void_star" >&6
6429 if test $emacs_cv_void_star = yes; then
6430 cat >>confdefs.h
<<\_ACEOF
6431 #define POINTER_TYPE void
6435 cat >>confdefs.h
<<\_ACEOF
6436 #define POINTER_TYPE char
6443 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6444 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6445 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6446 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 cat >conftest.
make <<\_ACEOF
6451 @
echo 'ac_maketemp="$(MAKE)"'
6453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6454 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6455 if test -n "$ac_maketemp"; then
6456 eval ac_cv_prog_make_
${ac_make}_set
=yes
6458 eval ac_cv_prog_make_
${ac_make}_set
=no
6462 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6463 echo "$as_me:$LINENO: result: yes" >&5
6464 echo "${ECHO_T}yes" >&6
6467 echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6
6469 SET_MAKE
="MAKE=${MAKE-make}"
6473 echo "$as_me:$LINENO: checking for long file names" >&5
6474 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6475 if test "${ac_cv_sys_long_file_names+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 ac_cv_sys_long_file_names
=yes
6479 # Test for long file names in all the places we know might matter:
6480 # . the current directory, where building will happen
6481 # $prefix/lib where we will be installing things
6482 # $exec_prefix/lib likewise
6483 # eval it to expand exec_prefix.
6484 # $TMPDIR if set, where it might want to write temporary files
6485 # if $TMPDIR is not set:
6486 # /tmp where it might want to write temporary files
6489 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6492 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6494 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6495 test -d $ac_dir ||
continue
6496 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6497 ac_xdir
=$ac_dir/cf$$
6498 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6499 ac_tf1
=$ac_xdir/conftest9012345
6500 ac_tf2
=$ac_xdir/conftest9012346
6501 (echo 1 >$ac_tf1) 2>/dev
/null
6502 (echo 2 >$ac_tf2) 2>/dev
/null
6503 ac_val
=`cat $ac_tf1 2>/dev/null`
6504 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6505 ac_cv_sys_long_file_names
=no
6506 rm -rf $ac_xdir 2>/dev
/null
6509 rm -rf $ac_xdir 2>/dev
/null
6512 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6513 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6514 if test $ac_cv_sys_long_file_names = yes; then
6516 cat >>confdefs.h
<<\_ACEOF
6517 #define HAVE_LONG_FILE_NAMES 1
6523 #### Choose a window system.
6525 echo "$as_me:$LINENO: checking for X" >&5
6526 echo $ECHO_N "checking for X... $ECHO_C" >&6
6529 # Check whether --with-x or --without-x was given.
6530 if test "${with_x+set}" = set; then
6534 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6535 if test "x$with_x" = xno
; then
6536 # The user explicitly disabled X.
6539 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6540 # Both variables are already set.
6543 if test "${ac_cv_have_x+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 # One or both of the vars are not set, and there is no cached value.
6547 ac_x_includes
=no ac_x_libraries
=no
6549 if mkdir conftest.dir
; then
6551 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6552 cat >Imakefile
<<'_ACEOF'
6554 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6556 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6557 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6558 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6559 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6560 for ac_extension
in a so sl
; do
6561 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6562 test -f $ac_im_libdir/libX11.
$ac_extension; then
6563 ac_im_usrlibdir
=$ac_im_libdir; break
6566 # Screen out bogus values from the imake configuration. They are
6567 # bogus both because they are the default anyway, and because
6568 # using them would break gcc on systems where it needs fixed includes.
6569 case $ac_im_incroot in
6571 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6573 case $ac_im_usrlibdir in
6575 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6582 # Standard set of common directories for X headers.
6583 # Check X11 before X11Rn because it is often a symlink to the current release.
6595 /usr/local/X11/include
6596 /usr/local/X11R6/include
6597 /usr/local/X11R5/include
6598 /usr/local/X11R4/include
6600 /usr/local/include/X11
6601 /usr/local/include/X11R6
6602 /usr/local/include/X11R5
6603 /usr/local/include/X11R4
6607 /usr/XFree86/include/X11
6611 /usr/unsupported/include
6613 /usr/local/x11r5/include
6614 /usr/lpp/Xamples/include
6616 /usr/openwin/include
6617 /usr/openwin/share/include'
6619 if test "$ac_x_includes" = no
; then
6620 # Guess where to find include files, by looking for Intrinsic.h.
6621 # First, try using that file with no special directory specified.
6622 cat >conftest.
$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6626 cat confdefs.h
>>conftest.
$ac_ext
6627 cat >>conftest.
$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 #include <X11/Intrinsic.h>
6631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6632 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6634 grep -v '^ *+' conftest.er1
>conftest.err
6636 cat conftest.err
>&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } >/dev
/null
; then
6639 if test -s conftest.err
; then
6640 ac_cpp_err
=$ac_c_preproc_warn_flag
6647 if test -z "$ac_cpp_err"; then
6648 # We can compile using X headers with no special include directory.
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.
$ac_ext >&5
6654 for ac_dir
in $ac_x_header_dirs; do
6655 if test -r "$ac_dir/X11/Intrinsic.h"; then
6656 ac_x_includes
=$ac_dir
6661 rm -f conftest.err conftest.
$ac_ext
6662 fi # $ac_x_includes = no
6664 if test "$ac_x_libraries" = no
; then
6665 # Check for the libraries.
6666 # See if we find them without any special options.
6667 # Don't add to $LIBS permanently.
6670 cat >conftest.
$ac_ext <<_ACEOF
6671 #line $LINENO "configure"
6674 cat confdefs.h
>>conftest.
$ac_ext
6675 cat >>conftest.
$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <X11/Intrinsic.h>
6686 rm -f conftest.
$ac_objext conftest
$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } &&
6692 { ac_try
='test -s conftest$ac_exeext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6699 # We can link X programs with no special library path.
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.
$ac_ext >&5
6706 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6708 # Don't even attempt the hair of trying to link an X program!
6709 for ac_extension
in a so sl
; do
6710 if test -r $ac_dir/libXt.
$ac_extension; then
6711 ac_x_libraries
=$ac_dir
6717 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6718 fi # $ac_x_libraries = no
6720 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6721 # Didn't find X anywhere. Cache the known absence of X.
6722 ac_cv_have_x
="have_x=no"
6724 # Record where we found X for the cache.
6725 ac_cv_have_x
="have_x=yes \
6726 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6731 eval "$ac_cv_have_x"
6734 if test "$have_x" != yes; then
6735 echo "$as_me:$LINENO: result: $have_x" >&5
6736 echo "${ECHO_T}$have_x" >&6
6739 # If each of the values was on the command line, it overrides each guess.
6740 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6741 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6742 # Update the cache value to reflect the command line values.
6743 ac_cv_have_x
="have_x=yes \
6744 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6745 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6746 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6749 if test "$no_x" = yes; then
6755 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6756 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6757 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6758 x_default_search_path
=""
6759 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6761 ${x_library}/X11/%L/%T/%N%C%S:\
6762 ${x_library}/X11/%l/%T/%N%C%S:\
6763 ${x_library}/X11/%T/%N%C%S:\
6764 ${x_library}/X11/%L/%T/%N%S:\
6765 ${x_library}/X11/%l/%T/%N%S:\
6766 ${x_library}/X11/%T/%N%S"
6767 if test x
"${x_default_search_path}" = x
; then
6768 x_default_search_path
=${x_search_path}
6770 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6774 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6775 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6778 if test x
"${x_includes}" = x
; then
6779 bitmapdir
=/usr
/include
/X11
/bitmaps
6781 # accumulate include directories that have X11 bitmap subdirectories
6783 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6784 if test -d "${bmd}/X11/bitmaps"; then
6785 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6787 if test -d "${bmd}/bitmaps"; then
6788 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6791 if test ${bmd_acc} != "dummyval"; then
6792 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6796 case "${window_system}" in
6800 case "${with_x_toolkit}" in
6801 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6802 motif
) USE_X_TOOLKIT
=MOTIF
;;
6803 no
) USE_X_TOOLKIT
=none
;;
6804 * ) USE_X_TOOLKIT
=maybe
;;
6814 ### If we're using X11, we should use the X menu package.
6817 yes ) HAVE_MENUS
=yes ;;
6820 if test "${opsys}" = "hpux9"; then
6821 case "${x_libraries}" in
6823 opsysfile
="s/hpux9-x11r4.h"
6828 if test "${opsys}" = "hpux9shr"; then
6829 case "${x_libraries}" in
6831 opsysfile
="s/hpux9shxr4.h"
6836 ### Compute the unexec source name from the object name.
6837 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6839 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6840 # Assume not, until told otherwise.
6843 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6844 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6845 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.
$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6852 cat confdefs.h
>>conftest.
$ac_ext
6853 cat >>conftest.
$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char malloc_get_state (); below.
6857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6858 <limits.h> exists even on freestanding compilers. */
6860 # include <limits.h>
6862 # include <assert.h>
6864 /* Override any gcc2 internal prototype to avoid an error. */
6869 /* We use char because int might match the return type of a gcc2
6870 builtin and then its argument prototype would still apply. */
6871 char malloc_get_state ();
6872 /* The GNU C library defines this for functions which it implements
6873 to always fail with ENOSYS. Some functions are actually named
6874 something starting with __ and the normal name is an alias. */
6875 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6878 char (*f) () = malloc_get_state;
6887 return f != malloc_get_state;
6892 rm -f conftest.
$ac_objext conftest
$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try
='test -s conftest$ac_exeext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_func_malloc_get_state
=yes
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.
$ac_ext >&5
6909 ac_cv_func_malloc_get_state
=no
6911 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6913 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6914 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6915 if test $ac_cv_func_malloc_get_state = yes; then
6921 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6922 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6923 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 cat >conftest.
$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 /* System header to define __stub macros and hopefully few prototypes,
6934 which can conflict with char malloc_set_state (); below.
6935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6936 <limits.h> exists even on freestanding compilers. */
6938 # include <limits.h>
6940 # include <assert.h>
6942 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6949 char malloc_set_state ();
6950 /* The GNU C library defines this for functions which it implements
6951 to always fail with ENOSYS. Some functions are actually named
6952 something starting with __ and the normal name is an alias. */
6953 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6956 char (*f) () = malloc_set_state;
6965 return f != malloc_set_state;
6970 rm -f conftest.
$ac_objext conftest
$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try
='test -s conftest$ac_exeext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_cv_func_malloc_set_state
=yes
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.
$ac_ext >&5
6987 ac_cv_func_malloc_set_state
=no
6989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6991 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6992 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6993 if test $ac_cv_func_malloc_set_state = yes; then
6999 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7000 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7001 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 cat >conftest.
$ac_ext <<_ACEOF
7005 #line $LINENO "configure"
7008 cat confdefs.h
>>conftest.
$ac_ext
7009 cat >>conftest.
$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7011 extern void (* __after_morecore_hook)();
7015 __after_morecore_hook = 0
7020 rm -f conftest.
$ac_objext conftest
$ac_exeext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try
='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 emacs_cv_var___after_morecore_hook
=yes
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.
$ac_ext >&5
7037 emacs_cv_var___after_morecore_hook
=no
7039 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7041 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7042 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7043 if test $emacs_cv_var___after_morecore_hook = no
; then
7046 if test "${system_malloc}" = "yes"; then
7049 (The GNU allocators don't work with this system configuration.)"
7051 if test "$doug_lea_malloc" = "yes" ; then
7052 if test "$GNU_MALLOC" = yes ; then
7054 (Using Doug Lea's new malloc from the GNU C Library.)"
7057 cat >>confdefs.h
<<\_ACEOF
7058 #define DOUG_LEA_MALLOC 1
7063 if test x
"${REL_ALLOC}" = x
; then
7064 REL_ALLOC
=${GNU_MALLOC}
7070 for ac_header
in stdlib.h unistd.h
7072 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7074 echo "$as_me:$LINENO: checking for $ac_header" >&5
7075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7082 # Is the header compilable?
7083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7085 cat >conftest.
$ac_ext <<_ACEOF
7086 #line $LINENO "configure"
7089 cat confdefs.h
>>conftest.
$ac_ext
7090 cat >>conftest.
$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7093 #include <$ac_header>
7095 rm -f conftest.
$ac_objext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097 (eval $ac_compile) 2>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try
='test -s conftest.$ac_objext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 ac_header_compiler
=yes
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.
$ac_ext >&5
7112 ac_header_compiler
=no
7114 rm -f conftest.
$ac_objext conftest.
$ac_ext
7115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7116 echo "${ECHO_T}$ac_header_compiler" >&6
7118 # Is the header present?
7119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7121 cat >conftest.
$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7125 cat confdefs.h
>>conftest.
$ac_ext
7126 cat >>conftest.
$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #include <$ac_header>
7130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7131 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7133 grep -v '^ *+' conftest.er1
>conftest.err
7135 cat conftest.err
>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } >/dev
/null
; then
7138 if test -s conftest.err
; then
7139 ac_cpp_err
=$ac_c_preproc_warn_flag
7146 if test -z "$ac_cpp_err"; then
7147 ac_header_preproc
=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.
$ac_ext >&5
7152 ac_header_preproc
=no
7154 rm -f conftest.err conftest.
$ac_ext
7155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7156 echo "${ECHO_T}$ac_header_preproc" >&6
7158 # So? What about this header?
7159 case $ac_header_compiler:$ac_header_preproc in
7161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7167 ## ------------------------------------ ##
7168 ## Report this to bug-autoconf@gnu.org. ##
7169 ## ------------------------------------ ##
7172 sed "s/^/$as_me: WARNING: /" >&2
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7183 ## ------------------------------------ ##
7184 ## Report this to bug-autoconf@gnu.org. ##
7185 ## ------------------------------------ ##
7188 sed "s/^/$as_me: WARNING: /" >&2
7191 echo "$as_me:$LINENO: checking for $ac_header" >&5
7192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 eval "$as_ac_Header=$ac_header_preproc"
7198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7203 cat >>confdefs.h
<<_ACEOF
7204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7212 for ac_func
in getpagesize
7214 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7215 echo "$as_me:$LINENO: checking for $ac_func" >&5
7216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7217 if eval "test \"\${$as_ac_var+set}\" = set"; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 cat >conftest.
$ac_ext <<_ACEOF
7221 #line $LINENO "configure"
7224 cat confdefs.h
>>conftest.
$ac_ext
7225 cat >>conftest.
$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 /* System header to define __stub macros and hopefully few prototypes,
7228 which can conflict with char $ac_func (); below.
7229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7230 <limits.h> exists even on freestanding compilers. */
7232 # include <limits.h>
7234 # include <assert.h>
7236 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7244 /* The GNU C library defines this for functions which it implements
7245 to always fail with ENOSYS. Some functions are actually named
7246 something starting with __ and the normal name is an alias. */
7247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7250 char (*f) () = $ac_func;
7259 return f != $ac_func;
7264 rm -f conftest.
$ac_objext conftest
$ac_exeext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try
='test -s conftest$ac_exeext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 eval "$as_ac_var=yes"
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.
$ac_ext >&5
7281 eval "$as_ac_var=no"
7283 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7287 if test `eval echo '${'$as_ac_var'}'` = yes; then
7288 cat >>confdefs.h
<<_ACEOF
7289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7295 echo "$as_me:$LINENO: checking for working mmap" >&5
7296 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7297 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 if test "$cross_compiling" = yes; then
7301 ac_cv_func_mmap_fixed_mapped
=no
7303 cat >conftest.
$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7307 cat confdefs.h
>>conftest.
$ac_ext
7308 cat >>conftest.
$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7311 /* malloc might have been renamed as rpl_malloc. */
7314 /* Thanks to Mike Haertel and Jim Avera for this test.
7315 Here is a matrix of mmap possibilities:
7316 mmap private not fixed
7317 mmap private fixed at somewhere currently unmapped
7318 mmap private fixed at somewhere already mapped
7319 mmap shared not fixed
7320 mmap shared fixed at somewhere currently unmapped
7321 mmap shared fixed at somewhere already mapped
7322 For private mappings, we should verify that changes cannot be read()
7323 back from the file, nor mmap's back from the file at a different
7324 address. (There have been systems where private was not correctly
7325 implemented like the infamous i386 svr4.0, and systems where the
7326 VM page cache was not coherent with the file system buffer cache
7327 like early versions of FreeBSD and possibly contemporary NetBSD.)
7328 For shared mappings, we should conversely verify that changes get
7329 propagated back to all the places they're supposed to be.
7331 Grep wants private fixed already mapped.
7332 The main things grep needs to know about mmap are:
7333 * does it exist and is it safe to write into the mmap'd area
7334 * how to use it (BSD variants) */
7337 #include <sys/mman.h>
7339 #if !STDC_HEADERS && !HAVE_STDLIB_H
7343 /* This mess was copied from the GNU getpagesize.h. */
7344 #if !HAVE_GETPAGESIZE
7345 /* Assume that all systems that can run configure have sys/param.h. */
7346 # if !HAVE_SYS_PARAM_H
7347 # define HAVE_SYS_PARAM_H 1
7350 # ifdef _SC_PAGESIZE
7351 # define getpagesize() sysconf(_SC_PAGESIZE)
7352 # else /* no _SC_PAGESIZE */
7353 # if HAVE_SYS_PARAM_H
7354 # include <sys/param.h>
7355 # ifdef EXEC_PAGESIZE
7356 # define getpagesize() EXEC_PAGESIZE
7357 # else /* no EXEC_PAGESIZE */
7359 # define getpagesize() NBPG * CLSIZE
7362 # endif /* no CLSIZE */
7363 # else /* no NBPG */
7365 # define getpagesize() NBPC
7366 # else /* no NBPC */
7368 # define getpagesize() PAGESIZE
7369 # endif /* PAGESIZE */
7370 # endif /* no NBPC */
7371 # endif /* no NBPG */
7372 # endif /* no EXEC_PAGESIZE */
7373 # else /* no HAVE_SYS_PARAM_H */
7374 # define getpagesize() 8192 /* punt totally */
7375 # endif /* no HAVE_SYS_PARAM_H */
7376 # endif /* no _SC_PAGESIZE */
7378 #endif /* no HAVE_GETPAGESIZE */
7383 char *data, *data2, *data3;
7387 pagesize = getpagesize ();
7389 /* First, make a file with some known garbage in it. */
7390 data = (char *) malloc (pagesize);
7393 for (i = 0; i < pagesize; ++i)
7394 *(data + i) = rand ();
7396 fd = creat ("conftest.mmap", 0600);
7399 if (write (fd, data, pagesize) != pagesize)
7403 /* Next, try to mmap the file at a fixed address which already has
7404 something else allocated at it. If we can, also make sure that
7405 we see the same garbage. */
7406 fd = open ("conftest.mmap", O_RDWR);
7409 data2 = (char *) malloc (2 * pagesize);
7412 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7413 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7414 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7416 for (i = 0; i < pagesize; ++i)
7417 if (*(data + i) != *(data2 + i))
7420 /* Finally, make sure that changes to the mapped area do not
7421 percolate back to the file as seen by read(). (This is a bug on
7422 some variants of i386 svr4.0.) */
7423 for (i = 0; i < pagesize; ++i)
7424 *(data2 + i) = *(data2 + i) + 1;
7425 data3 = (char *) malloc (pagesize);
7428 if (read (fd, data3, pagesize) != pagesize)
7430 for (i = 0; i < pagesize; ++i)
7431 if (*(data + i) != *(data3 + i))
7437 rm -f conftest
$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_cv_func_mmap_fixed_mapped
=yes
7450 echo "$as_me: program exited with status $ac_status" >&5
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.
$ac_ext >&5
7455 ac_cv_func_mmap_fixed_mapped
=no
7457 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7460 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7461 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7462 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7464 cat >>confdefs.h
<<\_ACEOF
7471 if test $use_mmap_for_buffers = yes; then
7475 LIBS
="$libsrc_libs $LIBS"
7478 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7479 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7480 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 ac_check_lib_save_LIBS
=$LIBS
7485 cat >conftest.
$ac_ext <<_ACEOF
7486 #line $LINENO "configure"
7489 cat confdefs.h
>>conftest.
$ac_ext
7490 cat >>conftest.
$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 /* Override any gcc2 internal prototype to avoid an error. */
7497 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7508 rm -f conftest.
$ac_objext conftest
$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try
='test -s conftest$ac_exeext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_lib_dnet_dnet_ntoa
=yes
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.
$ac_ext >&5
7525 ac_cv_lib_dnet_dnet_ntoa
=no
7527 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7528 LIBS
=$ac_check_lib_save_LIBS
7530 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7531 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7532 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7533 cat >>confdefs.h
<<_ACEOF
7534 #define HAVE_LIBDNET 1
7542 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7543 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7544 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 ac_check_lib_save_LIBS
=$LIBS
7549 cat >conftest.
$ac_ext <<_ACEOF
7550 #line $LINENO "configure"
7553 cat confdefs.h
>>conftest.
$ac_ext
7554 cat >>conftest.
$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7566 rm -f conftest.
$ac_objext conftest
$ac_exeext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try
='test -s conftest$ac_exeext'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 ac_cv_lib_Xbsd_main
=yes
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.
$ac_ext >&5
7583 ac_cv_lib_Xbsd_main
=no
7585 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7586 LIBS
=$ac_check_lib_save_LIBS
7588 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7589 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7590 if test $ac_cv_lib_Xbsd_main = yes; then
7591 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7596 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7597 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7598 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_check_lib_save_LIBS
=$LIBS
7602 LIBS
="-lpthreads $LIBS"
7603 cat >conftest.
$ac_ext <<_ACEOF
7604 #line $LINENO "configure"
7607 cat confdefs.h
>>conftest.
$ac_ext
7608 cat >>conftest.
$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7611 /* Override any gcc2 internal prototype to avoid an error. */
7615 /* We use char because int might match the return type of a gcc2
7616 builtin and then its argument prototype would still apply. */
7626 rm -f conftest.
$ac_objext conftest
$ac_exeext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7628 (eval $ac_link) 2>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try
='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_cv_lib_pthreads_cma_open
=yes
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.
$ac_ext >&5
7643 ac_cv_lib_pthreads_cma_open
=no
7645 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7646 LIBS
=$ac_check_lib_save_LIBS
7648 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7649 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7650 if test $ac_cv_lib_pthreads_cma_open = yes; then
7651 cat >>confdefs.h
<<_ACEOF
7652 #define HAVE_LIBPTHREADS 1
7655 LIBS
="-lpthreads $LIBS"
7660 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7661 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7662 if test -d /usr
/X386
/include
; then
7664 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7668 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7669 echo "${ECHO_T}$HAVE_XFREE386" >&6
7671 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7672 # used for the tests that follow. We set them back to REAL_CFLAGS and
7673 # REAL_CPPFLAGS later on.
7675 REAL_CPPFLAGS
="$CPPFLAGS"
7677 if test "${HAVE_X11}" = "yes"; then
7678 DEFS
="$C_SWITCH_X_SITE $DEFS"
7679 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7681 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7682 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7684 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7685 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7686 # but it's more convenient here to set LD_RUN_PATH
7687 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7688 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7689 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7693 if test "${opsys}" = "gnu-linux"; then
7694 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7695 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7696 cat >conftest.
$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7700 cat confdefs.h
>>conftest.
$ac_ext
7701 cat >>conftest.
$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7707 XOpenDisplay ("foo");
7712 rm -f conftest.
$ac_objext conftest
$ac_exeext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714 (eval $ac_link) 2>&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try
='test -s conftest$ac_exeext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 xlinux_first_failure
=no
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.
$ac_ext >&5
7729 xlinux_first_failure
=yes
7731 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7732 if test "${xlinux_first_failure}" = "yes"; then
7733 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7734 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7735 OLD_CPPFLAGS
="$CPPFLAGS"
7737 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7738 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7739 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7740 LIBS
="$LIBS -b i486-linuxaout"
7741 cat >conftest.
$ac_ext <<_ACEOF
7742 #line $LINENO "configure"
7745 cat confdefs.h
>>conftest.
$ac_ext
7746 cat >>conftest.
$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7752 XOpenDisplay ("foo");
7757 rm -f conftest.
$ac_objext conftest
$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try
='test -s conftest$ac_exeext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 xlinux_second_failure
=no
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.
$ac_ext >&5
7774 xlinux_second_failure
=yes
7776 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7777 if test "${xlinux_second_failure}" = "yes"; then
7778 # If we get the same failure with -b, there is no use adding -b.
7779 # So take it out. This plays safe.
7780 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7781 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7782 CPPFLAGS
="$OLD_CPPFLAGS"
7784 echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7787 echo "$as_me:$LINENO: result: yes" >&5
7788 echo "${ECHO_T}yes" >&6
7791 echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6
7796 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7797 # header files included from there.
7798 echo "$as_me:$LINENO: checking for Xkb" >&5
7799 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7800 cat >conftest.
$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7804 cat confdefs.h
>>conftest.
$ac_ext
7805 cat >>conftest.
$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 #include <X11/Xlib.h>
7808 #include <X11/XKBlib.h>
7812 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7817 rm -f conftest.
$ac_objext conftest
$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
7823 { ac_try
='test -s conftest$ac_exeext'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.
$ac_ext >&5
7836 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7837 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7838 echo "${ECHO_T}$emacs_xkb" >&6
7839 if test $emacs_xkb = yes; then
7841 cat >>confdefs.h
<<\_ACEOF
7842 #define HAVE_XKBGETKEYBOARD 1
7851 for ac_func
in XrmSetDatabase XScreenResourceString \
7852 XScreenNumberOfScreen XSetWMProtocols
7854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7855 echo "$as_me:$LINENO: checking for $ac_func" >&5
7856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7857 if eval "test \"\${$as_ac_var+set}\" = set"; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 cat >conftest.
$ac_ext <<_ACEOF
7861 #line $LINENO "configure"
7864 cat confdefs.h
>>conftest.
$ac_ext
7865 cat >>conftest.
$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 /* System header to define __stub macros and hopefully few prototypes,
7868 which can conflict with char $ac_func (); below.
7869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7870 <limits.h> exists even on freestanding compilers. */
7872 # include <limits.h>
7874 # include <assert.h>
7876 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7884 /* The GNU C library defines this for functions which it implements
7885 to always fail with ENOSYS. Some functions are actually named
7886 something starting with __ and the normal name is an alias. */
7887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7890 char (*f) () = $ac_func;
7899 return f != $ac_func;
7904 rm -f conftest.
$ac_objext conftest
$ac_exeext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7906 (eval $ac_link) 2>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try
='test -s conftest$ac_exeext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 eval "$as_ac_var=yes"
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.
$ac_ext >&5
7921 eval "$as_ac_var=no"
7923 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7927 if test `eval echo '${'$as_ac_var'}'` = yes; then
7928 cat >>confdefs.h
<<_ACEOF
7929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7937 if test "${window_system}" = "x11"; then
7938 echo "$as_me:$LINENO: checking X11 version 6" >&5
7939 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7940 if test "${emacs_cv_x11_version_6+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7943 cat >conftest.
$ac_ext <<_ACEOF
7944 #line $LINENO "configure"
7947 cat confdefs.h
>>conftest.
$ac_ext
7948 cat >>conftest.
$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7950 #include <X11/Xlib.h>
7954 #if XlibSpecificationRelease < 6
7962 rm -f conftest.
$ac_objext conftest
$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try
='test -s conftest$ac_exeext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 emacs_cv_x11_version_6
=yes
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.
$ac_ext >&5
7979 emacs_cv_x11_version_6
=no
7981 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7984 if test $emacs_cv_x11_version_6 = yes; then
7985 echo "$as_me:$LINENO: result: 6 or newer" >&5
7986 echo "${ECHO_T}6 or newer" >&6
7988 cat >>confdefs.h
<<\_ACEOF
7989 #define HAVE_X11R6 1
7993 echo "$as_me:$LINENO: result: before 6" >&5
7994 echo "${ECHO_T}before 6" >&6
7998 if test "${window_system}" = "x11"; then
7999 echo "$as_me:$LINENO: checking X11 version 5" >&5
8000 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8001 if test "${emacs_cv_x11_version_5+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 cat >conftest.
$ac_ext <<_ACEOF
8005 #line $LINENO "configure"
8008 cat confdefs.h
>>conftest.
$ac_ext
8009 cat >>conftest.
$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 #include <X11/Xlib.h>
8015 #if XlibSpecificationRelease < 5
8023 rm -f conftest.
$ac_objext conftest
$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025 (eval $ac_link) 2>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try
='test -s conftest$ac_exeext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 emacs_cv_x11_version_5
=yes
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.
$ac_ext >&5
8040 emacs_cv_x11_version_5
=no
8042 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8045 if test $emacs_cv_x11_version_5 = yes; then
8046 echo "$as_me:$LINENO: result: 5 or newer" >&5
8047 echo "${ECHO_T}5 or newer" >&6
8050 cat >>confdefs.h
<<\_ACEOF
8051 #define HAVE_X11R5 1
8056 echo "$as_me:$LINENO: result: before 5" >&5
8057 echo "${ECHO_T}before 5" >&6
8061 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8062 if test x
"${HAVE_X11R5}" = xyes
; then
8063 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8064 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8065 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 cat >conftest.
$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8072 cat confdefs.h
>>conftest.
$ac_ext
8073 cat >>conftest.
$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8076 #include <X11/Intrinsic.h>
8077 #include <X11/Xaw/Simple.h>
8086 rm -f conftest.
$ac_objext conftest
$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try
='test -s conftest$ac_exeext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 emacs_cv_x11_version_5_with_xaw
=yes
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.
$ac_ext >&5
8103 emacs_cv_x11_version_5_with_xaw
=no
8105 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8108 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8109 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8110 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8113 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8114 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8122 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8124 if test "${USE_X_TOOLKIT}" != "none"; then
8125 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8126 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8127 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 cat >conftest.
$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8134 cat confdefs.h
>>conftest.
$ac_ext
8135 cat >>conftest.
$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 #include <X11/Intrinsic.h>
8141 #if XtSpecificationRelease < 6
8149 rm -f conftest.
$ac_objext conftest
$ac_exeext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8151 (eval $ac_link) 2>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try
='test -s conftest$ac_exeext'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 emacs_cv_x11_toolkit_version_6
=yes
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.
$ac_ext >&5
8166 emacs_cv_x11_toolkit_version_6
=no
8168 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8171 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8172 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8173 echo "$as_me:$LINENO: result: 6 or newer" >&5
8174 echo "${ECHO_T}6 or newer" >&6
8176 cat >>confdefs.h
<<\_ACEOF
8177 #define HAVE_X11XTR6 1
8181 echo "$as_me:$LINENO: result: before 6" >&5
8182 echo "${ECHO_T}before 6" >&6
8186 if test x
$HAVE_X11XTR6 = xyes
; then
8187 LIBS
="-lXt -lSM -lICE $LIBS"
8192 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8193 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8194 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 ac_check_lib_save_LIBS
=$LIBS
8199 cat >conftest.
$ac_ext <<_ACEOF
8200 #line $LINENO "configure"
8203 cat confdefs.h
>>conftest.
$ac_ext
8204 cat >>conftest.
$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8207 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8213 char XmuConvertStandardSelection ();
8217 XmuConvertStandardSelection ();
8222 rm -f conftest.
$ac_objext conftest
$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try
='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.
$ac_ext >&5
8239 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8241 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8242 LIBS
=$ac_check_lib_save_LIBS
8244 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8245 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8246 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8247 cat >>confdefs.h
<<_ACEOF
8248 #define HAVE_LIBXMU 1
8255 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8258 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8259 if test "${HAVE_X11}" = "yes"; then
8260 if test "${USE_X_TOOLKIT}" != "none"; then
8262 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8263 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8264 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 ac_check_lib_save_LIBS
=$LIBS
8269 cat >conftest.
$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8277 /* Override any gcc2 internal prototype to avoid an error. */
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8283 char XShapeQueryExtension ();
8287 XShapeQueryExtension ();
8292 rm -f conftest.
$ac_objext conftest
$ac_exeext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8294 (eval $ac_link) 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try
='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.
$ac_ext >&5
8309 ac_cv_lib_Xext_XShapeQueryExtension
=no
8311 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8312 LIBS
=$ac_check_lib_save_LIBS
8314 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8315 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8316 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8317 cat >>confdefs.h
<<_ACEOF
8318 #define HAVE_LIBXEXT 1
8328 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8329 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8330 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8331 if test "${emacs_cv_lesstif+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 # We put this in CFLAGS temporarily to precede other -I options
8335 # that might be in CFLAGS temporarily.
8336 # We put this in CPPFLAGS where it precedes the other -I options.
8337 OLD_CPPFLAGS
=$CPPFLAGS
8339 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8340 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8341 cat >conftest.
$ac_ext <<_ACEOF
8342 #line $LINENO "configure"
8345 cat confdefs.h
>>conftest.
$ac_ext
8346 cat >>conftest.
$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8357 rm -f conftest.
$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try
='test -s conftest.$ac_objext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 emacs_cv_lesstif
=yes
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.
$ac_ext >&5
8376 rm -f conftest.
$ac_objext conftest.
$ac_ext
8378 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8379 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8380 if test $emacs_cv_lesstif = yes; then
8381 # Make sure this -I option remains in CPPFLAGS after it is set
8382 # back to REAL_CPPFLAGS.
8383 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8384 # have those other -I options anyway. Ultimately, having this
8385 # directory ultimately in CPPFLAGS will be enough.
8386 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8387 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8390 CPPFLAGS
=$OLD_CPPFLAGS
8392 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8393 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8394 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 cat >conftest.
$ac_ext <<_ACEOF
8398 #line $LINENO "configure"
8401 cat confdefs.h
>>conftest.
$ac_ext
8402 cat >>conftest.
$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8408 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8411 Motif version prior to 2.1.
8417 rm -f conftest.
$ac_objext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8419 (eval $ac_compile) 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try
='test -s conftest.$ac_objext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; }; then
8429 emacs_cv_motif_version_2_1
=yes
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.
$ac_ext >&5
8434 emacs_cv_motif_version_2_1
=no
8436 rm -f conftest.
$ac_objext conftest.
$ac_ext
8438 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8439 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8440 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8441 if test $emacs_cv_motif_version_2_1 = yes; then
8444 cat >>confdefs.h
<<\_ACEOF
8445 #define HAVE_MOTIF_2_1 1
8448 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8449 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8450 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 ac_check_lib_save_LIBS
=$LIBS
8455 cat >conftest.
$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8459 cat confdefs.h
>>conftest.
$ac_ext
8460 cat >>conftest.
$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8463 /* Override any gcc2 internal prototype to avoid an error. */
8467 /* We use char because int might match the return type of a gcc2
8468 builtin and then its argument prototype would still apply. */
8469 char XpCreateContext ();
8478 rm -f conftest.
$ac_objext conftest
$ac_exeext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8480 (eval $ac_link) 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try
='test -s conftest$ac_exeext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_cv_lib_Xp_XpCreateContext
=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.
$ac_ext >&5
8495 ac_cv_lib_Xp_XpCreateContext
=no
8497 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8498 LIBS
=$ac_check_lib_save_LIBS
8500 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8501 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8502 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8506 if test ${HAVE_LIBXP} = yes; then
8508 cat >>confdefs.h
<<\_ACEOF
8509 #define HAVE_LIBXP 1
8516 ### Is -lXaw3d available?
8518 if test "${HAVE_X11}" = "yes"; then
8519 if test "${USE_X_TOOLKIT}" != "none"; then
8520 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8521 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8522 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 cat >conftest.
$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8529 cat confdefs.h
>>conftest.
$ac_ext
8530 cat >>conftest.
$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <X11/Xaw3d/Scrollbar.h>
8534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8535 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8537 grep -v '^ *+' conftest.er1
>conftest.err
8539 cat conftest.err
>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } >/dev
/null
; then
8542 if test -s conftest.err
; then
8543 ac_cpp_err
=$ac_c_preproc_warn_flag
8550 if test -z "$ac_cpp_err"; then
8551 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.
$ac_ext >&5
8556 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8558 rm -f conftest.err conftest.
$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8561 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8562 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8563 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8564 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8565 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 ac_check_lib_save_LIBS
=$LIBS
8569 LIBS
="-lXaw3d $LIBS"
8570 cat >conftest.
$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8574 cat confdefs.h
>>conftest.
$ac_ext
8575 cat >>conftest.
$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8578 /* Override any gcc2 internal prototype to avoid an error. */
8582 /* We use char because int might match the return type of a gcc2
8583 builtin and then its argument prototype would still apply. */
8584 char XawScrollbarSetThumb ();
8588 XawScrollbarSetThumb ();
8593 rm -f conftest.
$ac_objext conftest
$ac_exeext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8595 (eval $ac_link) 2>&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } &&
8599 { ac_try
='test -s conftest$ac_exeext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.
$ac_ext >&5
8610 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8613 LIBS
=$ac_check_lib_save_LIBS
8615 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8616 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8617 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8624 if test "${HAVE_XAW3D}" = "yes"; then
8626 cat >>confdefs.h
<<\_ACEOF
8627 #define HAVE_XAW3D 1
8636 USE_TOOLKIT_SCROLL_BARS
=no
8637 if test "${with_toolkit_scroll_bars}" != "no"; then
8638 if test "${USE_X_TOOLKIT}" != "none"; then
8639 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8640 cat >>confdefs.h
<<\_ACEOF
8641 #define USE_TOOLKIT_SCROLL_BARS 1
8645 USE_TOOLKIT_SCROLL_BARS
=yes
8646 elif test "${HAVE_XAW3D}" = "yes"; then
8647 cat >>confdefs.h
<<\_ACEOF
8648 #define USE_TOOLKIT_SCROLL_BARS 1
8651 USE_TOOLKIT_SCROLL_BARS
=yes
8657 if test "${with_xim}" != "no"; then
8659 cat >>confdefs.h
<<\_ACEOF
8665 ### Use -lXpm if available, unless `--with-xpm=no'.
8667 if test "${HAVE_X11}" = "yes"; then
8668 if test "${with_xpm}" != "no"; then
8669 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8670 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8671 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8672 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8676 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8678 # Is the header compilable?
8679 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8680 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8681 cat >conftest.
$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8685 cat confdefs.h
>>conftest.
$ac_ext
8686 cat >>conftest.
$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 $ac_includes_default
8689 #include <X11/xpm.h>
8691 rm -f conftest.
$ac_objext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8693 (eval $ac_compile) 2>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try
='test -s conftest.$ac_objext'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8703 ac_header_compiler
=yes
8705 echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.
$ac_ext >&5
8708 ac_header_compiler
=no
8710 rm -f conftest.
$ac_objext conftest.
$ac_ext
8711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8712 echo "${ECHO_T}$ac_header_compiler" >&6
8714 # Is the header present?
8715 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8716 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8717 cat >conftest.
$ac_ext <<_ACEOF
8718 #line $LINENO "configure"
8721 cat confdefs.h
>>conftest.
$ac_ext
8722 cat >>conftest.
$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8724 #include <X11/xpm.h>
8726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8727 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8729 grep -v '^ *+' conftest.er1
>conftest.err
8731 cat conftest.err
>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } >/dev
/null
; then
8734 if test -s conftest.err
; then
8735 ac_cpp_err
=$ac_c_preproc_warn_flag
8742 if test -z "$ac_cpp_err"; then
8743 ac_header_preproc
=yes
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.
$ac_ext >&5
8748 ac_header_preproc
=no
8750 rm -f conftest.err conftest.
$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8752 echo "${ECHO_T}$ac_header_preproc" >&6
8754 # So? What about this header?
8755 case $ac_header_compiler:$ac_header_preproc in
8757 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8758 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8760 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8763 ## ------------------------------------ ##
8764 ## Report this to bug-autoconf@gnu.org. ##
8765 ## ------------------------------------ ##
8768 sed "s/^/$as_me: WARNING: /" >&2
8771 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8776 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8779 ## ------------------------------------ ##
8780 ## Report this to bug-autoconf@gnu.org. ##
8781 ## ------------------------------------ ##
8784 sed "s/^/$as_me: WARNING: /" >&2
8787 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8788 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8789 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8794 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8795 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8798 if test $ac_cv_header_X11_xpm_h = yes; then
8799 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8800 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8801 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 ac_check_lib_save_LIBS
=$LIBS
8805 LIBS
="-lXpm -lX11 $LIBS"
8806 cat >conftest.
$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8810 cat confdefs.h
>>conftest.
$ac_ext
8811 cat >>conftest.
$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8814 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8820 char XpmReadFileToPixmap ();
8824 XpmReadFileToPixmap ();
8829 rm -f conftest.
$ac_objext conftest
$ac_exeext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831 (eval $ac_link) 2>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try
='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.
$ac_ext >&5
8846 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8848 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8849 LIBS
=$ac_check_lib_save_LIBS
8851 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8852 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8853 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8860 if test "${HAVE_XPM}" = "yes"; then
8861 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8862 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8863 cat >conftest.
$ac_ext <<_ACEOF
8864 #line $LINENO "configure"
8867 cat confdefs.h
>>conftest.
$ac_ext
8868 cat >>conftest.
$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 #include "X11/xpm.h"
8871 #ifndef XpmReturnAllocPixels
8872 no_return_alloc_pixels
8876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8877 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
8885 if test "${HAVE_XPM}" = "yes"; then
8886 echo "$as_me:$LINENO: result: yes" >&5
8887 echo "${ECHO_T}yes" >&6
8889 echo "$as_me:$LINENO: result: no" >&5
8890 echo "${ECHO_T}no" >&6
8895 if test "${HAVE_XPM}" = "yes"; then
8897 cat >>confdefs.h
<<\_ACEOF
8904 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8906 if test "${HAVE_X11}" = "yes"; then
8907 if test "${with_jpeg}" != "no"; then
8908 if test "${ac_cv_header_jerror_h+set}" = set; then
8909 echo "$as_me:$LINENO: checking for jerror.h" >&5
8910 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8911 if test "${ac_cv_header_jerror_h+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8915 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8917 # Is the header compilable?
8918 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8919 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8920 cat >conftest.
$ac_ext <<_ACEOF
8921 #line $LINENO "configure"
8924 cat confdefs.h
>>conftest.
$ac_ext
8925 cat >>conftest.
$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927 $ac_includes_default
8930 rm -f conftest.
$ac_objext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try
='test -s conftest.$ac_objext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_header_compiler
=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.
$ac_ext >&5
8947 ac_header_compiler
=no
8949 rm -f conftest.
$ac_objext conftest.
$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8951 echo "${ECHO_T}$ac_header_compiler" >&6
8953 # Is the header present?
8954 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8955 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8956 cat >conftest.
$ac_ext <<_ACEOF
8957 #line $LINENO "configure"
8960 cat confdefs.h
>>conftest.
$ac_ext
8961 cat >>conftest.
$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8966 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8968 grep -v '^ *+' conftest.er1
>conftest.err
8970 cat conftest.err
>&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } >/dev
/null
; then
8973 if test -s conftest.err
; then
8974 ac_cpp_err
=$ac_c_preproc_warn_flag
8981 if test -z "$ac_cpp_err"; then
8982 ac_header_preproc
=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.
$ac_ext >&5
8987 ac_header_preproc
=no
8989 rm -f conftest.err conftest.
$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8991 echo "${ECHO_T}$ac_header_preproc" >&6
8993 # So? What about this header?
8994 case $ac_header_compiler:$ac_header_preproc in
8996 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8997 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8999 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9002 ## ------------------------------------ ##
9003 ## Report this to bug-autoconf@gnu.org. ##
9004 ## ------------------------------------ ##
9007 sed "s/^/$as_me: WARNING: /" >&2
9010 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9011 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9013 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9015 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9018 ## ------------------------------------ ##
9019 ## Report this to bug-autoconf@gnu.org. ##
9020 ## ------------------------------------ ##
9023 sed "s/^/$as_me: WARNING: /" >&2
9026 echo "$as_me:$LINENO: checking for jerror.h" >&5
9027 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9028 if test "${ac_cv_header_jerror_h+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 ac_cv_header_jerror_h
=$ac_header_preproc
9033 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9034 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9037 if test $ac_cv_header_jerror_h = yes; then
9038 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9039 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9040 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 ac_check_lib_save_LIBS
=$LIBS
9045 cat >conftest.
$ac_ext <<_ACEOF
9046 #line $LINENO "configure"
9049 cat confdefs.h
>>conftest.
$ac_ext
9050 cat >>conftest.
$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9053 /* Override any gcc2 internal prototype to avoid an error. */
9057 /* We use char because int might match the return type of a gcc2
9058 builtin and then its argument prototype would still apply. */
9059 char jpeg_destroy_compress ();
9063 jpeg_destroy_compress ();
9068 rm -f conftest.
$ac_objext conftest
$ac_exeext
9069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9070 (eval $ac_link) 2>&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try
='test -s conftest$ac_exeext'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.
$ac_ext >&5
9085 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9087 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9088 LIBS
=$ac_check_lib_save_LIBS
9090 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9091 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9092 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9102 if test "${HAVE_JPEG}" = "yes"; then
9103 cat >>confdefs.h
<<\_ACEOF
9107 cat >conftest.
$ac_ext <<_ACEOF
9108 #line $LINENO "configure"
9111 cat confdefs.h
>>conftest.
$ac_ext
9112 cat >>conftest.
$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #include <jpeglib.h>
9115 version=JPEG_LIB_VERSION
9118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9119 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9120 cat >>confdefs.h
<<\_ACEOF
9125 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9126 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9134 ### Use -lpng if available, unless `--with-png=no'.
9136 if test "${HAVE_X11}" = "yes"; then
9137 if test "${with_png}" != "no"; then
9138 if test "${ac_cv_header_png_h+set}" = set; then
9139 echo "$as_me:$LINENO: checking for png.h" >&5
9140 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9141 if test "${ac_cv_header_png_h+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9145 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9147 # Is the header compilable?
9148 echo "$as_me:$LINENO: checking png.h usability" >&5
9149 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9150 cat >conftest.
$ac_ext <<_ACEOF
9151 #line $LINENO "configure"
9154 cat confdefs.h
>>conftest.
$ac_ext
9155 cat >>conftest.
$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 $ac_includes_default
9160 rm -f conftest.
$ac_objext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162 (eval $ac_compile) 2>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try
='test -s conftest.$ac_objext'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 ac_header_compiler
=yes
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.
$ac_ext >&5
9177 ac_header_compiler
=no
9179 rm -f conftest.
$ac_objext conftest.
$ac_ext
9180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9181 echo "${ECHO_T}$ac_header_compiler" >&6
9183 # Is the header present?
9184 echo "$as_me:$LINENO: checking png.h presence" >&5
9185 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9186 cat >conftest.
$ac_ext <<_ACEOF
9187 #line $LINENO "configure"
9190 cat confdefs.h
>>conftest.
$ac_ext
9191 cat >>conftest.
$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9196 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9198 grep -v '^ *+' conftest.er1
>conftest.err
9200 cat conftest.err
>&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } >/dev
/null
; then
9203 if test -s conftest.err
; then
9204 ac_cpp_err
=$ac_c_preproc_warn_flag
9211 if test -z "$ac_cpp_err"; then
9212 ac_header_preproc
=yes
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.
$ac_ext >&5
9217 ac_header_preproc
=no
9219 rm -f conftest.err conftest.
$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9221 echo "${ECHO_T}$ac_header_preproc" >&6
9223 # So? What about this header?
9224 case $ac_header_compiler:$ac_header_preproc in
9226 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9227 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9228 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9229 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9232 ## ------------------------------------ ##
9233 ## Report this to bug-autoconf@gnu.org. ##
9234 ## ------------------------------------ ##
9237 sed "s/^/$as_me: WARNING: /" >&2
9240 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9241 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9243 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9245 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9248 ## ------------------------------------ ##
9249 ## Report this to bug-autoconf@gnu.org. ##
9250 ## ------------------------------------ ##
9253 sed "s/^/$as_me: WARNING: /" >&2
9256 echo "$as_me:$LINENO: checking for png.h" >&5
9257 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9258 if test "${ac_cv_header_png_h+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 ac_cv_header_png_h
=$ac_header_preproc
9263 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9264 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9267 if test $ac_cv_header_png_h = yes; then
9268 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9269 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9270 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 ac_check_lib_save_LIBS
=$LIBS
9274 LIBS
="-lpng -lz -lm $LIBS"
9275 cat >conftest.
$ac_ext <<_ACEOF
9276 #line $LINENO "configure"
9279 cat confdefs.h
>>conftest.
$ac_ext
9280 cat >>conftest.
$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9283 /* Override any gcc2 internal prototype to avoid an error. */
9287 /* We use char because int might match the return type of a gcc2
9288 builtin and then its argument prototype would still apply. */
9289 char png_get_channels ();
9293 png_get_channels ();
9298 rm -f conftest.
$ac_objext conftest
$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300 (eval $ac_link) 2>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try
='test -s conftest$ac_exeext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_cv_lib_png_png_get_channels
=yes
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.
$ac_ext >&5
9315 ac_cv_lib_png_png_get_channels
=no
9317 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9318 LIBS
=$ac_check_lib_save_LIBS
9320 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9321 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9322 if test $ac_cv_lib_png_png_get_channels = yes; then
9331 if test "${HAVE_PNG}" = "yes"; then
9333 cat >>confdefs.h
<<\_ACEOF
9340 ### Use -ltiff if available, unless `--with-tiff=no'.
9342 if test "${HAVE_X11}" = "yes"; then
9343 if test "${with_tiff}" != "no"; then
9344 if test "${ac_cv_header_tiffio_h+set}" = set; then
9345 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9346 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9347 if test "${ac_cv_header_tiffio_h+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9351 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9353 # Is the header compilable?
9354 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9355 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9356 cat >conftest.
$ac_ext <<_ACEOF
9357 #line $LINENO "configure"
9360 cat confdefs.h
>>conftest.
$ac_ext
9361 cat >>conftest.
$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 $ac_includes_default
9366 rm -f conftest.
$ac_objext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9368 (eval $ac_compile) 2>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try
='test -s conftest.$ac_objext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_header_compiler
=yes
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.
$ac_ext >&5
9383 ac_header_compiler
=no
9385 rm -f conftest.
$ac_objext conftest.
$ac_ext
9386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9387 echo "${ECHO_T}$ac_header_compiler" >&6
9389 # Is the header present?
9390 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9391 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9392 cat >conftest.
$ac_ext <<_ACEOF
9393 #line $LINENO "configure"
9396 cat confdefs.h
>>conftest.
$ac_ext
9397 cat >>conftest.
$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9404 grep -v '^ *+' conftest.er1
>conftest.err
9406 cat conftest.err
>&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } >/dev
/null
; then
9409 if test -s conftest.err
; then
9410 ac_cpp_err
=$ac_c_preproc_warn_flag
9417 if test -z "$ac_cpp_err"; then
9418 ac_header_preproc
=yes
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.
$ac_ext >&5
9423 ac_header_preproc
=no
9425 rm -f conftest.err conftest.
$ac_ext
9426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9427 echo "${ECHO_T}$ac_header_preproc" >&6
9429 # So? What about this header?
9430 case $ac_header_compiler:$ac_header_preproc in
9432 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9433 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9434 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9435 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9438 ## ------------------------------------ ##
9439 ## Report this to bug-autoconf@gnu.org. ##
9440 ## ------------------------------------ ##
9443 sed "s/^/$as_me: WARNING: /" >&2
9446 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9447 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9449 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9451 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9454 ## ------------------------------------ ##
9455 ## Report this to bug-autoconf@gnu.org. ##
9456 ## ------------------------------------ ##
9459 sed "s/^/$as_me: WARNING: /" >&2
9462 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9463 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9464 if test "${ac_cv_header_tiffio_h+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 ac_cv_header_tiffio_h
=$ac_header_preproc
9469 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9470 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9473 if test $ac_cv_header_tiffio_h = yes; then
9475 # At least one tiff package requires the jpeg library.
9476 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9477 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9478 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9479 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 ac_check_lib_save_LIBS
=$LIBS
9483 LIBS
="-ltiff $tifflibs $LIBS"
9484 cat >conftest.
$ac_ext <<_ACEOF
9485 #line $LINENO "configure"
9488 cat confdefs.h
>>conftest.
$ac_ext
9489 cat >>conftest.
$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9492 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char TIFFGetVersion ();
9507 rm -f conftest.
$ac_objext conftest
$ac_exeext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9509 (eval $ac_link) 2>&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try
='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 ac_cv_lib_tiff_TIFFGetVersion
=yes
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.
$ac_ext >&5
9524 ac_cv_lib_tiff_TIFFGetVersion
=no
9526 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9527 LIBS
=$ac_check_lib_save_LIBS
9529 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9530 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9531 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9540 if test "${HAVE_TIFF}" = "yes"; then
9542 cat >>confdefs.h
<<\_ACEOF
9549 ### Use -lgif if available, unless `--with-gif=no'.
9551 if test "${HAVE_X11}" = "yes"; then
9552 if test "${with_gif}" != "no"; then
9553 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9554 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9555 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9556 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9560 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9562 # Is the header compilable?
9563 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9564 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9565 cat >conftest.
$ac_ext <<_ACEOF
9566 #line $LINENO "configure"
9569 cat confdefs.h
>>conftest.
$ac_ext
9570 cat >>conftest.
$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 $ac_includes_default
9573 #include <gif_lib.h>
9575 rm -f conftest.
$ac_objext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9577 (eval $ac_compile) 2>&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try
='test -s conftest.$ac_objext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_header_compiler
=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.
$ac_ext >&5
9592 ac_header_compiler
=no
9594 rm -f conftest.
$ac_objext conftest.
$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9596 echo "${ECHO_T}$ac_header_compiler" >&6
9598 # Is the header present?
9599 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9600 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9601 cat >conftest.
$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9605 cat confdefs.h
>>conftest.
$ac_ext
9606 cat >>conftest.
$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 #include <gif_lib.h>
9610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9611 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9613 grep -v '^ *+' conftest.er1
>conftest.err
9615 cat conftest.err
>&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } >/dev
/null
; then
9618 if test -s conftest.err
; then
9619 ac_cpp_err
=$ac_c_preproc_warn_flag
9626 if test -z "$ac_cpp_err"; then
9627 ac_header_preproc
=yes
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.
$ac_ext >&5
9632 ac_header_preproc
=no
9634 rm -f conftest.err conftest.
$ac_ext
9635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9636 echo "${ECHO_T}$ac_header_preproc" >&6
9638 # So? What about this header?
9639 case $ac_header_compiler:$ac_header_preproc in
9641 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9642 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9644 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9647 ## ------------------------------------ ##
9648 ## Report this to bug-autoconf@gnu.org. ##
9649 ## ------------------------------------ ##
9652 sed "s/^/$as_me: WARNING: /" >&2
9655 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9656 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9658 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9660 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9663 ## ------------------------------------ ##
9664 ## Report this to bug-autoconf@gnu.org. ##
9665 ## ------------------------------------ ##
9668 sed "s/^/$as_me: WARNING: /" >&2
9671 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9672 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9673 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 ac_cv_header_gif_lib_h
=$ac_header_preproc
9678 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9679 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9682 if test $ac_cv_header_gif_lib_h = yes; then
9683 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9684 # Earlier versions can crash Emacs.
9685 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9686 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9687 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 ac_check_lib_save_LIBS
=$LIBS
9691 LIBS
="-lungif $LIBS"
9692 cat >conftest.
$ac_ext <<_ACEOF
9693 #line $LINENO "configure"
9696 cat confdefs.h
>>conftest.
$ac_ext
9697 cat >>conftest.
$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9700 /* Override any gcc2 internal prototype to avoid an error. */
9704 /* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9706 char EGifPutExtensionLast ();
9710 EGifPutExtensionLast ();
9715 rm -f conftest.
$ac_objext conftest
$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try
='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.
$ac_ext >&5
9732 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9734 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9735 LIBS
=$ac_check_lib_save_LIBS
9737 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9738 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9739 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9748 if test "${HAVE_GIF}" = "yes"; then
9750 cat >>confdefs.h
<<\_ACEOF
9757 ### Use Mac OS X Carbon API to implement GUI.
9759 if test "${with_carbon}" != "no"; then
9760 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9761 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9762 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9763 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9767 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9769 # Is the header compilable?
9770 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9771 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9772 cat >conftest.
$ac_ext <<_ACEOF
9773 #line $LINENO "configure"
9776 cat confdefs.h
>>conftest.
$ac_ext
9777 cat >>conftest.
$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9779 $ac_includes_default
9780 #include <Carbon/Carbon.h>
9782 rm -f conftest.
$ac_objext
9783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9784 (eval $ac_compile) 2>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try
='test -s conftest.$ac_objext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_header_compiler
=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9799 ac_header_compiler
=no
9801 rm -f conftest.
$ac_objext conftest.
$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9803 echo "${ECHO_T}$ac_header_compiler" >&6
9805 # Is the header present?
9806 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9807 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9808 cat >conftest.
$ac_ext <<_ACEOF
9809 #line $LINENO "configure"
9812 cat confdefs.h
>>conftest.
$ac_ext
9813 cat >>conftest.
$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 #include <Carbon/Carbon.h>
9817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9818 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9820 grep -v '^ *+' conftest.er1
>conftest.err
9822 cat conftest.err
>&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } >/dev
/null
; then
9825 if test -s conftest.err
; then
9826 ac_cpp_err
=$ac_c_preproc_warn_flag
9833 if test -z "$ac_cpp_err"; then
9834 ac_header_preproc
=yes
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.
$ac_ext >&5
9839 ac_header_preproc
=no
9841 rm -f conftest.err conftest.
$ac_ext
9842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9843 echo "${ECHO_T}$ac_header_preproc" >&6
9845 # So? What about this header?
9846 case $ac_header_compiler:$ac_header_preproc in
9848 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9849 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9851 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9854 ## ------------------------------------ ##
9855 ## Report this to bug-autoconf@gnu.org. ##
9856 ## ------------------------------------ ##
9859 sed "s/^/$as_me: WARNING: /" >&2
9862 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9863 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9865 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9866 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9867 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9870 ## ------------------------------------ ##
9871 ## Report this to bug-autoconf@gnu.org. ##
9872 ## ------------------------------------ ##
9875 sed "s/^/$as_me: WARNING: /" >&2
9878 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9879 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9880 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
9885 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9886 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9889 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9896 if test "${HAVE_CARBON}" = "yes"; then
9898 cat >>confdefs.h
<<\_ACEOF
9899 #define HAVE_CARBON 1
9903 ## Specify the install directory
9905 if test "${carbon_appdir_x}" != ""; then
9906 case ${carbon_appdir_x} in
9907 y | ye |
yes) carbon_appdir
=/Applications
;;
9908 * ) carbon_appdir
=${carbon_appdir_x} ;;
9913 ### Use session management (-lSM -lICE) if available
9915 if test "${HAVE_X11}" = "yes"; then
9916 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9917 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9918 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9919 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9923 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9925 # Is the header compilable?
9926 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9927 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9928 cat >conftest.
$ac_ext <<_ACEOF
9929 #line $LINENO "configure"
9932 cat confdefs.h
>>conftest.
$ac_ext
9933 cat >>conftest.
$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 $ac_includes_default
9936 #include <X11/SM/SMlib.h>
9938 rm -f conftest.
$ac_objext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9940 (eval $ac_compile) 2>&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try
='test -s conftest.$ac_objext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950 ac_header_compiler
=yes
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.
$ac_ext >&5
9955 ac_header_compiler
=no
9957 rm -f conftest.
$ac_objext conftest.
$ac_ext
9958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9959 echo "${ECHO_T}$ac_header_compiler" >&6
9961 # Is the header present?
9962 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9963 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9964 cat >conftest.
$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9968 cat confdefs.h
>>conftest.
$ac_ext
9969 cat >>conftest.
$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 #include <X11/SM/SMlib.h>
9973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9974 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9976 grep -v '^ *+' conftest.er1
>conftest.err
9978 cat conftest.err
>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } >/dev
/null
; then
9981 if test -s conftest.err
; then
9982 ac_cpp_err
=$ac_c_preproc_warn_flag
9989 if test -z "$ac_cpp_err"; then
9990 ac_header_preproc
=yes
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.
$ac_ext >&5
9995 ac_header_preproc
=no
9997 rm -f conftest.err conftest.
$ac_ext
9998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9999 echo "${ECHO_T}$ac_header_preproc" >&6
10001 # So? What about this header?
10002 case $ac_header_compiler:$ac_header_preproc in
10004 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10005 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10006 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10007 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10010 ## ------------------------------------ ##
10011 ## Report this to bug-autoconf@gnu.org. ##
10012 ## ------------------------------------ ##
10015 sed "s/^/$as_me: WARNING: /" >&2
10018 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10019 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10020 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10021 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10022 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10023 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10026 ## ------------------------------------ ##
10027 ## Report this to bug-autoconf@gnu.org. ##
10028 ## ------------------------------------ ##
10031 sed "s/^/$as_me: WARNING: /" >&2
10034 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10035 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10036 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10041 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10042 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10045 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10046 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10047 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10048 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_check_lib_save_LIBS
=$LIBS
10053 cat >conftest.
$ac_ext <<_ACEOF
10054 #line $LINENO "configure"
10057 cat confdefs.h
>>conftest.
$ac_ext
10058 cat >>conftest.
$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10061 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char SmcOpenConnection ();
10071 SmcOpenConnection ();
10076 rm -f conftest.
$ac_objext conftest
$ac_exeext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078 (eval $ac_link) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try
='test -s conftest$ac_exeext'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_lib_SM_SmcOpenConnection
=yes
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.
$ac_ext >&5
10093 ac_cv_lib_SM_SmcOpenConnection
=no
10095 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10096 LIBS
=$ac_check_lib_save_LIBS
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10099 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10100 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10110 if test "${HAVE_X_SM}" = "yes"; then
10112 cat >>confdefs.h
<<\_ACEOF
10113 #define HAVE_X_SM 1
10118 *) LIBS
="-lSM -lICE $LIBS" ;;
10123 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10124 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10125 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10126 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 cat >conftest.
$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10133 cat confdefs.h
>>conftest.
$ac_ext
10134 cat >>conftest.
$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10145 rm -f conftest.
$ac_objext conftest
$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try
='test -s conftest$ac_exeext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 emacs_cv_netdb_declares_h_errno
=yes
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.
$ac_ext >&5
10162 emacs_cv_netdb_declares_h_errno
=no
10164 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10166 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10167 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10168 if test $emacs_cv_netdb_declares_h_errno = yes; then
10170 cat >>confdefs.h
<<\_ACEOF
10171 #define HAVE_H_ERRNO 1
10176 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10177 # for constant arguments. Useless!
10178 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10179 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10180 if test "${ac_cv_working_alloca_h+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 cat >conftest.
$ac_ext <<_ACEOF
10184 #line $LINENO "configure"
10187 cat confdefs.h
>>conftest.
$ac_ext
10188 cat >>conftest.
$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 #include <alloca.h>
10194 char *p = (char *) alloca (2 * sizeof (int));
10199 rm -f conftest.
$ac_objext conftest
$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try
='test -s conftest$ac_exeext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_working_alloca_h
=yes
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.
$ac_ext >&5
10216 ac_cv_working_alloca_h
=no
10218 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10221 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10222 if test $ac_cv_working_alloca_h = yes; then
10224 cat >>confdefs.h
<<\_ACEOF
10225 #define HAVE_ALLOCA_H 1
10230 echo "$as_me:$LINENO: checking for alloca" >&5
10231 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10232 if test "${ac_cv_func_alloca_works+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 cat >conftest.
$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10239 cat confdefs.h
>>conftest.
$ac_ext
10240 cat >>conftest.
$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 # define alloca __builtin_alloca
10246 # include <malloc.h>
10247 # define alloca _alloca
10250 # include <alloca.h>
10255 # ifndef alloca /* predefined by HP cc +Olibcalls */
10266 char *p = (char *) alloca (1);
10271 rm -f conftest.
$ac_objext conftest
$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273 (eval $ac_link) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try
='test -s conftest$ac_exeext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_cv_func_alloca_works
=yes
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.
$ac_ext >&5
10288 ac_cv_func_alloca_works
=no
10290 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10292 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10293 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10295 if test $ac_cv_func_alloca_works = yes; then
10297 cat >>confdefs.h
<<\_ACEOF
10298 #define HAVE_ALLOCA 1
10302 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10303 # that cause trouble. Some versions do not even contain alloca or
10304 # contain a buggy version. If you still want to use their alloca,
10305 # use ar to extract alloca.o from them instead of compiling alloca.c.
10307 ALLOCA
=alloca.
$ac_objext
10309 cat >>confdefs.h
<<\_ACEOF
10314 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10315 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10316 if test "${ac_cv_os_cray+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 cat >conftest.
$ac_ext <<_ACEOF
10320 #line $LINENO "configure"
10323 cat confdefs.h
>>conftest.
$ac_ext
10324 cat >>conftest.
$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 #if defined(CRAY) && ! defined(CRAY2)
10333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10334 $EGREP "webecray" >/dev
/null
2>&1; then
10342 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10343 echo "${ECHO_T}$ac_cv_os_cray" >&6
10344 if test $ac_cv_os_cray = yes; then
10345 for ac_func
in _getb67 GETB67 getb67
; do
10346 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10347 echo "$as_me:$LINENO: checking for $ac_func" >&5
10348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10349 if eval "test \"\${$as_ac_var+set}\" = set"; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 cat >conftest.
$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10356 cat confdefs.h
>>conftest.
$ac_ext
10357 cat >>conftest.
$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 /* System header to define __stub macros and hopefully few prototypes,
10360 which can conflict with char $ac_func (); below.
10361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10362 <limits.h> exists even on freestanding compilers. */
10364 # include <limits.h>
10366 # include <assert.h>
10368 /* Override any gcc2 internal prototype to avoid an error. */
10373 /* We use char because int might match the return type of a gcc2
10374 builtin and then its argument prototype would still apply. */
10376 /* The GNU C library defines this for functions which it implements
10377 to always fail with ENOSYS. Some functions are actually named
10378 something starting with __ and the normal name is an alias. */
10379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10382 char (*f) () = $ac_func;
10391 return f != $ac_func;
10396 rm -f conftest.
$ac_objext conftest
$ac_exeext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398 (eval $ac_link) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try
='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.
$ac_ext >&5
10413 eval "$as_ac_var=no"
10415 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10419 if test `eval echo '${'$as_ac_var'}'` = yes; then
10421 cat >>confdefs.h
<<_ACEOF
10422 #define CRAY_STACKSEG_END $ac_func
10431 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10432 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10433 if test "${ac_cv_c_stack_direction+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 if test "$cross_compiling" = yes; then
10437 ac_cv_c_stack_direction
=0
10439 cat >conftest.
$ac_ext <<_ACEOF
10440 #line $LINENO "configure"
10443 cat confdefs.h
>>conftest.
$ac_ext
10444 cat >>conftest.
$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10447 find_stack_direction ()
10449 static char *addr = 0;
10454 return find_stack_direction ();
10457 return (&dummy > addr) ? 1 : -1;
10463 exit (find_stack_direction () < 0);
10466 rm -f conftest
$ac_exeext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468 (eval $ac_link) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_c_stack_direction
=1
10479 echo "$as_me: program exited with status $ac_status" >&5
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.
$ac_ext >&5
10483 ( exit $ac_status )
10484 ac_cv_c_stack_direction
=-1
10486 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10489 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10490 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10492 cat >>confdefs.h
<<_ACEOF
10493 #define STACK_DIRECTION $ac_cv_c_stack_direction
10500 # fmod, logb, and frexp are found in -lm on most systems.
10501 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10503 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10504 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10505 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 ac_check_lib_save_LIBS
=$LIBS
10510 cat >conftest.
$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10514 cat confdefs.h
>>conftest.
$ac_ext
10515 cat >>conftest.
$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10518 /* Override any gcc2 internal prototype to avoid an error. */
10522 /* We use char because int might match the return type of a gcc2
10523 builtin and then its argument prototype would still apply. */
10533 rm -f conftest.
$ac_objext conftest
$ac_exeext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535 (eval $ac_link) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try
='test -s conftest$ac_exeext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_cv_lib_m_sqrt
=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10550 ac_cv_lib_m_sqrt
=no
10552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10553 LIBS
=$ac_check_lib_save_LIBS
10555 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10556 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10557 if test $ac_cv_lib_m_sqrt = yes; then
10558 cat >>confdefs.h
<<_ACEOF
10559 #define HAVE_LIBM 1
10567 # Check for mail-locking functions in a "mail" library
10569 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10570 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10571 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 ac_check_lib_save_LIBS
=$LIBS
10575 LIBS
="-lmail $LIBS"
10576 cat >conftest.
$ac_ext <<_ACEOF
10577 #line $LINENO "configure"
10580 cat confdefs.h
>>conftest.
$ac_ext
10581 cat >>conftest.
$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10584 /* Override any gcc2 internal prototype to avoid an error. */
10588 /* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10599 rm -f conftest.
$ac_objext conftest
$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601 (eval $ac_link) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try
='test -s conftest$ac_exeext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_lib_mail_maillock
=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.
$ac_ext >&5
10616 ac_cv_lib_mail_maillock
=no
10618 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10619 LIBS
=$ac_check_lib_save_LIBS
10621 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10622 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10623 if test $ac_cv_lib_mail_maillock = yes; then
10624 cat >>confdefs.h
<<_ACEOF
10625 #define HAVE_LIBMAIL 1
10628 LIBS
="-lmail $LIBS"
10633 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10634 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10635 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 ac_check_lib_save_LIBS
=$LIBS
10639 LIBS
="-llockfile $LIBS"
10640 cat >conftest.
$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10644 cat confdefs.h
>>conftest.
$ac_ext
10645 cat >>conftest.
$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any gcc2 internal prototype to avoid an error. */
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10663 rm -f conftest.
$ac_objext conftest
$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try
='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_lockfile_maillock
=yes
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.
$ac_ext >&5
10680 ac_cv_lib_lockfile_maillock
=no
10682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10683 LIBS
=$ac_check_lib_save_LIBS
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10686 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10687 if test $ac_cv_lib_lockfile_maillock = yes; then
10688 cat >>confdefs.h
<<_ACEOF
10689 #define HAVE_LIBLOCKFILE 1
10692 LIBS
="-llockfile $LIBS"
10696 # If we have the shared liblockfile, assume we must use it for mail
10697 # locking (e.g. Debian). If we couldn't link against liblockfile
10698 # (no liblockfile.a installed), ensure that we don't need to.
10699 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10700 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10701 set dummy liblockfile.so
; ac_word
=$2
10702 echo "$as_me:$LINENO: checking for $ac_word" >&5
10703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10704 if test "${ac_cv_prog_liblockfile+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 if test -n "$liblockfile"; then
10708 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10711 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10712 for as_dir
in $as_dummy
10715 test -z "$as_dir" && as_dir
=.
10716 for ac_exec_ext
in '' $ac_executable_extensions; do
10717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10718 ac_cv_prog_liblockfile
="yes"
10719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10728 liblockfile
=$ac_cv_prog_liblockfile
10729 if test -n "$liblockfile"; then
10730 echo "$as_me:$LINENO: result: $liblockfile" >&5
10731 echo "${ECHO_T}$liblockfile" >&6
10733 echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6
10737 if test $ac_cv_prog_liblockfile = yes; then
10738 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10739 This probably means that movemail could lose mail.
10740 There may be a \`development' package to install containing liblockfile." >&5
10741 echo "$as_me: error: Shared liblockfile found but can't link against it.
10742 This probably means that movemail could lose mail.
10743 There may be a \`development' package to install containing liblockfile." >&2;}
10744 { (exit 1); exit 1; }; }
10746 cat >>confdefs.h
<<\_ACEOF
10747 #define LIBMAIL -llockfile
10754 for ac_func
in touchlock
10756 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10757 echo "$as_me:$LINENO: checking for $ac_func" >&5
10758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10759 if eval "test \"\${$as_ac_var+set}\" = set"; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 cat >conftest.
$ac_ext <<_ACEOF
10763 #line $LINENO "configure"
10766 cat confdefs.h
>>conftest.
$ac_ext
10767 cat >>conftest.
$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 /* System header to define __stub macros and hopefully few prototypes,
10770 which can conflict with char $ac_func (); below.
10771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10772 <limits.h> exists even on freestanding compilers. */
10774 # include <limits.h>
10776 # include <assert.h>
10778 /* Override any gcc2 internal prototype to avoid an error. */
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10786 /* The GNU C library defines this for functions which it implements
10787 to always fail with ENOSYS. Some functions are actually named
10788 something starting with __ and the normal name is an alias. */
10789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10792 char (*f) () = $ac_func;
10801 return f != $ac_func;
10806 rm -f conftest.
$ac_objext conftest
$ac_exeext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808 (eval $ac_link) 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try
='test -s conftest$ac_exeext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 eval "$as_ac_var=yes"
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.
$ac_ext >&5
10823 eval "$as_ac_var=no"
10825 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10829 if test `eval echo '${'$as_ac_var'}'` = yes; then
10830 cat >>confdefs.h
<<_ACEOF
10831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10838 for ac_header
in maillock.h
10840 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842 echo "$as_me:$LINENO: checking for $ac_header" >&5
10843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10850 # Is the header compilable?
10851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10853 cat >conftest.
$ac_ext <<_ACEOF
10854 #line $LINENO "configure"
10857 cat confdefs.h
>>conftest.
$ac_ext
10858 cat >>conftest.
$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 $ac_includes_default
10861 #include <$ac_header>
10863 rm -f conftest.
$ac_objext
10864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10865 (eval $ac_compile) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try
='test -s conftest.$ac_objext'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_header_compiler
=yes
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.
$ac_ext >&5
10880 ac_header_compiler
=no
10882 rm -f conftest.
$ac_objext conftest.
$ac_ext
10883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10884 echo "${ECHO_T}$ac_header_compiler" >&6
10886 # Is the header present?
10887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10889 cat >conftest.
$ac_ext <<_ACEOF
10890 #line $LINENO "configure"
10893 cat confdefs.h
>>conftest.
$ac_ext
10894 cat >>conftest.
$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 #include <$ac_header>
10898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10899 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10901 grep -v '^ *+' conftest.er1
>conftest.err
10903 cat conftest.err
>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } >/dev
/null
; then
10906 if test -s conftest.err
; then
10907 ac_cpp_err
=$ac_c_preproc_warn_flag
10914 if test -z "$ac_cpp_err"; then
10915 ac_header_preproc
=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.
$ac_ext >&5
10920 ac_header_preproc
=no
10922 rm -f conftest.err conftest.
$ac_ext
10923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10924 echo "${ECHO_T}$ac_header_preproc" >&6
10926 # So? What about this header?
10927 case $ac_header_compiler:$ac_header_preproc in
10929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10935 ## ------------------------------------ ##
10936 ## Report this to bug-autoconf@gnu.org. ##
10937 ## ------------------------------------ ##
10940 sed "s/^/$as_me: WARNING: /" >&2
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10951 ## ------------------------------------ ##
10952 ## Report this to bug-autoconf@gnu.org. ##
10953 ## ------------------------------------ ##
10956 sed "s/^/$as_me: WARNING: /" >&2
10959 echo "$as_me:$LINENO: checking for $ac_header" >&5
10960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 eval "$as_ac_Header=$ac_header_preproc"
10966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10971 cat >>confdefs.h
<<_ACEOF
10972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11040 for ac_func
in gethostname getdomainname dup2 \
11041 rename closedir mkdir
rmdir sysinfo \
11042 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11043 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11044 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11045 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11046 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11047 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11049 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11050 echo "$as_me:$LINENO: checking for $ac_func" >&5
11051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11052 if eval "test \"\${$as_ac_var+set}\" = set"; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 cat >conftest.
$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11059 cat confdefs.h
>>conftest.
$ac_ext
11060 cat >>conftest.
$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11062 /* System header to define __stub macros and hopefully few prototypes,
11063 which can conflict with char $ac_func (); below.
11064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11065 <limits.h> exists even on freestanding compilers. */
11067 # include <limits.h>
11069 # include <assert.h>
11071 /* Override any gcc2 internal prototype to avoid an error. */
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11079 /* The GNU C library defines this for functions which it implements
11080 to always fail with ENOSYS. Some functions are actually named
11081 something starting with __ and the normal name is an alias. */
11082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11085 char (*f) () = $ac_func;
11094 return f != $ac_func;
11099 rm -f conftest.
$ac_objext conftest
$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try
='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 eval "$as_ac_var=yes"
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.
$ac_ext >&5
11116 eval "$as_ac_var=no"
11118 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11122 if test `eval echo '${'$as_ac_var'}'` = yes; then
11123 cat >>confdefs.h
<<_ACEOF
11124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11132 for ac_header
in sys
/un.h
11134 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136 echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11144 # Is the header compilable?
11145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11147 cat >conftest.
$ac_ext <<_ACEOF
11148 #line $LINENO "configure"
11151 cat confdefs.h
>>conftest.
$ac_ext
11152 cat >>conftest.
$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 $ac_includes_default
11155 #include <$ac_header>
11157 rm -f conftest.
$ac_objext
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try
='test -s conftest.$ac_objext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_header_compiler
=yes
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.
$ac_ext >&5
11174 ac_header_compiler
=no
11176 rm -f conftest.
$ac_objext conftest.
$ac_ext
11177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11178 echo "${ECHO_T}$ac_header_compiler" >&6
11180 # Is the header present?
11181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11183 cat >conftest.
$ac_ext <<_ACEOF
11184 #line $LINENO "configure"
11187 cat confdefs.h
>>conftest.
$ac_ext
11188 cat >>conftest.
$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 #include <$ac_header>
11192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11193 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11195 grep -v '^ *+' conftest.er1
>conftest.err
11197 cat conftest.err
>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } >/dev
/null
; then
11200 if test -s conftest.err
; then
11201 ac_cpp_err
=$ac_c_preproc_warn_flag
11208 if test -z "$ac_cpp_err"; then
11209 ac_header_preproc
=yes
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.
$ac_ext >&5
11214 ac_header_preproc
=no
11216 rm -f conftest.err conftest.
$ac_ext
11217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11218 echo "${ECHO_T}$ac_header_preproc" >&6
11220 # So? What about this header?
11221 case $ac_header_compiler:$ac_header_preproc in
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229 ## ------------------------------------ ##
11230 ## Report this to bug-autoconf@gnu.org. ##
11231 ## ------------------------------------ ##
11234 sed "s/^/$as_me: WARNING: /" >&2
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11245 ## ------------------------------------ ##
11246 ## Report this to bug-autoconf@gnu.org. ##
11247 ## ------------------------------------ ##
11250 sed "s/^/$as_me: WARNING: /" >&2
11253 echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 eval "$as_ac_Header=$ac_header_preproc"
11260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11265 cat >>confdefs.h
<<_ACEOF
11266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11276 for ac_header
in sys
/time.h unistd.h
11278 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11280 echo "$as_me:$LINENO: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11288 # Is the header compilable?
11289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11291 cat >conftest.
$ac_ext <<_ACEOF
11292 #line $LINENO "configure"
11295 cat confdefs.h
>>conftest.
$ac_ext
11296 cat >>conftest.
$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 $ac_includes_default
11299 #include <$ac_header>
11301 rm -f conftest.
$ac_objext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try
='test -s conftest.$ac_objext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_header_compiler
=yes
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.
$ac_ext >&5
11318 ac_header_compiler
=no
11320 rm -f conftest.
$ac_objext conftest.
$ac_ext
11321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322 echo "${ECHO_T}$ac_header_compiler" >&6
11324 # Is the header present?
11325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11327 cat >conftest.
$ac_ext <<_ACEOF
11328 #line $LINENO "configure"
11331 cat confdefs.h
>>conftest.
$ac_ext
11332 cat >>conftest.
$ac_ext <<_ACEOF
11333 /* end confdefs.h. */
11334 #include <$ac_header>
11336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11337 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11339 grep -v '^ *+' conftest.er1
>conftest.err
11341 cat conftest.err
>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } >/dev
/null
; then
11344 if test -s conftest.err
; then
11345 ac_cpp_err
=$ac_c_preproc_warn_flag
11352 if test -z "$ac_cpp_err"; then
11353 ac_header_preproc
=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.
$ac_ext >&5
11358 ac_header_preproc
=no
11360 rm -f conftest.err conftest.
$ac_ext
11361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11362 echo "${ECHO_T}$ac_header_preproc" >&6
11364 # So? What about this header?
11365 case $ac_header_compiler:$ac_header_preproc in
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11373 ## ------------------------------------ ##
11374 ## Report this to bug-autoconf@gnu.org. ##
11375 ## ------------------------------------ ##
11378 sed "s/^/$as_me: WARNING: /" >&2
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11389 ## ------------------------------------ ##
11390 ## Report this to bug-autoconf@gnu.org. ##
11391 ## ------------------------------------ ##
11394 sed "s/^/$as_me: WARNING: /" >&2
11397 echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 eval "$as_ac_Header=$ac_header_preproc"
11404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409 cat >>confdefs.h
<<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11418 for ac_func
in alarm
11420 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11421 echo "$as_me:$LINENO: checking for $ac_func" >&5
11422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11423 if eval "test \"\${$as_ac_var+set}\" = set"; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 cat >conftest.
$ac_ext <<_ACEOF
11427 #line $LINENO "configure"
11430 cat confdefs.h
>>conftest.
$ac_ext
11431 cat >>conftest.
$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 /* System header to define __stub macros and hopefully few prototypes,
11434 which can conflict with char $ac_func (); below.
11435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11436 <limits.h> exists even on freestanding compilers. */
11438 # include <limits.h>
11440 # include <assert.h>
11442 /* Override any gcc2 internal prototype to avoid an error. */
11447 /* We use char because int might match the return type of a gcc2
11448 builtin and then its argument prototype would still apply. */
11450 /* The GNU C library defines this for functions which it implements
11451 to always fail with ENOSYS. Some functions are actually named
11452 something starting with __ and the normal name is an alias. */
11453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11456 char (*f) () = $ac_func;
11465 return f != $ac_func;
11470 rm -f conftest.
$ac_objext conftest
$ac_exeext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11472 (eval $ac_link) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try
='test -s conftest$ac_exeext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 eval "$as_ac_var=yes"
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.
$ac_ext >&5
11487 eval "$as_ac_var=no"
11489 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11493 if test `eval echo '${'$as_ac_var'}'` = yes; then
11494 cat >>confdefs.h
<<_ACEOF
11495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11501 echo "$as_me:$LINENO: checking for working mktime" >&5
11502 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11503 if test "${ac_cv_func_working_mktime+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 if test "$cross_compiling" = yes; then
11507 ac_cv_func_working_mktime
=no
11509 cat >conftest.
$ac_ext <<_ACEOF
11510 #line $LINENO "configure"
11513 cat confdefs.h
>>conftest.
$ac_ext
11514 cat >>conftest.
$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 /* Test program from Paul Eggert and Tony Leneis. */
11517 #if TIME_WITH_SYS_TIME
11518 # include <sys/time.h>
11521 # if HAVE_SYS_TIME_H
11522 # include <sys/time.h>
11529 # include <unistd.h>
11533 # define alarm(X) /* empty */
11536 /* Work around redefinition to rpl_putenv by other config tests. */
11539 static time_t time_t_max;
11541 /* Values we'll use to set the TZ environment variable. */
11542 static const char *const tz_strings[] = {
11543 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11544 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11546 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11548 /* Fail if mktime fails to convert a date in the spring-forward gap.
11549 Based on a problem report from Andreas Jaeger. */
11551 spring_forward_gap ()
11553 /* glibc (up to about 1998-10-07) failed this test. */
11556 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11557 instead of "TZ=America/Vancouver" in order to detect the bug even
11558 on systems that don't support the Olson extension, or don't have the
11559 full zoneinfo tables installed. */
11560 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11569 if (mktime (&tm) == (time_t)-1)
11578 if ((lt = localtime (&now)) && mktime (lt) != now)
11580 now = time_t_max - now;
11581 if ((lt = localtime (&now)) && mktime (lt) != now)
11588 /* Based on code from Ariel Faigon. */
11598 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11608 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11609 now = mktime (&tm);
11610 if (now != (time_t) -1)
11612 struct tm *lt = localtime (&now);
11614 && lt->tm_year == tm.tm_year
11615 && lt->tm_mon == tm.tm_mon
11616 && lt->tm_mday == tm.tm_mday
11617 && lt->tm_hour == tm.tm_hour
11618 && lt->tm_min == tm.tm_min
11619 && lt->tm_sec == tm.tm_sec
11620 && lt->tm_yday == tm.tm_yday
11621 && lt->tm_wday == tm.tm_wday
11622 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11623 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11634 /* This test makes some buggy mktime implementations loop.
11635 Give up after 60 seconds; a mktime slower than that
11636 isn't worth using anyway. */
11639 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11642 delta = time_t_max / 997; /* a suitable prime number */
11643 for (i = 0; i < N_STRINGS; i++)
11646 putenv (tz_strings[i]);
11648 for (t = 0; t <= time_t_max - delta; t += delta)
11650 mktime_test ((time_t) 60 * 60);
11651 mktime_test ((time_t) 60 * 60 * 24);
11653 for (j = 1; 0 < j; j *= 2)
11655 bigtime_test (j - 1);
11658 spring_forward_gap ();
11662 rm -f conftest
$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_func_working_mktime
=yes
11675 echo "$as_me: program exited with status $ac_status" >&5
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.
$ac_ext >&5
11679 ( exit $ac_status )
11680 ac_cv_func_working_mktime
=no
11682 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11685 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11686 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11687 if test $ac_cv_func_working_mktime = no
; then
11688 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11691 if test "$ac_cv_func_working_mktime" = no
; then
11693 cat >>confdefs.h
<<\_ACEOF
11694 #define BROKEN_MKTIME 1
11699 ac_have_func
=no
# yes means we've found a way to get the load average.
11701 # Make sure getloadavg.c is where it belongs, at configure-time.
11702 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11703 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11704 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11705 { (exit 1); exit 1; }; }
11709 # Check for getloadavg, but be sure not to touch the cache variable.
11710 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11711 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11712 if test "${ac_cv_func_getloadavg+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 cat >conftest.
$ac_ext <<_ACEOF
11716 #line $LINENO "configure"
11719 cat confdefs.h
>>conftest.
$ac_ext
11720 cat >>conftest.
$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 /* System header to define __stub macros and hopefully few prototypes,
11723 which can conflict with char getloadavg (); below.
11724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11725 <limits.h> exists even on freestanding compilers. */
11727 # include <limits.h>
11729 # include <assert.h>
11731 /* Override any gcc2 internal prototype to avoid an error. */
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11738 char getloadavg ();
11739 /* The GNU C library defines this for functions which it implements
11740 to always fail with ENOSYS. Some functions are actually named
11741 something starting with __ and the normal name is an alias. */
11742 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11745 char (*f) () = getloadavg;
11754 return f != getloadavg;
11759 rm -f conftest.
$ac_objext conftest
$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try
='test -s conftest$ac_exeext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_func_getloadavg
=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.
$ac_ext >&5
11776 ac_cv_func_getloadavg
=no
11778 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11781 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11782 if test $ac_cv_func_getloadavg = yes; then
11787 ) && ac_have_func
=yes
11789 # On HPUX9, an unprivileged user can get load averages through this function.
11791 for ac_func
in pstat_getdynamic
11793 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11794 echo "$as_me:$LINENO: checking for $ac_func" >&5
11795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11796 if eval "test \"\${$as_ac_var+set}\" = set"; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 cat >conftest.
$ac_ext <<_ACEOF
11800 #line $LINENO "configure"
11803 cat confdefs.h
>>conftest.
$ac_ext
11804 cat >>conftest.
$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 /* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below.
11808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 <limits.h> exists even on freestanding compilers. */
11811 # include <limits.h>
11813 # include <assert.h>
11815 /* Override any gcc2 internal prototype to avoid an error. */
11820 /* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11823 /* The GNU C library defines this for functions which it implements
11824 to always fail with ENOSYS. Some functions are actually named
11825 something starting with __ and the normal name is an alias. */
11826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11829 char (*f) () = $ac_func;
11838 return f != $ac_func;
11843 rm -f conftest.
$ac_objext conftest
$ac_exeext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845 (eval $ac_link) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try
='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 eval "$as_ac_var=yes"
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.
$ac_ext >&5
11860 eval "$as_ac_var=no"
11862 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11866 if test `eval echo '${'$as_ac_var'}'` = yes; then
11867 cat >>confdefs.h
<<_ACEOF
11868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11875 # Solaris has libkstat which does not require root.
11877 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11878 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11879 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 ac_check_lib_save_LIBS
=$LIBS
11883 LIBS
="-lkstat $LIBS"
11884 cat >conftest.
$ac_ext <<_ACEOF
11885 #line $LINENO "configure"
11888 cat confdefs.h
>>conftest.
$ac_ext
11889 cat >>conftest.
$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11892 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11898 char kstat_open ();
11907 rm -f conftest.
$ac_objext conftest
$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try
='test -s conftest$ac_exeext'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919 ac_cv_lib_kstat_kstat_open
=yes
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.
$ac_ext >&5
11924 ac_cv_lib_kstat_kstat_open
=no
11926 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11927 LIBS
=$ac_check_lib_save_LIBS
11929 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11930 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11931 if test $ac_cv_lib_kstat_kstat_open = yes; then
11932 cat >>confdefs.h
<<_ACEOF
11933 #define HAVE_LIBKSTAT 1
11936 LIBS
="-lkstat $LIBS"
11940 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11942 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11943 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11944 # to get the right answer into the cache.
11945 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11946 if test $ac_have_func = no
; then
11947 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11948 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11949 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 ac_check_lib_save_LIBS
=$LIBS
11954 cat >conftest.
$ac_ext <<_ACEOF
11955 #line $LINENO "configure"
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 /* Override any gcc2 internal prototype to avoid an error. */
11966 /* We use char because int might match the return type of a gcc2
11967 builtin and then its argument prototype would still apply. */
11977 rm -f conftest.
$ac_objext conftest
$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try
='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_lib_elf_elf_begin
=yes
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.
$ac_ext >&5
11994 ac_cv_lib_elf_elf_begin
=no
11996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11997 LIBS
=$ac_check_lib_save_LIBS
11999 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12000 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12001 if test $ac_cv_lib_elf_elf_begin = yes; then
12006 if test $ac_have_func = no
; then
12007 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12008 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12009 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 ac_check_lib_save_LIBS
=$LIBS
12014 cat >conftest.
$ac_ext <<_ACEOF
12015 #line $LINENO "configure"
12018 cat confdefs.h
>>conftest.
$ac_ext
12019 cat >>conftest.
$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12022 /* Override any gcc2 internal prototype to avoid an error. */
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12037 rm -f conftest.
$ac_objext conftest
$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try
='test -s conftest$ac_exeext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 ac_cv_lib_kvm_kvm_open
=yes
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.
$ac_ext >&5
12054 ac_cv_lib_kvm_kvm_open
=no
12056 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12057 LIBS
=$ac_check_lib_save_LIBS
12059 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12060 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12061 if test $ac_cv_lib_kvm_kvm_open = yes; then
12065 # Check for the 4.4BSD definition of getloadavg.
12066 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12067 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12068 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 ac_check_lib_save_LIBS
=$LIBS
12072 LIBS
="-lutil $LIBS"
12073 cat >conftest.
$ac_ext <<_ACEOF
12074 #line $LINENO "configure"
12077 cat confdefs.h
>>conftest.
$ac_ext
12078 cat >>conftest.
$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12081 /* Override any gcc2 internal prototype to avoid an error. */
12085 /* We use char because int might match the return type of a gcc2
12086 builtin and then its argument prototype would still apply. */
12087 char getloadavg ();
12096 rm -f conftest.
$ac_objext conftest
$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try
='test -s conftest$ac_exeext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_lib_util_getloadavg
=yes
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.
$ac_ext >&5
12113 ac_cv_lib_util_getloadavg
=no
12115 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12116 LIBS
=$ac_check_lib_save_LIBS
12118 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12119 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12120 if test $ac_cv_lib_util_getloadavg = yes; then
12121 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12126 if test $ac_have_func = no
; then
12127 # There is a commonly available library for RS/6000 AIX.
12128 # Since it is not a standard part of AIX, it might be installed locally.
12129 ac_getloadavg_LIBS
=$LIBS
12130 LIBS
="-L/usr/local/lib $LIBS"
12131 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12132 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12133 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 ac_check_lib_save_LIBS
=$LIBS
12137 LIBS
="-lgetloadavg $LIBS"
12138 cat >conftest.
$ac_ext <<_ACEOF
12139 #line $LINENO "configure"
12142 cat confdefs.h
>>conftest.
$ac_ext
12143 cat >>conftest.
$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12146 /* Override any gcc2 internal prototype to avoid an error. */
12150 /* We use char because int might match the return type of a gcc2
12151 builtin and then its argument prototype would still apply. */
12152 char getloadavg ();
12161 rm -f conftest.
$ac_objext conftest
$ac_exeext
12162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12163 (eval $ac_link) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try
='test -s conftest$ac_exeext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_cv_lib_getloadavg_getloadavg
=yes
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.
$ac_ext >&5
12178 ac_cv_lib_getloadavg_getloadavg
=no
12180 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12181 LIBS
=$ac_check_lib_save_LIBS
12183 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12184 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12185 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12186 LIBS
="-lgetloadavg $LIBS"
12188 LIBS
=$ac_getloadavg_LIBS
12193 # Make sure it is really in the library, if we think we found it,
12194 # otherwise set up the replacement function.
12196 for ac_func
in getloadavg
12198 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12199 echo "$as_me:$LINENO: checking for $ac_func" >&5
12200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12201 if eval "test \"\${$as_ac_var+set}\" = set"; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 cat >conftest.
$ac_ext <<_ACEOF
12205 #line $LINENO "configure"
12208 cat confdefs.h
>>conftest.
$ac_ext
12209 cat >>conftest.
$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 /* System header to define __stub macros and hopefully few prototypes,
12212 which can conflict with char $ac_func (); below.
12213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214 <limits.h> exists even on freestanding compilers. */
12216 # include <limits.h>
12218 # include <assert.h>
12220 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12234 char (*f) () = $ac_func;
12243 return f != $ac_func;
12248 rm -f conftest.
$ac_objext conftest
$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try
='test -s conftest$ac_exeext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 eval "$as_ac_var=yes"
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.
$ac_ext >&5
12265 eval "$as_ac_var=no"
12267 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12271 if test `eval echo '${'$as_ac_var'}'` = yes; then
12272 cat >>confdefs.h
<<_ACEOF
12273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12277 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12279 cat >>confdefs.h
<<\_ACEOF
12280 #define C_GETLOADAVG 1
12283 # Figure out what our getloadavg.c needs.
12285 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12286 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12287 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12288 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12292 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12294 # Is the header compilable?
12295 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12296 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12297 cat >conftest.
$ac_ext <<_ACEOF
12298 #line $LINENO "configure"
12301 cat confdefs.h
>>conftest.
$ac_ext
12302 cat >>conftest.
$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 $ac_includes_default
12305 #include <sys/dg_sys_info.h>
12307 rm -f conftest.
$ac_objext
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try
='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_header_compiler
=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.
$ac_ext >&5
12324 ac_header_compiler
=no
12326 rm -f conftest.
$ac_objext conftest.
$ac_ext
12327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12328 echo "${ECHO_T}$ac_header_compiler" >&6
12330 # Is the header present?
12331 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12332 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12333 cat >conftest.
$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12337 cat confdefs.h
>>conftest.
$ac_ext
12338 cat >>conftest.
$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12340 #include <sys/dg_sys_info.h>
12342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12343 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12345 grep -v '^ *+' conftest.er1
>conftest.err
12347 cat conftest.err
>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } >/dev
/null
; then
12350 if test -s conftest.err
; then
12351 ac_cpp_err
=$ac_c_preproc_warn_flag
12358 if test -z "$ac_cpp_err"; then
12359 ac_header_preproc
=yes
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.
$ac_ext >&5
12364 ac_header_preproc
=no
12366 rm -f conftest.err conftest.
$ac_ext
12367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12368 echo "${ECHO_T}$ac_header_preproc" >&6
12370 # So? What about this header?
12371 case $ac_header_compiler:$ac_header_preproc in
12373 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12374 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12376 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12379 ## ------------------------------------ ##
12380 ## Report this to bug-autoconf@gnu.org. ##
12381 ## ------------------------------------ ##
12384 sed "s/^/$as_me: WARNING: /" >&2
12387 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12388 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12390 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12391 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12392 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12395 ## ------------------------------------ ##
12396 ## Report this to bug-autoconf@gnu.org. ##
12397 ## ------------------------------------ ##
12400 sed "s/^/$as_me: WARNING: /" >&2
12403 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12404 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12405 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12410 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12411 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12414 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12417 cat >>confdefs.h
<<\_ACEOF
12422 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12423 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12424 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 ac_check_lib_save_LIBS
=$LIBS
12429 cat >conftest.
$ac_ext <<_ACEOF
12430 #line $LINENO "configure"
12433 cat confdefs.h
>>conftest.
$ac_ext
12434 cat >>conftest.
$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12437 /* Override any gcc2 internal prototype to avoid an error. */
12441 /* We use char because int might match the return type of a gcc2
12442 builtin and then its argument prototype would still apply. */
12443 char dg_sys_info ();
12452 rm -f conftest.
$ac_objext conftest
$ac_exeext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12454 (eval $ac_link) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
12458 { ac_try
='test -s conftest$ac_exeext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_lib_dgc_dg_sys_info
=yes
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.
$ac_ext >&5
12469 ac_cv_lib_dgc_dg_sys_info
=no
12471 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12472 LIBS
=$ac_check_lib_save_LIBS
12474 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12475 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12476 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12477 cat >>confdefs.h
<<_ACEOF
12478 #define HAVE_LIBDGC 1
12489 if test "${ac_cv_header_locale_h+set}" = set; then
12490 echo "$as_me:$LINENO: checking for locale.h" >&5
12491 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12492 if test "${ac_cv_header_locale_h+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12496 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12498 # Is the header compilable?
12499 echo "$as_me:$LINENO: checking locale.h usability" >&5
12500 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12501 cat >conftest.
$ac_ext <<_ACEOF
12502 #line $LINENO "configure"
12505 cat confdefs.h
>>conftest.
$ac_ext
12506 cat >>conftest.
$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 $ac_includes_default
12509 #include <locale.h>
12511 rm -f conftest.
$ac_objext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try
='test -s conftest.$ac_objext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_header_compiler
=yes
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.
$ac_ext >&5
12528 ac_header_compiler
=no
12530 rm -f conftest.
$ac_objext conftest.
$ac_ext
12531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12532 echo "${ECHO_T}$ac_header_compiler" >&6
12534 # Is the header present?
12535 echo "$as_me:$LINENO: checking locale.h presence" >&5
12536 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12537 cat >conftest.
$ac_ext <<_ACEOF
12538 #line $LINENO "configure"
12541 cat confdefs.h
>>conftest.
$ac_ext
12542 cat >>conftest.
$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 #include <locale.h>
12546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12547 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12549 grep -v '^ *+' conftest.er1
>conftest.err
12551 cat conftest.err
>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } >/dev
/null
; then
12554 if test -s conftest.err
; then
12555 ac_cpp_err
=$ac_c_preproc_warn_flag
12562 if test -z "$ac_cpp_err"; then
12563 ac_header_preproc
=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.
$ac_ext >&5
12568 ac_header_preproc
=no
12570 rm -f conftest.err conftest.
$ac_ext
12571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12572 echo "${ECHO_T}$ac_header_preproc" >&6
12574 # So? What about this header?
12575 case $ac_header_compiler:$ac_header_preproc in
12577 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12578 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12580 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12583 ## ------------------------------------ ##
12584 ## Report this to bug-autoconf@gnu.org. ##
12585 ## ------------------------------------ ##
12588 sed "s/^/$as_me: WARNING: /" >&2
12591 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12592 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12594 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12596 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12599 ## ------------------------------------ ##
12600 ## Report this to bug-autoconf@gnu.org. ##
12601 ## ------------------------------------ ##
12604 sed "s/^/$as_me: WARNING: /" >&2
12607 echo "$as_me:$LINENO: checking for locale.h" >&5
12608 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12609 if test "${ac_cv_header_locale_h+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 ac_cv_header_locale_h
=$ac_header_preproc
12614 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12615 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12621 for ac_func
in setlocale
12623 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12624 echo "$as_me:$LINENO: checking for $ac_func" >&5
12625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12626 if eval "test \"\${$as_ac_var+set}\" = set"; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 cat >conftest.
$ac_ext <<_ACEOF
12630 #line $LINENO "configure"
12633 cat confdefs.h
>>conftest.
$ac_ext
12634 cat >>conftest.
$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 /* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char $ac_func (); below.
12638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12639 <limits.h> exists even on freestanding compilers. */
12641 # include <limits.h>
12643 # include <assert.h>
12645 /* Override any gcc2 internal prototype to avoid an error. */
12650 /* We use char because int might match the return type of a gcc2
12651 builtin and then its argument prototype would still apply. */
12653 /* The GNU C library defines this for functions which it implements
12654 to always fail with ENOSYS. Some functions are actually named
12655 something starting with __ and the normal name is an alias. */
12656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12659 char (*f) () = $ac_func;
12668 return f != $ac_func;
12673 rm -f conftest.
$ac_objext conftest
$ac_exeext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12675 (eval $ac_link) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try
='test -s conftest$ac_exeext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 eval "$as_ac_var=yes"
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.
$ac_ext >&5
12690 eval "$as_ac_var=no"
12692 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12696 if test `eval echo '${'$as_ac_var'}'` = yes; then
12697 cat >>confdefs.h
<<_ACEOF
12698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12705 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12706 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12707 # Irix 4.0.5F has the header but not the library.
12708 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12711 cat >>confdefs.h
<<\_ACEOF
12717 if test $ac_have_func = no
; then
12718 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12719 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12720 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12721 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12725 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12727 # Is the header compilable?
12728 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12729 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12730 cat >conftest.
$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12734 cat confdefs.h
>>conftest.
$ac_ext
12735 cat >>conftest.
$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 $ac_includes_default
12738 #include <inq_stats/cpustats.h>
12740 rm -f conftest.
$ac_objext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742 (eval $ac_compile) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try
='test -s conftest.$ac_objext'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_header_compiler
=yes
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.
$ac_ext >&5
12757 ac_header_compiler
=no
12759 rm -f conftest.
$ac_objext conftest.
$ac_ext
12760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12761 echo "${ECHO_T}$ac_header_compiler" >&6
12763 # Is the header present?
12764 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12765 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12766 cat >conftest.
$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12770 cat confdefs.h
>>conftest.
$ac_ext
12771 cat >>conftest.
$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 #include <inq_stats/cpustats.h>
12775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12776 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12778 grep -v '^ *+' conftest.er1
>conftest.err
12780 cat conftest.err
>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } >/dev
/null
; then
12783 if test -s conftest.err
; then
12784 ac_cpp_err
=$ac_c_preproc_warn_flag
12791 if test -z "$ac_cpp_err"; then
12792 ac_header_preproc
=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.
$ac_ext >&5
12797 ac_header_preproc
=no
12799 rm -f conftest.err conftest.
$ac_ext
12800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12801 echo "${ECHO_T}$ac_header_preproc" >&6
12803 # So? What about this header?
12804 case $ac_header_compiler:$ac_header_preproc in
12806 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12807 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12809 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12812 ## ------------------------------------ ##
12813 ## Report this to bug-autoconf@gnu.org. ##
12814 ## ------------------------------------ ##
12817 sed "s/^/$as_me: WARNING: /" >&2
12820 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12821 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12823 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12825 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12828 ## ------------------------------------ ##
12829 ## Report this to bug-autoconf@gnu.org. ##
12830 ## ------------------------------------ ##
12833 sed "s/^/$as_me: WARNING: /" >&2
12836 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12837 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12838 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
12843 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12844 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12847 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
12850 cat >>confdefs.h
<<\_ACEOF
12855 cat >>confdefs.h
<<\_ACEOF
12864 if test $ac_have_func = no
; then
12865 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12866 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12867 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12868 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12872 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12874 # Is the header compilable?
12875 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
12876 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
12877 cat >conftest.
$ac_ext <<_ACEOF
12878 #line $LINENO "configure"
12881 cat confdefs.h
>>conftest.
$ac_ext
12882 cat >>conftest.
$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 $ac_includes_default
12885 #include <sys/cpustats.h>
12887 rm -f conftest.
$ac_objext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try
='test -s conftest.$ac_objext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_header_compiler
=yes
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.
$ac_ext >&5
12904 ac_header_compiler
=no
12906 rm -f conftest.
$ac_objext conftest.
$ac_ext
12907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12908 echo "${ECHO_T}$ac_header_compiler" >&6
12910 # Is the header present?
12911 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
12912 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
12913 cat >conftest.
$ac_ext <<_ACEOF
12914 #line $LINENO "configure"
12917 cat confdefs.h
>>conftest.
$ac_ext
12918 cat >>conftest.
$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #include <sys/cpustats.h>
12922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12923 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12925 grep -v '^ *+' conftest.er1
>conftest.err
12927 cat conftest.err
>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } >/dev
/null
; then
12930 if test -s conftest.err
; then
12931 ac_cpp_err
=$ac_c_preproc_warn_flag
12938 if test -z "$ac_cpp_err"; then
12939 ac_header_preproc
=yes
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.
$ac_ext >&5
12944 ac_header_preproc
=no
12946 rm -f conftest.err conftest.
$ac_ext
12947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12948 echo "${ECHO_T}$ac_header_preproc" >&6
12950 # So? What about this header?
12951 case $ac_header_compiler:$ac_header_preproc in
12953 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12954 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12956 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12959 ## ------------------------------------ ##
12960 ## Report this to bug-autoconf@gnu.org. ##
12961 ## ------------------------------------ ##
12964 sed "s/^/$as_me: WARNING: /" >&2
12967 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
12968 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
12969 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
12970 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
12971 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12972 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12975 ## ------------------------------------ ##
12976 ## Report this to bug-autoconf@gnu.org. ##
12977 ## ------------------------------------ ##
12980 sed "s/^/$as_me: WARNING: /" >&2
12983 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12984 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12985 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
12990 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12991 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12994 if test $ac_cv_header_sys_cpustats_h = yes; then
12995 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13004 if test $ac_have_func = no
; then
13006 for ac_header
in mach
/mach.h
13008 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13010 echo "$as_me:$LINENO: checking for $ac_header" >&5
13011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13018 # Is the header compilable?
13019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13021 cat >conftest.
$ac_ext <<_ACEOF
13022 #line $LINENO "configure"
13025 cat confdefs.h
>>conftest.
$ac_ext
13026 cat >>conftest.
$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 $ac_includes_default
13029 #include <$ac_header>
13031 rm -f conftest.
$ac_objext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13033 (eval $ac_compile) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try
='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_header_compiler
=yes
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.
$ac_ext >&5
13048 ac_header_compiler
=no
13050 rm -f conftest.
$ac_objext conftest.
$ac_ext
13051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13052 echo "${ECHO_T}$ac_header_compiler" >&6
13054 # Is the header present?
13055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13057 cat >conftest.
$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13061 cat confdefs.h
>>conftest.
$ac_ext
13062 cat >>conftest.
$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 #include <$ac_header>
13066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13067 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13069 grep -v '^ *+' conftest.er1
>conftest.err
13071 cat conftest.err
>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } >/dev
/null
; then
13074 if test -s conftest.err
; then
13075 ac_cpp_err
=$ac_c_preproc_warn_flag
13082 if test -z "$ac_cpp_err"; then
13083 ac_header_preproc
=yes
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.
$ac_ext >&5
13088 ac_header_preproc
=no
13090 rm -f conftest.err conftest.
$ac_ext
13091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13092 echo "${ECHO_T}$ac_header_preproc" >&6
13094 # So? What about this header?
13095 case $ac_header_compiler:$ac_header_preproc in
13097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13103 ## ------------------------------------ ##
13104 ## Report this to bug-autoconf@gnu.org. ##
13105 ## ------------------------------------ ##
13108 sed "s/^/$as_me: WARNING: /" >&2
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13119 ## ------------------------------------ ##
13120 ## Report this to bug-autoconf@gnu.org. ##
13121 ## ------------------------------------ ##
13124 sed "s/^/$as_me: WARNING: /" >&2
13127 echo "$as_me:$LINENO: checking for $ac_header" >&5
13128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 eval "$as_ac_Header=$ac_header_preproc"
13134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13139 cat >>confdefs.h
<<_ACEOF
13140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13150 for ac_header
in nlist.h
13152 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13162 # Is the header compilable?
13163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13165 cat >conftest.
$ac_ext <<_ACEOF
13166 #line $LINENO "configure"
13169 cat confdefs.h
>>conftest.
$ac_ext
13170 cat >>conftest.
$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 $ac_includes_default
13173 #include <$ac_header>
13175 rm -f conftest.
$ac_objext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177 (eval $ac_compile) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try
='test -s conftest.$ac_objext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_header_compiler
=yes
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.
$ac_ext >&5
13192 ac_header_compiler
=no
13194 rm -f conftest.
$ac_objext conftest.
$ac_ext
13195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13196 echo "${ECHO_T}$ac_header_compiler" >&6
13198 # Is the header present?
13199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13201 cat >conftest.
$ac_ext <<_ACEOF
13202 #line $LINENO "configure"
13205 cat confdefs.h
>>conftest.
$ac_ext
13206 cat >>conftest.
$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <$ac_header>
13210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13211 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13213 grep -v '^ *+' conftest.er1
>conftest.err
13215 cat conftest.err
>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } >/dev
/null
; then
13218 if test -s conftest.err
; then
13219 ac_cpp_err
=$ac_c_preproc_warn_flag
13226 if test -z "$ac_cpp_err"; then
13227 ac_header_preproc
=yes
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.
$ac_ext >&5
13232 ac_header_preproc
=no
13234 rm -f conftest.err conftest.
$ac_ext
13235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13236 echo "${ECHO_T}$ac_header_preproc" >&6
13238 # So? What about this header?
13239 case $ac_header_compiler:$ac_header_preproc in
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13247 ## ------------------------------------ ##
13248 ## Report this to bug-autoconf@gnu.org. ##
13249 ## ------------------------------------ ##
13252 sed "s/^/$as_me: WARNING: /" >&2
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13263 ## ------------------------------------ ##
13264 ## Report this to bug-autoconf@gnu.org. ##
13265 ## ------------------------------------ ##
13268 sed "s/^/$as_me: WARNING: /" >&2
13271 echo "$as_me:$LINENO: checking for $ac_header" >&5
13272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 eval "$as_ac_Header=$ac_header_preproc"
13278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13283 cat >>confdefs.h
<<_ACEOF
13284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13286 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13287 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13288 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 cat >conftest.
$ac_ext <<_ACEOF
13292 #line $LINENO "configure"
13295 cat confdefs.h
>>conftest.
$ac_ext
13296 cat >>conftest.
$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13303 static struct nlist ac_aggr;
13304 if (ac_aggr.n_un.n_name)
13310 rm -f conftest.
$ac_objext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13312 (eval $ac_compile) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try
='test -s conftest.$ac_objext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_member_struct_nlist_n_un_n_name
=yes
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.
$ac_ext >&5
13327 cat >conftest.
$ac_ext <<_ACEOF
13328 #line $LINENO "configure"
13331 cat confdefs.h
>>conftest.
$ac_ext
13332 cat >>conftest.
$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13339 static struct nlist ac_aggr;
13340 if (sizeof ac_aggr.n_un.n_name)
13346 rm -f conftest.
$ac_objext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13348 (eval $ac_compile) 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } &&
13352 { ac_try
='test -s conftest.$ac_objext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 ac_cv_member_struct_nlist_n_un_n_name
=yes
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.
$ac_ext >&5
13363 ac_cv_member_struct_nlist_n_un_n_name
=no
13365 rm -f conftest.
$ac_objext conftest.
$ac_ext
13367 rm -f conftest.
$ac_objext conftest.
$ac_ext
13369 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13370 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13371 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13373 cat >>confdefs.h
<<_ACEOF
13374 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13378 cat >>confdefs.h
<<\_ACEOF
13379 #define NLIST_NAME_UNION 1
13393 # Some definitions of getloadavg require that the program be installed setgid.
13394 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13395 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13396 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 cat >conftest.
$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13403 cat confdefs.h
>>conftest.
$ac_ext
13404 cat >>conftest.
$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13407 #ifdef LDAV_PRIVILEGED
13408 Yowza Am I SETGID yet
13411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13412 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13413 ac_cv_func_getloadavg_setgid
=yes
13415 ac_cv_func_getloadavg_setgid
=no
13420 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13421 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13422 if test $ac_cv_func_getloadavg_setgid = yes; then
13425 cat >>confdefs.h
<<\_ACEOF
13426 #define GETLOADAVG_PRIVILEGED 1
13433 if test $ac_cv_func_getloadavg_setgid = yes; then
13434 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13435 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13436 if test "${ac_cv_group_kmem+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13440 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13441 # If we got an error (system does not support symlinks), try without -L.
13442 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13443 ac_cv_group_kmem
=`echo $ac_ls_output \
13444 | sed -ne 's/[ ][ ]*/ /g;
13445 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13449 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13450 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13451 KMEM_GROUP
=$ac_cv_group_kmem
13453 if test "x$ac_save_LIBS" = x
; then
13454 GETLOADAVG_LIBS
=$LIBS
13456 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13462 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13463 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13464 if test "${ac_cv_sys_largefile_source+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 ac_cv_sys_largefile_source
=no
13469 cat >conftest.
$ac_ext <<_ACEOF
13470 #line $LINENO "configure"
13473 cat confdefs.h
>>conftest.
$ac_ext
13474 cat >>conftest.
$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13485 rm -f conftest.
$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try
='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.
$ac_ext >&5
13503 rm -f conftest.
$ac_objext conftest.
$ac_ext
13504 cat >conftest.
$ac_ext <<_ACEOF
13505 #line $LINENO "configure"
13508 cat confdefs.h
>>conftest.
$ac_ext
13509 cat >>conftest.
$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 #define _LARGEFILE_SOURCE 1
13521 rm -f conftest.
$ac_objext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13523 (eval $ac_compile) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try
='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_sys_largefile_source
=1; break
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.
$ac_ext >&5
13539 rm -f conftest.
$ac_objext conftest.
$ac_ext
13543 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13544 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13545 if test "$ac_cv_sys_largefile_source" != no
; then
13547 cat >>confdefs.h
<<_ACEOF
13548 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13554 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13555 # in glibc 2.1.3, but that breaks too many other things.
13556 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13557 echo "$as_me:$LINENO: checking for fseeko" >&5
13558 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13559 if test "${ac_cv_func_fseeko+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 cat >conftest.
$ac_ext <<_ACEOF
13563 #line $LINENO "configure"
13566 cat confdefs.h
>>conftest.
$ac_ext
13567 cat >>conftest.
$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13573 return fseeko && fseeko (stdin, 0, 0);
13578 rm -f conftest.
$ac_objext conftest
$ac_exeext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13580 (eval $ac_link) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try
='test -s conftest$ac_exeext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_cv_func_fseeko
=yes
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.
$ac_ext >&5
13595 ac_cv_func_fseeko
=no
13597 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13599 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13600 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13601 if test $ac_cv_func_fseeko = yes; then
13603 cat >>confdefs.h
<<\_ACEOF
13604 #define HAVE_FSEEKO 1
13610 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13611 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13612 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 # Use it with a single arg.
13616 cat >conftest.
$ac_ext <<_ACEOF
13617 #line $LINENO "configure"
13620 cat confdefs.h
>>conftest.
$ac_ext
13621 cat >>conftest.
$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 $ac_includes_default
13632 rm -f conftest.
$ac_objext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
13638 { ac_try
='test -s conftest.$ac_objext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_cv_func_getpgrp_void
=no
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.
$ac_ext >&5
13649 ac_cv_func_getpgrp_void
=yes
13651 rm -f conftest.
$ac_objext conftest.
$ac_ext
13654 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13655 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13656 if test $ac_cv_func_getpgrp_void = yes; then
13658 cat >>confdefs.h
<<\_ACEOF
13659 #define GETPGRP_VOID 1
13667 for ac_func
in grantpt
13669 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13670 echo "$as_me:$LINENO: checking for $ac_func" >&5
13671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13672 if eval "test \"\${$as_ac_var+set}\" = set"; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 cat >conftest.
$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13679 cat confdefs.h
>>conftest.
$ac_ext
13680 cat >>conftest.
$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 /* System header to define __stub macros and hopefully few prototypes,
13683 which can conflict with char $ac_func (); below.
13684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13685 <limits.h> exists even on freestanding compilers. */
13687 # include <limits.h>
13689 # include <assert.h>
13691 /* Override any gcc2 internal prototype to avoid an error. */
13696 /* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13699 /* The GNU C library defines this for functions which it implements
13700 to always fail with ENOSYS. Some functions are actually named
13701 something starting with __ and the normal name is an alias. */
13702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13705 char (*f) () = $ac_func;
13714 return f != $ac_func;
13719 rm -f conftest.
$ac_objext conftest
$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try
='test -s conftest$ac_exeext'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 eval "$as_ac_var=yes"
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.
$ac_ext >&5
13736 eval "$as_ac_var=no"
13738 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13742 if test `eval echo '${'$as_ac_var'}'` = yes; then
13743 cat >>confdefs.h
<<_ACEOF
13744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13751 # PTY-related GNU extensions.
13753 for ac_func
in getpt
13755 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13756 echo "$as_me:$LINENO: checking for $ac_func" >&5
13757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13758 if eval "test \"\${$as_ac_var+set}\" = set"; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 cat >conftest.
$ac_ext <<_ACEOF
13762 #line $LINENO "configure"
13765 cat confdefs.h
>>conftest.
$ac_ext
13766 cat >>conftest.
$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 /* System header to define __stub macros and hopefully few prototypes,
13769 which can conflict with char $ac_func (); below.
13770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13771 <limits.h> exists even on freestanding compilers. */
13773 # include <limits.h>
13775 # include <assert.h>
13777 /* Override any gcc2 internal prototype to avoid an error. */
13782 /* We use char because int might match the return type of a gcc2
13783 builtin and then its argument prototype would still apply. */
13785 /* The GNU C library defines this for functions which it implements
13786 to always fail with ENOSYS. Some functions are actually named
13787 something starting with __ and the normal name is an alias. */
13788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13791 char (*f) () = $ac_func;
13800 return f != $ac_func;
13805 rm -f conftest.
$ac_objext conftest
$ac_exeext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13807 (eval $ac_link) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try
='test -s conftest$ac_exeext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 eval "$as_ac_var=yes"
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.
$ac_ext >&5
13822 eval "$as_ac_var=no"
13824 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13828 if test `eval echo '${'$as_ac_var'}'` = yes; then
13829 cat >>confdefs.h
<<_ACEOF
13830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13837 # Check this now, so that we will NOT find the above functions in ncurses.
13838 # That is because we have not set up to link ncurses in lib-src.
13839 # It's better to believe a function is not available
13840 # than to expect to find it in ncurses.
13842 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13843 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13844 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 ac_check_lib_save_LIBS
=$LIBS
13848 LIBS
="-lncurses $LIBS"
13849 cat >conftest.
$ac_ext <<_ACEOF
13850 #line $LINENO "configure"
13853 cat confdefs.h
>>conftest.
$ac_ext
13854 cat >>conftest.
$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13857 /* Override any gcc2 internal prototype to avoid an error. */
13861 /* We use char because int might match the return type of a gcc2
13862 builtin and then its argument prototype would still apply. */
13872 rm -f conftest.
$ac_objext conftest
$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874 (eval $ac_link) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try
='test -s conftest$ac_exeext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_cv_lib_ncurses_tparm
=yes
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.
$ac_ext >&5
13889 ac_cv_lib_ncurses_tparm
=no
13891 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13892 LIBS
=$ac_check_lib_save_LIBS
13894 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
13895 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
13896 if test $ac_cv_lib_ncurses_tparm = yes; then
13897 cat >>confdefs.h
<<_ACEOF
13898 #define HAVE_LIBNCURSES 1
13901 LIBS
="-lncurses $LIBS"
13906 # Do we need the Hesiod library to provide the support routines?
13907 if test "$with_hesiod" = yes ; then
13908 # Don't set $LIBS here -- see comments above.
13910 echo "$as_me:$LINENO: checking for res_send" >&5
13911 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
13912 if test "${ac_cv_func_res_send+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 cat >conftest.
$ac_ext <<_ACEOF
13916 #line $LINENO "configure"
13919 cat confdefs.h
>>conftest.
$ac_ext
13920 cat >>conftest.
$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 /* System header to define __stub macros and hopefully few prototypes,
13923 which can conflict with char res_send (); below.
13924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13925 <limits.h> exists even on freestanding compilers. */
13927 # include <limits.h>
13929 # include <assert.h>
13931 /* Override any gcc2 internal prototype to avoid an error. */
13936 /* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13939 /* The GNU C library defines this for functions which it implements
13940 to always fail with ENOSYS. Some functions are actually named
13941 something starting with __ and the normal name is an alias. */
13942 #if defined (__stub_res_send) || defined (__stub___res_send)
13945 char (*f) () = res_send;
13954 return f != res_send;
13959 rm -f conftest.
$ac_objext conftest
$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try
='test -s conftest$ac_exeext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_cv_func_res_send
=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.
$ac_ext >&5
13976 ac_cv_func_res_send
=no
13978 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13980 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
13981 echo "${ECHO_T}$ac_cv_func_res_send" >&6
13982 if test $ac_cv_func_res_send = yes; then
13985 echo "$as_me:$LINENO: checking for __res_send" >&5
13986 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
13987 if test "${ac_cv_func___res_send+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 cat >conftest.
$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13994 cat confdefs.h
>>conftest.
$ac_ext
13995 cat >>conftest.
$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 /* System header to define __stub macros and hopefully few prototypes,
13998 which can conflict with char __res_send (); below.
13999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14000 <limits.h> exists even on freestanding compilers. */
14002 # include <limits.h>
14004 # include <assert.h>
14006 /* Override any gcc2 internal prototype to avoid an error. */
14011 /* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14013 char __res_send ();
14014 /* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017 #if defined (__stub___res_send) || defined (__stub_____res_send)
14020 char (*f) () = __res_send;
14029 return f != __res_send;
14034 rm -f conftest.
$ac_objext conftest
$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try
='test -s conftest$ac_exeext'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
14046 ac_cv_func___res_send
=yes
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.
$ac_ext >&5
14051 ac_cv_func___res_send
=no
14053 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14055 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14056 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14057 if test $ac_cv_func___res_send = yes; then
14060 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14061 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14062 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 ac_check_lib_save_LIBS
=$LIBS
14066 LIBS
="-lresolv $LIBS"
14067 cat >conftest.
$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14071 cat confdefs.h
>>conftest.
$ac_ext
14072 cat >>conftest.
$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14075 /* Override any gcc2 internal prototype to avoid an error. */
14079 /* We use char because int might match the return type of a gcc2
14080 builtin and then its argument prototype would still apply. */
14090 rm -f conftest.
$ac_objext conftest
$ac_exeext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14092 (eval $ac_link) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try
='test -s conftest$ac_exeext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 ac_cv_lib_resolv_res_send
=yes
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.
$ac_ext >&5
14107 ac_cv_lib_resolv_res_send
=no
14109 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14110 LIBS
=$ac_check_lib_save_LIBS
14112 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14113 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14114 if test $ac_cv_lib_resolv_res_send = yes; then
14117 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14118 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14119 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 ac_check_lib_save_LIBS
=$LIBS
14123 LIBS
="-lresolv $LIBS"
14124 cat >conftest.
$ac_ext <<_ACEOF
14125 #line $LINENO "configure"
14128 cat confdefs.h
>>conftest.
$ac_ext
14129 cat >>conftest.
$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14132 /* Override any gcc2 internal prototype to avoid an error. */
14136 /* We use char because int might match the return type of a gcc2
14137 builtin and then its argument prototype would still apply. */
14138 char __res_send ();
14147 rm -f conftest.
$ac_objext conftest
$ac_exeext
14148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14149 (eval $ac_link) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
14153 { ac_try
='test -s conftest$ac_exeext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_lib_resolv___res_send
=yes
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.
$ac_ext >&5
14164 ac_cv_lib_resolv___res_send
=no
14166 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14167 LIBS
=$ac_check_lib_save_LIBS
14169 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14170 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14171 if test $ac_cv_lib_resolv___res_send = yes; then
14181 if test "$resolv" = yes ; then
14184 cat >>confdefs.h
<<\_ACEOF
14185 #define HAVE_LIBRESOLV 1
14191 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14192 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14193 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 cat >conftest.
$ac_ext <<_ACEOF
14197 #line $LINENO "configure"
14200 cat confdefs.h
>>conftest.
$ac_ext
14201 cat >>conftest.
$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 /* System header to define __stub macros and hopefully few prototypes,
14204 which can conflict with char hes_getmailhost (); below.
14205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14206 <limits.h> exists even on freestanding compilers. */
14208 # include <limits.h>
14210 # include <assert.h>
14212 /* Override any gcc2 internal prototype to avoid an error. */
14217 /* We use char because int might match the return type of a gcc2
14218 builtin and then its argument prototype would still apply. */
14219 char hes_getmailhost ();
14220 /* The GNU C library defines this for functions which it implements
14221 to always fail with ENOSYS. Some functions are actually named
14222 something starting with __ and the normal name is an alias. */
14223 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14226 char (*f) () = hes_getmailhost;
14235 return f != hes_getmailhost;
14240 rm -f conftest.
$ac_objext conftest
$ac_exeext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14242 (eval $ac_link) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try
='test -s conftest$ac_exeext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_cv_func_hes_getmailhost
=yes
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.
$ac_ext >&5
14257 ac_cv_func_hes_getmailhost
=no
14259 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14261 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14262 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14263 if test $ac_cv_func_hes_getmailhost = yes; then
14266 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14267 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14268 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 ac_check_lib_save_LIBS
=$LIBS
14272 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14273 cat >conftest.
$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14277 cat confdefs.h
>>conftest.
$ac_ext
14278 cat >>conftest.
$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14281 /* Override any gcc2 internal prototype to avoid an error. */
14285 /* We use char because int might match the return type of a gcc2
14286 builtin and then its argument prototype would still apply. */
14287 char hes_getmailhost ();
14291 hes_getmailhost ();
14296 rm -f conftest.
$ac_objext conftest
$ac_exeext
14297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14298 (eval $ac_link) 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
14302 { ac_try
='test -s conftest$ac_exeext'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
14308 ac_cv_lib_hesiod_hes_getmailhost
=yes
14310 echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.
$ac_ext >&5
14313 ac_cv_lib_hesiod_hes_getmailhost
=no
14315 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14316 LIBS
=$ac_check_lib_save_LIBS
14318 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14319 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14320 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14322 cat >>confdefs.h
<<\_ACEOF
14323 #define HAVE_LIBHESIOD 1
14334 # These tell us which Kerberos-related libraries to use.
14335 if test "${with_kerberos+set}" = set; then
14337 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14338 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14339 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 ac_check_lib_save_LIBS
=$LIBS
14343 LIBS
="-lcom_err $LIBS"
14344 cat >conftest.
$ac_ext <<_ACEOF
14345 #line $LINENO "configure"
14348 cat confdefs.h
>>conftest.
$ac_ext
14349 cat >>conftest.
$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14352 /* Override any gcc2 internal prototype to avoid an error. */
14356 /* We use char because int might match the return type of a gcc2
14357 builtin and then its argument prototype would still apply. */
14367 rm -f conftest.
$ac_objext conftest
$ac_exeext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14369 (eval $ac_link) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try
='test -s conftest$ac_exeext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 ac_cv_lib_com_err_com_err
=yes
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.
$ac_ext >&5
14384 ac_cv_lib_com_err_com_err
=no
14386 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14387 LIBS
=$ac_check_lib_save_LIBS
14389 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14390 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14391 if test $ac_cv_lib_com_err_com_err = yes; then
14392 cat >>confdefs.h
<<_ACEOF
14393 #define HAVE_LIBCOM_ERR 1
14396 LIBS
="-lcom_err $LIBS"
14401 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14402 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14403 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 ac_check_lib_save_LIBS
=$LIBS
14407 LIBS
="-lk5crypto $LIBS"
14408 cat >conftest.
$ac_ext <<_ACEOF
14409 #line $LINENO "configure"
14412 cat confdefs.h
>>conftest.
$ac_ext
14413 cat >>conftest.
$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14416 /* Override any gcc2 internal prototype to avoid an error. */
14420 /* We use char because int might match the return type of a gcc2
14421 builtin and then its argument prototype would still apply. */
14422 char mit_des_cbc_encrypt ();
14426 mit_des_cbc_encrypt ();
14431 rm -f conftest.
$ac_objext conftest
$ac_exeext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14433 (eval $ac_link) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try
='test -s conftest$ac_exeext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.
$ac_ext >&5
14448 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14450 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14451 LIBS
=$ac_check_lib_save_LIBS
14453 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14454 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14455 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14456 cat >>confdefs.h
<<_ACEOF
14457 #define HAVE_LIBK5CRYPTO 1
14460 LIBS
="-lk5crypto $LIBS"
14465 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14466 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14467 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 ac_check_lib_save_LIBS
=$LIBS
14471 LIBS
="-lcrypto $LIBS"
14472 cat >conftest.
$ac_ext <<_ACEOF
14473 #line $LINENO "configure"
14476 cat confdefs.h
>>conftest.
$ac_ext
14477 cat >>conftest.
$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14480 /* Override any gcc2 internal prototype to avoid an error. */
14484 /* We use char because int might match the return type of a gcc2
14485 builtin and then its argument prototype would still apply. */
14486 char mit_des_cbc_encrypt ();
14490 mit_des_cbc_encrypt ();
14495 rm -f conftest.
$ac_objext conftest
$ac_exeext
14496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14497 (eval $ac_link) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } &&
14501 { ac_try
='test -s conftest$ac_exeext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14507 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14509 echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.
$ac_ext >&5
14512 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14514 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14515 LIBS
=$ac_check_lib_save_LIBS
14517 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14518 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14519 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14520 cat >>confdefs.h
<<_ACEOF
14521 #define HAVE_LIBCRYPTO 1
14524 LIBS
="-lcrypto $LIBS"
14529 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14530 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14531 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 ac_check_lib_save_LIBS
=$LIBS
14535 LIBS
="-lkrb5 $LIBS"
14536 cat >conftest.
$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14540 cat confdefs.h
>>conftest.
$ac_ext
14541 cat >>conftest.
$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14544 /* Override any gcc2 internal prototype to avoid an error. */
14548 /* We use char because int might match the return type of a gcc2
14549 builtin and then its argument prototype would still apply. */
14550 char krb5_init_context ();
14554 krb5_init_context ();
14559 rm -f conftest.
$ac_objext conftest
$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try
='test -s conftest$ac_exeext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14571 ac_cv_lib_krb5_krb5_init_context
=yes
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.
$ac_ext >&5
14576 ac_cv_lib_krb5_krb5_init_context
=no
14578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14579 LIBS
=$ac_check_lib_save_LIBS
14581 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14582 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14583 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14584 cat >>confdefs.h
<<_ACEOF
14585 #define HAVE_LIBKRB5 1
14588 LIBS
="-lkrb5 $LIBS"
14592 if test "${with_kerberos5+set}" != set; then
14594 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14595 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14596 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 ac_check_lib_save_LIBS
=$LIBS
14600 LIBS
="-ldes425 $LIBS"
14601 cat >conftest.
$ac_ext <<_ACEOF
14602 #line $LINENO "configure"
14605 cat confdefs.h
>>conftest.
$ac_ext
14606 cat >>conftest.
$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14609 /* Override any gcc2 internal prototype to avoid an error. */
14613 /* We use char because int might match the return type of a gcc2
14614 builtin and then its argument prototype would still apply. */
14615 char des_cbc_encrypt ();
14619 des_cbc_encrypt ();
14624 rm -f conftest.
$ac_objext conftest
$ac_exeext
14625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14626 (eval $ac_link) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try
='test -s conftest$ac_exeext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_cv_lib_des425_des_cbc_encrypt
=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.
$ac_ext >&5
14641 ac_cv_lib_des425_des_cbc_encrypt
=no
14643 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14644 LIBS
=$ac_check_lib_save_LIBS
14646 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14647 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14648 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14649 cat >>confdefs.h
<<_ACEOF
14650 #define HAVE_LIBDES425 1
14653 LIBS
="-ldes425 $LIBS"
14657 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14658 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14659 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 ac_check_lib_save_LIBS
=$LIBS
14664 cat >conftest.
$ac_ext <<_ACEOF
14665 #line $LINENO "configure"
14668 cat confdefs.h
>>conftest.
$ac_ext
14669 cat >>conftest.
$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14672 /* Override any gcc2 internal prototype to avoid an error. */
14676 /* We use char because int might match the return type of a gcc2
14677 builtin and then its argument prototype would still apply. */
14678 char des_cbc_encrypt ();
14682 des_cbc_encrypt ();
14687 rm -f conftest.
$ac_objext conftest
$ac_exeext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14689 (eval $ac_link) 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try
='test -s conftest$ac_exeext'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; }; then
14699 ac_cv_lib_des_des_cbc_encrypt
=yes
14701 echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.
$ac_ext >&5
14704 ac_cv_lib_des_des_cbc_encrypt
=no
14706 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14707 LIBS
=$ac_check_lib_save_LIBS
14709 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14710 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14711 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14712 cat >>confdefs.h
<<_ACEOF
14713 #define HAVE_LIBDES 1
14723 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14724 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14725 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 ac_check_lib_save_LIBS
=$LIBS
14729 LIBS
="-lkrb4 $LIBS"
14730 cat >conftest.
$ac_ext <<_ACEOF
14731 #line $LINENO "configure"
14734 cat confdefs.h
>>conftest.
$ac_ext
14735 cat >>conftest.
$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14738 /* Override any gcc2 internal prototype to avoid an error. */
14742 /* We use char because int might match the return type of a gcc2
14743 builtin and then its argument prototype would still apply. */
14744 char krb_get_cred ();
14753 rm -f conftest.
$ac_objext conftest
$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try
='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 ac_cv_lib_krb4_krb_get_cred
=yes
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.
$ac_ext >&5
14770 ac_cv_lib_krb4_krb_get_cred
=no
14772 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14773 LIBS
=$ac_check_lib_save_LIBS
14775 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14776 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14777 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14778 cat >>confdefs.h
<<_ACEOF
14779 #define HAVE_LIBKRB4 1
14782 LIBS
="-lkrb4 $LIBS"
14786 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14787 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14788 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 ac_check_lib_save_LIBS
=$LIBS
14793 cat >conftest.
$ac_ext <<_ACEOF
14794 #line $LINENO "configure"
14797 cat confdefs.h
>>conftest.
$ac_ext
14798 cat >>conftest.
$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14801 /* Override any gcc2 internal prototype to avoid an error. */
14805 /* We use char because int might match the return type of a gcc2
14806 builtin and then its argument prototype would still apply. */
14807 char krb_get_cred ();
14816 rm -f conftest.
$ac_objext conftest
$ac_exeext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14818 (eval $ac_link) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try
='test -s conftest$ac_exeext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_cv_lib_krb_krb_get_cred
=yes
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.
$ac_ext >&5
14833 ac_cv_lib_krb_krb_get_cred
=no
14835 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14836 LIBS
=$ac_check_lib_save_LIBS
14838 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
14839 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
14840 if test $ac_cv_lib_krb_krb_get_cred = yes; then
14841 cat >>confdefs.h
<<_ACEOF
14842 #define HAVE_LIBKRB 1
14853 if test "${with_kerberos5+set}" = set; then
14855 for ac_header
in krb5.h
14857 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14859 echo "$as_me:$LINENO: checking for $ac_header" >&5
14860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14867 # Is the header compilable?
14868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14870 cat >conftest.
$ac_ext <<_ACEOF
14871 #line $LINENO "configure"
14874 cat confdefs.h
>>conftest.
$ac_ext
14875 cat >>conftest.
$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 $ac_includes_default
14878 #include <$ac_header>
14880 rm -f conftest.
$ac_objext
14881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14882 (eval $ac_compile) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try
='test -s conftest.$ac_objext'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }; then
14892 ac_header_compiler
=yes
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.
$ac_ext >&5
14897 ac_header_compiler
=no
14899 rm -f conftest.
$ac_objext conftest.
$ac_ext
14900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14901 echo "${ECHO_T}$ac_header_compiler" >&6
14903 # Is the header present?
14904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14906 cat >conftest.
$ac_ext <<_ACEOF
14907 #line $LINENO "configure"
14910 cat confdefs.h
>>conftest.
$ac_ext
14911 cat >>conftest.
$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 #include <$ac_header>
14915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14918 grep -v '^ *+' conftest.er1
>conftest.err
14920 cat conftest.err
>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } >/dev
/null
; then
14923 if test -s conftest.err
; then
14924 ac_cpp_err
=$ac_c_preproc_warn_flag
14931 if test -z "$ac_cpp_err"; then
14932 ac_header_preproc
=yes
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.
$ac_ext >&5
14937 ac_header_preproc
=no
14939 rm -f conftest.err conftest.
$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14941 echo "${ECHO_T}$ac_header_preproc" >&6
14943 # So? What about this header?
14944 case $ac_header_compiler:$ac_header_preproc in
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14952 ## ------------------------------------ ##
14953 ## Report this to bug-autoconf@gnu.org. ##
14954 ## ------------------------------------ ##
14957 sed "s/^/$as_me: WARNING: /" >&2
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14968 ## ------------------------------------ ##
14969 ## Report this to bug-autoconf@gnu.org. ##
14970 ## ------------------------------------ ##
14973 sed "s/^/$as_me: WARNING: /" >&2
14976 echo "$as_me:$LINENO: checking for $ac_header" >&5
14977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 eval "$as_ac_Header=$ac_header_preproc"
14983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14988 cat >>confdefs.h
<<_ACEOF
14989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14998 for ac_header
in des.h
15000 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15002 echo "$as_me:$LINENO: checking for $ac_header" >&5
15003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15010 # Is the header compilable?
15011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15013 cat >conftest.
$ac_ext <<_ACEOF
15014 #line $LINENO "configure"
15017 cat confdefs.h
>>conftest.
$ac_ext
15018 cat >>conftest.
$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15020 $ac_includes_default
15021 #include <$ac_header>
15023 rm -f conftest.
$ac_objext
15024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15025 (eval $ac_compile) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try
='test -s conftest.$ac_objext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_header_compiler
=yes
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.
$ac_ext >&5
15040 ac_header_compiler
=no
15042 rm -f conftest.
$ac_objext conftest.
$ac_ext
15043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15044 echo "${ECHO_T}$ac_header_compiler" >&6
15046 # Is the header present?
15047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15049 cat >conftest.
$ac_ext <<_ACEOF
15050 #line $LINENO "configure"
15053 cat confdefs.h
>>conftest.
$ac_ext
15054 cat >>conftest.
$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 #include <$ac_header>
15058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15059 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15061 grep -v '^ *+' conftest.er1
>conftest.err
15063 cat conftest.err
>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } >/dev
/null
; then
15066 if test -s conftest.err
; then
15067 ac_cpp_err
=$ac_c_preproc_warn_flag
15074 if test -z "$ac_cpp_err"; then
15075 ac_header_preproc
=yes
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.
$ac_ext >&5
15080 ac_header_preproc
=no
15082 rm -f conftest.err conftest.
$ac_ext
15083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15084 echo "${ECHO_T}$ac_header_preproc" >&6
15086 # So? What about this header?
15087 case $ac_header_compiler:$ac_header_preproc in
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15095 ## ------------------------------------ ##
15096 ## Report this to bug-autoconf@gnu.org. ##
15097 ## ------------------------------------ ##
15100 sed "s/^/$as_me: WARNING: /" >&2
15103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15111 ## ------------------------------------ ##
15112 ## Report this to bug-autoconf@gnu.org. ##
15113 ## ------------------------------------ ##
15116 sed "s/^/$as_me: WARNING: /" >&2
15119 echo "$as_me:$LINENO: checking for $ac_header" >&5
15120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 eval "$as_ac_Header=$ac_header_preproc"
15126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15131 cat >>confdefs.h
<<_ACEOF
15132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15137 for ac_header
in kerberosIV
/des.h
15139 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15141 echo "$as_me:$LINENO: checking for $ac_header" >&5
15142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15149 # Is the header compilable?
15150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15152 cat >conftest.
$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15156 cat confdefs.h
>>conftest.
$ac_ext
15157 cat >>conftest.
$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 $ac_includes_default
15160 #include <$ac_header>
15162 rm -f conftest.
$ac_objext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 (eval $ac_compile) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try
='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_header_compiler
=yes
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.
$ac_ext >&5
15179 ac_header_compiler
=no
15181 rm -f conftest.
$ac_objext conftest.
$ac_ext
15182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15183 echo "${ECHO_T}$ac_header_compiler" >&6
15185 # Is the header present?
15186 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15188 cat >conftest.
$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15192 cat confdefs.h
>>conftest.
$ac_ext
15193 cat >>conftest.
$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 #include <$ac_header>
15197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15198 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15200 grep -v '^ *+' conftest.er1
>conftest.err
15202 cat conftest.err
>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } >/dev
/null
; then
15205 if test -s conftest.err
; then
15206 ac_cpp_err
=$ac_c_preproc_warn_flag
15213 if test -z "$ac_cpp_err"; then
15214 ac_header_preproc
=yes
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.
$ac_ext >&5
15219 ac_header_preproc
=no
15221 rm -f conftest.err conftest.
$ac_ext
15222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223 echo "${ECHO_T}$ac_header_preproc" >&6
15225 # So? What about this header?
15226 case $ac_header_compiler:$ac_header_preproc in
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15234 ## ------------------------------------ ##
15235 ## Report this to bug-autoconf@gnu.org. ##
15236 ## ------------------------------------ ##
15239 sed "s/^/$as_me: WARNING: /" >&2
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15250 ## ------------------------------------ ##
15251 ## Report this to bug-autoconf@gnu.org. ##
15252 ## ------------------------------------ ##
15255 sed "s/^/$as_me: WARNING: /" >&2
15258 echo "$as_me:$LINENO: checking for $ac_header" >&5
15259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 eval "$as_ac_Header=$ac_header_preproc"
15265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15270 cat >>confdefs.h
<<_ACEOF
15271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15276 for ac_header
in kerberos
/des.h
15278 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15280 echo "$as_me:$LINENO: checking for $ac_header" >&5
15281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15288 # Is the header compilable?
15289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15291 cat >conftest.
$ac_ext <<_ACEOF
15292 #line $LINENO "configure"
15295 cat confdefs.h
>>conftest.
$ac_ext
15296 cat >>conftest.
$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 #include <$ac_header>
15301 rm -f conftest.
$ac_objext
15302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15303 (eval $ac_compile) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
15307 { ac_try
='test -s conftest.$ac_objext'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_header_compiler
=yes
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.
$ac_ext >&5
15318 ac_header_compiler
=no
15320 rm -f conftest.
$ac_objext conftest.
$ac_ext
15321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15322 echo "${ECHO_T}$ac_header_compiler" >&6
15324 # Is the header present?
15325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15327 cat >conftest.
$ac_ext <<_ACEOF
15328 #line $LINENO "configure"
15331 cat confdefs.h
>>conftest.
$ac_ext
15332 cat >>conftest.
$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 #include <$ac_header>
15336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15337 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15339 grep -v '^ *+' conftest.er1
>conftest.err
15341 cat conftest.err
>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } >/dev
/null
; then
15344 if test -s conftest.err
; then
15345 ac_cpp_err
=$ac_c_preproc_warn_flag
15352 if test -z "$ac_cpp_err"; then
15353 ac_header_preproc
=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.
$ac_ext >&5
15358 ac_header_preproc
=no
15360 rm -f conftest.err conftest.
$ac_ext
15361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15362 echo "${ECHO_T}$ac_header_preproc" >&6
15364 # So? What about this header?
15365 case $ac_header_compiler:$ac_header_preproc in
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15373 ## ------------------------------------ ##
15374 ## Report this to bug-autoconf@gnu.org. ##
15375 ## ------------------------------------ ##
15378 sed "s/^/$as_me: WARNING: /" >&2
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15389 ## ------------------------------------ ##
15390 ## Report this to bug-autoconf@gnu.org. ##
15391 ## ------------------------------------ ##
15394 sed "s/^/$as_me: WARNING: /" >&2
15397 echo "$as_me:$LINENO: checking for $ac_header" >&5
15398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 eval "$as_ac_Header=$ac_header_preproc"
15404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15409 cat >>confdefs.h
<<_ACEOF
15410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15426 for ac_header
in krb.h
15428 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15430 echo "$as_me:$LINENO: checking for $ac_header" >&5
15431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15438 # Is the header compilable?
15439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15441 cat >conftest.
$ac_ext <<_ACEOF
15442 #line $LINENO "configure"
15445 cat confdefs.h
>>conftest.
$ac_ext
15446 cat >>conftest.
$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 $ac_includes_default
15449 #include <$ac_header>
15451 rm -f conftest.
$ac_objext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453 (eval $ac_compile) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try
='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_header_compiler
=yes
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.
$ac_ext >&5
15468 ac_header_compiler
=no
15470 rm -f conftest.
$ac_objext conftest.
$ac_ext
15471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15472 echo "${ECHO_T}$ac_header_compiler" >&6
15474 # Is the header present?
15475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15477 cat >conftest.
$ac_ext <<_ACEOF
15478 #line $LINENO "configure"
15481 cat confdefs.h
>>conftest.
$ac_ext
15482 cat >>conftest.
$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 #include <$ac_header>
15486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15487 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15489 grep -v '^ *+' conftest.er1
>conftest.err
15491 cat conftest.err
>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } >/dev
/null
; then
15494 if test -s conftest.err
; then
15495 ac_cpp_err
=$ac_c_preproc_warn_flag
15502 if test -z "$ac_cpp_err"; then
15503 ac_header_preproc
=yes
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.
$ac_ext >&5
15508 ac_header_preproc
=no
15510 rm -f conftest.err conftest.
$ac_ext
15511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15512 echo "${ECHO_T}$ac_header_preproc" >&6
15514 # So? What about this header?
15515 case $ac_header_compiler:$ac_header_preproc in
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523 ## ------------------------------------ ##
15524 ## Report this to bug-autoconf@gnu.org. ##
15525 ## ------------------------------------ ##
15528 sed "s/^/$as_me: WARNING: /" >&2
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15539 ## ------------------------------------ ##
15540 ## Report this to bug-autoconf@gnu.org. ##
15541 ## ------------------------------------ ##
15544 sed "s/^/$as_me: WARNING: /" >&2
15547 echo "$as_me:$LINENO: checking for $ac_header" >&5
15548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 eval "$as_ac_Header=$ac_header_preproc"
15554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15559 cat >>confdefs.h
<<_ACEOF
15560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15565 for ac_header
in kerberosIV
/krb.h
15567 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15569 echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15577 # Is the header compilable?
15578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15580 cat >conftest.
$ac_ext <<_ACEOF
15581 #line $LINENO "configure"
15584 cat confdefs.h
>>conftest.
$ac_ext
15585 cat >>conftest.
$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $ac_includes_default
15588 #include <$ac_header>
15590 rm -f conftest.
$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try
='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_header_compiler
=yes
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.
$ac_ext >&5
15607 ac_header_compiler
=no
15609 rm -f conftest.
$ac_objext conftest.
$ac_ext
15610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15611 echo "${ECHO_T}$ac_header_compiler" >&6
15613 # Is the header present?
15614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15616 cat >conftest.
$ac_ext <<_ACEOF
15617 #line $LINENO "configure"
15620 cat confdefs.h
>>conftest.
$ac_ext
15621 cat >>conftest.
$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 #include <$ac_header>
15625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15626 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15628 grep -v '^ *+' conftest.er1
>conftest.err
15630 cat conftest.err
>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } >/dev
/null
; then
15633 if test -s conftest.err
; then
15634 ac_cpp_err
=$ac_c_preproc_warn_flag
15641 if test -z "$ac_cpp_err"; then
15642 ac_header_preproc
=yes
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.
$ac_ext >&5
15647 ac_header_preproc
=no
15649 rm -f conftest.err conftest.
$ac_ext
15650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15651 echo "${ECHO_T}$ac_header_preproc" >&6
15653 # So? What about this header?
15654 case $ac_header_compiler:$ac_header_preproc in
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15662 ## ------------------------------------ ##
15663 ## Report this to bug-autoconf@gnu.org. ##
15664 ## ------------------------------------ ##
15667 sed "s/^/$as_me: WARNING: /" >&2
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15678 ## ------------------------------------ ##
15679 ## Report this to bug-autoconf@gnu.org. ##
15680 ## ------------------------------------ ##
15683 sed "s/^/$as_me: WARNING: /" >&2
15686 echo "$as_me:$LINENO: checking for $ac_header" >&5
15687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15689 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 eval "$as_ac_Header=$ac_header_preproc"
15693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15698 cat >>confdefs.h
<<_ACEOF
15699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15704 for ac_header
in kerberos
/krb.h
15706 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15708 echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15716 # Is the header compilable?
15717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15719 cat >conftest.
$ac_ext <<_ACEOF
15720 #line $LINENO "configure"
15723 cat confdefs.h
>>conftest.
$ac_ext
15724 cat >>conftest.
$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15726 $ac_includes_default
15727 #include <$ac_header>
15729 rm -f conftest.
$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try
='test -s conftest.$ac_objext'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
15741 ac_header_compiler
=yes
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.
$ac_ext >&5
15746 ac_header_compiler
=no
15748 rm -f conftest.
$ac_objext conftest.
$ac_ext
15749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15750 echo "${ECHO_T}$ac_header_compiler" >&6
15752 # Is the header present?
15753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15755 cat >conftest.
$ac_ext <<_ACEOF
15756 #line $LINENO "configure"
15759 cat confdefs.h
>>conftest.
$ac_ext
15760 cat >>conftest.
$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <$ac_header>
15764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15765 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15767 grep -v '^ *+' conftest.er1
>conftest.err
15769 cat conftest.err
>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } >/dev
/null
; then
15772 if test -s conftest.err
; then
15773 ac_cpp_err
=$ac_c_preproc_warn_flag
15780 if test -z "$ac_cpp_err"; then
15781 ac_header_preproc
=yes
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.
$ac_ext >&5
15786 ac_header_preproc
=no
15788 rm -f conftest.err conftest.
$ac_ext
15789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 echo "${ECHO_T}$ac_header_preproc" >&6
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc in
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15801 ## ------------------------------------ ##
15802 ## Report this to bug-autoconf@gnu.org. ##
15803 ## ------------------------------------ ##
15806 sed "s/^/$as_me: WARNING: /" >&2
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15817 ## ------------------------------------ ##
15818 ## Report this to bug-autoconf@gnu.org. ##
15819 ## ------------------------------------ ##
15822 sed "s/^/$as_me: WARNING: /" >&2
15825 echo "$as_me:$LINENO: checking for $ac_header" >&5
15826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 eval "$as_ac_Header=$ac_header_preproc"
15832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15837 cat >>confdefs.h
<<_ACEOF
15838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15855 for ac_header
in com_err.h
15857 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15859 echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15867 # Is the header compilable?
15868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15870 cat >conftest.
$ac_ext <<_ACEOF
15871 #line $LINENO "configure"
15874 cat confdefs.h
>>conftest.
$ac_ext
15875 cat >>conftest.
$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <$ac_header>
15880 rm -f conftest.
$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882 (eval $ac_compile) 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } &&
15886 { ac_try
='test -s conftest.$ac_objext'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }; then
15892 ac_header_compiler
=yes
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.
$ac_ext >&5
15897 ac_header_compiler
=no
15899 rm -f conftest.
$ac_objext conftest.
$ac_ext
15900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15901 echo "${ECHO_T}$ac_header_compiler" >&6
15903 # Is the header present?
15904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15906 cat >conftest.
$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15910 cat confdefs.h
>>conftest.
$ac_ext
15911 cat >>conftest.
$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 #include <$ac_header>
15915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15918 grep -v '^ *+' conftest.er1
>conftest.err
15920 cat conftest.err
>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } >/dev
/null
; then
15923 if test -s conftest.err
; then
15924 ac_cpp_err
=$ac_c_preproc_warn_flag
15931 if test -z "$ac_cpp_err"; then
15932 ac_header_preproc
=yes
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.
$ac_ext >&5
15937 ac_header_preproc
=no
15939 rm -f conftest.err conftest.
$ac_ext
15940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15941 echo "${ECHO_T}$ac_header_preproc" >&6
15943 # So? What about this header?
15944 case $ac_header_compiler:$ac_header_preproc in
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15952 ## ------------------------------------ ##
15953 ## Report this to bug-autoconf@gnu.org. ##
15954 ## ------------------------------------ ##
15957 sed "s/^/$as_me: WARNING: /" >&2
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 ## ------------------------------------ ##
15969 ## Report this to bug-autoconf@gnu.org. ##
15970 ## ------------------------------------ ##
15973 sed "s/^/$as_me: WARNING: /" >&2
15976 echo "$as_me:$LINENO: checking for $ac_header" >&5
15977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 eval "$as_ac_Header=$ac_header_preproc"
15983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15988 cat >>confdefs.h
<<_ACEOF
15989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15998 # Solaris requires -lintl if you want strerror (which calls dgettext)
15999 # to return localized messages.
16001 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16002 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16003 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 ac_check_lib_save_LIBS
=$LIBS
16007 LIBS
="-lintl $LIBS"
16008 cat >conftest.
$ac_ext <<_ACEOF
16009 #line $LINENO "configure"
16012 cat confdefs.h
>>conftest.
$ac_ext
16013 cat >>conftest.
$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16016 /* Override any gcc2 internal prototype to avoid an error. */
16020 /* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16031 rm -f conftest.
$ac_objext conftest
$ac_exeext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16033 (eval $ac_link) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
16037 { ac_try
='test -s conftest$ac_exeext'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_lib_intl_dgettext
=yes
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.
$ac_ext >&5
16048 ac_cv_lib_intl_dgettext
=no
16050 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16051 LIBS
=$ac_check_lib_save_LIBS
16053 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16054 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16055 if test $ac_cv_lib_intl_dgettext = yes; then
16056 cat >>confdefs.h
<<_ACEOF
16057 #define HAVE_LIBINTL 1
16060 LIBS
="-lintl $LIBS"
16065 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16066 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16067 if test "${emacs_cv_localtime_cache+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 if test x
$ac_cv_func_tzset = xyes
; then
16071 if test "$cross_compiling" = yes; then
16072 # If we have tzset, assume the worst when cross-compiling.
16073 emacs_cv_localtime_cache
=yes
16075 cat >conftest.
$ac_ext <<_ACEOF
16076 #line $LINENO "configure"
16079 cat confdefs.h
>>conftest.
$ac_ext
16080 cat >>conftest.
$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16083 extern char **environ;
16087 for (to = from = environ; (*to = *from); from++)
16088 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16091 char TZ_GMT0[] = "TZ=GMT0";
16092 char TZ_PST8[] = "TZ=PST8";
16095 time_t now = time ((time_t *) 0);
16096 int hour_GMT0, hour_unset;
16097 if (putenv (TZ_GMT0) != 0)
16099 hour_GMT0 = localtime (&now)->tm_hour;
16101 hour_unset = localtime (&now)->tm_hour;
16102 if (putenv (TZ_PST8) != 0)
16104 if (localtime (&now)->tm_hour == hour_GMT0)
16107 if (localtime (&now)->tm_hour != hour_unset)
16112 rm -f conftest
$ac_exeext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16114 (eval $ac_link) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; }; then
16123 emacs_cv_localtime_cache
=no
16125 echo "$as_me: program exited with status $ac_status" >&5
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.
$ac_ext >&5
16129 ( exit $ac_status )
16130 emacs_cv_localtime_cache
=yes
16132 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16135 # If we lack tzset, report that localtime does not cache TZ,
16136 # since we can't invalidate the cache if we don't have tzset.
16137 emacs_cv_localtime_cache
=no
16140 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16141 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16142 if test $emacs_cv_localtime_cache = yes; then
16144 cat >>confdefs.h
<<\_ACEOF
16145 #define LOCALTIME_CACHE 1
16150 if test "x$HAVE_TIMEVAL" = xyes
; then
16152 for ac_func
in gettimeofday
16154 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16155 echo "$as_me:$LINENO: checking for $ac_func" >&5
16156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16157 if eval "test \"\${$as_ac_var+set}\" = set"; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 cat >conftest.
$ac_ext <<_ACEOF
16161 #line $LINENO "configure"
16164 cat confdefs.h
>>conftest.
$ac_ext
16165 cat >>conftest.
$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func (); below.
16169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170 <limits.h> exists even on freestanding compilers. */
16172 # include <limits.h>
16174 # include <assert.h>
16176 /* Override any gcc2 internal prototype to avoid an error. */
16181 /* We use char because int might match the return type of a gcc2
16182 builtin and then its argument prototype would still apply. */
16184 /* The GNU C library defines this for functions which it implements
16185 to always fail with ENOSYS. Some functions are actually named
16186 something starting with __ and the normal name is an alias. */
16187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16190 char (*f) () = $ac_func;
16199 return f != $ac_func;
16204 rm -f conftest.
$ac_objext conftest
$ac_exeext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16206 (eval $ac_link) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try
='test -s conftest$ac_exeext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 eval "$as_ac_var=yes"
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.
$ac_ext >&5
16221 eval "$as_ac_var=no"
16223 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16227 if test `eval echo '${'$as_ac_var'}'` = yes; then
16228 cat >>confdefs.h
<<_ACEOF
16229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16235 if test $ac_cv_func_gettimeofday = yes; then
16236 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16237 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16238 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 cat >conftest.
$ac_ext <<_ACEOF
16242 #line $LINENO "configure"
16245 cat confdefs.h
>>conftest.
$ac_ext
16246 cat >>conftest.
$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16249 #ifdef TIME_WITH_SYS_TIME
16250 #include <sys/time.h>
16253 #ifdef HAVE_SYS_TIME_H
16254 #include <sys/time.h>
16262 struct timeval time;
16263 gettimeofday (&time, 0);
16268 rm -f conftest.
$ac_objext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16270 (eval $ac_compile) 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try
='test -s conftest.$ac_objext'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; }; then
16280 emacs_cv_gettimeofday_two_arguments
=yes
16282 echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.
$ac_ext >&5
16285 emacs_cv_gettimeofday_two_arguments
=no
16287 rm -f conftest.
$ac_objext conftest.
$ac_ext
16289 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16290 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16291 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16293 cat >>confdefs.h
<<\_ACEOF
16294 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16301 if test "$ac_cv_func_gettimeofday" = yes; then
16302 echo "$as_me:$LINENO: checking for struct timezone" >&5
16303 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16304 if test "${emacs_cv_struct_timezone+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 cat >conftest.
$ac_ext <<_ACEOF
16308 #line $LINENO "configure"
16311 cat confdefs.h
>>conftest.
$ac_ext
16312 cat >>conftest.
$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16314 #include <sys/time.h>
16318 struct timezone tz;
16323 rm -f conftest.
$ac_objext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16325 (eval $ac_compile) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } &&
16329 { ac_try
='test -s conftest.$ac_objext'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 if test "$cross_compiling" = yes; then
16336 emacs_cv_struct_timezone
=yes
16338 cat >conftest.
$ac_ext <<_ACEOF
16339 #line $LINENO "configure"
16342 cat confdefs.h
>>conftest.
$ac_ext
16343 cat >>conftest.
$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16346 #ifdef TIME_WITH_SYS_TIME
16347 #include <sys/time.h>
16350 #ifdef HAVE_SYS_TIME_H
16351 #include <sys/time.h>
16357 struct timeval time;
16358 struct timezone dummy;
16359 exit (gettimeofday (&time, &dummy));
16362 rm -f conftest
$ac_exeext
16363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16364 (eval $ac_link) 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 emacs_cv_struct_timezone
=yes
16375 echo "$as_me: program exited with status $ac_status" >&5
16376 echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.
$ac_ext >&5
16379 ( exit $ac_status )
16380 emacs_cv_struct_timezone
=no
16382 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.
$ac_ext >&5
16388 emacs_cv_struct_timezone
=no
16390 rm -f conftest.
$ac_objext conftest.
$ac_ext
16392 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16393 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16397 echo "$as_me:$LINENO: checking for socket" >&5
16398 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16399 if test "${ac_cv_func_socket+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 cat >conftest.
$ac_ext <<_ACEOF
16403 #line $LINENO "configure"
16406 cat confdefs.h
>>conftest.
$ac_ext
16407 cat >>conftest.
$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 /* System header to define __stub macros and hopefully few prototypes,
16410 which can conflict with char socket (); below.
16411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16412 <limits.h> exists even on freestanding compilers. */
16414 # include <limits.h>
16416 # include <assert.h>
16418 /* Override any gcc2 internal prototype to avoid an error. */
16423 /* We use char because int might match the return type of a gcc2
16424 builtin and then its argument prototype would still apply. */
16426 /* The GNU C library defines this for functions which it implements
16427 to always fail with ENOSYS. Some functions are actually named
16428 something starting with __ and the normal name is an alias. */
16429 #if defined (__stub_socket) || defined (__stub___socket)
16432 char (*f) () = socket;
16441 return f != socket;
16446 rm -f conftest.
$ac_objext conftest
$ac_exeext
16447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16448 (eval $ac_link) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try
='test -s conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_func_socket
=yes
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.
$ac_ext >&5
16463 ac_cv_func_socket
=no
16465 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16467 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16468 echo "${ECHO_T}$ac_cv_func_socket" >&6
16469 if test $ac_cv_func_socket = yes; then
16475 if test $ok_so_far = yes; then
16476 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16477 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16478 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16479 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16483 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16485 # Is the header compilable?
16486 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16487 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16488 cat >conftest.
$ac_ext <<_ACEOF
16489 #line $LINENO "configure"
16492 cat confdefs.h
>>conftest.
$ac_ext
16493 cat >>conftest.
$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 $ac_includes_default
16496 #include <netinet/in.h>
16498 rm -f conftest.
$ac_objext
16499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16500 (eval $ac_compile) 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try
='test -s conftest.$ac_objext'
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 ac_header_compiler
=yes
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.
$ac_ext >&5
16515 ac_header_compiler
=no
16517 rm -f conftest.
$ac_objext conftest.
$ac_ext
16518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16519 echo "${ECHO_T}$ac_header_compiler" >&6
16521 # Is the header present?
16522 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16523 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16524 cat >conftest.
$ac_ext <<_ACEOF
16525 #line $LINENO "configure"
16528 cat confdefs.h
>>conftest.
$ac_ext
16529 cat >>conftest.
$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 #include <netinet/in.h>
16533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16534 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16536 grep -v '^ *+' conftest.er1
>conftest.err
16538 cat conftest.err
>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } >/dev
/null
; then
16541 if test -s conftest.err
; then
16542 ac_cpp_err
=$ac_c_preproc_warn_flag
16549 if test -z "$ac_cpp_err"; then
16550 ac_header_preproc
=yes
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.
$ac_ext >&5
16555 ac_header_preproc
=no
16557 rm -f conftest.err conftest.
$ac_ext
16558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16559 echo "${ECHO_T}$ac_header_preproc" >&6
16561 # So? What about this header?
16562 case $ac_header_compiler:$ac_header_preproc in
16564 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16565 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16567 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16570 ## ------------------------------------ ##
16571 ## Report this to bug-autoconf@gnu.org. ##
16572 ## ------------------------------------ ##
16575 sed "s/^/$as_me: WARNING: /" >&2
16578 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16579 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16581 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16583 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16586 ## ------------------------------------ ##
16587 ## Report this to bug-autoconf@gnu.org. ##
16588 ## ------------------------------------ ##
16591 sed "s/^/$as_me: WARNING: /" >&2
16594 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16595 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16596 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 ac_cv_header_netinet_in_h
=$ac_header_preproc
16601 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16602 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16605 if test $ac_cv_header_netinet_in_h = yes; then
16613 if test $ok_so_far = yes; then
16614 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16615 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16616 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16617 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16621 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16623 # Is the header compilable?
16624 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16625 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16626 cat >conftest.
$ac_ext <<_ACEOF
16627 #line $LINENO "configure"
16630 cat confdefs.h
>>conftest.
$ac_ext
16631 cat >>conftest.
$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 $ac_includes_default
16634 #include <arpa/inet.h>
16636 rm -f conftest.
$ac_objext
16637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16638 (eval $ac_compile) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try
='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_header_compiler
=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.
$ac_ext >&5
16653 ac_header_compiler
=no
16655 rm -f conftest.
$ac_objext conftest.
$ac_ext
16656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16657 echo "${ECHO_T}$ac_header_compiler" >&6
16659 # Is the header present?
16660 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16661 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16662 cat >conftest.
$ac_ext <<_ACEOF
16663 #line $LINENO "configure"
16666 cat confdefs.h
>>conftest.
$ac_ext
16667 cat >>conftest.
$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16669 #include <arpa/inet.h>
16671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16674 grep -v '^ *+' conftest.er1
>conftest.err
16676 cat conftest.err
>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } >/dev
/null
; then
16679 if test -s conftest.err
; then
16680 ac_cpp_err
=$ac_c_preproc_warn_flag
16687 if test -z "$ac_cpp_err"; then
16688 ac_header_preproc
=yes
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.
$ac_ext >&5
16693 ac_header_preproc
=no
16695 rm -f conftest.err conftest.
$ac_ext
16696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16697 echo "${ECHO_T}$ac_header_preproc" >&6
16699 # So? What about this header?
16700 case $ac_header_compiler:$ac_header_preproc in
16702 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16703 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16705 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16708 ## ------------------------------------ ##
16709 ## Report this to bug-autoconf@gnu.org. ##
16710 ## ------------------------------------ ##
16713 sed "s/^/$as_me: WARNING: /" >&2
16716 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16717 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16719 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16720 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16721 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16724 ## ------------------------------------ ##
16725 ## Report this to bug-autoconf@gnu.org. ##
16726 ## ------------------------------------ ##
16729 sed "s/^/$as_me: WARNING: /" >&2
16732 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16733 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16734 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 ac_cv_header_arpa_inet_h
=$ac_header_preproc
16739 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16740 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16743 if test $ac_cv_header_arpa_inet_h = yes; then
16751 if test $ok_so_far = yes; then
16753 cat >>confdefs.h
<<\_ACEOF
16754 #define HAVE_INET_SOCKETS 1
16759 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16761 cat >>confdefs.h
<<\_ACEOF
16762 #define HAVE_AIX_SMT_EXP 1
16767 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16768 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16769 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16770 echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6
16773 cat >>confdefs.h
<<\_ACEOF
16774 #define HAVE_DEV_PTMX 1
16778 echo "$as_me:$LINENO: result: no" >&5
16779 echo "${ECHO_T}no" >&6
16782 echo "$as_me:$LINENO: checking for pid_t" >&5
16783 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16784 if test "${ac_cv_type_pid_t+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 cat >conftest.
$ac_ext <<_ACEOF
16788 #line $LINENO "configure"
16791 cat confdefs.h
>>conftest.
$ac_ext
16792 cat >>conftest.
$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 $ac_includes_default
16800 if (sizeof (pid_t))
16806 rm -f conftest.
$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808 (eval $ac_compile) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try
='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_cv_type_pid_t
=yes
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.
$ac_ext >&5
16823 ac_cv_type_pid_t
=no
16825 rm -f conftest.
$ac_objext conftest.
$ac_ext
16827 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16828 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16829 if test $ac_cv_type_pid_t = yes; then
16833 cat >>confdefs.h
<<_ACEOF
16841 for ac_header
in unistd.h vfork.h
16843 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16845 echo "$as_me:$LINENO: checking for $ac_header" >&5
16846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16853 # Is the header compilable?
16854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16856 cat >conftest.
$ac_ext <<_ACEOF
16857 #line $LINENO "configure"
16860 cat confdefs.h
>>conftest.
$ac_ext
16861 cat >>conftest.
$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 $ac_includes_default
16864 #include <$ac_header>
16866 rm -f conftest.
$ac_objext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16868 (eval $ac_compile) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
16872 { ac_try
='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_header_compiler
=yes
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.
$ac_ext >&5
16883 ac_header_compiler
=no
16885 rm -f conftest.
$ac_objext conftest.
$ac_ext
16886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16887 echo "${ECHO_T}$ac_header_compiler" >&6
16889 # Is the header present?
16890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16892 cat >conftest.
$ac_ext <<_ACEOF
16893 #line $LINENO "configure"
16896 cat confdefs.h
>>conftest.
$ac_ext
16897 cat >>conftest.
$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16899 #include <$ac_header>
16901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16902 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16904 grep -v '^ *+' conftest.er1
>conftest.err
16906 cat conftest.err
>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } >/dev
/null
; then
16909 if test -s conftest.err
; then
16910 ac_cpp_err
=$ac_c_preproc_warn_flag
16917 if test -z "$ac_cpp_err"; then
16918 ac_header_preproc
=yes
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.
$ac_ext >&5
16923 ac_header_preproc
=no
16925 rm -f conftest.err conftest.
$ac_ext
16926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16927 echo "${ECHO_T}$ac_header_preproc" >&6
16929 # So? What about this header?
16930 case $ac_header_compiler:$ac_header_preproc in
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16938 ## ------------------------------------ ##
16939 ## Report this to bug-autoconf@gnu.org. ##
16940 ## ------------------------------------ ##
16943 sed "s/^/$as_me: WARNING: /" >&2
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16954 ## ------------------------------------ ##
16955 ## Report this to bug-autoconf@gnu.org. ##
16956 ## ------------------------------------ ##
16959 sed "s/^/$as_me: WARNING: /" >&2
16962 echo "$as_me:$LINENO: checking for $ac_header" >&5
16963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 eval "$as_ac_Header=$ac_header_preproc"
16969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16974 cat >>confdefs.h
<<_ACEOF
16975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16984 for ac_func
in fork vfork
16986 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16987 echo "$as_me:$LINENO: checking for $ac_func" >&5
16988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16989 if eval "test \"\${$as_ac_var+set}\" = set"; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 cat >conftest.
$ac_ext <<_ACEOF
16993 #line $LINENO "configure"
16996 cat confdefs.h
>>conftest.
$ac_ext
16997 cat >>conftest.
$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char $ac_func (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17004 # include <limits.h>
17006 # include <assert.h>
17008 /* Override any gcc2 internal prototype to avoid an error. */
17013 /* We use char because int might match the return type of a gcc2
17014 builtin and then its argument prototype would still apply. */
17016 /* The GNU C library defines this for functions which it implements
17017 to always fail with ENOSYS. Some functions are actually named
17018 something starting with __ and the normal name is an alias. */
17019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17022 char (*f) () = $ac_func;
17031 return f != $ac_func;
17036 rm -f conftest.
$ac_objext conftest
$ac_exeext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17038 (eval $ac_link) 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try
='test -s conftest$ac_exeext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 eval "$as_ac_var=yes"
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.
$ac_ext >&5
17053 eval "$as_ac_var=no"
17055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17059 if test `eval echo '${'$as_ac_var'}'` = yes; then
17060 cat >>confdefs.h
<<_ACEOF
17061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17067 if test "x$ac_cv_func_fork" = xyes
; then
17068 echo "$as_me:$LINENO: checking for working fork" >&5
17069 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17070 if test "${ac_cv_func_fork_works+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 if test "$cross_compiling" = yes; then
17074 ac_cv_func_fork_works
=cross
17076 cat >conftest.
$ac_ext <<_ACEOF
17077 /* By Ruediger Kuhlmann. */
17078 #include <sys/types.h>
17080 # include <unistd.h>
17082 /* Some systems only have a dummy stub for fork() */
17090 rm -f conftest
$ac_exeext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092 (eval $ac_link) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 ac_cv_func_fork_works
=yes
17103 echo "$as_me: program exited with status $ac_status" >&5
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.
$ac_ext >&5
17107 ( exit $ac_status )
17108 ac_cv_func_fork_works
=no
17110 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17113 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17114 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17117 ac_cv_func_fork_works
=$ac_cv_func_fork
17119 if test "x$ac_cv_func_fork_works" = xcross
; then
17121 *-*-amigaos* |
*-*-msdosdjgpp*)
17122 # Override, as these systems have only a dummy fork() stub
17123 ac_cv_func_fork_works
=no
17126 ac_cv_func_fork_works
=yes
17129 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17130 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17132 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17133 if test "x$ac_cv_func_vfork" = xyes
; then
17134 echo "$as_me:$LINENO: checking for working vfork" >&5
17135 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17136 if test "${ac_cv_func_vfork_works+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 if test "$cross_compiling" = yes; then
17140 ac_cv_func_vfork_works
=cross
17142 cat >conftest.
$ac_ext <<_ACEOF
17143 #line $LINENO "configure"
17146 cat confdefs.h
>>conftest.
$ac_ext
17147 cat >>conftest.
$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 /* Thanks to Paul Eggert for this test. */
17151 #include <stdlib.h>
17152 #include <sys/types.h>
17153 #include <sys/stat.h>
17154 #include <sys/wait.h>
17156 # include <unistd.h>
17159 # include <vfork.h>
17161 /* On some sparc systems, changes by the child to local and incoming
17162 argument registers are propagated back to the parent. The compiler
17163 is told about this with #include <vfork.h>, but some compilers
17164 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17165 static variable whose address is put into a register that is
17166 clobbered by the vfork. */
17169 sparc_address_test (int arg)
17171 sparc_address_test (arg) int arg;
17174 static pid_t child;
17192 pid_t parent = getpid ();
17195 sparc_address_test (0);
17200 /* Here is another test for sparc vfork register problems. This
17201 test uses lots of local variables, at least as many local
17202 variables as main has allocated so far including compiler
17203 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17204 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17205 reuse the register of parent for one of the local variables,
17206 since it will think that parent can't possibly be used any more
17207 in this routine. Assigning to the local variable will thus
17208 munge parent in the parent process. */
17210 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17211 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17212 /* Convince the compiler that p..p7 are live; otherwise, it might
17213 use the same hardware register for all 8 local variables. */
17214 if (p != p1 || p != p2 || p != p3 || p != p4
17215 || p != p5 || p != p6 || p != p7)
17218 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17219 from child file descriptors. If the child closes a descriptor
17220 before it execs or exits, this munges the parent's descriptor
17221 as well. Test for this by closing stdout in the child. */
17222 _exit(close(fileno(stdout)) != 0);
17227 while (wait(&status) != child)
17230 /* Was there some problem with vforking? */
17233 /* Did the child fail? (This shouldn't happen.) */
17236 /* Did the vfork/compiler bug occur? */
17237 || parent != getpid()
17239 /* Did the file descriptor bug occur? */
17240 || fstat(fileno(stdout), &st) != 0
17245 rm -f conftest
$ac_exeext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17247 (eval $ac_link) 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_cv_func_vfork_works
=yes
17258 echo "$as_me: program exited with status $ac_status" >&5
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.
$ac_ext >&5
17262 ( exit $ac_status )
17263 ac_cv_func_vfork_works
=no
17265 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17268 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17269 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17272 if test "x$ac_cv_func_fork_works" = xcross
; then
17273 ac_cv_func_vfork_works
=ac_cv_func_vfork
17274 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17275 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17278 if test "x$ac_cv_func_vfork_works" = xyes
; then
17280 cat >>confdefs.h
<<\_ACEOF
17281 #define HAVE_WORKING_VFORK 1
17286 cat >>confdefs.h
<<\_ACEOF
17291 if test "x$ac_cv_func_fork_works" = xyes
; then
17293 cat >>confdefs.h
<<\_ACEOF
17294 #define HAVE_WORKING_FORK 1
17300 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17301 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17302 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 cat >conftest.
$ac_ext <<_ACEOF
17306 #line $LINENO "configure"
17309 cat confdefs.h
>>conftest.
$ac_ext
17310 cat >>conftest.
$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 #include <langinfo.h>
17316 char* cs = nl_langinfo(CODESET);
17321 rm -f conftest.
$ac_objext conftest
$ac_exeext
17322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17323 (eval $ac_link) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } &&
17327 { ac_try
='test -s conftest$ac_exeext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 emacs_cv_langinfo_codeset
=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.
$ac_ext >&5
17338 emacs_cv_langinfo_codeset
=no
17340 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17343 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17344 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17345 if test $emacs_cv_langinfo_codeset = yes; then
17347 cat >>confdefs.h
<<\_ACEOF
17348 #define HAVE_LANGINFO_CODESET 1
17353 echo "$as_me:$LINENO: checking for size_t" >&5
17354 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17355 if test "${ac_cv_type_size_t+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 cat >conftest.
$ac_ext <<_ACEOF
17359 #line $LINENO "configure"
17362 cat confdefs.h
>>conftest.
$ac_ext
17363 cat >>conftest.
$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 $ac_includes_default
17371 if (sizeof (size_t))
17377 rm -f conftest.
$ac_objext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379 (eval $ac_compile) 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try
='test -s conftest.$ac_objext'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; }; then
17389 ac_cv_type_size_t
=yes
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.
$ac_ext >&5
17394 ac_cv_type_size_t
=no
17396 rm -f conftest.
$ac_objext conftest.
$ac_ext
17398 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17399 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17400 if test $ac_cv_type_size_t = yes; then
17402 cat >>confdefs.h
<<_ACEOF
17403 #define HAVE_SIZE_T 1
17410 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17411 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17412 if test "${emacs_cv_c_restrict+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 cat >conftest.
$ac_ext <<_ACEOF
17416 #line $LINENO "configure"
17419 cat confdefs.h
>>conftest.
$ac_ext
17420 cat >>conftest.
$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 void fred (int *restrict x);
17431 rm -f conftest.
$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try
='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 emacs_cv_c_restrict
=yes
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.
$ac_ext >&5
17448 cat >conftest.
$ac_ext <<_ACEOF
17449 #line $LINENO "configure"
17452 cat confdefs.h
>>conftest.
$ac_ext
17453 cat >>conftest.
$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 void fred (int *__restrict x);
17464 rm -f conftest.
$ac_objext
17465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17466 (eval $ac_compile) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try
='test -s conftest.$ac_objext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 emacs_cv_c_restrict
=__restrict
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.
$ac_ext >&5
17481 emacs_cv_c_restrict
=no
17483 rm -f conftest.
$ac_objext conftest.
$ac_ext
17485 rm -f conftest.
$ac_objext conftest.
$ac_ext
17487 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17488 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17489 case "$emacs_cv_c_restrict" in
17490 yes) emacs_restrict
=restrict
;;
17491 no
) emacs_restrict
="";;
17492 *) emacs_restrict
="$emacs_cv_c_restrict";;
17494 if test "$emacs_restrict" != __restrict
; then
17496 cat >>confdefs.h
<<_ACEOF
17497 #define __restrict $emacs_restrict
17502 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17503 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17504 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 cat >conftest.
$ac_ext <<_ACEOF
17508 #line $LINENO "configure"
17511 cat confdefs.h
>>conftest.
$ac_ext
17512 cat >>conftest.
$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 void fred (int x[__restrict]);
17523 rm -f conftest.
$ac_objext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try
='test -s conftest.$ac_objext'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; }; then
17535 emacs_cv_c_restrict_arr
=yes
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.
$ac_ext >&5
17540 emacs_cv_c_restrict_arr
=no
17542 rm -f conftest.
$ac_objext conftest.
$ac_ext
17544 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17545 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17546 if test "$emacs_cv_c_restrict_arr" = yes; then
17548 cat >>confdefs.h
<<\_ACEOF
17549 #define __restrict_arr __restrict
17555 for ac_header
in nlist.h
17557 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17559 echo "$as_me:$LINENO: checking for $ac_header" >&5
17560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17567 # Is the header compilable?
17568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17570 cat >conftest.
$ac_ext <<_ACEOF
17571 #line $LINENO "configure"
17574 cat confdefs.h
>>conftest.
$ac_ext
17575 cat >>conftest.
$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 $ac_includes_default
17578 #include <$ac_header>
17580 rm -f conftest.
$ac_objext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17582 (eval $ac_compile) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try
='test -s conftest.$ac_objext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_header_compiler
=yes
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.
$ac_ext >&5
17597 ac_header_compiler
=no
17599 rm -f conftest.
$ac_objext conftest.
$ac_ext
17600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17601 echo "${ECHO_T}$ac_header_compiler" >&6
17603 # Is the header present?
17604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17606 cat >conftest.
$ac_ext <<_ACEOF
17607 #line $LINENO "configure"
17610 cat confdefs.h
>>conftest.
$ac_ext
17611 cat >>conftest.
$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613 #include <$ac_header>
17615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17616 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17618 grep -v '^ *+' conftest.er1
>conftest.err
17620 cat conftest.err
>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } >/dev
/null
; then
17623 if test -s conftest.err
; then
17624 ac_cpp_err
=$ac_c_preproc_warn_flag
17631 if test -z "$ac_cpp_err"; then
17632 ac_header_preproc
=yes
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.
$ac_ext >&5
17637 ac_header_preproc
=no
17639 rm -f conftest.err conftest.
$ac_ext
17640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17641 echo "${ECHO_T}$ac_header_preproc" >&6
17643 # So? What about this header?
17644 case $ac_header_compiler:$ac_header_preproc in
17646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17652 ## ------------------------------------ ##
17653 ## Report this to bug-autoconf@gnu.org. ##
17654 ## ------------------------------------ ##
17657 sed "s/^/$as_me: WARNING: /" >&2
17660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17668 ## ------------------------------------ ##
17669 ## Report this to bug-autoconf@gnu.org. ##
17670 ## ------------------------------------ ##
17673 sed "s/^/$as_me: WARNING: /" >&2
17676 echo "$as_me:$LINENO: checking for $ac_header" >&5
17677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 eval "$as_ac_Header=$ac_header_preproc"
17683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17688 cat >>confdefs.h
<<_ACEOF
17689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17692 cat >>confdefs.h
<<\_ACEOF
17693 #define NLIST_STRUCT 1
17703 # Set up the CFLAGS for real compilation, so we can substitute it.
17704 CFLAGS
="$REAL_CFLAGS"
17705 CPPFLAGS
="$REAL_CPPFLAGS"
17707 #### Find out which version of Emacs this is.
17708 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17709 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17710 if test x
"${version}" = x
; then
17711 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17712 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17713 { (exit 1); exit 1; }; }
17716 ### Specify what sort of things we'll be editing into Makefile and config.h.
17717 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17753 cat >>confdefs.h
<<_ACEOF
17754 #define EMACS_CONFIGURATION "${canonical}"
17758 cat >>confdefs.h
<<_ACEOF
17759 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17763 cat >>confdefs.h
<<_ACEOF
17764 #define config_machfile "${machfile}"
17768 cat >>confdefs.h
<<_ACEOF
17769 #define config_opsysfile "${opsysfile}"
17773 cat >>confdefs.h
<<_ACEOF
17774 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17778 cat >>confdefs.h
<<_ACEOF
17779 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17783 cat >>confdefs.h
<<_ACEOF
17784 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17788 cat >>confdefs.h
<<_ACEOF
17789 #define UNEXEC_SRC ${UNEXEC_SRC}
17793 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17795 cat >>confdefs.h
<<\_ACEOF
17796 #define HAVE_X_WINDOWS 1
17800 if test "${USE_X_TOOLKIT}" != "none" ; then
17802 cat >>confdefs.h
<<\_ACEOF
17803 #define USE_X_TOOLKIT 1
17807 if test "${HAVE_X11}" = "yes" ; then
17809 cat >>confdefs.h
<<\_ACEOF
17814 if test "${HAVE_XFREE386}" = "yes" ; then
17816 cat >>confdefs.h
<<\_ACEOF
17817 #define HAVE_XFREE386 1
17821 if test "${HAVE_MENUS}" = "yes" ; then
17823 cat >>confdefs.h
<<\_ACEOF
17824 #define HAVE_MENUS 1
17828 if test "${GNU_MALLOC}" = "yes" ; then
17830 cat >>confdefs.h
<<\_ACEOF
17831 #define GNU_MALLOC 1
17835 if test "${REL_ALLOC}" = "yes" ; then
17837 cat >>confdefs.h
<<\_ACEOF
17838 #define REL_ALLOC 1
17847 #### Report on what we decided to do.
17849 Configured for \`${canonical}'.
17851 Where should the build process find the source code? ${srcdir}
17852 What operating system and machine description files should Emacs use?
17853 \`${opsysfile}' and \`${machfile}'
17854 What compiler should emacs be built with? ${CC} ${CFLAGS}
17855 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17856 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17857 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17858 What window system should Emacs use? ${window_system}
17859 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17861 if test -n "${x_includes}"; then
17862 echo " Where do we find X Windows header files? ${x_includes}"
17864 echo " Where do we find X Windows header files? Standard dirs"
17866 if test -n "${x_libraries}"; then
17867 echo " Where do we find X Windows libraries? ${x_libraries}"
17869 echo " Where do we find X Windows libraries? Standard dirs"
17872 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17873 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17874 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17875 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17876 echo " Does Emacs use -lungif? ${HAVE_GIF}"
17877 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17878 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17881 # Remove any trailing slashes in these variables.
17882 test "${prefix}" != NONE
&&
17883 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17884 test "${exec_prefix}" != NONE
&&
17885 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17887 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
17888 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
17889 ## from Makefile.c can correctly provide the arg `-traditional' to the
17892 cat >conftest.
$ac_ext <<_ACEOF
17893 #line $LINENO "configure"
17896 cat confdefs.h
>>conftest.
$ac_ext
17897 cat >>conftest.
$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17902 $EGREP "yes..yes" >/dev
/null
2>&1; then
17903 CPP_NEED_TRADITIONAL
=no
17905 CPP_NEED_TRADITIONAL
=yes
17910 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"
17911 ac_config_commands
="$ac_config_commands default"
17912 cat >confcache
<<\_ACEOF
17913 # This file is a shell script that caches the results of configure
17914 # tests run on this system so they can be shared between configure
17915 # scripts and configure runs, see configure's option --config-cache.
17916 # It is not useful on other systems. If it contains results you don't
17917 # want to keep, you may remove or edit it.
17919 # config.status only pays attention to the cache file if you give it
17920 # the --recheck option to rerun configure.
17922 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17923 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17924 # following values.
17928 # The following way of writing the cache mishandles newlines in values,
17929 # but we know of no workaround that is simple, portable, and efficient.
17930 # So, don't put newlines in cache variables' values.
17931 # Ultrix sh set writes to stderr and can't be redirected directly,
17932 # and sets the high bit in the cache file unless we assign to the vars.
17935 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17937 # `set' does not quote correctly, so add quotes (double-quote
17938 # substitution turns \\\\ into \\, and sed turns \\ into \).
17941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17944 # `set' quotes correctly as required by POSIX, so do not add quotes.
17946 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17955 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17957 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17958 if test -w $cache_file; then
17959 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17960 cat confcache
>$cache_file
17962 echo "not updating unwritable cache $cache_file"
17967 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17968 # Let make expand exec_prefix.
17969 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17971 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17972 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17973 # trailing colons and then remove the whole line if VPATH becomes empty
17974 # (actually we leave an empty line to preserve line numbers).
17975 if test "x$srcdir" = x.
; then
17976 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17977 s/:*\$(srcdir):*/:/;
17978 s/:*\${srcdir}:*/:/;
17980 s/^\([^=]*=[ ]*\):*/\1/;
17986 DEFS
=-DHAVE_CONFIG_H
17990 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17991 # 1. Remove the extension, and $U if already installed.
17992 ac_i
=`echo "$ac_i" |
17993 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17995 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
17996 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
17998 LIBOBJS
=$ac_libobjs
18000 LTLIBOBJS
=$ac_ltlibobjs
18004 : ${CONFIG_STATUS=./config.status}
18005 ac_clean_files_save
=$ac_clean_files
18006 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18007 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18008 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18009 cat >$CONFIG_STATUS <<_ACEOF
18011 # Generated by $as_me.
18012 # Run this file to recreate the current configuration.
18013 # Compiler output produced by configure, useful for debugging
18014 # configure, is in config.log if it exists.
18017 ac_cs_recheck=false
18019 SHELL=\${CONFIG_SHELL-$SHELL}
18022 cat >>$CONFIG_STATUS <<\_ACEOF
18023 ## --------------------- ##
18024 ## M4sh Initialization. ##
18025 ## --------------------- ##
18027 # Be Bourne compatible
18028 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18031 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18032 # is contrary to our usage. Disable this feature.
18033 alias -g '${1+"$@"}'='"$@"'
18034 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18038 # Support unset when possible.
18039 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18046 # Work around bugs in pre-3.0 UWIN ksh.
18047 $as_unset ENV MAIL MAILPATH
18054 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18055 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18056 LC_TELEPHONE LC_TIME
18058 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18059 eval $as_var=C
; export $as_var
18065 # Required to use basename.
18066 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18072 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18073 as_basename
=basename
18079 # Name of the executable.
18080 as_me
=`$as_basename "$0" ||
18081 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18082 X"$0" : 'X\(//\)$' \| \
18083 X"$0" : 'X\(/\)$' \| \
18084 . : '\(.\)' 2>/dev/null ||
18086 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18087 /^X\/\(\/\/\)$/{ s//\1/; q; }
18088 /^X\/\(\/\).*/{ s//\1/; q; }
18092 # PATH needs CR, and LINENO needs CR and PATH.
18093 # Avoid depending upon Character Ranges.
18094 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18095 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18096 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18097 as_cr_digits
='0123456789'
18098 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18100 # The user is always right.
18101 if test "${PATH_SEPARATOR+set}" != set; then
18102 echo "#! /bin/sh" >conf$$.sh
18103 echo "exit 0" >>conf$$.sh
18105 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18114 as_lineno_1
=$LINENO
18115 as_lineno_2
=$LINENO
18116 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18117 test "x$as_lineno_1" != "x$as_lineno_2" &&
18118 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18119 # Find who we are. Look in the path if we contain no path at all
18122 *[\\/]* ) as_myself
=$0 ;;
18123 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18124 for as_dir
in $PATH
18127 test -z "$as_dir" && as_dir
=.
18128 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18133 # We did not find ourselves, most probably we were run as `sh COMMAND'
18134 # in which case we are not to be found in the path.
18135 if test "x$as_myself" = x
; then
18138 if test ! -f "$as_myself"; then
18139 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18140 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18141 { (exit 1); exit 1; }; }
18143 case $CONFIG_SHELL in
18145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18146 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18149 test -z "$as_dir" && as_dir
=.
18150 for as_base
in sh bash ksh sh5
; do
18153 if ("$as_dir/$as_base" -c '
18154 as_lineno_1=$LINENO
18155 as_lineno_2=$LINENO
18156 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18157 test "x$as_lineno_1" != "x$as_lineno_2" &&
18158 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18159 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18160 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18161 CONFIG_SHELL
=$as_dir/$as_base
18162 export CONFIG_SHELL
18163 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18171 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18172 # uniformly replaced by the line number. The first 'sed' inserts a
18173 # line-number line before each line; the second 'sed' does the real
18174 # work. The second script uses 'N' to pair each line-number line
18175 # with the numbered line, and appends trailing '-' during
18176 # substitution so that $LINENO is not a special case at line end.
18177 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18178 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18179 sed '=' <$as_myself |
18184 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18187 s,^['$as_cr_digits']*\n,,
18188 ' >$as_me.lineno
&&
18189 chmod +x
$as_me.lineno ||
18190 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18191 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18192 { (exit 1); exit 1; }; }
18194 # Don't try to exec as it changes $[0], causing all sort of problems
18195 # (the dirname of $[0] is not the place where we might find the
18196 # original and so on. Autoconf is especially sensible to this).
18198 # Exit status is that of the last command.
18203 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18204 *c
*,-n*) ECHO_N
= ECHO_C
='
18206 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18207 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18210 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18216 rm -f conf$$ conf$$.exe conf$$.
file
18218 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18219 # We could just check for DJGPP; but this test a) works b) is more generic
18220 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18221 if test -f conf$$.exe
; then
18222 # Don't use ln at all; we don't have any links
18227 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18232 rm -f conf$$ conf$$.exe conf$$.
file
18234 if mkdir
-p .
2>/dev
/null
; then
18240 as_executable_p
="test -f"
18242 # Sed expression to map a string onto a valid CPP name.
18243 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18245 # Sed expression to map a string onto a valid variable name.
18246 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18250 # We need space, tab and new line, in precisely that order.
18260 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18261 # report actual input values of CONFIG_FILES etc. instead of their
18262 # values after options handling. Logging --version etc. is OK.
18266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18267 ## Running $as_me. ##
18272 This file was extended by $as_me, which was
18273 generated by GNU Autoconf 2.57. Invocation command line was
18275 CONFIG_FILES = $CONFIG_FILES
18276 CONFIG_HEADERS = $CONFIG_HEADERS
18277 CONFIG_LINKS = $CONFIG_LINKS
18278 CONFIG_COMMANDS = $CONFIG_COMMANDS
18282 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18286 # Files that config.status was made for.
18287 if test -n "$ac_config_files"; then
18288 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18291 if test -n "$ac_config_headers"; then
18292 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18295 if test -n "$ac_config_links"; then
18296 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18299 if test -n "$ac_config_commands"; then
18300 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18303 cat >>$CONFIG_STATUS <<\_ACEOF
18306 \`$as_me' instantiates files from templates according to the
18307 current configuration.
18309 Usage: $0 [OPTIONS] [FILE]...
18311 -h, --help print this help, then exit
18312 -V, --version print version number, then exit
18313 -q, --quiet do not print progress messages
18314 -d, --debug don't remove temporary files
18315 --recheck update $as_me by reconfiguring in the same conditions
18316 --file=FILE[:TEMPLATE]
18317 instantiate the configuration file FILE
18318 --header=FILE[:TEMPLATE]
18319 instantiate the configuration header FILE
18321 Configuration files:
18324 Configuration headers:
18327 Configuration commands:
18330 Report bugs to <bug-autoconf@gnu.org>."
18333 cat >>$CONFIG_STATUS <<_ACEOF
18336 configured by $0, generated by GNU Autoconf 2.57,
18337 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18339 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18340 Free Software Foundation, Inc.
18341 This config.status script is free software; the Free Software Foundation
18342 gives unlimited permission to copy, distribute and modify it."
18347 cat >>$CONFIG_STATUS <<\_ACEOF
18348 # If no file are specified by the user, then we need to provide default
18349 # value. By we need to know if files were specified by the user.
18355 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18356 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18364 *) # This is not an option, so the user has probably given explicit
18367 ac_need_defaults
=false
;;
18371 # Handling of the options.
18373 cat >>$CONFIG_STATUS <<\_ACEOF
18374 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18376 --version |
--vers* |
-V )
18377 echo "$ac_cs_version"; exit 0 ;;
18379 # Conflict between --help and --header
18380 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18381 Try \`$0 --help' for more information." >&5
18382 echo "$as_me: error: ambiguous option: $1
18383 Try \`$0 --help' for more information." >&2;}
18384 { (exit 1); exit 1; }; };;
18385 --help |
--hel |
-h )
18386 echo "$ac_cs_usage"; exit 0 ;;
18387 --debug |
--d* |
-d )
18389 --file |
--fil |
--fi |
--f )
18391 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18392 ac_need_defaults
=false
;;
18393 --header |
--heade |
--head |
--hea )
18395 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18396 ac_need_defaults
=false
;;
18397 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18398 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18401 # This is an error.
18402 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18403 Try \`$0 --help' for more information." >&5
18404 echo "$as_me: error: unrecognized option: $1
18405 Try \`$0 --help' for more information." >&2;}
18406 { (exit 1); exit 1; }; } ;;
18408 *) ac_config_targets
="$ac_config_targets $1" ;;
18414 ac_configure_extra_args
=
18416 if $ac_cs_silent; then
18418 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18422 cat >>$CONFIG_STATUS <<_ACEOF
18423 if \$ac_cs_recheck; then
18424 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18425 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18430 cat >>$CONFIG_STATUS <<_ACEOF
18432 # INIT-COMMANDS section.
18435 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18441 cat >>$CONFIG_STATUS <<\_ACEOF
18442 for ac_config_target
in $ac_config_targets
18444 case "$ac_config_target" in
18445 # Handling of arguments.
18446 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18447 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18448 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18449 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18450 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18451 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18452 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18453 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18454 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18455 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18456 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18457 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18458 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18459 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18460 { (exit 1); exit 1; }; };;
18464 # If the user did not use the arguments to specify the items to instantiate,
18465 # then the envvar interface is used. Set only those that are not.
18466 # We use the long form for the default assignment because of an extremely
18467 # bizarre bug on SunOS 4.1.3.
18468 if $ac_need_defaults; then
18469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18474 # Have a temporary directory for convenience. Make it in the build tree
18475 # simply because there is no reason to put it here, and in addition,
18476 # creating and moving files from /tmp can sometimes cause problems.
18477 # Create a temporary directory, and hook for its removal unless debugging.
18480 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18481 trap '{ (exit 1); exit 1; }' 1 2 13 15
18484 # Create a (secure) tmp directory for tmp files.
18487 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18488 test -n "$tmp" && test -d "$tmp"
18491 tmp
=.
/confstat$$
-$RANDOM
18492 (umask 077 && mkdir
$tmp)
18495 echo "$me: cannot create a temporary directory in ." >&2
18496 { (exit 1); exit 1; }
18501 cat >>$CONFIG_STATUS <<_ACEOF
18504 # CONFIG_FILES section.
18507 # No need to generate the scripts if there are no CONFIG_FILES.
18508 # This happens for instance when ./config.status config.h
18509 if test -n "\$CONFIG_FILES"; then
18510 # Protect against being on the right side of a sed subst in config.status.
18511 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18512 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18513 s,@SHELL@,$SHELL,;t t
18514 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18515 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18516 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18517 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18518 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18519 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18520 s,@exec_prefix@,$exec_prefix,;t t
18521 s,@prefix@,$prefix,;t t
18522 s,@program_transform_name@,$program_transform_name,;t t
18523 s,@bindir@,$bindir,;t t
18524 s,@sbindir@,$sbindir,;t t
18525 s,@libexecdir@,$libexecdir,;t t
18526 s,@datadir@,$datadir,;t t
18527 s,@sysconfdir@,$sysconfdir,;t t
18528 s,@sharedstatedir@,$sharedstatedir,;t t
18529 s,@localstatedir@,$localstatedir,;t t
18530 s,@libdir@,$libdir,;t t
18531 s,@includedir@,$includedir,;t t
18532 s,@oldincludedir@,$oldincludedir,;t t
18533 s,@infodir@,$infodir,;t t
18534 s,@mandir@,$mandir,;t t
18535 s,@build_alias@,$build_alias,;t t
18536 s,@host_alias@,$host_alias,;t t
18537 s,@target_alias@,$target_alias,;t t
18538 s,@DEFS@,$DEFS,;t t
18539 s,@ECHO_C@,$ECHO_C,;t t
18540 s,@ECHO_N@,$ECHO_N,;t t
18541 s,@ECHO_T@,$ECHO_T,;t t
18542 s,@LIBS@,$LIBS,;t t
18543 s,@build@,$build,;t t
18544 s,@build_cpu@,$build_cpu,;t t
18545 s,@build_vendor@,$build_vendor,;t t
18546 s,@build_os@,$build_os,;t t
18547 s,@host@,$host,;t t
18548 s,@host_cpu@,$host_cpu,;t t
18549 s,@host_vendor@,$host_vendor,;t t
18550 s,@host_os@,$host_os,;t t
18552 s,@CFLAGS@,$CFLAGS,;t t
18553 s,@LDFLAGS@,$LDFLAGS,;t t
18554 s,@CPPFLAGS@,$CPPFLAGS,;t t
18555 s,@ac_ct_CC@,$ac_ct_CC,;t t
18556 s,@EXEEXT@,$EXEEXT,;t t
18557 s,@OBJEXT@,$OBJEXT,;t t
18558 s,@LN_S@,$LN_S,;t t
18560 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18561 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18562 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18563 s,@RANLIB@,$RANLIB,;t t
18564 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18565 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18566 s,@EGREP@,$EGREP,;t t
18567 s,@LIBSOUND@,$LIBSOUND,;t t
18568 s,@SET_MAKE@,$SET_MAKE,;t t
18569 s,@ALLOCA@,$ALLOCA,;t t
18570 s,@liblockfile@,$liblockfile,;t t
18571 s,@LIBOBJS@,$LIBOBJS,;t t
18572 s,@NEED_SETGID@,$NEED_SETGID,;t t
18573 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18574 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18575 s,@version@,$version,;t t
18576 s,@configuration@,$configuration,;t t
18577 s,@canonical@,$canonical,;t t
18578 s,@srcdir@,$srcdir,;t t
18579 s,@lispdir@,$lispdir,;t t
18580 s,@locallisppath@,$locallisppath,;t t
18581 s,@lisppath@,$lisppath,;t t
18582 s,@x_default_search_path@,$x_default_search_path,;t t
18583 s,@etcdir@,$etcdir,;t t
18584 s,@archlibdir@,$archlibdir,;t t
18585 s,@docdir@,$docdir,;t t
18586 s,@bitmapdir@,$bitmapdir,;t t
18587 s,@gamedir@,$gamedir,;t t
18588 s,@gameuser@,$gameuser,;t t
18589 s,@c_switch_system@,$c_switch_system,;t t
18590 s,@c_switch_machine@,$c_switch_machine,;t t
18591 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18592 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18593 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18594 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18595 s,@machfile@,$machfile,;t t
18596 s,@opsysfile@,$opsysfile,;t t
18597 s,@carbon_appdir@,$carbon_appdir,;t t
18598 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18603 cat >>$CONFIG_STATUS <<\_ACEOF
18604 # Split the substitutions into bite-sized pieces for seds with
18605 # small command number limits, like on Digital OSF/1 and HP-UX.
18606 ac_max_sed_lines
=48
18607 ac_sed_frag
=1 # Number of current file.
18608 ac_beg
=1 # First line for current file.
18609 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18612 while $ac_more_lines; do
18613 if test $ac_beg -gt 1; then
18614 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18616 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18618 if test ! -s $tmp/subs.frag
; then
18619 ac_more_lines
=false
18621 # The purpose of the label and of the branching condition is to
18622 # speed up the sed processing (if there are no `@' at all, there
18623 # is no need to browse any of the substitutions).
18624 # These are the two extra sed commands mentioned above.
18626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18627 if test -z "$ac_sed_cmds"; then
18628 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18630 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18632 ac_sed_frag
=`expr $ac_sed_frag + 1`
18634 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18637 if test -z "$ac_sed_cmds"; then
18640 fi # test -n "$CONFIG_FILES"
18643 cat >>$CONFIG_STATUS <<\_ACEOF
18644 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18645 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18647 - |
*:- |
*:-:* ) # input from stdin
18649 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18650 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18651 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18652 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18653 * ) ac_file_in
=$ac_file.
in ;;
18656 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18657 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18659 X"$ac_file" : 'X\(//\)[^/]' \| \
18660 X"$ac_file" : 'X\(//\)$' \| \
18661 X"$ac_file" : 'X\(/\)' \| \
18662 . : '\(.\)' 2>/dev/null ||
18664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18666 /^X\(\/\/\)$/{ s//\1/; q; }
18667 /^X\(\/\).*/{ s//\1/; q; }
18669 { if $as_mkdir_p; then
18674 while test ! -d "$as_dir"; do
18675 as_dirs
="$as_dir $as_dirs"
18676 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18678 X"$as_dir" : 'X\(//\)[^/]' \| \
18679 X"$as_dir" : 'X\(//\)$' \| \
18680 X"$as_dir" : 'X\(/\)' \| \
18681 . : '\(.\)' 2>/dev/null ||
18683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18685 /^X\(\/\/\)$/{ s//\1/; q; }
18686 /^X\(\/\).*/{ s//\1/; q; }
18689 test ! -n "$as_dirs" || mkdir
$as_dirs
18690 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18691 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18692 { (exit 1); exit 1; }; }; }
18696 if test "$ac_dir" != .
; then
18697 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18698 # A "../" for each directory in $ac_dir_suffix.
18699 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18701 ac_dir_suffix
= ac_top_builddir
=
18705 .
) # No --srcdir option. We are building in place.
18707 if test -z "$ac_top_builddir"; then
18710 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18712 [\\/]* | ?
:[\\/]* ) # Absolute path.
18713 ac_srcdir
=$srcdir$ac_dir_suffix;
18714 ac_top_srcdir
=$srcdir ;;
18715 *) # Relative path.
18716 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18717 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18719 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18721 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
18722 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18723 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18724 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18728 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18729 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18732 if test x
"$ac_file" != x-
; then
18733 { echo "$as_me:$LINENO: creating $ac_file" >&5
18734 echo "$as_me: creating $ac_file" >&6;}
18737 # Let's still pretend it is `configure' which instantiates (i.e., don't
18738 # use $as_me), people would be surprised to read:
18739 # /* config.h. Generated by config.status. */
18740 if test x
"$ac_file" = x-
; then
18743 configure_input
="$ac_file. "
18745 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18746 sed 's,.*/,,'` by configure."
18748 # First look for the input files in the build tree, otherwise in the
18750 ac_file_inputs
=`IFS=:
18751 for f in $ac_file_in; do
18753 -) echo $tmp/stdin ;;
18755 # Absolute (can't be DOS-style, as IFS=:)
18756 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18757 echo "$as_me: error: cannot find input file: $f" >&2;}
18758 { (exit 1); exit 1; }; }
18761 if test -f "$f"; then
18764 elif test -f "$srcdir/$f"; then
18769 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18770 echo "$as_me: error: cannot find input file: $f" >&2;}
18771 { (exit 1); exit 1; }; }
18774 done` ||
{ (exit 1); exit 1; }
18776 cat >>$CONFIG_STATUS <<_ACEOF
18780 cat >>$CONFIG_STATUS <<\_ACEOF
18782 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18783 s
,@configure_input@
,$configure_input,;t t
18784 s
,@srcdir@
,$ac_srcdir,;t t
18785 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18786 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18787 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18788 s
,@builddir@
,$ac_builddir,;t t
18789 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18790 s
,@top_builddir@
,$ac_top_builddir,;t t
18791 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18792 s
,@INSTALL@
,$ac_INSTALL,;t t
18793 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18795 if test x"$ac_file" != x-; then
18796 mv $tmp/out $ac_file
18804 cat >>$CONFIG_STATUS <<\_ACEOF
18807 # CONFIG_HEADER section.
18810 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18811 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18813 # ac_d sets the value in "#define NAME VALUE" lines.
18814 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18815 ac_dB
='[ ].*$,\1#\2'
18818 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18819 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18820 ac_uB
='$,\1#\2define\3'
18824 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18827 - |
*:- |
*:-:* ) # input from stdin
18829 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18830 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18831 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18832 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18833 * ) ac_file_in
=$ac_file.
in ;;
18836 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18837 echo "$as_me: creating $ac_file" >&6;}
18839 # First look for the input files in the build tree, otherwise in the
18841 ac_file_inputs
=`IFS=:
18842 for f in $ac_file_in; do
18844 -) echo $tmp/stdin ;;
18846 # Absolute (can't be DOS-style, as IFS=:)
18847 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18848 echo "$as_me: error: cannot find input file: $f" >&2;}
18849 { (exit 1); exit 1; }; }
18852 if test -f "$f"; then
18855 elif test -f "$srcdir/$f"; then
18860 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18861 echo "$as_me: error: cannot find input file: $f" >&2;}
18862 { (exit 1); exit 1; }; }
18865 done` ||
{ (exit 1); exit 1; }
18866 # Remove the trailing spaces.
18867 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18871 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18872 # `conftest.undefs', that substitutes the proper values into
18873 # config.h.in to produce config.h. The first handles `#define'
18874 # templates, and the second `#undef' templates.
18875 # And first: Protect against being on the right side of a sed subst in
18876 # config.status. Protect against being in an unquoted here document
18877 # in config.status.
18878 rm -f conftest.defines conftest.undefs
18879 # Using a here document instead of a string reduces the quoting nightmare.
18880 # Putting comments in sed scripts is not portable.
18882 # `end' is used to avoid that the second main sed command (meant for
18883 # 0-ary CPP macros) applies to n-ary macro definitions.
18884 # See the Autoconf documentation for `clear'.
18885 cat >confdef2sed.
sed <<\_ACEOF
18890 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18892 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18895 # If some macros were called several times there might be several times
18896 # the same #defines, which is useless. Nevertheless, we may not want to
18897 # sort them, since we want the *last* AC-DEFINE to be honored.
18898 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18899 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18900 rm -f confdef2sed.sed
18902 # This sed command replaces #undef with comments. This is necessary, for
18903 # example, in the case of _POSIX_SOURCE, which is predefined and required
18904 # on some systems where configure will not decide to define it.
18905 cat >>conftest.undefs <<\_ACEOF
18906 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18909 # Break up conftest.defines because some shells have a limit on the size
18910 # of here documents, and old seds have small limits too (100 cmds).
18911 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18912 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18913 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18914 echo ' :' >>$CONFIG_STATUS
18915 rm -f conftest.tail
18916 while grep . conftest.defines >/dev/null
18918 # Write a limited-size here document to $tmp/defines.sed.
18919 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18920 # Speed up: don't consider the non `#define' lines.
18921 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18922 # Work around the forget-to-reset-the-flag bug.
18923 echo 't clr' >>$CONFIG_STATUS
18924 echo ': clr' >>$CONFIG_STATUS
18925 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18927 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18929 mv $tmp/out $tmp/in
18931 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18932 rm -f conftest.defines
18933 mv conftest.
tail conftest.defines
18935 rm -f conftest.defines
18936 echo ' fi # grep' >>$CONFIG_STATUS
18937 echo >>$CONFIG_STATUS
18939 # Break up conftest.undefs because some shells have a limit on the size
18940 # of here documents, and old seds have small limits too (100 cmds).
18941 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18942 rm -f conftest.
tail
18943 while grep . conftest.undefs
>/dev
/null
18945 # Write a limited-size here document to $tmp/undefs.sed.
18946 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18947 # Speed up: don't consider the non
`#undef'
18948 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18949 # Work around the forget-to-reset-the-flag bug.
18950 echo 't clr' >>$CONFIG_STATUS
18951 echo ': clr' >>$CONFIG_STATUS
18952 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18954 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18956 mv $tmp/out $tmp/in
18958 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18959 rm -f conftest.undefs
18960 mv conftest.tail conftest.undefs
18962 rm -f conftest.undefs
18964 cat >>$CONFIG_STATUS <<\_ACEOF
18965 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18966 # use $as_me), people would be surprised to read:
18967 # /* config.h. Generated by config.status. */
18968 if test x
"$ac_file" = x-
; then
18969 echo "/* Generated by configure. */" >$tmp/config.h
18971 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18973 cat $tmp/in >>$tmp/config.h
18975 if test x
"$ac_file" != x-
; then
18976 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18978 echo "$as_me: $ac_file is unchanged" >&6;}
18980 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18982 X"$ac_file" : 'X\(//\)[^/]' \| \
18983 X"$ac_file" : 'X\(//\)$' \| \
18984 X"$ac_file" : 'X\(/\)' \| \
18985 . : '\(.\)' 2>/dev/null ||
18987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18989 /^X\(\/\/\)$/{ s//\1/; q; }
18990 /^X\(\/\).*/{ s//\1/; q; }
18992 { if $as_mkdir_p; then
18997 while test ! -d "$as_dir"; do
18998 as_dirs
="$as_dir $as_dirs"
18999 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19001 X"$as_dir" : 'X\(//\)[^/]' \| \
19002 X"$as_dir" : 'X\(//\)$' \| \
19003 X"$as_dir" : 'X\(/\)' \| \
19004 . : '\(.\)' 2>/dev/null ||
19006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19008 /^X\(\/\/\)$/{ s//\1/; q; }
19009 /^X\(\/\).*/{ s//\1/; q; }
19012 test ! -n "$as_dirs" || mkdir
$as_dirs
19013 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19015 { (exit 1); exit 1; }; }; }
19018 mv $tmp/config.h
$ac_file
19022 rm -f $tmp/config.h
19026 cat >>$CONFIG_STATUS <<\_ACEOF
19029 # CONFIG_COMMANDS section.
19031 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19032 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19033 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19034 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19035 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19036 X"$ac_dest" : 'X\(//\)[^/]' \| \
19037 X"$ac_dest" : 'X\(//\)$' \| \
19038 X"$ac_dest" : 'X\(/\)' \| \
19039 . : '\(.\)' 2>/dev/null ||
19041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19043 /^X\(\/\/\)$/{ s//\1/; q; }
19044 /^X\(\/\).*/{ s//\1/; q; }
19048 if test "$ac_dir" != .
; then
19049 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19050 # A "../" for each directory in $ac_dir_suffix.
19051 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19053 ac_dir_suffix
= ac_top_builddir
=
19057 .
) # No --srcdir option. We are building in place.
19059 if test -z "$ac_top_builddir"; then
19062 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19064 [\\/]* | ?
:[\\/]* ) # Absolute path.
19065 ac_srcdir
=$srcdir$ac_dir_suffix;
19066 ac_top_srcdir
=$srcdir ;;
19067 *) # Relative path.
19068 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19069 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19071 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19073 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19074 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19075 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19076 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19079 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19080 echo "$as_me: executing $ac_dest commands" >&6;}
19084 ### Make the necessary directories, if they don't exist.
19085 for dir
in etc lisp
; do
19086 test -d ${dir} || mkdir
${dir}
19089 # Build src/Makefile from ${srcdir}/src/Makefile.c
19090 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19091 # This must be done after src/config.h is built, since we rely on that file.
19093 # Now get this: Some word that is part of the ${srcdir} directory name
19094 # or the ${configuration} value might, just might, happen to be an
19095 # identifier like `sun4' or `i386' or something, and be predefined by
19096 # the C preprocessor to some helpful value like 1, or maybe the empty
19097 # string. Needless to say consequent macro substitutions are less
19098 # than conducive to the makefile finding the correct directory.
19099 undefs
="`echo $top_srcdir $configuration $canonical |
19100 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19101 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19104 echo creating src
/epaths.h
19105 ${MAKE-make} epaths-force
19107 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19108 # `..' to `. .' unless invoked with -traditional
19110 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19111 CPPFLAGS
="$CPPFLAGS -traditional"
19114 echo creating lib-src
/Makefile
19116 rm -f junk.c junk1.c junk2.c
19117 sed -e '/start of cpp stuff/q' \
19118 < Makefile.c
> junk1.c
19119 sed -e '1,/start of cpp stuff/d'\
19120 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19121 < Makefile.c
> junk.c
19122 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19123 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19124 cat junk1.c junk2.c
> Makefile.new
19125 rm -f junk.c junk1.c junk2.c
19126 chmod 444 Makefile.new
19127 mv -f Makefile.new Makefile
19130 echo creating src
/Makefile
19132 rm -f junk.c junk1.c junk2.c
19133 sed -e '/start of cpp stuff/q' \
19134 < Makefile.c
> junk1.c
19135 sed -e '1,/start of cpp stuff/d'\
19136 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19137 < Makefile.c
> junk.c
19138 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19139 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19140 cat junk1.c junk2.c
> Makefile.new
19141 rm -f junk.c junk1.c junk2.c
19142 chmod 444 Makefile.new
19143 mv -f Makefile.new Makefile
19146 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19147 echo creating src
/.gdbinit
19148 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19151 # This is how we know whether to re-run configure in certain cases.
19152 touch src
/config.stamp
19159 cat >>$CONFIG_STATUS <<\_ACEOF
19161 { (exit 0); exit 0; }
19163 chmod +x
$CONFIG_STATUS
19164 ac_clean_files
=$ac_clean_files_save
19167 # configure is writing to config.log, and then calls config.status.
19168 # config.status does its own redirection, appending to config.log.
19169 # Unfortunately, on DOS this fails, as config.log is still kept open
19170 # by configure, so config.status won't be able to write to it; its
19171 # output is simply discarded. So we exec the FD to /dev/null,
19172 # effectively closing config.log, so it can be properly (re)opened and
19173 # appended to by config.status. When coming back to configure, we
19174 # need to make the FD available again.
19175 if test "$no_create" != yes; then
19177 ac_config_status_args
=
19178 test "$silent" = yes &&
19179 ac_config_status_args
="$ac_config_status_args --quiet"
19181 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19183 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19184 # would make configure fail if this is the last instruction.
19185 $ac_cs_success ||
{ (exit 1); exit 1; }