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 machines
1878 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1879 machine
=delta opsys
=usg5-3
1880 if test -z "`type gnucc | grep 'not found'`"
1882 if test -s /etc
/167config
1883 then CC
="gnucc -m68040"
1884 else CC
="gnucc -m68881"
1887 if test -z "`type gcc | grep 'not found'`"
1893 m88k-motorola-sysv4
* )
1894 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1895 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1896 # I hope there are not other 4.0 versions for this machine
1897 # which really need usg5-4 instead.
1898 machine
=delta88k opsys
=usg5-4-2
1900 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1901 machine
=delta88k opsys
=usg5-3
1906 machine
=dual opsys
=usg5-2
1908 m68
*-dual-uniplus* )
1909 machine
=dual opsys
=unipl5-2
1914 machine
=elxsi opsys
=usg5-2
1919 machine
=ns16000 opsys
=umax
1922 ## The GEC 63 - apparently, this port isn't really finished yet.
1923 # I'm sure we finished off the last of the machines, though. -- fx
1925 ## Gould Power Node and NP1
1927 machine
=gould opsys
=bsd4-2
1930 machine
=gould opsys
=bsd4-3
1933 machine
=gould-np1 opsys
=bsd4-3
1936 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1937 ## as far as Emacs is concerned).
1939 # Build needs to be different on 7.0 and later releases
1940 case "`uname -r`" in
1941 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1942 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1944 NON_GNU_CPP
="/lib/cpp"
1946 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1948 machine
=nh3000 opsys
=cxux
1950 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1951 powerpc-harris-powerunix
)
1952 machine
=nh6000 opsys
=powerunix
1953 NON_GNU_CPP
="cc -Xo -E -P"
1955 ## SR2001/SR2201 running HI-UX/MPP
1956 hppa1.1
-hitachi-hiuxmpp* )
1957 machine
=sr2k opsys
=hiuxmpp
1959 hppa1.1
-hitachi-hiuxwe2* )
1960 machine
=sr2k opsys
=hiuxwe2
1963 xps
*-honeywell-sysv* )
1964 machine
=xps100 opsys
=usg5-2
1967 ## HP 9000 series 200 or 300
1969 machine
=hp9000s300 opsys
=bsd4-3
1971 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1973 case "`uname -r`" in
1974 ## Someone's system reports A.B8.05 for this.
1975 ## I wonder what other possibilities there are.
1976 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1977 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1978 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1979 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1980 *) machine
=hp9000s300 opsys
=hpux
;;
1984 ## HP 9000 series 700 and 800, running HP/UX
1986 machine
=hp800 opsys
=hpux
1989 machine
=hp800 opsys
=hpux8
1991 hppa
*-hp-hpux9shr* )
1992 machine
=hp800 opsys
=hpux9shr
1995 machine
=hp800 opsys
=hpux9
1998 machine
=hp800 opsys
=hpux10
2000 hppa
*-hp-hpux1[1-9]* )
2001 machine
=hp800 opsys
=hpux11
2004 hppa
*-*-linux-gnu* )
2005 machine
=hp800 opsys
=gnu-linux
2008 ## HP 9000 series 700 and 800, running HP/UX
2010 ## Cross-compilation? Nah!
2011 case "`uname -r`" in
2012 ## Someone's system reports A.B8.05 for this.
2013 ## I wonder what other possibilities there are.
2014 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2015 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2016 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2017 *) machine
=hp800 opsys
=hpux10
;;
2021 machine
=hp800 opsys
=nextstep
2026 machine
=orion opsys
=bsd4-2
2028 clipper-orion-bsd
* )
2029 machine
=orion105 opsys
=bsd4-2
2033 i
[3456]86-ibm-aix1.1
* )
2034 machine
=ibmps2-aix opsys
=usg5-2-2
2036 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2037 machine
=ibmps2-aix opsys
=usg5-3
2040 machine
=ibm370aix opsys
=usg5-3
2043 machine
=ibms390 opsys
=gnu-linux
2045 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2046 machine
=ibmrs6000 opsys
=aix3-1
2048 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2049 machine
=ibmrs6000 opsys
=aix3-2-5
2051 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2052 machine
=ibmrs6000 opsys
=aix4-1
2054 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2055 machine
=ibmrs6000 opsys
=aix4-2
2057 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2058 machine
=ibmrs6000 opsys
=aix4-2
2060 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2061 machine
=ibmrs6000 opsys
=aix4
2063 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2064 machine
=ibmrs6000 opsys
=aix4-1
2066 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2067 machine
=ibmrs6000 opsys
=aix3-2
2070 machine
=ibmrt opsys
=bsd4-3
2073 machine
=ibmrt opsys
=bsd4-2
2076 machine
=ibmrt opsys
=bsd4-3
2079 machine
=ibmrt opsys
=bsd4-2
2082 machine
=ibmrt opsys
=bsd4-3
2085 machine
=ibmrt opsys
=bsd4-3
2088 machine
=ibmrt-aix opsys
=usg5-2-2
2091 ## Integrated Solutions `Optimum V'
2093 machine
=isi-ov opsys
=bsd4-2
2096 machine
=isi-ov opsys
=bsd4-3
2099 ## Intel 386 machines where we do care about the manufacturer
2100 i
[3456]86-intsys-sysv* )
2101 machine
=is386 opsys
=usg5-2-2
2105 i
[3456]86-prime-sysv* )
2106 machine
=i386 opsys
=usg5-3
2109 ## Sequent Symmetry running Dynix
2110 i
[3456]86-sequent-bsd* )
2111 machine
=symmetry opsys
=bsd4-3
2114 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2115 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2116 machine
=sequent-ptx opsys
=ptx4
2117 NON_GNU_CPP
=/lib
/cpp
2120 ## Sequent Symmetry running DYNIX/ptx
2121 ## Use the old cpp rather than the newer ANSI one.
2122 i
[3456]86-sequent-ptx* )
2123 machine
=sequent-ptx opsys
=ptx
2124 NON_GNU_CPP
="/lib/cpp"
2127 ## ncr machine running svr4.3.
2128 i
[3456]86-ncr-sysv4.3
)
2129 machine
=ncr386 opsys
=usg5-4-3
2132 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2133 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2134 i
[3456]86-ncr-sysv* )
2135 machine
=ncr386 opsys
=usg5-4-2
2138 ## Intel Paragon OSF/1
2140 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2145 machine
=i860 opsys
=usg5-4
2146 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2147 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2150 ## Macintosh PowerPC
2151 powerpc
*-*-linux-gnu* )
2152 machine
=macppc opsys
=gnu-linux
2155 ## Masscomp machines
2156 m68
*-masscomp-rtu* )
2157 machine
=masscomp opsys
=rtu
2160 ## Megatest machines
2161 m68
*-megatest-bsd* )
2162 machine
=mega68 opsys
=bsd4-2
2165 ## Workstations sold by MIPS
2166 ## This is not necessarily all workstations using the MIPS processor -
2167 ## Irises are produced by SGI, and DECstations by DEC.
2169 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2170 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2171 ## it gives for choosing between the alternatives seems to be "Use
2172 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2173 ## the BSD world." I'll assume that these are instructions for
2174 ## handling two odd situations, and that every other situation
2175 ## should use mips.h and usg5-2-2, they being listed first.
2178 ## Fall through to the general code at the bottom to decide on the OS.
2180 mips-mips-riscos4
* )
2181 machine
=mips4 opsys
=bsd4-3
2182 NON_GNU_CC
="cc -systype bsd43"
2183 NON_GNU_CPP
="cc -systype bsd43 -E"
2185 mips-mips-riscos5
* )
2186 machine
=mips4 opsys
=riscos5
2187 NON_GNU_CC
="cc -systype bsd43"
2188 NON_GNU_CPP
="cc -systype bsd43 -E"
2191 machine
=mips opsys
=bsd4-3
2194 machine
=mips opsys
=usg5-2-2
2198 m68
*-next-* | m68k-
*-nextstep* )
2199 machine
=m68k opsys
=nextstep
2202 ## The complete machine from National Semiconductor
2204 machine
=ns32000 opsys
=usg5-2
2208 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2209 machine
=tower32 opsys
=usg5-2-2
2211 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2212 machine
=tower32v3 opsys
=usg5-3
2217 machine
=ews4800 opsys
=ux4800
2220 ## Nixdorf Targon 31
2221 m68
*-nixdorf-sysv* )
2222 machine
=targon31 opsys
=usg5-2-2
2227 machine
=nu opsys
=usg5-2
2232 machine
=plexus opsys
=usg5-2
2236 ## I don't really have any idea what sort of processor the Pyramid has,
2237 ## so I'm assuming it is its own architecture.
2238 pyramid-pyramid-bsd
* )
2239 machine
=pyramid opsys
=bsd4-2
2243 ns32k-sequent-bsd4.2
* )
2244 machine
=sequent opsys
=bsd4-2
2246 ns32k-sequent-bsd4.3
* )
2247 machine
=sequent opsys
=bsd4-3
2251 mips-siemens-sysv
* | mips-sni-sysv
*)
2252 machine
=mips-siemens opsys
=usg5-4
2253 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2254 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2257 ## Silicon Graphics machines
2258 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2260 machine
=irist opsys
=iris3-5
2262 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2263 machine
=irist opsys
=iris3-6
2267 machine
=iris4d opsys
=irix3-3
2270 machine
=iris4d opsys
=irix4-0
2273 machine
=iris4d opsys
=irix6-5
2274 # Without defining _LANGUAGE_C, things get masked out in the headers
2275 # so that, for instance, grepping for `free' in stdlib.h fails and
2276 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2277 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2278 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2281 machine
=iris4d opsys
=irix6-0
2282 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2283 # but presumably it does no harm.
2284 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2285 # -32 probably isn't necessary in later v.6s -- anyone know which?
2286 NON_GCC_TEST_OPTIONS
=-32
2288 mips-sgi-irix5.
[01]* )
2289 machine
=iris4d opsys
=irix5-0
2291 mips-sgi-irix5
* | mips-sgi-irix
* )
2292 machine
=iris4d opsys
=irix5-2
2297 machine
=news opsys
=bsd4-2
2300 machine
=news opsys
=bsd4-3
2302 m68
*-sony-newsos3* | m68
*-sony-news3*)
2303 machine
=news opsys
=bsd4-3
2305 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2306 machine
=news-risc opsys
=bsd4-3
2308 mips-sony-newsos6
* )
2309 machine
=news-r6 opsys
=newsos6
2312 machine
=news-risc opsys
=newsos5
2317 machine
=stride opsys
=usg5-2
2321 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2322 machine
=sparc opsys
=gnu-linux
2325 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2326 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2327 | rs6000-
*-solaris2*)
2328 case "${canonical}" in
2329 m68
*-sunos1* ) machine
=sun1
;;
2330 m68
*-sunos2* ) machine
=sun2
;;
2331 m68
* ) machine
=sun3
;;
2332 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2333 i
[3456]86-*-* ) machine
=intel386
;;
2334 powerpcle
* ) machine
=powerpcle
;;
2335 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2336 sparc
* ) machine
=sparc
;;
2339 case "${canonical}" in
2340 ## The Sun386 didn't get past 4.0.
2341 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2342 *-sunos4.0
* ) opsys
=sunos4-0
;;
2343 *-sunos4.1.
[3-9]*noshare
)
2344 ## This name is sunos413 instead of sunos4-1-3
2345 ## to avoid a file name conflict on MSDOS.
2347 NON_GNU_CPP
=/usr
/lib
/cpp
2348 NON_GCC_TEST_OPTIONS
=-Bstatic
2349 GCC_TEST_OPTIONS
=-static
2351 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2353 NON_GNU_CPP
=/usr
/lib
/cpp
2355 *-sunos4* |
*-sunos )
2357 NON_GCC_TEST_OPTIONS
=-Bstatic
2358 GCC_TEST_OPTIONS
=-static
2360 *-sunos5.3
* |
*-solaris2.3
* )
2362 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2364 *-sunos5.4
* |
*-solaris2.4
* )
2366 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2369 *-sunos5.5
* |
*-solaris2.5
* )
2371 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2374 *-sunos5.6
* |
*-solaris2.6
* )
2376 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2379 *-sunos5* |
*-solaris* )
2381 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2385 ## Watch out for a compiler that we know will not work.
2386 case "${canonical}" in
2387 *-solaris* |
*-sunos5* )
2388 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2389 ## /usr/ucb/cc doesn't work;
2390 ## we should find some other compiler that does work.
2398 machine
=sparc opsys
=nextstep
2402 m68
*-tadpole-sysv* )
2403 machine
=tad68k opsys
=usg5-3
2407 tahoe-tahoe-bsd4.2
* )
2408 machine
=tahoe opsys
=bsd4-2
2410 tahoe-tahoe-bsd4.3
* )
2411 machine
=tahoe opsys
=bsd4-3
2414 ## Tandem Integrity S2
2416 machine
=tandem-s2 opsys
=usg5-3
2420 m88k-tektronix-sysv3
* )
2421 machine
=tekxd88 opsys
=usg5-3
2424 ## Tektronix 16000 box (6130?)
2425 ns16k-tektronix-bsd
* )
2426 machine
=ns16000 opsys
=bsd4-2
2429 ## src/m/tek4300.h hints that this is a m68k machine.
2430 m68
*-tektronix-bsd* )
2431 machine
=tek4300 opsys
=bsd4-3
2435 ## We seem to have lost the machine-description file titan.h!
2437 machine
=titan opsys
=usg5-3
2440 ## Ustation E30 (SS5E)
2441 m68
*-unisys-uniplus* )
2442 machine
=ustation opsystem
=unipl5-2
2448 case "${canonical}" in
2449 *-bsd4.1
* ) opsys
=bsd4-1
;;
2450 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2451 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2452 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2453 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2454 *-vms* ) opsys
=vms
;;
2460 ns16k-whitechapel-
* )
2462 ## We don't know what sort of OS runs on these; we'll let the
2463 ## operating system guessing code below try.
2468 machine
=wicat opsys
=usg5-2
2473 machine
=ia64 opsys
=gnu-linux
2476 ## Intel 386 machines where we don't care about the manufacturer
2479 case "${canonical}" in
2480 *-lynxos* ) opsys
=lynxos
;;
2481 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2482 *-isc2.2
* ) opsys
=isc2-2
;;
2483 *-isc4.0
* ) opsys
=isc4-0
;;
2484 *-isc4.
* ) opsys
=isc4-1
2485 GCC_TEST_OPTIONS
=-posix
2486 NON_GCC_TEST_OPTIONS
=-Xp
2488 *-isc* ) opsys
=isc3-0
;;
2489 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2490 *-esix* ) opsys
=esix
;;
2491 *-xenix* ) opsys
=xenix
;;
2492 *-linux-gnu* ) opsys
=gnu-linux
;;
2493 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2494 *-sco3.2v5
* ) opsys
=sco5
2495 NON_GNU_CPP
=/lib
/cpp
2496 # Prevent -belf from being passed to $CPP.
2497 # /lib/cpp does not accept it.
2498 OVERRIDE_CPPFLAGS
=" "
2500 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2501 *-386bsd* ) opsys
=386bsd
;;
2502 *-nextstep* ) opsys
=nextstep
;;
2503 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2507 ## m68k Linux-based GNU system
2509 machine
=m68k opsys
=gnu-linux
2512 ## Mips Linux-based GNU system
2513 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2514 machine
=mips opsys
=gnu-linux
2518 sparc-fujitsu-sysv4
* )
2519 machine
=sparc opsys
=uxpds
2520 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2525 f301-fujitsu-uxpv4.1
)
2526 machine
=f301 opsys
=uxpv
2529 ## Darwin / Mac OS X
2530 powerpc-apple-darwin
* )
2531 machine
=powermac opsys
=darwin
2532 # Define CPP as follows to make autoconf work correctly.
2533 CPP
="cc -E -traditional-cpp"
2536 ## AMD x86-64 Linux-based GNU system
2537 x86_64-
*-linux-gnu* )
2538 machine
=amdx86-64 opsys
=gnu-linux
2546 ### If the code above didn't choose an operating system, just choose
2547 ### an operating system based on the configuration name. You really
2548 ### only want to use this when you have no idea what the right
2549 ### operating system is; if you know what operating systems a machine
2550 ### runs, it's cleaner to make it explicit in the case statement
2552 if test x
"${opsys}" = x
; then
2553 case "${canonical}" in
2554 *-gnu* ) opsys
=gnu
;;
2555 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2556 *-bsd4.2
) opsys
=bsd4-2
;;
2557 *-bsd4.3
) opsys
=bsd4-3
;;
2558 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2559 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2560 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2561 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2562 *-sysv4.2uw
* ) opsys
=unixware
;;
2563 *-sysv4.1
* |
*-sysvr4.1
* )
2564 NON_GNU_CPP
=/usr
/lib
/cpp
2566 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2567 if [ x
$NON_GNU_CPP = x
]; then
2568 if [ -f /usr
/ccs
/lib
/cpp
]; then
2569 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2571 NON_GNU_CPP
=/lib
/cpp
2575 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2584 if test $unported = yes; then
2585 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2586 Check \`etc/MACHINES' for recognized configuration names." >&5
2587 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2588 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2589 { (exit 1); exit 1; }; }
2592 machfile
="m/${machine}.h"
2593 opsysfile
="s/${opsys}.h"
2596 #### Choose a compiler.
2597 test -n "$CC" && cc_specified
=yes
2599 # Save the value of CFLAGS that the user specified.
2600 SPECIFIED_CFLAGS
="$CFLAGS"
2603 "yes" ) CC
="gcc" GCC
=yes ;;
2604 "no" ) : ${CC=cc} ;;
2608 ac_cpp
='$CPP $CPPFLAGS'
2609 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2615 echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC
="$CC" # Let the user override the test.
2623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir
=.
2628 for ac_exec_ext
in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 if test -n "$CC"; then
2641 echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6
2644 echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2649 if test -z "$ac_cv_prog_CC"; then
2651 # Extract the first word of "gcc", so it can be a program name with args.
2652 set dummy gcc
; ac_word
=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir
=.
2666 for ac_exec_ext
in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_CC
="gcc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 echo "${ECHO_T}$ac_ct_CC" >&6
2682 echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2691 if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC
="$CC" # Let the user override the test.
2703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir
=.
2708 for ac_exec_ext
in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test -n "$CC"; then
2721 echo "$as_me:$LINENO: result: $CC" >&5
2722 echo "${ECHO_T}$CC" >&6
2724 echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2729 if test -z "$ac_cv_prog_CC"; then
2731 # Extract the first word of "cc", so it can be a program name with args.
2732 set dummy cc
; ac_word
=$2
2733 echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir
=.
2746 for ac_exec_ext
in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_CC
="cc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760 echo "${ECHO_T}$ac_ct_CC" >&6
2762 echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6
2772 if test -z "$CC"; then
2773 # Extract the first word of "cc", so it can be a program name with args.
2774 set dummy cc
; ac_word
=$2
2775 echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC
="$CC" # Let the user override the test.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792 ac_prog_rejected
=yes
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy
$ac_cv_prog_CC
2806 if test $# != 0; then
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2811 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2817 if test -n "$CC"; then
2818 echo "$as_me:$LINENO: result: $CC" >&5
2819 echo "${ECHO_T}$CC" >&6
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2832 echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834 if test "${ac_cv_prog_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC
="$CC" # Let the user override the test.
2840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir
=.
2845 for ac_exec_ext
in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 if test -n "$CC"; then
2858 echo "$as_me:$LINENO: result: $CC" >&5
2859 echo "${ECHO_T}$CC" >&6
2861 echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6
2865 test -n "$CC" && break
2868 if test -z "$CC"; then
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy
$ac_prog; ac_word
=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 if test -n "$ac_ct_CC"; then
2880 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir
=.
2887 for ac_exec_ext
in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_ac_ct_CC
="$ac_prog"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901 echo "${ECHO_T}$ac_ct_CC" >&6
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2907 test -n "$ac_ct_CC" && break
2916 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: no acceptable C compiler found in \$PATH
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO:" \
2924 "checking for C compiler version" >&5
2925 ac_compiler
=`set X $ac_compile; echo $2`
2926 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2927 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2932 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2937 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2942 cat >conftest.
$ac_ext <<_ACEOF
2943 #line $LINENO "configure"
2946 cat confdefs.h
>>conftest.
$ac_ext
2947 cat >>conftest.
$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2958 ac_clean_files_save
=$ac_clean_files
2959 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2960 # Try to create an executable without -o first, disregard a.out.
2961 # It will help us diagnose broken compilers, and finding out an intuition
2963 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2964 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2965 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2966 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2967 (eval $ac_link_default) 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; then
2971 # Find the output, starting from the most likely. This scheme is
2972 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2975 # Be careful to initialize this variable, since it used to be cached.
2976 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2978 # b.out is created by i960 compilers.
2979 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2981 test -f "$ac_file" ||
continue
2983 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2986 # This is the source file.
2989 # We found the default executable, but exeext='' is most
2993 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994 # FIXME: I believe we export ac_cv_exeext for Libtool,
2995 # but it would be cool to find out if it's true. Does anybody
2996 # maintain Libtool? --akim.
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.
$ac_ext >&5
3007 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3008 See \`config.log' for more details." >&5
3009 echo "$as_me: error: C compiler cannot create executables
3010 See \`config.log' for more details." >&2;}
3011 { (exit 77); exit 77; }; }
3014 ac_exeext
=$ac_cv_exeext
3015 echo "$as_me:$LINENO: result: $ac_file" >&5
3016 echo "${ECHO_T}$ac_file" >&6
3018 # Check the compiler produces executables we can run. If not, either
3019 # the compiler is broken, or we cross compile.
3020 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3021 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3022 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3023 # If not cross compiling, check that we can run a simple program.
3024 if test "$cross_compiling" != yes; then
3025 if { ac_try
='./$ac_file'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3033 if test "$cross_compiling" = maybe
; then
3036 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: cannot run C compiled programs.
3040 If you meant to cross compile, use \`--host'.
3041 See \`config.log' for more details." >&2;}
3042 { (exit 1); exit 1; }; }
3046 echo "$as_me:$LINENO: result: yes" >&5
3047 echo "${ECHO_T}yes" >&6
3049 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3050 ac_clean_files
=$ac_clean_files_save
3051 # Check the compiler produces executables we can run. If not, either
3052 # the compiler is broken, or we cross compile.
3053 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3055 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3056 echo "${ECHO_T}$cross_compiling" >&6
3058 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3061 (eval $ac_link) 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3069 for ac_file
in conftest.exe conftest conftest.
*; do
3070 test -f "$ac_file" ||
continue
3072 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3073 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3081 See \`config.log' for more details." >&5
3082 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3083 See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }
3087 rm -f conftest
$ac_cv_exeext
3088 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3089 echo "${ECHO_T}$ac_cv_exeext" >&6
3091 rm -f conftest.
$ac_ext
3092 EXEEXT
=$ac_cv_exeext
3094 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3095 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3096 if test "${ac_cv_objext+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 cat >conftest.
$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3103 cat confdefs.h
>>conftest.
$ac_ext
3104 cat >>conftest.
$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3115 rm -f conftest.o conftest.obj
3116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117 (eval $ac_compile) 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; then
3121 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3123 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3124 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.
$ac_ext >&5
3132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3139 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3142 echo "${ECHO_T}$ac_cv_objext" >&6
3143 OBJEXT
=$ac_cv_objext
3145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 cat >conftest.
$ac_ext <<_ACEOF
3151 #line $LINENO "configure"
3154 cat confdefs.h
>>conftest.
$ac_ext
3155 cat >>conftest.
$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3169 rm -f conftest.
$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try
='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.
$ac_ext >&5
3188 rm -f conftest.
$ac_objext conftest.
$ac_ext
3189 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3192 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3194 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3195 ac_test_CFLAGS
=${CFLAGS+set}
3196 ac_save_CFLAGS
=$CFLAGS
3198 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3200 if test "${ac_cv_prog_cc_g+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 cat >conftest.
$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3207 cat confdefs.h
>>conftest.
$ac_ext
3208 cat >>conftest.
$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 rm -f conftest.
$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try
='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.
$ac_ext >&5
3238 rm -f conftest.
$ac_objext conftest.
$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3241 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3242 if test "$ac_test_CFLAGS" = set; then
3243 CFLAGS
=$ac_save_CFLAGS
3244 elif test $ac_cv_prog_cc_g = yes; then
3245 if test "$GCC" = yes; then
3251 if test "$GCC" = yes; then
3257 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3258 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3259 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 ac_cv_prog_cc_stdc
=no
3264 cat >conftest.
$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3268 cat confdefs.h
>>conftest.
$ac_ext
3269 cat >>conftest.
$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3273 #include <sys/types.h>
3274 #include <sys/stat.h>
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3289 s = g (p, va_arg (v,int));
3293 int test (int i, double x);
3294 struct s1 {int (*f) (int a);};
3295 struct s2 {int (*f) (double a);};
3296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 # Don't try gcc -ansi; that turns off useful extensions and
3308 # breaks some systems' header files.
3309 # AIX -qlanglvl=ansi
3310 # Ultrix and OSF/1 -std1
3311 # HP-UX 10.20 and later -Ae
3312 # HP-UX older versions -Aa -D_HPUX_SOURCE
3313 # SVR4 -Xc -D__EXTENSIONS__
3314 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC
="$ac_save_CC $ac_arg"
3317 rm -f conftest.
$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_cv_prog_cc_stdc
=$ac_arg
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.
$ac_ext >&5
3336 rm -f conftest.
$ac_objext
3338 rm -f conftest.
$ac_ext conftest.
$ac_objext
3343 case "x$ac_cv_prog_cc_stdc" in
3345 echo "$as_me:$LINENO: result: none needed" >&5
3346 echo "${ECHO_T}none needed" >&6 ;;
3348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3349 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3350 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3353 # Some people use a C++ compiler to compile C. Since we use `exit',
3354 # in C++ we need to declare it. In case someone uses the same compiler
3355 # for both compiling C and C++ we need to have the C++ compiler decide
3356 # the declaration of exit, since it's the most demanding environment.
3357 cat >conftest.
$ac_ext <<_ACEOF
3362 rm -f conftest.
$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try
='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 for ac_declaration
in \
3376 '#include <stdlib.h>' \
3377 'extern "C" void std::exit (int) throw (); using std::exit;' \
3378 'extern "C" void std::exit (int); using std::exit;' \
3379 'extern "C" void exit (int) throw ();' \
3380 'extern "C" void exit (int);' \
3383 cat >conftest.
$ac_ext <<_ACEOF
3384 #line $LINENO "configure"
3387 cat confdefs.h
>>conftest.
$ac_ext
3388 cat >>conftest.
$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3400 rm -f conftest.
$ac_objext
3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try
='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.
$ac_ext >&5
3419 rm -f conftest.
$ac_objext conftest.
$ac_ext
3420 cat >conftest.
$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3424 cat confdefs.h
>>conftest.
$ac_ext
3425 cat >>conftest.
$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3436 rm -f conftest.
$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try
='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.
$ac_ext >&5
3454 rm -f conftest.
$ac_objext conftest.
$ac_ext
3457 if test -n "$ac_declaration"; then
3458 echo '#ifdef __cplusplus' >>confdefs.h
3459 echo $ac_declaration >>confdefs.h
3460 echo '#endif' >>confdefs.h
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.
$ac_ext >&5
3468 rm -f conftest.
$ac_objext conftest.
$ac_ext
3470 ac_cpp
='$CPP $CPPFLAGS'
3471 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3476 # On Suns, sometimes $CPP names a directory.
3477 if test -n "$CPP" && test -d "$CPP"; then
3481 #### Some systems specify a CPP to use unless we are using GCC.
3482 #### Now that we know whether we are using GCC, we can decide whether
3483 #### to use that one.
3484 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3489 #### Some systems specify a CC to use unless we are using GCC.
3490 #### Now that we know whether we are using GCC, we can decide whether
3491 #### to use that one.
3492 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3493 test x
$cc_specified != xyes
3498 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3500 CC
="$CC $GCC_TEST_OPTIONS"
3503 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3505 CC
="$CC $NON_GCC_TEST_OPTIONS"
3508 #### Some other nice autoconf tests.
3510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3513 if test "$LN_S" = "ln -s"; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6
3517 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3518 echo "${ECHO_T}no, using $LN_S" >&6
3522 ac_cpp
='$CPP $CPPFLAGS'
3523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3526 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3528 # On Suns, sometimes $CPP names a directory.
3529 if test -n "$CPP" && test -d "$CPP"; then
3532 if test -z "$CPP"; then
3533 if test "${ac_cv_prog_CPP+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 # Double quotes because CPP needs to be expanded
3537 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3540 for ac_c_preproc_warn_flag
in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat >conftest.
$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3552 cat confdefs.h
>>conftest.
$ac_ext
3553 cat >>conftest.
$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3556 # include <limits.h>
3558 # include <assert.h>
3562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3563 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1
>conftest.err
3567 cat conftest.err
>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev
/null
; then
3570 if test -s conftest.err
; then
3571 ac_cpp_err
=$ac_c_preproc_warn_flag
3578 if test -z "$ac_cpp_err"; then
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.
$ac_ext >&5
3584 # Broken: fails on valid input.
3587 rm -f conftest.err conftest.
$ac_ext
3589 # OK, works on sane cases. Now check whether non-existent headers
3590 # can be detected and how.
3591 cat >conftest.
$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3595 cat confdefs.h
>>conftest.
$ac_ext
3596 cat >>conftest.
$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3601 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1
>conftest.err
3605 cat conftest.err
>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev
/null
; then
3608 if test -s conftest.err
; then
3609 ac_cpp_err
=$ac_c_preproc_warn_flag
3616 if test -z "$ac_cpp_err"; then
3617 # Broken: success on invalid input.
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.
$ac_ext >&5
3623 # Passes both tests.
3627 rm -f conftest.err conftest.
$ac_ext
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.
$ac_ext
3632 if $ac_preproc_ok; then
3644 echo "$as_me:$LINENO: result: $CPP" >&5
3645 echo "${ECHO_T}$CPP" >&6
3647 for ac_c_preproc_warn_flag
in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat >conftest.
$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3659 cat confdefs.h
>>conftest.
$ac_ext
3660 cat >>conftest.
$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3663 # include <limits.h>
3665 # include <assert.h>
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3672 grep -v '^ *+' conftest.er1
>conftest.err
3674 cat conftest.err
>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev
/null
; then
3677 if test -s conftest.err
; then
3678 ac_cpp_err
=$ac_c_preproc_warn_flag
3685 if test -z "$ac_cpp_err"; then
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.
$ac_ext >&5
3691 # Broken: fails on valid input.
3694 rm -f conftest.err conftest.
$ac_ext
3696 # OK, works on sane cases. Now check whether non-existent headers
3697 # can be detected and how.
3698 cat >conftest.
$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3702 cat confdefs.h
>>conftest.
$ac_ext
3703 cat >>conftest.
$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <ac_nonexistent.h>
3707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3708 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3710 grep -v '^ *+' conftest.er1
>conftest.err
3712 cat conftest.err
>&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } >/dev
/null
; then
3715 if test -s conftest.err
; then
3716 ac_cpp_err
=$ac_c_preproc_warn_flag
3723 if test -z "$ac_cpp_err"; then
3724 # Broken: success on invalid input.
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.
$ac_ext >&5
3730 # Passes both tests.
3734 rm -f conftest.err conftest.
$ac_ext
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.
$ac_ext
3739 if $ac_preproc_ok; then
3742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&5
3744 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745 See \`config.log' for more details." >&2;}
3746 { (exit 1); exit 1; }; }
3750 ac_cpp
='$CPP $CPPFLAGS'
3751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3755 # Find a good install program. We prefer a C program (faster),
3756 # so one script is as good as another. But avoid the broken or
3757 # incompatible versions:
3758 # SysV /etc/install, /usr/sbin/install
3759 # SunOS /usr/etc/install
3760 # IRIX /sbin/install
3762 # AmigaOS /C/install, which installs bootblocks on floppy discs
3763 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3766 # ./install, which can be erroneously created by make from ./install.sh.
3767 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3768 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3769 if test -z "$INSTALL"; then
3770 if test "${ac_cv_path_install+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir
=.
3778 # Account for people who put trailing slashes in PATH elements.
3780 .
/ | .
// |
/cC
/* | \
3781 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3784 # OSF1 and SCO ODT 3.0 have their own names for install.
3785 # Don't use installbsd from OSF since it installs stuff as root
3787 for ac_prog
in ginstall scoinst
install; do
3788 for ac_exec_ext
in '' $ac_executable_extensions; do
3789 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3790 if test $ac_prog = install &&
3791 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3792 # AIX install. It has an incompatible calling convention.
3794 elif test $ac_prog = install &&
3795 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3796 # program-specific install script used by HP pwplus--don't use.
3799 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3811 if test "${ac_cv_path_install+set}" = set; then
3812 INSTALL
=$ac_cv_path_install
3814 # As a last resort, use the slow shell script. We don't cache a
3815 # path for INSTALL within a source directory, because that will
3816 # break other packages using the cache if that directory is
3817 # removed, or if the path is relative.
3818 INSTALL
=$ac_install_sh
3821 echo "$as_me:$LINENO: result: $INSTALL" >&5
3822 echo "${ECHO_T}$INSTALL" >&6
3824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3825 # It thinks the first close brace ends the variable substitution.
3826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3830 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3832 if test "x$RANLIB" = x
; then
3833 if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3835 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3836 echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3838 if test "${ac_cv_prog_RANLIB+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 if test -n "$RANLIB"; then
3842 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir
=.
3849 for ac_exec_ext
in '' $ac_executable_extensions; do
3850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 RANLIB
=$ac_cv_prog_RANLIB
3861 if test -n "$RANLIB"; then
3862 echo "$as_me:$LINENO: result: $RANLIB" >&5
3863 echo "${ECHO_T}$RANLIB" >&6
3865 echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3870 if test -z "$ac_cv_prog_RANLIB"; then
3871 ac_ct_RANLIB
=$RANLIB
3872 # Extract the first word of "ranlib", so it can be a program name with args.
3873 set dummy ranlib
; ac_word
=$2
3874 echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 if test -n "$ac_ct_RANLIB"; then
3880 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir
=.
3887 for ac_exec_ext
in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3899 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3900 if test -n "$ac_ct_RANLIB"; then
3901 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3902 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3904 echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6
3908 RANLIB
=$ac_ct_RANLIB
3910 RANLIB
="$ac_cv_prog_RANLIB"
3914 # Extract the first word of "install-info", so it can be a program name with args.
3915 set dummy install-info
; ac_word
=$2
3916 echo "$as_me:$LINENO: checking for $ac_word" >&5
3917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3918 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 case $INSTALL_INFO in
3923 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir
=.
3931 for ac_exec_ext
in '' $ac_executable_extensions; do
3932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3945 if test -n "$INSTALL_INFO"; then
3946 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3947 echo "${ECHO_T}$INSTALL_INFO" >&6
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3953 # Extract the first word of "install-info", so it can be a program name with args.
3954 set dummy install-info
; ac_word
=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 case $INSTALL_INFO in
3962 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3966 for as_dir
in /usr
/sbin
3969 test -z "$as_dir" && as_dir
=.
3970 for ac_exec_ext
in '' $ac_executable_extensions; do
3971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3984 if test -n "$INSTALL_INFO"; then
3985 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3986 echo "${ECHO_T}$INSTALL_INFO" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3992 # Extract the first word of "install-info", so it can be a program name with args.
3993 set dummy install-info
; ac_word
=$2
3994 echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 case $INSTALL_INFO in
4001 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir
=.
4009 for ac_exec_ext
in '' $ac_executable_extensions; do
4010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4022 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4024 if test -n "$INSTALL_INFO"; then
4025 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4026 echo "${ECHO_T}$INSTALL_INFO" >&6
4028 echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6
4034 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4036 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4039 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4041 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4046 echo "$as_me:$LINENO: checking for egrep" >&5
4047 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4048 if test "${ac_cv_prog_egrep+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4052 then ac_cv_prog_egrep
='grep -E'
4053 else ac_cv_prog_egrep
='egrep'
4056 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4057 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4058 EGREP
=$ac_cv_prog_egrep
4062 echo "$as_me:$LINENO: checking for AIX" >&5
4063 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4064 cat >conftest.
$ac_ext <<_ACEOF
4065 #line $LINENO "configure"
4068 cat confdefs.h
>>conftest.
$ac_ext
4069 cat >>conftest.
$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077 $EGREP "yes" >/dev
/null
2>&1; then
4078 echo "$as_me:$LINENO: result: yes" >&5
4079 echo "${ECHO_T}yes" >&6
4080 cat >>confdefs.h
<<\_ACEOF
4081 #define _ALL_SOURCE 1
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4092 #### Extract some information from the operating system and machine files.
4094 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4095 - which libraries the lib-src programs will want, and
4096 - whether the GNU malloc routines are usable..." >&5
4097 echo "$as_me: checking the machine- and system-dependent files to find out
4098 - which libraries the lib-src programs will want, and
4099 - whether the GNU malloc routines are usable..." >&6;}
4101 ### First figure out CFLAGS (which we use for running the compiler here)
4102 ### and REAL_CFLAGS (which we use for real compilation).
4103 ### The two are the same except on a few systems, where they are made
4104 ### different to work around various lossages. For example,
4105 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4106 ### as implying static linking.
4108 ### If the CFLAGS env var is specified, we use that value
4109 ### instead of the default.
4111 ### It's not important that this name contain the PID; you can't run
4112 ### two configures in the same directory and have anything work
4114 tempcname
="conftest.c"
4117 #include "'${srcdir}'/src/'${opsysfile}'"
4118 #include "'${srcdir}'/src/'${machfile}'"
4119 #ifndef LIBS_MACHINE
4120 #define LIBS_MACHINE
4125 #ifndef C_SWITCH_SYSTEM
4126 #define C_SWITCH_SYSTEM
4128 #ifndef C_SWITCH_MACHINE
4129 #define C_SWITCH_MACHINE
4131 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4132 configure___ c_switch_system=C_SWITCH_SYSTEM
4133 configure___ c_switch_machine=C_SWITCH_MACHINE
4136 #define LIB_X11_LIB -lX11
4139 #ifndef LIBX11_MACHINE
4140 #define LIBX11_MACHINE
4143 #ifndef LIBX11_SYSTEM
4144 #define LIBX11_SYSTEM
4146 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4149 configure___ unexec=UNEXEC
4151 configure___ unexec=unexec.o
4154 #ifdef SYSTEM_MALLOC
4155 configure___ system_malloc=yes
4157 configure___ system_malloc=no
4160 #ifdef USE_MMAP_FOR_BUFFERS
4161 configure___ use_mmap_for_buffers=yes
4163 configure___ use_mmap_for_buffers=no
4166 #ifndef C_DEBUG_SWITCH
4167 #define C_DEBUG_SWITCH -g
4170 #ifndef C_OPTIMIZE_SWITCH
4172 #define C_OPTIMIZE_SWITCH -O2
4174 #define C_OPTIMIZE_SWITCH -O
4178 #ifndef LD_SWITCH_MACHINE
4179 #define LD_SWITCH_MACHINE
4182 #ifndef LD_SWITCH_SYSTEM
4183 #define LD_SWITCH_SYSTEM
4186 #ifndef LD_SWITCH_X_SITE_AUX
4187 #define LD_SWITCH_X_SITE_AUX
4190 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4191 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4193 #ifdef THIS_IS_CONFIGURE
4195 /* Get the CFLAGS for tests in configure. */
4197 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4199 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4202 #else /* not THIS_IS_CONFIGURE */
4204 /* Get the CFLAGS for real compilation. */
4206 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4208 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4211 #endif /* not THIS_IS_CONFIGURE */
4214 # The value of CPP is a quoted variable reference, so we need to do this
4215 # to get its actual value...
4216 CPP
=`eval "echo $CPP"`
4217 eval `${CPP} -Isrc ${tempcname} \
4218 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4219 if test "x$SPECIFIED_CFLAGS" = x
; then
4220 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4221 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4223 REAL_CFLAGS
="$CFLAGS"
4227 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4229 ### Make sure subsequent tests use flags consistent with the build flags.
4231 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4232 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4234 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4240 cat >>confdefs.h
<<\_ACEOF
4241 #define _GNU_SOURCE 1
4246 # Check whether --enable-largefile or --disable-largefile was given.
4247 if test "${enable_largefile+set}" = set; then
4248 enableval
="$enable_largefile"
4251 if test "$enable_largefile" != no
; then
4253 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4254 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4255 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 ac_cv_sys_largefile_CC
=no
4259 if test "$GCC" != yes; then
4262 # IRIX 6.2 and later do not support large files by default,
4263 # so use the C compiler's -n32 option if that helps.
4264 cat >conftest.
$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4268 cat confdefs.h
>>conftest.
$ac_ext
4269 cat >>conftest.
$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 #include <sys/types.h>
4272 /* Check that off_t can represent 2**63 - 1 correctly.
4273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4274 since some C++ compilers masquerading as C compilers
4275 incorrectly reject 9223372036854775807. */
4276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4278 && LARGE_OFF_T % 2147483647 == 1)
4288 rm -f conftest.
$ac_objext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try
='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.
$ac_ext >&5
4306 rm -f conftest.
$ac_objext
4308 rm -f conftest.
$ac_objext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try
='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 ac_cv_sys_largefile_CC
=' -n32'; break
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.
$ac_ext >&5
4326 rm -f conftest.
$ac_objext
4330 rm -f conftest.
$ac_ext
4333 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4334 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4335 if test "$ac_cv_sys_largefile_CC" != no
; then
4336 CC
=$CC$ac_cv_sys_largefile_CC
4339 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4340 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4341 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 ac_cv_sys_file_offset_bits
=no
4346 cat >conftest.
$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4350 cat confdefs.h
>>conftest.
$ac_ext
4351 cat >>conftest.
$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <sys/types.h>
4354 /* Check that off_t can represent 2**63 - 1 correctly.
4355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4356 since some C++ compilers masquerading as C compilers
4357 incorrectly reject 9223372036854775807. */
4358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4360 && LARGE_OFF_T % 2147483647 == 1)
4370 rm -f conftest.
$ac_objext
4371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372 (eval $ac_compile) 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try
='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.
$ac_ext >&5
4388 rm -f conftest.
$ac_objext conftest.
$ac_ext
4389 cat >conftest.
$ac_ext <<_ACEOF
4390 #line $LINENO "configure"
4393 cat confdefs.h
>>conftest.
$ac_ext
4394 cat >>conftest.
$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 #define _FILE_OFFSET_BITS 64
4397 #include <sys/types.h>
4398 /* Check that off_t can represent 2**63 - 1 correctly.
4399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4400 since some C++ compilers masquerading as C compilers
4401 incorrectly reject 9223372036854775807. */
4402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4404 && LARGE_OFF_T % 2147483647 == 1)
4414 rm -f conftest.
$ac_objext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try
='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_sys_file_offset_bits
=64; break
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.
$ac_ext >&5
4432 rm -f conftest.
$ac_objext conftest.
$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4437 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4438 if test "$ac_cv_sys_file_offset_bits" != no
; then
4440 cat >>confdefs.h
<<_ACEOF
4441 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4446 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4447 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4448 if test "${ac_cv_sys_large_files+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_cv_sys_large_files
=no
4453 cat >conftest.
$ac_ext <<_ACEOF
4454 #line $LINENO "configure"
4457 cat confdefs.h
>>conftest.
$ac_ext
4458 cat >>conftest.
$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4477 rm -f conftest.
$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try
='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.
$ac_ext >&5
4495 rm -f conftest.
$ac_objext conftest.
$ac_ext
4496 cat >conftest.
$ac_ext <<_ACEOF
4497 #line $LINENO "configure"
4500 cat confdefs.h
>>conftest.
$ac_ext
4501 cat >>conftest.
$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #define _LARGE_FILES 1
4504 #include <sys/types.h>
4505 /* Check that off_t can represent 2**63 - 1 correctly.
4506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4507 since some C++ compilers masquerading as C compilers
4508 incorrectly reject 9223372036854775807. */
4509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4511 && LARGE_OFF_T % 2147483647 == 1)
4521 rm -f conftest.
$ac_objext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try
='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_cv_sys_large_files
=1; break
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.
$ac_ext >&5
4539 rm -f conftest.
$ac_objext conftest.
$ac_ext
4543 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4544 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4545 if test "$ac_cv_sys_large_files" != no
; then
4547 cat >>confdefs.h
<<_ACEOF
4548 #define _LARGE_FILES $ac_cv_sys_large_files
4556 if test "${with_sound}" != "no"; then
4557 # Sound support for GNU/Linux and the free BSDs.
4558 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4559 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4560 if test "${ac_cv_header_stdc+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 cat >conftest.
$ac_ext <<_ACEOF
4564 #line $LINENO "configure"
4567 cat confdefs.h
>>conftest.
$ac_ext
4568 cat >>conftest.
$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4583 rm -f conftest.
$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try
='test -s conftest.$ac_objext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 ac_cv_header_stdc
=yes
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.
$ac_ext >&5
4600 ac_cv_header_stdc
=no
4602 rm -f conftest.
$ac_objext conftest.
$ac_ext
4604 if test $ac_cv_header_stdc = yes; then
4605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4606 cat >conftest.
$ac_ext <<_ACEOF
4607 #line $LINENO "configure"
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "memchr" >/dev
/null
2>&1; then
4620 ac_cv_header_stdc
=no
4626 if test $ac_cv_header_stdc = yes; then
4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628 cat >conftest.
$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4632 cat confdefs.h
>>conftest.
$ac_ext
4633 cat >>conftest.
$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639 $EGREP "free" >/dev
/null
2>&1; then
4642 ac_cv_header_stdc
=no
4648 if test $ac_cv_header_stdc = yes; then
4649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4650 if test "$cross_compiling" = yes; then
4653 cat >conftest.
$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4657 cat confdefs.h
>>conftest.
$ac_ext
4658 cat >>conftest.
$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4661 #if ((' ' & 0x0FF) == 0x020)
4662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4665 # define ISLOWER(c) \
4666 (('a' <= (c) && (c) <= 'i') \
4667 || ('j' <= (c) && (c) <= 'r') \
4668 || ('s' <= (c) && (c) <= 'z'))
4669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4677 for (i = 0; i < 256; i++)
4678 if (XOR (islower (i), ISLOWER (i))
4679 || toupper (i) != TOUPPER (i))
4684 rm -f conftest
$ac_exeext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686 (eval $ac_link) 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4697 echo "$as_me: program exited with status $ac_status" >&5
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.
$ac_ext >&5
4702 ac_cv_header_stdc
=no
4704 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4708 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4709 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4710 if test $ac_cv_header_stdc = yes; then
4712 cat >>confdefs.h
<<\_ACEOF
4713 #define STDC_HEADERS 1
4718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4728 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4729 inttypes.h stdint.h unistd.h
4731 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4732 echo "$as_me:$LINENO: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.
$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4741 cat confdefs.h
>>conftest.
$ac_ext
4742 cat >>conftest.
$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 $ac_includes_default
4746 #include <$ac_header>
4748 rm -f conftest.
$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try
='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 eval "$as_ac_Header=yes"
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.
$ac_ext >&5
4765 eval "$as_ac_Header=no"
4767 rm -f conftest.
$ac_objext conftest.
$ac_ext
4769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4772 cat >>confdefs.h
<<_ACEOF
4773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4784 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4786 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo "$as_me:$LINENO: checking for $ac_header" >&5
4789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 # Is the header compilable?
4797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4799 cat >conftest.
$ac_ext <<_ACEOF
4800 #line $LINENO "configure"
4803 cat confdefs.h
>>conftest.
$ac_ext
4804 cat >>conftest.
$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 $ac_includes_default
4807 #include <$ac_header>
4809 rm -f conftest.
$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try
='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler
=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.
$ac_ext >&5
4826 ac_header_compiler
=no
4828 rm -f conftest.
$ac_objext conftest.
$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835 cat >conftest.
$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4839 cat confdefs.h
>>conftest.
$ac_ext
4840 cat >>conftest.
$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <$ac_header>
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4847 grep -v '^ *+' conftest.er1
>conftest.err
4849 cat conftest.err
>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev
/null
; then
4852 if test -s conftest.err
; then
4853 ac_cpp_err
=$ac_c_preproc_warn_flag
4860 if test -z "$ac_cpp_err"; then
4861 ac_header_preproc
=yes
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.
$ac_ext >&5
4866 ac_header_preproc
=no
4868 rm -f conftest.err conftest.
$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc in
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4881 ## ------------------------------------ ##
4882 ## Report this to bug-autoconf@gnu.org. ##
4883 ## ------------------------------------ ##
4886 sed "s/^/$as_me: WARNING: /" >&2
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4897 ## ------------------------------------ ##
4898 ## Report this to bug-autoconf@gnu.org. ##
4899 ## ------------------------------------ ##
4902 sed "s/^/$as_me: WARNING: /" >&2
4905 echo "$as_me:$LINENO: checking for $ac_header" >&5
4906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 eval "$as_ac_Header=$ac_header_preproc"
4912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917 cat >>confdefs.h
<<_ACEOF
4918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925 # Emulation library used on NetBSD.
4926 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4927 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4928 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 ac_check_lib_save_LIBS
=$LIBS
4932 LIBS
="-lossaudio $LIBS"
4933 cat >conftest.
$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4937 cat confdefs.h
>>conftest.
$ac_ext
4938 cat >>conftest.
$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4941 /* Override any gcc2 internal prototype to avoid an error. */
4945 /* We use char because int might match the return type of a gcc2
4946 builtin and then its argument prototype would still apply. */
4956 rm -f conftest.
$ac_objext conftest
$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } &&
4962 { ac_try
='test -s conftest$ac_exeext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_lib_ossaudio__oss_ioctl
=yes
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.
$ac_ext >&5
4973 ac_cv_lib_ossaudio__oss_ioctl
=no
4975 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4976 LIBS
=$ac_check_lib_save_LIBS
4978 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4979 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4980 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5011 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5012 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5013 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h pty.h sys
/mman.h \
5014 sys
/param.h sys
/vlimit.h sys
/resource.h
5016 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5018 echo "$as_me:$LINENO: checking for $ac_header" >&5
5019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5026 # Is the header compilable?
5027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5029 cat >conftest.
$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5033 cat confdefs.h
>>conftest.
$ac_ext
5034 cat >>conftest.
$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5037 #include <$ac_header>
5039 rm -f conftest.
$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try
='test -s conftest.$ac_objext'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; }; then
5051 ac_header_compiler
=yes
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.
$ac_ext >&5
5056 ac_header_compiler
=no
5058 rm -f conftest.
$ac_objext conftest.
$ac_ext
5059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5060 echo "${ECHO_T}$ac_header_compiler" >&6
5062 # Is the header present?
5063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5065 cat >conftest.
$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5069 cat confdefs.h
>>conftest.
$ac_ext
5070 cat >>conftest.
$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 #include <$ac_header>
5074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5077 grep -v '^ *+' conftest.er1
>conftest.err
5079 cat conftest.err
>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } >/dev
/null
; then
5082 if test -s conftest.err
; then
5083 ac_cpp_err
=$ac_c_preproc_warn_flag
5090 if test -z "$ac_cpp_err"; then
5091 ac_header_preproc
=yes
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.
$ac_ext >&5
5096 ac_header_preproc
=no
5098 rm -f conftest.err conftest.
$ac_ext
5099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5100 echo "${ECHO_T}$ac_header_preproc" >&6
5102 # So? What about this header?
5103 case $ac_header_compiler:$ac_header_preproc in
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5111 ## ------------------------------------ ##
5112 ## Report this to bug-autoconf@gnu.org. ##
5113 ## ------------------------------------ ##
5116 sed "s/^/$as_me: WARNING: /" >&2
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5127 ## ------------------------------------ ##
5128 ## Report this to bug-autoconf@gnu.org. ##
5129 ## ------------------------------------ ##
5132 sed "s/^/$as_me: WARNING: /" >&2
5135 echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 eval "$as_ac_Header=$ac_header_preproc"
5142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h
<<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5156 for ac_header
in term.h
5158 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5159 echo "$as_me:$LINENO: checking for $ac_header" >&5
5160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 cat >conftest.
$ac_ext <<_ACEOF
5165 #line $LINENO "configure"
5168 cat confdefs.h
>>conftest.
$ac_ext
5169 cat >>conftest.
$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <$ac_header>
5173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5174 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5176 grep -v '^ *+' conftest.er1
>conftest.err
5178 cat conftest.err
>&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } >/dev
/null
; then
5181 if test -s conftest.err
; then
5182 ac_cpp_err
=$ac_c_preproc_warn_flag
5189 if test -z "$ac_cpp_err"; then
5190 eval "$as_ac_Header=yes"
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.
$ac_ext >&5
5195 eval "$as_ac_Header=no"
5197 rm -f conftest.err conftest.
$ac_ext
5199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5202 cat >>confdefs.h
<<_ACEOF
5203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5210 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5211 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5212 if test "${ac_cv_header_stdc+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 cat >conftest.
$ac_ext <<_ACEOF
5216 #line $LINENO "configure"
5219 cat confdefs.h
>>conftest.
$ac_ext
5220 cat >>conftest.
$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5235 rm -f conftest.
$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 ac_cv_header_stdc
=yes
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.
$ac_ext >&5
5252 ac_cv_header_stdc
=no
5254 rm -f conftest.
$ac_objext conftest.
$ac_ext
5256 if test $ac_cv_header_stdc = yes; then
5257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5258 cat >conftest.
$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5262 cat confdefs.h
>>conftest.
$ac_ext
5263 cat >>conftest.
$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5269 $EGREP "memchr" >/dev
/null
2>&1; then
5272 ac_cv_header_stdc
=no
5278 if test $ac_cv_header_stdc = yes; then
5279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5280 cat >conftest.
$ac_ext <<_ACEOF
5281 #line $LINENO "configure"
5284 cat confdefs.h
>>conftest.
$ac_ext
5285 cat >>conftest.
$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "free" >/dev
/null
2>&1; then
5294 ac_cv_header_stdc
=no
5300 if test $ac_cv_header_stdc = yes; then
5301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5302 if test "$cross_compiling" = yes; then
5305 cat >conftest.
$ac_ext <<_ACEOF
5306 #line $LINENO "configure"
5309 cat confdefs.h
>>conftest.
$ac_ext
5310 cat >>conftest.
$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5313 #if ((' ' & 0x0FF) == 0x020)
5314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5317 # define ISLOWER(c) \
5318 (('a' <= (c) && (c) <= 'i') \
5319 || ('j' <= (c) && (c) <= 'r') \
5320 || ('s' <= (c) && (c) <= 'z'))
5321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5329 for (i = 0; i < 256; i++)
5330 if (XOR (islower (i), ISLOWER (i))
5331 || toupper (i) != TOUPPER (i))
5336 rm -f conftest
$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5349 echo "$as_me: program exited with status $ac_status" >&5
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.
$ac_ext >&5
5354 ac_cv_header_stdc
=no
5356 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5362 if test $ac_cv_header_stdc = yes; then
5364 cat >>confdefs.h
<<\_ACEOF
5365 #define STDC_HEADERS 1
5370 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5371 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5372 if test "${ac_cv_header_time+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 cat >conftest.
$ac_ext <<_ACEOF
5376 #line $LINENO "configure"
5379 cat confdefs.h
>>conftest.
$ac_ext
5380 cat >>conftest.
$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 #include <sys/types.h>
5383 #include <sys/time.h>
5389 if ((struct tm *) 0)
5395 rm -f conftest.
$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try
='test -s conftest.$ac_objext'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_cv_header_time
=yes
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.
$ac_ext >&5
5412 ac_cv_header_time
=no
5414 rm -f conftest.
$ac_objext conftest.
$ac_ext
5416 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5417 echo "${ECHO_T}$ac_cv_header_time" >&6
5418 if test $ac_cv_header_time = yes; then
5420 cat >>confdefs.h
<<\_ACEOF
5421 #define TIME_WITH_SYS_TIME 1
5426 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5427 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5428 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 cat >conftest.
$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5435 cat confdefs.h
>>conftest.
$ac_ext
5436 cat >>conftest.
$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5443 char *p = (char *) sys_siglist;
5450 rm -f conftest.
$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try
='test -s conftest.$ac_objext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_cv_have_decl_sys_siglist
=yes
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.
$ac_ext >&5
5467 ac_cv_have_decl_sys_siglist
=no
5469 rm -f conftest.
$ac_objext conftest.
$ac_ext
5471 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5472 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5473 if test $ac_cv_have_decl_sys_siglist = yes; then
5475 cat >>confdefs.h
<<_ACEOF
5476 #define HAVE_DECL_SYS_SIGLIST 1
5481 cat >>confdefs.h
<<_ACEOF
5482 #define HAVE_DECL_SYS_SIGLIST 0
5489 if test $ac_cv_have_decl_sys_siglist != yes; then
5490 # For Tru64, at least:
5491 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5492 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5493 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 cat >conftest.
$ac_ext <<_ACEOF
5497 #line $LINENO "configure"
5500 cat confdefs.h
>>conftest.
$ac_ext
5501 cat >>conftest.
$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5507 #ifndef __sys_siglist
5508 char *p = (char *) __sys_siglist;
5515 rm -f conftest.
$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try
='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_have_decl___sys_siglist
=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.
$ac_ext >&5
5532 ac_cv_have_decl___sys_siglist
=no
5534 rm -f conftest.
$ac_objext conftest.
$ac_ext
5536 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5537 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5538 if test $ac_cv_have_decl___sys_siglist = yes; then
5540 cat >>confdefs.h
<<_ACEOF
5541 #define HAVE_DECL___SYS_SIGLIST 1
5546 cat >>confdefs.h
<<_ACEOF
5547 #define HAVE_DECL___SYS_SIGLIST 0
5554 if test $ac_cv_have_decl___sys_siglist = yes; then
5556 cat >>confdefs.h
<<\_ACEOF
5557 #define sys_siglist __sys_siglist
5562 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5563 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5564 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 cat >conftest.
$ac_ext <<_ACEOF
5568 #line $LINENO "configure"
5571 cat confdefs.h
>>conftest.
$ac_ext
5572 cat >>conftest.
$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <sys/types.h>
5575 #include <sys/wait.h>
5577 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5580 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5588 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5593 rm -f conftest.
$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try
='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_header_sys_wait_h
=yes
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.
$ac_ext >&5
5610 ac_cv_header_sys_wait_h
=no
5612 rm -f conftest.
$ac_objext conftest.
$ac_ext
5614 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5615 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5616 if test $ac_cv_header_sys_wait_h = yes; then
5618 cat >>confdefs.h
<<\_ACEOF
5619 #define HAVE_SYS_WAIT_H 1
5625 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5626 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5627 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 cat >conftest.
$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5634 cat confdefs.h
>>conftest.
$ac_ext
5635 cat >>conftest.
$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #ifdef TIME_WITH_SYS_TIME
5638 #include <sys/time.h>
5641 #ifdef HAVE_SYS_TIME_H
5642 #include <sys/time.h>
5653 static struct utimbuf x; x.actime = x.modtime;
5658 rm -f conftest.
$ac_objext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try
='test -s conftest.$ac_objext'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 emacs_cv_struct_utimbuf
=yes
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.
$ac_ext >&5
5675 emacs_cv_struct_utimbuf
=no
5677 rm -f conftest.
$ac_objext conftest.
$ac_ext
5679 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5680 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5681 if test $emacs_cv_struct_utimbuf = yes; then
5683 cat >>confdefs.h
<<\_ACEOF
5684 #define HAVE_STRUCT_UTIMBUF 1
5689 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5690 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5691 if test "${ac_cv_type_signal+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 cat >conftest.
$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5698 cat confdefs.h
>>conftest.
$ac_ext
5699 cat >>conftest.
$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5707 extern "C" void (*signal (int, void (*)(int)))(int);
5709 void (*signal ()) ();
5720 rm -f conftest.
$ac_objext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try
='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_type_signal
=void
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.
$ac_ext >&5
5737 ac_cv_type_signal
=int
5739 rm -f conftest.
$ac_objext conftest.
$ac_ext
5741 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5742 echo "${ECHO_T}$ac_cv_type_signal" >&6
5744 cat >>confdefs.h
<<_ACEOF
5745 #define RETSIGTYPE $ac_cv_type_signal
5750 echo "$as_me:$LINENO: checking for speed_t" >&5
5751 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5752 if test "${emacs_cv_speed_t+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 cat >conftest.
$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5759 cat confdefs.h
>>conftest.
$ac_ext
5760 cat >>conftest.
$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 #include <termios.h>
5771 rm -f conftest.
$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try
='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 emacs_cv_speed_t
=yes
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.
$ac_ext >&5
5790 rm -f conftest.
$ac_objext conftest.
$ac_ext
5792 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5793 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5794 if test $emacs_cv_speed_t = yes; then
5796 cat >>confdefs.h
<<\_ACEOF
5797 #define HAVE_SPEED_T 1
5802 echo "$as_me:$LINENO: checking for struct timeval" >&5
5803 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5804 if test "${emacs_cv_struct_timeval+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 cat >conftest.
$ac_ext <<_ACEOF
5808 #line $LINENO "configure"
5811 cat confdefs.h
>>conftest.
$ac_ext
5812 cat >>conftest.
$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #ifdef TIME_WITH_SYS_TIME
5815 #include <sys/time.h>
5818 #ifdef HAVE_SYS_TIME_H
5819 #include <sys/time.h>
5827 static struct timeval x; x.tv_sec = x.tv_usec;
5832 rm -f conftest.
$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try
='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 emacs_cv_struct_timeval
=yes
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.
$ac_ext >&5
5849 emacs_cv_struct_timeval
=no
5851 rm -f conftest.
$ac_objext conftest.
$ac_ext
5853 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5854 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5855 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5856 if test $emacs_cv_struct_timeval = yes; then
5858 cat >>confdefs.h
<<\_ACEOF
5859 #define HAVE_TIMEVAL 1
5864 echo "$as_me:$LINENO: checking for struct exception" >&5
5865 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5866 if test "${emacs_cv_struct_exception+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 cat >conftest.
$ac_ext <<_ACEOF
5870 #line $LINENO "configure"
5873 cat confdefs.h
>>conftest.
$ac_ext
5874 cat >>conftest.
$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5880 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5885 rm -f conftest.
$ac_objext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try
='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 emacs_cv_struct_exception
=yes
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.
$ac_ext >&5
5902 emacs_cv_struct_exception
=no
5904 rm -f conftest.
$ac_objext conftest.
$ac_ext
5906 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5907 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5908 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5909 if test $emacs_cv_struct_exception != yes; then
5911 cat >>confdefs.h
<<\_ACEOF
5912 #define NO_MATHERR 1
5917 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5918 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5919 if test "${ac_cv_struct_tm+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 cat >conftest.
$ac_ext <<_ACEOF
5923 #line $LINENO "configure"
5926 cat confdefs.h
>>conftest.
$ac_ext
5927 cat >>conftest.
$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 #include <sys/types.h>
5935 struct tm *tp; tp->tm_sec;
5940 rm -f conftest.
$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try
='test -s conftest.$ac_objext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 ac_cv_struct_tm
=time.h
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.
$ac_ext >&5
5957 ac_cv_struct_tm
=sys
/time.h
5959 rm -f conftest.
$ac_objext conftest.
$ac_ext
5961 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5962 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5963 if test $ac_cv_struct_tm = sys
/time.h
; then
5965 cat >>confdefs.h
<<\_ACEOF
5966 #define TM_IN_SYS_TIME 1
5971 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5972 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5973 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 cat >conftest.
$ac_ext <<_ACEOF
5977 #line $LINENO "configure"
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <sys/types.h>
5984 #include <$ac_cv_struct_tm>
5990 static struct tm ac_aggr;
5991 if (ac_aggr.tm_zone)
5997 rm -f conftest.
$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try
='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_member_struct_tm_tm_zone
=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.
$ac_ext >&5
6014 cat >conftest.
$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6018 cat confdefs.h
>>conftest.
$ac_ext
6019 cat >>conftest.
$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 #include <sys/types.h>
6022 #include <$ac_cv_struct_tm>
6028 static struct tm ac_aggr;
6029 if (sizeof ac_aggr.tm_zone)
6035 rm -f conftest.
$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try
='test -s conftest.$ac_objext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_cv_member_struct_tm_tm_zone
=yes
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.
$ac_ext >&5
6052 ac_cv_member_struct_tm_tm_zone
=no
6054 rm -f conftest.
$ac_objext conftest.
$ac_ext
6056 rm -f conftest.
$ac_objext conftest.
$ac_ext
6058 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6059 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6060 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6062 cat >>confdefs.h
<<_ACEOF
6063 #define HAVE_STRUCT_TM_TM_ZONE 1
6069 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6071 cat >>confdefs.h
<<\_ACEOF
6072 #define HAVE_TM_ZONE 1
6076 echo "$as_me:$LINENO: checking for tzname" >&5
6077 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6078 if test "${ac_cv_var_tzname+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 cat >conftest.
$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6085 cat confdefs.h
>>conftest.
$ac_ext
6086 cat >>conftest.
$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6089 #ifndef tzname /* For SGI. */
6090 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6101 rm -f conftest.
$ac_objext conftest
$ac_exeext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103 (eval $ac_link) 2>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try
='test -s conftest$ac_exeext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_var_tzname
=yes
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.
$ac_ext >&5
6120 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6122 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6123 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6124 if test $ac_cv_var_tzname = yes; then
6126 cat >>confdefs.h
<<\_ACEOF
6127 #define HAVE_TZNAME 1
6133 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6134 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6135 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 cat >conftest.
$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6142 cat confdefs.h
>>conftest.
$ac_ext
6143 cat >>conftest.
$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6150 static struct tm ac_aggr;
6151 if (ac_aggr.tm_gmtoff)
6157 rm -f conftest.
$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try
='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_member_struct_tm_tm_gmtoff
=yes
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.
$ac_ext >&5
6174 cat >conftest.
$ac_ext <<_ACEOF
6175 #line $LINENO "configure"
6178 cat confdefs.h
>>conftest.
$ac_ext
6179 cat >>conftest.
$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6186 static struct tm ac_aggr;
6187 if (sizeof ac_aggr.tm_gmtoff)
6193 rm -f conftest.
$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try
='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_member_struct_tm_tm_gmtoff
=yes
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.
$ac_ext >&5
6210 ac_cv_member_struct_tm_tm_gmtoff
=no
6212 rm -f conftest.
$ac_objext conftest.
$ac_ext
6214 rm -f conftest.
$ac_objext conftest.
$ac_ext
6216 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6217 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6218 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6220 cat >>confdefs.h
<<\_ACEOF
6221 #define HAVE_TM_GMTOFF 1
6228 echo "$as_me:$LINENO: checking for function prototypes" >&5
6229 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6230 if test "$ac_cv_prog_cc_stdc" != no
; then
6231 echo "$as_me:$LINENO: result: yes" >&5
6232 echo "${ECHO_T}yes" >&6
6234 cat >>confdefs.h
<<\_ACEOF
6235 #define PROTOTYPES 1
6239 cat >>confdefs.h
<<\_ACEOF
6240 #define __PROTOTYPES 1
6244 echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6
6248 echo "$as_me:$LINENO: checking for working volatile" >&5
6249 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6250 if test "${ac_cv_c_volatile+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 cat >conftest.
$ac_ext <<_ACEOF
6254 #line $LINENO "configure"
6257 cat confdefs.h
>>conftest.
$ac_ext
6258 cat >>conftest.
$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6271 rm -f conftest.
$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try
='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_c_volatile
=yes
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.
$ac_ext >&5
6290 rm -f conftest.
$ac_objext conftest.
$ac_ext
6292 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6293 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6294 if test $ac_cv_c_volatile = no
; then
6296 cat >>confdefs.h
<<\_ACEOF
6302 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6303 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6304 if test "${ac_cv_c_const+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 cat >conftest.
$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6311 cat confdefs.h
>>conftest.
$ac_ext
6312 cat >>conftest.
$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6318 /* FIXME: Include the comments suggested by Paul. */
6320 /* Ultrix mips cc rejects this. */
6321 typedef int charset[2];
6323 /* SunOS 4.1.1 cc rejects this. */
6324 char const *const *ccp;
6326 /* NEC SVR4.0.2 mips cc rejects this. */
6327 struct point {int x, y;};
6328 static struct point const zero = {0,0};
6329 /* AIX XL C 1.02.0.0 rejects this.
6330 It does not let you subtract one const X* pointer from another in
6331 an arm of an if-expression whose if-part is not a constant
6333 const char *g = "string";
6334 ccp = &g + (g ? g-g : 0);
6335 /* HPUX 7.0 cc rejects these. */
6338 ccp = (char const *const *) p;
6339 { /* SCO 3.2v4 cc rejects this. */
6341 char const *s = 0 ? (char *) 0 : (char const *) 0;
6345 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6347 const int *foo = &x[0];
6350 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6351 typedef const int *iptr;
6355 { /* AIX XL C 1.02.0.0 rejects this saying
6356 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6357 struct s { int j; const int *ap[3]; };
6358 struct s *b; b->j = 5;
6360 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6369 rm -f conftest.
$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try
='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.
$ac_ext >&5
6388 rm -f conftest.
$ac_objext conftest.
$ac_ext
6390 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6391 echo "${ECHO_T}$ac_cv_c_const" >&6
6392 if test $ac_cv_c_const = no
; then
6394 cat >>confdefs.h
<<\_ACEOF
6400 echo "$as_me:$LINENO: checking for void * support" >&5
6401 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6402 if test "${emacs_cv_void_star+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 cat >conftest.
$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6409 cat confdefs.h
>>conftest.
$ac_ext
6410 cat >>conftest.
$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6421 rm -f conftest.
$ac_objext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423 (eval $ac_compile) 2>&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try
='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 emacs_cv_void_star
=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.
$ac_ext >&5
6438 emacs_cv_void_star
=no
6440 rm -f conftest.
$ac_objext conftest.
$ac_ext
6442 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6443 echo "${ECHO_T}$emacs_cv_void_star" >&6
6444 if test $emacs_cv_void_star = yes; then
6445 cat >>confdefs.h
<<\_ACEOF
6446 #define POINTER_TYPE void
6450 cat >>confdefs.h
<<\_ACEOF
6451 #define POINTER_TYPE char
6458 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6459 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6460 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6461 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 cat >conftest.
make <<\_ACEOF
6466 @
echo 'ac_maketemp="$(MAKE)"'
6468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6469 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6470 if test -n "$ac_maketemp"; then
6471 eval ac_cv_prog_make_
${ac_make}_set
=yes
6473 eval ac_cv_prog_make_
${ac_make}_set
=no
6477 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6478 echo "$as_me:$LINENO: result: yes" >&5
6479 echo "${ECHO_T}yes" >&6
6482 echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6
6484 SET_MAKE
="MAKE=${MAKE-make}"
6488 echo "$as_me:$LINENO: checking for long file names" >&5
6489 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6490 if test "${ac_cv_sys_long_file_names+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 ac_cv_sys_long_file_names
=yes
6494 # Test for long file names in all the places we know might matter:
6495 # . the current directory, where building will happen
6496 # $prefix/lib where we will be installing things
6497 # $exec_prefix/lib likewise
6498 # eval it to expand exec_prefix.
6499 # $TMPDIR if set, where it might want to write temporary files
6500 # if $TMPDIR is not set:
6501 # /tmp where it might want to write temporary files
6504 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6507 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6509 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6510 test -d $ac_dir ||
continue
6511 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6512 ac_xdir
=$ac_dir/cf$$
6513 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6514 ac_tf1
=$ac_xdir/conftest9012345
6515 ac_tf2
=$ac_xdir/conftest9012346
6516 (echo 1 >$ac_tf1) 2>/dev
/null
6517 (echo 2 >$ac_tf2) 2>/dev
/null
6518 ac_val
=`cat $ac_tf1 2>/dev/null`
6519 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6520 ac_cv_sys_long_file_names
=no
6521 rm -rf $ac_xdir 2>/dev
/null
6524 rm -rf $ac_xdir 2>/dev
/null
6527 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6528 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6529 if test $ac_cv_sys_long_file_names = yes; then
6531 cat >>confdefs.h
<<\_ACEOF
6532 #define HAVE_LONG_FILE_NAMES 1
6538 #### Choose a window system.
6540 echo "$as_me:$LINENO: checking for X" >&5
6541 echo $ECHO_N "checking for X... $ECHO_C" >&6
6544 # Check whether --with-x or --without-x was given.
6545 if test "${with_x+set}" = set; then
6549 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6550 if test "x$with_x" = xno
; then
6551 # The user explicitly disabled X.
6554 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6555 # Both variables are already set.
6558 if test "${ac_cv_have_x+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 # One or both of the vars are not set, and there is no cached value.
6562 ac_x_includes
=no ac_x_libraries
=no
6564 if mkdir conftest.dir
; then
6566 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6567 cat >Imakefile
<<'_ACEOF'
6569 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6571 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6573 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6574 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6575 for ac_extension
in a so sl
; do
6576 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6577 test -f $ac_im_libdir/libX11.
$ac_extension; then
6578 ac_im_usrlibdir
=$ac_im_libdir; break
6581 # Screen out bogus values from the imake configuration. They are
6582 # bogus both because they are the default anyway, and because
6583 # using them would break gcc on systems where it needs fixed includes.
6584 case $ac_im_incroot in
6586 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6588 case $ac_im_usrlibdir in
6590 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6597 # Standard set of common directories for X headers.
6598 # Check X11 before X11Rn because it is often a symlink to the current release.
6610 /usr/local/X11/include
6611 /usr/local/X11R6/include
6612 /usr/local/X11R5/include
6613 /usr/local/X11R4/include
6615 /usr/local/include/X11
6616 /usr/local/include/X11R6
6617 /usr/local/include/X11R5
6618 /usr/local/include/X11R4
6622 /usr/XFree86/include/X11
6626 /usr/unsupported/include
6628 /usr/local/x11r5/include
6629 /usr/lpp/Xamples/include
6631 /usr/openwin/include
6632 /usr/openwin/share/include'
6634 if test "$ac_x_includes" = no
; then
6635 # Guess where to find include files, by looking for Intrinsic.h.
6636 # First, try using that file with no special directory specified.
6637 cat >conftest.
$ac_ext <<_ACEOF
6638 #line $LINENO "configure"
6641 cat confdefs.h
>>conftest.
$ac_ext
6642 cat >>conftest.
$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 #include <X11/Intrinsic.h>
6646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6647 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6649 grep -v '^ *+' conftest.er1
>conftest.err
6651 cat conftest.err
>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } >/dev
/null
; then
6654 if test -s conftest.err
; then
6655 ac_cpp_err
=$ac_c_preproc_warn_flag
6662 if test -z "$ac_cpp_err"; then
6663 # We can compile using X headers with no special include directory.
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.
$ac_ext >&5
6669 for ac_dir
in $ac_x_header_dirs; do
6670 if test -r "$ac_dir/X11/Intrinsic.h"; then
6671 ac_x_includes
=$ac_dir
6676 rm -f conftest.err conftest.
$ac_ext
6677 fi # $ac_x_includes = no
6679 if test "$ac_x_libraries" = no
; then
6680 # Check for the libraries.
6681 # See if we find them without any special options.
6682 # Don't add to $LIBS permanently.
6685 cat >conftest.
$ac_ext <<_ACEOF
6686 #line $LINENO "configure"
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <X11/Intrinsic.h>
6701 rm -f conftest.
$ac_objext conftest
$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try
='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6714 # We can link X programs with no special library path.
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.
$ac_ext >&5
6721 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6723 # Don't even attempt the hair of trying to link an X program!
6724 for ac_extension
in a so sl
; do
6725 if test -r $ac_dir/libXt.
$ac_extension; then
6726 ac_x_libraries
=$ac_dir
6732 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6733 fi # $ac_x_libraries = no
6735 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6736 # Didn't find X anywhere. Cache the known absence of X.
6737 ac_cv_have_x
="have_x=no"
6739 # Record where we found X for the cache.
6740 ac_cv_have_x
="have_x=yes \
6741 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6746 eval "$ac_cv_have_x"
6749 if test "$have_x" != yes; then
6750 echo "$as_me:$LINENO: result: $have_x" >&5
6751 echo "${ECHO_T}$have_x" >&6
6754 # If each of the values was on the command line, it overrides each guess.
6755 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6756 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6757 # Update the cache value to reflect the command line values.
6758 ac_cv_have_x
="have_x=yes \
6759 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6760 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6761 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6764 if test "$no_x" = yes; then
6770 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6771 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6772 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6773 x_default_search_path
=""
6774 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6776 ${x_library}/X11/%L/%T/%N%C%S:\
6777 ${x_library}/X11/%l/%T/%N%C%S:\
6778 ${x_library}/X11/%T/%N%C%S:\
6779 ${x_library}/X11/%L/%T/%N%S:\
6780 ${x_library}/X11/%l/%T/%N%S:\
6781 ${x_library}/X11/%T/%N%S"
6782 if test x
"${x_default_search_path}" = x
; then
6783 x_default_search_path
=${x_search_path}
6785 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6789 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6790 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6793 if test x
"${x_includes}" = x
; then
6794 bitmapdir
=/usr
/include
/X11
/bitmaps
6796 # accumulate include directories that have X11 bitmap subdirectories
6798 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6799 if test -d "${bmd}/X11/bitmaps"; then
6800 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6802 if test -d "${bmd}/bitmaps"; then
6803 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6806 if test ${bmd_acc} != "dummyval"; then
6807 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6811 case "${window_system}" in
6815 case "${with_x_toolkit}" in
6816 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6817 motif
) USE_X_TOOLKIT
=MOTIF
;;
6818 no
) USE_X_TOOLKIT
=none
;;
6819 * ) USE_X_TOOLKIT
=maybe
;;
6829 ### If we're using X11, we should use the X menu package.
6832 yes ) HAVE_MENUS
=yes ;;
6835 if test "${opsys}" = "hpux9"; then
6836 case "${x_libraries}" in
6838 opsysfile
="s/hpux9-x11r4.h"
6843 if test "${opsys}" = "hpux9shr"; then
6844 case "${x_libraries}" in
6846 opsysfile
="s/hpux9shxr4.h"
6851 ### Compute the unexec source name from the object name.
6852 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6854 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6855 # Assume not, until told otherwise.
6858 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6859 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6860 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 cat >conftest.
$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6867 cat confdefs.h
>>conftest.
$ac_ext
6868 cat >>conftest.
$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 /* System header to define __stub macros and hopefully few prototypes,
6871 which can conflict with char malloc_get_state (); below.
6872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873 <limits.h> exists even on freestanding compilers. */
6875 # include <limits.h>
6877 # include <assert.h>
6879 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6886 char malloc_get_state ();
6887 /* The GNU C library defines this for functions which it implements
6888 to always fail with ENOSYS. Some functions are actually named
6889 something starting with __ and the normal name is an alias. */
6890 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6893 char (*f) () = malloc_get_state;
6902 return f != malloc_get_state;
6907 rm -f conftest.
$ac_objext conftest
$ac_exeext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909 (eval $ac_link) 2>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try
='test -s conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_func_malloc_get_state
=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.
$ac_ext >&5
6924 ac_cv_func_malloc_get_state
=no
6926 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6928 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6929 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6930 if test $ac_cv_func_malloc_get_state = yes; then
6936 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6937 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6938 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 cat >conftest.
$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char malloc_set_state (); below.
6950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 <limits.h> exists even on freestanding compilers. */
6953 # include <limits.h>
6955 # include <assert.h>
6957 /* Override any gcc2 internal prototype to avoid an error. */
6962 /* We use char because int might match the return type of a gcc2
6963 builtin and then its argument prototype would still apply. */
6964 char malloc_set_state ();
6965 /* The GNU C library defines this for functions which it implements
6966 to always fail with ENOSYS. Some functions are actually named
6967 something starting with __ and the normal name is an alias. */
6968 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6971 char (*f) () = malloc_set_state;
6980 return f != malloc_set_state;
6985 rm -f conftest.
$ac_objext conftest
$ac_exeext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987 (eval $ac_link) 2>&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try
='test -s conftest$ac_exeext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 ac_cv_func_malloc_set_state
=yes
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.
$ac_ext >&5
7002 ac_cv_func_malloc_set_state
=no
7004 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7006 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7007 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7008 if test $ac_cv_func_malloc_set_state = yes; then
7014 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7015 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7016 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 cat >conftest.
$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7023 cat confdefs.h
>>conftest.
$ac_ext
7024 cat >>conftest.
$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 extern void (* __after_morecore_hook)();
7030 __after_morecore_hook = 0
7035 rm -f conftest.
$ac_objext conftest
$ac_exeext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7037 (eval $ac_link) 2>&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try
='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 emacs_cv_var___after_morecore_hook
=yes
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.
$ac_ext >&5
7052 emacs_cv_var___after_morecore_hook
=no
7054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7056 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7057 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7058 if test $emacs_cv_var___after_morecore_hook = no
; then
7061 if test "${system_malloc}" = "yes"; then
7064 (The GNU allocators don't work with this system configuration.)"
7066 if test "$doug_lea_malloc" = "yes" ; then
7067 if test "$GNU_MALLOC" = yes ; then
7069 (Using Doug Lea's new malloc from the GNU C Library.)"
7072 cat >>confdefs.h
<<\_ACEOF
7073 #define DOUG_LEA_MALLOC 1
7078 if test x
"${REL_ALLOC}" = x
; then
7079 REL_ALLOC
=${GNU_MALLOC}
7085 for ac_header
in stdlib.h unistd.h
7087 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089 echo "$as_me:$LINENO: checking for $ac_header" >&5
7090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7097 # Is the header compilable?
7098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7100 cat >conftest.
$ac_ext <<_ACEOF
7101 #line $LINENO "configure"
7104 cat confdefs.h
>>conftest.
$ac_ext
7105 cat >>conftest.
$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 $ac_includes_default
7108 #include <$ac_header>
7110 rm -f conftest.
$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try
='test -s conftest.$ac_objext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_header_compiler
=yes
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.
$ac_ext >&5
7127 ac_header_compiler
=no
7129 rm -f conftest.
$ac_objext conftest.
$ac_ext
7130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7131 echo "${ECHO_T}$ac_header_compiler" >&6
7133 # Is the header present?
7134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7136 cat >conftest.
$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7140 cat confdefs.h
>>conftest.
$ac_ext
7141 cat >>conftest.
$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 #include <$ac_header>
7145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7146 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7148 grep -v '^ *+' conftest.er1
>conftest.err
7150 cat conftest.err
>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } >/dev
/null
; then
7153 if test -s conftest.err
; then
7154 ac_cpp_err
=$ac_c_preproc_warn_flag
7161 if test -z "$ac_cpp_err"; then
7162 ac_header_preproc
=yes
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.
$ac_ext >&5
7167 ac_header_preproc
=no
7169 rm -f conftest.err conftest.
$ac_ext
7170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7171 echo "${ECHO_T}$ac_header_preproc" >&6
7173 # So? What about this header?
7174 case $ac_header_compiler:$ac_header_preproc in
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7182 ## ------------------------------------ ##
7183 ## Report this to bug-autoconf@gnu.org. ##
7184 ## ------------------------------------ ##
7187 sed "s/^/$as_me: WARNING: /" >&2
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7198 ## ------------------------------------ ##
7199 ## Report this to bug-autoconf@gnu.org. ##
7200 ## ------------------------------------ ##
7203 sed "s/^/$as_me: WARNING: /" >&2
7206 echo "$as_me:$LINENO: checking for $ac_header" >&5
7207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 eval "$as_ac_Header=$ac_header_preproc"
7213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7218 cat >>confdefs.h
<<_ACEOF
7219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 for ac_func
in getpagesize
7229 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7230 echo "$as_me:$LINENO: checking for $ac_func" >&5
7231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7232 if eval "test \"\${$as_ac_var+set}\" = set"; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 cat >conftest.
$ac_ext <<_ACEOF
7236 #line $LINENO "configure"
7239 cat confdefs.h
>>conftest.
$ac_ext
7240 cat >>conftest.
$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 /* System header to define __stub macros and hopefully few prototypes,
7243 which can conflict with char $ac_func (); below.
7244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7245 <limits.h> exists even on freestanding compilers. */
7247 # include <limits.h>
7249 # include <assert.h>
7251 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7265 char (*f) () = $ac_func;
7274 return f != $ac_func;
7279 rm -f conftest.
$ac_objext conftest
$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try
='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 eval "$as_ac_var=yes"
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.
$ac_ext >&5
7296 eval "$as_ac_var=no"
7298 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7302 if test `eval echo '${'$as_ac_var'}'` = yes; then
7303 cat >>confdefs.h
<<_ACEOF
7304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7310 echo "$as_me:$LINENO: checking for working mmap" >&5
7311 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7312 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 if test "$cross_compiling" = yes; then
7316 ac_cv_func_mmap_fixed_mapped
=no
7318 cat >conftest.
$ac_ext <<_ACEOF
7319 #line $LINENO "configure"
7322 cat confdefs.h
>>conftest.
$ac_ext
7323 cat >>conftest.
$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 $ac_includes_default
7326 /* malloc might have been renamed as rpl_malloc. */
7329 /* Thanks to Mike Haertel and Jim Avera for this test.
7330 Here is a matrix of mmap possibilities:
7331 mmap private not fixed
7332 mmap private fixed at somewhere currently unmapped
7333 mmap private fixed at somewhere already mapped
7334 mmap shared not fixed
7335 mmap shared fixed at somewhere currently unmapped
7336 mmap shared fixed at somewhere already mapped
7337 For private mappings, we should verify that changes cannot be read()
7338 back from the file, nor mmap's back from the file at a different
7339 address. (There have been systems where private was not correctly
7340 implemented like the infamous i386 svr4.0, and systems where the
7341 VM page cache was not coherent with the file system buffer cache
7342 like early versions of FreeBSD and possibly contemporary NetBSD.)
7343 For shared mappings, we should conversely verify that changes get
7344 propagated back to all the places they're supposed to be.
7346 Grep wants private fixed already mapped.
7347 The main things grep needs to know about mmap are:
7348 * does it exist and is it safe to write into the mmap'd area
7349 * how to use it (BSD variants) */
7352 #include <sys/mman.h>
7354 #if !STDC_HEADERS && !HAVE_STDLIB_H
7358 /* This mess was copied from the GNU getpagesize.h. */
7359 #if !HAVE_GETPAGESIZE
7360 /* Assume that all systems that can run configure have sys/param.h. */
7361 # if !HAVE_SYS_PARAM_H
7362 # define HAVE_SYS_PARAM_H 1
7365 # ifdef _SC_PAGESIZE
7366 # define getpagesize() sysconf(_SC_PAGESIZE)
7367 # else /* no _SC_PAGESIZE */
7368 # if HAVE_SYS_PARAM_H
7369 # include <sys/param.h>
7370 # ifdef EXEC_PAGESIZE
7371 # define getpagesize() EXEC_PAGESIZE
7372 # else /* no EXEC_PAGESIZE */
7374 # define getpagesize() NBPG * CLSIZE
7377 # endif /* no CLSIZE */
7378 # else /* no NBPG */
7380 # define getpagesize() NBPC
7381 # else /* no NBPC */
7383 # define getpagesize() PAGESIZE
7384 # endif /* PAGESIZE */
7385 # endif /* no NBPC */
7386 # endif /* no NBPG */
7387 # endif /* no EXEC_PAGESIZE */
7388 # else /* no HAVE_SYS_PARAM_H */
7389 # define getpagesize() 8192 /* punt totally */
7390 # endif /* no HAVE_SYS_PARAM_H */
7391 # endif /* no _SC_PAGESIZE */
7393 #endif /* no HAVE_GETPAGESIZE */
7398 char *data, *data2, *data3;
7402 pagesize = getpagesize ();
7404 /* First, make a file with some known garbage in it. */
7405 data = (char *) malloc (pagesize);
7408 for (i = 0; i < pagesize; ++i)
7409 *(data + i) = rand ();
7411 fd = creat ("conftest.mmap", 0600);
7414 if (write (fd, data, pagesize) != pagesize)
7418 /* Next, try to mmap the file at a fixed address which already has
7419 something else allocated at it. If we can, also make sure that
7420 we see the same garbage. */
7421 fd = open ("conftest.mmap", O_RDWR);
7424 data2 = (char *) malloc (2 * pagesize);
7427 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7429 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7431 for (i = 0; i < pagesize; ++i)
7432 if (*(data + i) != *(data2 + i))
7435 /* Finally, make sure that changes to the mapped area do not
7436 percolate back to the file as seen by read(). (This is a bug on
7437 some variants of i386 svr4.0.) */
7438 for (i = 0; i < pagesize; ++i)
7439 *(data2 + i) = *(data2 + i) + 1;
7440 data3 = (char *) malloc (pagesize);
7443 if (read (fd, data3, pagesize) != pagesize)
7445 for (i = 0; i < pagesize; ++i)
7446 if (*(data + i) != *(data3 + i))
7452 rm -f conftest
$ac_exeext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7454 (eval $ac_link) 2>&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_func_mmap_fixed_mapped
=yes
7465 echo "$as_me: program exited with status $ac_status" >&5
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.
$ac_ext >&5
7470 ac_cv_func_mmap_fixed_mapped
=no
7472 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7476 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7477 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7479 cat >>confdefs.h
<<\_ACEOF
7486 if test $use_mmap_for_buffers = yes; then
7490 LIBS
="$libsrc_libs $LIBS"
7493 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7494 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7495 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 ac_check_lib_save_LIBS
=$LIBS
7500 cat >conftest.
$ac_ext <<_ACEOF
7501 #line $LINENO "configure"
7504 cat confdefs.h
>>conftest.
$ac_ext
7505 cat >>conftest.
$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7508 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7523 rm -f conftest.
$ac_objext conftest
$ac_exeext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525 (eval $ac_link) 2>&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } &&
7529 { ac_try
='test -s conftest$ac_exeext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_lib_dnet_dnet_ntoa
=yes
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.
$ac_ext >&5
7540 ac_cv_lib_dnet_dnet_ntoa
=no
7542 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7543 LIBS
=$ac_check_lib_save_LIBS
7545 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7546 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7547 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7548 cat >>confdefs.h
<<_ACEOF
7549 #define HAVE_LIBDNET 1
7557 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7558 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7559 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 ac_check_lib_save_LIBS
=$LIBS
7564 cat >conftest.
$ac_ext <<_ACEOF
7565 #line $LINENO "configure"
7568 cat confdefs.h
>>conftest.
$ac_ext
7569 cat >>conftest.
$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7581 rm -f conftest.
$ac_objext conftest
$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try
='test -s conftest$ac_exeext'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
7593 ac_cv_lib_Xbsd_main
=yes
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.
$ac_ext >&5
7598 ac_cv_lib_Xbsd_main
=no
7600 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7601 LIBS
=$ac_check_lib_save_LIBS
7603 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7604 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7605 if test $ac_cv_lib_Xbsd_main = yes; then
7606 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7611 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7612 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7613 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 ac_check_lib_save_LIBS
=$LIBS
7617 LIBS
="-lpthreads $LIBS"
7618 cat >conftest.
$ac_ext <<_ACEOF
7619 #line $LINENO "configure"
7622 cat confdefs.h
>>conftest.
$ac_ext
7623 cat >>conftest.
$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7626 /* Override any gcc2 internal prototype to avoid an error. */
7630 /* We use char because int might match the return type of a gcc2
7631 builtin and then its argument prototype would still apply. */
7641 rm -f conftest.
$ac_objext conftest
$ac_exeext
7642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7643 (eval $ac_link) 2>&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try
='test -s conftest$ac_exeext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653 ac_cv_lib_pthreads_cma_open
=yes
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.
$ac_ext >&5
7658 ac_cv_lib_pthreads_cma_open
=no
7660 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7661 LIBS
=$ac_check_lib_save_LIBS
7663 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7664 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7665 if test $ac_cv_lib_pthreads_cma_open = yes; then
7666 cat >>confdefs.h
<<_ACEOF
7667 #define HAVE_LIBPTHREADS 1
7670 LIBS
="-lpthreads $LIBS"
7675 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7676 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7677 if test -d /usr
/X386
/include
; then
7679 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7683 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7684 echo "${ECHO_T}$HAVE_XFREE386" >&6
7686 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7687 # used for the tests that follow. We set them back to REAL_CFLAGS and
7688 # REAL_CPPFLAGS later on.
7690 REAL_CPPFLAGS
="$CPPFLAGS"
7692 if test "${HAVE_X11}" = "yes"; then
7693 DEFS
="$C_SWITCH_X_SITE $DEFS"
7694 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7696 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7697 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7699 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7700 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7701 # but it's more convenient here to set LD_RUN_PATH
7702 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7703 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7704 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7708 if test "${opsys}" = "gnu-linux"; then
7709 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7710 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7711 cat >conftest.
$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7715 cat confdefs.h
>>conftest.
$ac_ext
7716 cat >>conftest.
$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7722 XOpenDisplay ("foo");
7727 rm -f conftest.
$ac_objext conftest
$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try
='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 xlinux_first_failure
=no
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.
$ac_ext >&5
7744 xlinux_first_failure
=yes
7746 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7747 if test "${xlinux_first_failure}" = "yes"; then
7748 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7749 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7750 OLD_CPPFLAGS
="$CPPFLAGS"
7752 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7753 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7754 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7755 LIBS
="$LIBS -b i486-linuxaout"
7756 cat >conftest.
$ac_ext <<_ACEOF
7757 #line $LINENO "configure"
7760 cat confdefs.h
>>conftest.
$ac_ext
7761 cat >>conftest.
$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7767 XOpenDisplay ("foo");
7772 rm -f conftest.
$ac_objext conftest
$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try
='test -s conftest$ac_exeext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 xlinux_second_failure
=no
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.
$ac_ext >&5
7789 xlinux_second_failure
=yes
7791 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7792 if test "${xlinux_second_failure}" = "yes"; then
7793 # If we get the same failure with -b, there is no use adding -b.
7794 # So take it out. This plays safe.
7795 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7796 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7797 CPPFLAGS
="$OLD_CPPFLAGS"
7799 echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6
7802 echo "$as_me:$LINENO: result: yes" >&5
7803 echo "${ECHO_T}yes" >&6
7806 echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7811 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7812 # header files included from there.
7813 echo "$as_me:$LINENO: checking for Xkb" >&5
7814 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7815 cat >conftest.
$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7819 cat confdefs.h
>>conftest.
$ac_ext
7820 cat >>conftest.
$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822 #include <X11/Xlib.h>
7823 #include <X11/XKBlib.h>
7827 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7832 rm -f conftest.
$ac_objext conftest
$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try
='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7851 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7852 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7853 echo "${ECHO_T}$emacs_xkb" >&6
7854 if test $emacs_xkb = yes; then
7856 cat >>confdefs.h
<<\_ACEOF
7857 #define HAVE_XKBGETKEYBOARD 1
7866 for ac_func
in XrmSetDatabase XScreenResourceString \
7867 XScreenNumberOfScreen XSetWMProtocols
7869 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7870 echo "$as_me:$LINENO: checking for $ac_func" >&5
7871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7872 if eval "test \"\${$as_ac_var+set}\" = set"; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 cat >conftest.
$ac_ext <<_ACEOF
7876 #line $LINENO "configure"
7879 cat confdefs.h
>>conftest.
$ac_ext
7880 cat >>conftest.
$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 /* System header to define __stub macros and hopefully few prototypes,
7883 which can conflict with char $ac_func (); below.
7884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7885 <limits.h> exists even on freestanding compilers. */
7887 # include <limits.h>
7889 # include <assert.h>
7891 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7899 /* The GNU C library defines this for functions which it implements
7900 to always fail with ENOSYS. Some functions are actually named
7901 something starting with __ and the normal name is an alias. */
7902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7905 char (*f) () = $ac_func;
7914 return f != $ac_func;
7919 rm -f conftest.
$ac_objext conftest
$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try
='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 eval "$as_ac_var=yes"
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.
$ac_ext >&5
7936 eval "$as_ac_var=no"
7938 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7942 if test `eval echo '${'$as_ac_var'}'` = yes; then
7943 cat >>confdefs.h
<<_ACEOF
7944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7952 if test "${window_system}" = "x11"; then
7953 echo "$as_me:$LINENO: checking X11 version 6" >&5
7954 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7955 if test "${emacs_cv_x11_version_6+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.
$ac_ext <<_ACEOF
7959 #line $LINENO "configure"
7962 cat confdefs.h
>>conftest.
$ac_ext
7963 cat >>conftest.
$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 #include <X11/Xlib.h>
7969 #if XlibSpecificationRelease < 6
7977 rm -f conftest.
$ac_objext conftest
$ac_exeext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7979 (eval $ac_link) 2>&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try
='test -s conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 emacs_cv_x11_version_6
=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.
$ac_ext >&5
7994 emacs_cv_x11_version_6
=no
7996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7999 if test $emacs_cv_x11_version_6 = yes; then
8000 echo "$as_me:$LINENO: result: 6 or newer" >&5
8001 echo "${ECHO_T}6 or newer" >&6
8003 cat >>confdefs.h
<<\_ACEOF
8004 #define HAVE_X11R6 1
8008 echo "$as_me:$LINENO: result: before 6" >&5
8009 echo "${ECHO_T}before 6" >&6
8013 if test "${window_system}" = "x11"; then
8014 echo "$as_me:$LINENO: checking X11 version 5" >&5
8015 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8016 if test "${emacs_cv_x11_version_5+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.
$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8023 cat confdefs.h
>>conftest.
$ac_ext
8024 cat >>conftest.
$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <X11/Xlib.h>
8030 #if XlibSpecificationRelease < 5
8038 rm -f conftest.
$ac_objext conftest
$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try
='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 emacs_cv_x11_version_5
=yes
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.
$ac_ext >&5
8055 emacs_cv_x11_version_5
=no
8057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8060 if test $emacs_cv_x11_version_5 = yes; then
8061 echo "$as_me:$LINENO: result: 5 or newer" >&5
8062 echo "${ECHO_T}5 or newer" >&6
8065 cat >>confdefs.h
<<\_ACEOF
8066 #define HAVE_X11R5 1
8071 echo "$as_me:$LINENO: result: before 5" >&5
8072 echo "${ECHO_T}before 5" >&6
8076 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8077 if test x
"${HAVE_X11R5}" = xyes
; then
8078 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8079 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8080 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.
$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8087 cat confdefs.h
>>conftest.
$ac_ext
8088 cat >>conftest.
$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8091 #include <X11/Intrinsic.h>
8092 #include <X11/Xaw/Simple.h>
8101 rm -f conftest.
$ac_objext conftest
$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try
='test -s conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 emacs_cv_x11_version_5_with_xaw
=yes
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.
$ac_ext >&5
8118 emacs_cv_x11_version_5_with_xaw
=no
8120 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8123 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8124 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8125 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8128 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8129 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8137 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8139 if test "${USE_X_TOOLKIT}" != "none"; then
8140 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8141 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8142 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.
$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8149 cat confdefs.h
>>conftest.
$ac_ext
8150 cat >>conftest.
$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <X11/Intrinsic.h>
8156 #if XtSpecificationRelease < 6
8164 rm -f conftest.
$ac_objext conftest
$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try
='test -s conftest$ac_exeext'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 emacs_cv_x11_toolkit_version_6
=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.
$ac_ext >&5
8181 emacs_cv_x11_toolkit_version_6
=no
8183 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8186 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8187 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8188 echo "$as_me:$LINENO: result: 6 or newer" >&5
8189 echo "${ECHO_T}6 or newer" >&6
8191 cat >>confdefs.h
<<\_ACEOF
8192 #define HAVE_X11XTR6 1
8196 echo "$as_me:$LINENO: result: before 6" >&5
8197 echo "${ECHO_T}before 6" >&6
8201 if test x
$HAVE_X11XTR6 = xyes
; then
8202 LIBS
="-lXt -lSM -lICE $LIBS"
8207 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8208 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8209 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 ac_check_lib_save_LIBS
=$LIBS
8214 cat >conftest.
$ac_ext <<_ACEOF
8215 #line $LINENO "configure"
8218 cat confdefs.h
>>conftest.
$ac_ext
8219 cat >>conftest.
$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8222 /* Override any gcc2 internal prototype to avoid an error. */
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8228 char XmuConvertStandardSelection ();
8232 XmuConvertStandardSelection ();
8237 rm -f conftest.
$ac_objext conftest
$ac_exeext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8239 (eval $ac_link) 2>&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try
='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.
$ac_ext >&5
8254 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8256 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8257 LIBS
=$ac_check_lib_save_LIBS
8259 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8260 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8261 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8262 cat >>confdefs.h
<<_ACEOF
8263 #define HAVE_LIBXMU 1
8270 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8273 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8274 if test "${HAVE_X11}" = "yes"; then
8275 if test "${USE_X_TOOLKIT}" != "none"; then
8277 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8278 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8279 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 ac_check_lib_save_LIBS
=$LIBS
8284 cat >conftest.
$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8288 cat confdefs.h
>>conftest.
$ac_ext
8289 cat >>conftest.
$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8292 /* Override any gcc2 internal prototype to avoid an error. */
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8298 char XShapeQueryExtension ();
8302 XShapeQueryExtension ();
8307 rm -f conftest.
$ac_objext conftest
$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try
='test -s conftest$ac_exeext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.
$ac_ext >&5
8324 ac_cv_lib_Xext_XShapeQueryExtension
=no
8326 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8327 LIBS
=$ac_check_lib_save_LIBS
8329 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8330 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8331 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8332 cat >>confdefs.h
<<_ACEOF
8333 #define HAVE_LIBXEXT 1
8343 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8344 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8345 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8346 if test "${emacs_cv_lesstif+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 # We put this in CFLAGS temporarily to precede other -I options
8350 # that might be in CFLAGS temporarily.
8351 # We put this in CPPFLAGS where it precedes the other -I options.
8352 OLD_CPPFLAGS
=$CPPFLAGS
8354 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8355 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8356 cat >conftest.
$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8360 cat confdefs.h
>>conftest.
$ac_ext
8361 cat >>conftest.
$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8372 rm -f conftest.
$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try
='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 emacs_cv_lesstif
=yes
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.
$ac_ext >&5
8391 rm -f conftest.
$ac_objext conftest.
$ac_ext
8393 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8394 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8395 if test $emacs_cv_lesstif = yes; then
8396 # Make sure this -I option remains in CPPFLAGS after it is set
8397 # back to REAL_CPPFLAGS.
8398 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8399 # have those other -I options anyway. Ultimately, having this
8400 # directory ultimately in CPPFLAGS will be enough.
8401 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8402 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8405 CPPFLAGS
=$OLD_CPPFLAGS
8407 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8408 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8409 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 cat >conftest.
$ac_ext <<_ACEOF
8413 #line $LINENO "configure"
8416 cat confdefs.h
>>conftest.
$ac_ext
8417 cat >>conftest.
$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8423 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8426 Motif version prior to 2.1.
8432 rm -f conftest.
$ac_objext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434 (eval $ac_compile) 2>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try
='test -s conftest.$ac_objext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 emacs_cv_motif_version_2_1
=yes
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.
$ac_ext >&5
8449 emacs_cv_motif_version_2_1
=no
8451 rm -f conftest.
$ac_objext conftest.
$ac_ext
8453 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8454 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8455 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8456 if test $emacs_cv_motif_version_2_1 = yes; then
8459 cat >>confdefs.h
<<\_ACEOF
8460 #define HAVE_MOTIF_2_1 1
8463 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8464 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8465 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 ac_check_lib_save_LIBS
=$LIBS
8470 cat >conftest.
$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8474 cat confdefs.h
>>conftest.
$ac_ext
8475 cat >>conftest.
$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8478 /* Override any gcc2 internal prototype to avoid an error. */
8482 /* We use char because int might match the return type of a gcc2
8483 builtin and then its argument prototype would still apply. */
8484 char XpCreateContext ();
8493 rm -f conftest.
$ac_objext conftest
$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try
='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_lib_Xp_XpCreateContext
=yes
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.
$ac_ext >&5
8510 ac_cv_lib_Xp_XpCreateContext
=no
8512 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8513 LIBS
=$ac_check_lib_save_LIBS
8515 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8516 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8517 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8521 if test ${HAVE_LIBXP} = yes; then
8523 cat >>confdefs.h
<<\_ACEOF
8524 #define HAVE_LIBXP 1
8531 ### Is -lXaw3d available?
8533 if test "${HAVE_X11}" = "yes"; then
8534 if test "${USE_X_TOOLKIT}" != "none"; then
8535 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8536 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8537 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 cat >conftest.
$ac_ext <<_ACEOF
8541 #line $LINENO "configure"
8544 cat confdefs.h
>>conftest.
$ac_ext
8545 cat >>conftest.
$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 #include <X11/Xaw3d/Scrollbar.h>
8549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1
>conftest.err
8554 cat conftest.err
>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } >/dev
/null
; then
8557 if test -s conftest.err
; then
8558 ac_cpp_err
=$ac_c_preproc_warn_flag
8565 if test -z "$ac_cpp_err"; then
8566 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.
$ac_ext >&5
8571 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8573 rm -f conftest.err conftest.
$ac_ext
8575 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8576 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8577 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8578 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8579 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8580 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 ac_check_lib_save_LIBS
=$LIBS
8584 LIBS
="-lXaw3d $LIBS"
8585 cat >conftest.
$ac_ext <<_ACEOF
8586 #line $LINENO "configure"
8589 cat confdefs.h
>>conftest.
$ac_ext
8590 cat >>conftest.
$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8593 /* Override any gcc2 internal prototype to avoid an error. */
8597 /* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8599 char XawScrollbarSetThumb ();
8603 XawScrollbarSetThumb ();
8608 rm -f conftest.
$ac_objext conftest
$ac_exeext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610 (eval $ac_link) 2>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try
='test -s conftest$ac_exeext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.
$ac_ext >&5
8625 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8627 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8628 LIBS
=$ac_check_lib_save_LIBS
8630 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8631 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8632 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8639 if test "${HAVE_XAW3D}" = "yes"; then
8641 cat >>confdefs.h
<<\_ACEOF
8642 #define HAVE_XAW3D 1
8651 USE_TOOLKIT_SCROLL_BARS
=no
8652 if test "${with_toolkit_scroll_bars}" != "no"; then
8653 if test "${USE_X_TOOLKIT}" != "none"; then
8654 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8655 cat >>confdefs.h
<<\_ACEOF
8656 #define USE_TOOLKIT_SCROLL_BARS 1
8660 USE_TOOLKIT_SCROLL_BARS
=yes
8661 elif test "${HAVE_XAW3D}" = "yes"; then
8662 cat >>confdefs.h
<<\_ACEOF
8663 #define USE_TOOLKIT_SCROLL_BARS 1
8666 USE_TOOLKIT_SCROLL_BARS
=yes
8672 if test "${with_xim}" != "no"; then
8674 cat >>confdefs.h
<<\_ACEOF
8680 ### Use -lXpm if available, unless `--with-xpm=no'.
8682 if test "${HAVE_X11}" = "yes"; then
8683 if test "${with_xpm}" != "no"; then
8684 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8685 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8686 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8687 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8691 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8693 # Is the header compilable?
8694 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8695 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8696 cat >conftest.
$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8700 cat confdefs.h
>>conftest.
$ac_ext
8701 cat >>conftest.
$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #include <X11/xpm.h>
8706 rm -f conftest.
$ac_objext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708 (eval $ac_compile) 2>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try
='test -s conftest.$ac_objext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_header_compiler
=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.
$ac_ext >&5
8723 ac_header_compiler
=no
8725 rm -f conftest.
$ac_objext conftest.
$ac_ext
8726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8727 echo "${ECHO_T}$ac_header_compiler" >&6
8729 # Is the header present?
8730 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8731 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8732 cat >conftest.
$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8736 cat confdefs.h
>>conftest.
$ac_ext
8737 cat >>conftest.
$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 #include <X11/xpm.h>
8741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8742 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8744 grep -v '^ *+' conftest.er1
>conftest.err
8746 cat conftest.err
>&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } >/dev
/null
; then
8749 if test -s conftest.err
; then
8750 ac_cpp_err
=$ac_c_preproc_warn_flag
8757 if test -z "$ac_cpp_err"; then
8758 ac_header_preproc
=yes
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.
$ac_ext >&5
8763 ac_header_preproc
=no
8765 rm -f conftest.err conftest.
$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8767 echo "${ECHO_T}$ac_header_preproc" >&6
8769 # So? What about this header?
8770 case $ac_header_compiler:$ac_header_preproc in
8772 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8773 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8775 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8778 ## ------------------------------------ ##
8779 ## Report this to bug-autoconf@gnu.org. ##
8780 ## ------------------------------------ ##
8783 sed "s/^/$as_me: WARNING: /" >&2
8786 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8787 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8789 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8791 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8794 ## ------------------------------------ ##
8795 ## Report this to bug-autoconf@gnu.org. ##
8796 ## ------------------------------------ ##
8799 sed "s/^/$as_me: WARNING: /" >&2
8802 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8803 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8804 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8809 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8810 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8813 if test $ac_cv_header_X11_xpm_h = yes; then
8814 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8815 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8816 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 ac_check_lib_save_LIBS
=$LIBS
8820 LIBS
="-lXpm -lX11 $LIBS"
8821 cat >conftest.
$ac_ext <<_ACEOF
8822 #line $LINENO "configure"
8825 cat confdefs.h
>>conftest.
$ac_ext
8826 cat >>conftest.
$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any gcc2 internal prototype to avoid an error. */
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8835 char XpmReadFileToPixmap ();
8839 XpmReadFileToPixmap ();
8844 rm -f conftest.
$ac_objext conftest
$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try
='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.
$ac_ext >&5
8861 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8864 LIBS
=$ac_check_lib_save_LIBS
8866 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8867 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8868 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8875 if test "${HAVE_XPM}" = "yes"; then
8876 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8877 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8878 cat >conftest.
$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8882 cat confdefs.h
>>conftest.
$ac_ext
8883 cat >>conftest.
$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 #include "X11/xpm.h"
8886 #ifndef XpmReturnAllocPixels
8887 no_return_alloc_pixels
8891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
8900 if test "${HAVE_XPM}" = "yes"; then
8901 echo "$as_me:$LINENO: result: yes" >&5
8902 echo "${ECHO_T}yes" >&6
8904 echo "$as_me:$LINENO: result: no" >&5
8905 echo "${ECHO_T}no" >&6
8910 if test "${HAVE_XPM}" = "yes"; then
8912 cat >>confdefs.h
<<\_ACEOF
8919 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8921 if test "${HAVE_X11}" = "yes"; then
8922 if test "${with_jpeg}" != "no"; then
8923 if test "${ac_cv_header_jerror_h+set}" = set; then
8924 echo "$as_me:$LINENO: checking for jerror.h" >&5
8925 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8926 if test "${ac_cv_header_jerror_h+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8930 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8932 # Is the header compilable?
8933 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8934 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8935 cat >conftest.
$ac_ext <<_ACEOF
8936 #line $LINENO "configure"
8939 cat confdefs.h
>>conftest.
$ac_ext
8940 cat >>conftest.
$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8945 rm -f conftest.
$ac_objext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try
='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_header_compiler
=yes
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.
$ac_ext >&5
8962 ac_header_compiler
=no
8964 rm -f conftest.
$ac_objext conftest.
$ac_ext
8965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8966 echo "${ECHO_T}$ac_header_compiler" >&6
8968 # Is the header present?
8969 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8970 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8971 cat >conftest.
$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8975 cat confdefs.h
>>conftest.
$ac_ext
8976 cat >>conftest.
$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8981 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8983 grep -v '^ *+' conftest.er1
>conftest.err
8985 cat conftest.err
>&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } >/dev
/null
; then
8988 if test -s conftest.err
; then
8989 ac_cpp_err
=$ac_c_preproc_warn_flag
8996 if test -z "$ac_cpp_err"; then
8997 ac_header_preproc
=yes
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.
$ac_ext >&5
9002 ac_header_preproc
=no
9004 rm -f conftest.err conftest.
$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9006 echo "${ECHO_T}$ac_header_preproc" >&6
9008 # So? What about this header?
9009 case $ac_header_compiler:$ac_header_preproc in
9011 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9012 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9014 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9017 ## ------------------------------------ ##
9018 ## Report this to bug-autoconf@gnu.org. ##
9019 ## ------------------------------------ ##
9022 sed "s/^/$as_me: WARNING: /" >&2
9025 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9026 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9028 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9030 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9033 ## ------------------------------------ ##
9034 ## Report this to bug-autoconf@gnu.org. ##
9035 ## ------------------------------------ ##
9038 sed "s/^/$as_me: WARNING: /" >&2
9041 echo "$as_me:$LINENO: checking for jerror.h" >&5
9042 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9043 if test "${ac_cv_header_jerror_h+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 ac_cv_header_jerror_h
=$ac_header_preproc
9048 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9049 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9052 if test $ac_cv_header_jerror_h = yes; then
9053 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9054 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9055 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 ac_check_lib_save_LIBS
=$LIBS
9060 cat >conftest.
$ac_ext <<_ACEOF
9061 #line $LINENO "configure"
9064 cat confdefs.h
>>conftest.
$ac_ext
9065 cat >>conftest.
$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9068 /* Override any gcc2 internal prototype to avoid an error. */
9072 /* We use char because int might match the return type of a gcc2
9073 builtin and then its argument prototype would still apply. */
9074 char jpeg_destroy_compress ();
9078 jpeg_destroy_compress ();
9083 rm -f conftest.
$ac_objext conftest
$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try
='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.
$ac_ext >&5
9100 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9102 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9103 LIBS
=$ac_check_lib_save_LIBS
9105 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9106 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9107 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9117 if test "${HAVE_JPEG}" = "yes"; then
9118 cat >>confdefs.h
<<\_ACEOF
9122 cat >conftest.
$ac_ext <<_ACEOF
9123 #line $LINENO "configure"
9126 cat confdefs.h
>>conftest.
$ac_ext
9127 cat >>conftest.
$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129 #include <jpeglib.h>
9130 version=JPEG_LIB_VERSION
9133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9134 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9135 cat >>confdefs.h
<<\_ACEOF
9140 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9141 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9149 ### Use -lpng if available, unless `--with-png=no'.
9151 if test "${HAVE_X11}" = "yes"; then
9152 if test "${with_png}" != "no"; then
9153 if test "${ac_cv_header_png_h+set}" = set; then
9154 echo "$as_me:$LINENO: checking for png.h" >&5
9155 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9156 if test "${ac_cv_header_png_h+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9160 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9162 # Is the header compilable?
9163 echo "$as_me:$LINENO: checking png.h usability" >&5
9164 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9165 cat >conftest.
$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9169 cat confdefs.h
>>conftest.
$ac_ext
9170 cat >>conftest.
$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 $ac_includes_default
9175 rm -f conftest.
$ac_objext
9176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9177 (eval $ac_compile) 2>&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try
='test -s conftest.$ac_objext'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9187 ac_header_compiler
=yes
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.
$ac_ext >&5
9192 ac_header_compiler
=no
9194 rm -f conftest.
$ac_objext conftest.
$ac_ext
9195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9196 echo "${ECHO_T}$ac_header_compiler" >&6
9198 # Is the header present?
9199 echo "$as_me:$LINENO: checking png.h presence" >&5
9200 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9201 cat >conftest.
$ac_ext <<_ACEOF
9202 #line $LINENO "configure"
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1
>conftest.err
9215 cat conftest.err
>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } >/dev
/null
; then
9218 if test -s conftest.err
; then
9219 ac_cpp_err
=$ac_c_preproc_warn_flag
9226 if test -z "$ac_cpp_err"; then
9227 ac_header_preproc
=yes
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.
$ac_ext >&5
9232 ac_header_preproc
=no
9234 rm -f conftest.err conftest.
$ac_ext
9235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9236 echo "${ECHO_T}$ac_header_preproc" >&6
9238 # So? What about this header?
9239 case $ac_header_compiler:$ac_header_preproc in
9241 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9242 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9244 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9247 ## ------------------------------------ ##
9248 ## Report this to bug-autoconf@gnu.org. ##
9249 ## ------------------------------------ ##
9252 sed "s/^/$as_me: WARNING: /" >&2
9255 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9256 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9258 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9260 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9263 ## ------------------------------------ ##
9264 ## Report this to bug-autoconf@gnu.org. ##
9265 ## ------------------------------------ ##
9268 sed "s/^/$as_me: WARNING: /" >&2
9271 echo "$as_me:$LINENO: checking for png.h" >&5
9272 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9273 if test "${ac_cv_header_png_h+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 ac_cv_header_png_h
=$ac_header_preproc
9278 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9279 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9282 if test $ac_cv_header_png_h = yes; then
9283 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9284 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9285 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 ac_check_lib_save_LIBS
=$LIBS
9289 LIBS
="-lpng -lz -lm $LIBS"
9290 cat >conftest.
$ac_ext <<_ACEOF
9291 #line $LINENO "configure"
9294 cat confdefs.h
>>conftest.
$ac_ext
9295 cat >>conftest.
$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 /* Override any gcc2 internal prototype to avoid an error. */
9302 /* We use char because int might match the return type of a gcc2
9303 builtin and then its argument prototype would still apply. */
9304 char png_get_channels ();
9308 png_get_channels ();
9313 rm -f conftest.
$ac_objext conftest
$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try
='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_lib_png_png_get_channels
=yes
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.
$ac_ext >&5
9330 ac_cv_lib_png_png_get_channels
=no
9332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9333 LIBS
=$ac_check_lib_save_LIBS
9335 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9336 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9337 if test $ac_cv_lib_png_png_get_channels = yes; then
9346 if test "${HAVE_PNG}" = "yes"; then
9348 cat >>confdefs.h
<<\_ACEOF
9355 ### Use -ltiff if available, unless `--with-tiff=no'.
9357 if test "${HAVE_X11}" = "yes"; then
9358 if test "${with_tiff}" != "no"; then
9359 if test "${ac_cv_header_tiffio_h+set}" = set; then
9360 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9361 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9362 if test "${ac_cv_header_tiffio_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9366 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9368 # Is the header compilable?
9369 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9370 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9371 cat >conftest.
$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9375 cat confdefs.h
>>conftest.
$ac_ext
9376 cat >>conftest.
$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 $ac_includes_default
9381 rm -f conftest.
$ac_objext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9383 (eval $ac_compile) 2>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try
='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 ac_header_compiler
=yes
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.
$ac_ext >&5
9398 ac_header_compiler
=no
9400 rm -f conftest.
$ac_objext conftest.
$ac_ext
9401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9402 echo "${ECHO_T}$ac_header_compiler" >&6
9404 # Is the header present?
9405 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9406 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9407 cat >conftest.
$ac_ext <<_ACEOF
9408 #line $LINENO "configure"
9411 cat confdefs.h
>>conftest.
$ac_ext
9412 cat >>conftest.
$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9417 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9419 grep -v '^ *+' conftest.er1
>conftest.err
9421 cat conftest.err
>&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } >/dev
/null
; then
9424 if test -s conftest.err
; then
9425 ac_cpp_err
=$ac_c_preproc_warn_flag
9432 if test -z "$ac_cpp_err"; then
9433 ac_header_preproc
=yes
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.
$ac_ext >&5
9438 ac_header_preproc
=no
9440 rm -f conftest.err conftest.
$ac_ext
9441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9442 echo "${ECHO_T}$ac_header_preproc" >&6
9444 # So? What about this header?
9445 case $ac_header_compiler:$ac_header_preproc in
9447 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9448 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9453 ## ------------------------------------ ##
9454 ## Report this to bug-autoconf@gnu.org. ##
9455 ## ------------------------------------ ##
9458 sed "s/^/$as_me: WARNING: /" >&2
9461 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9462 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9464 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9466 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9469 ## ------------------------------------ ##
9470 ## Report this to bug-autoconf@gnu.org. ##
9471 ## ------------------------------------ ##
9474 sed "s/^/$as_me: WARNING: /" >&2
9477 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9478 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9479 if test "${ac_cv_header_tiffio_h+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 ac_cv_header_tiffio_h
=$ac_header_preproc
9484 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9485 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9488 if test $ac_cv_header_tiffio_h = yes; then
9490 # At least one tiff package requires the jpeg library.
9491 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9492 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9493 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9494 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 ac_check_lib_save_LIBS
=$LIBS
9498 LIBS
="-ltiff $tifflibs $LIBS"
9499 cat >conftest.
$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9503 cat confdefs.h
>>conftest.
$ac_ext
9504 cat >>conftest.
$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9507 /* Override any gcc2 internal prototype to avoid an error. */
9511 /* We use char because int might match the return type of a gcc2
9512 builtin and then its argument prototype would still apply. */
9513 char TIFFGetVersion ();
9522 rm -f conftest.
$ac_objext conftest
$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try
='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_lib_tiff_TIFFGetVersion
=yes
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.
$ac_ext >&5
9539 ac_cv_lib_tiff_TIFFGetVersion
=no
9541 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9542 LIBS
=$ac_check_lib_save_LIBS
9544 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9545 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9546 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9555 if test "${HAVE_TIFF}" = "yes"; then
9557 cat >>confdefs.h
<<\_ACEOF
9564 ### Use -lgif if available, unless `--with-gif=no'.
9566 if test "${HAVE_X11}" = "yes"; then
9567 if test "${with_gif}" != "no"; then
9568 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9569 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9570 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9571 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9575 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9577 # Is the header compilable?
9578 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9579 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9580 cat >conftest.
$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9584 cat confdefs.h
>>conftest.
$ac_ext
9585 cat >>conftest.
$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 $ac_includes_default
9588 #include <gif_lib.h>
9590 rm -f conftest.
$ac_objext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try
='test -s conftest.$ac_objext'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_header_compiler
=yes
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.
$ac_ext >&5
9607 ac_header_compiler
=no
9609 rm -f conftest.
$ac_objext conftest.
$ac_ext
9610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9611 echo "${ECHO_T}$ac_header_compiler" >&6
9613 # Is the header present?
9614 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9615 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9616 cat >conftest.
$ac_ext <<_ACEOF
9617 #line $LINENO "configure"
9620 cat confdefs.h
>>conftest.
$ac_ext
9621 cat >>conftest.
$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 #include <gif_lib.h>
9625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9626 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9628 grep -v '^ *+' conftest.er1
>conftest.err
9630 cat conftest.err
>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } >/dev
/null
; then
9633 if test -s conftest.err
; then
9634 ac_cpp_err
=$ac_c_preproc_warn_flag
9641 if test -z "$ac_cpp_err"; then
9642 ac_header_preproc
=yes
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.
$ac_ext >&5
9647 ac_header_preproc
=no
9649 rm -f conftest.err conftest.
$ac_ext
9650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9651 echo "${ECHO_T}$ac_header_preproc" >&6
9653 # So? What about this header?
9654 case $ac_header_compiler:$ac_header_preproc in
9656 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9657 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9659 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9662 ## ------------------------------------ ##
9663 ## Report this to bug-autoconf@gnu.org. ##
9664 ## ------------------------------------ ##
9667 sed "s/^/$as_me: WARNING: /" >&2
9670 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9671 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9673 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9674 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9675 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9678 ## ------------------------------------ ##
9679 ## Report this to bug-autoconf@gnu.org. ##
9680 ## ------------------------------------ ##
9683 sed "s/^/$as_me: WARNING: /" >&2
9686 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9687 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9688 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 ac_cv_header_gif_lib_h
=$ac_header_preproc
9693 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9694 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9697 if test $ac_cv_header_gif_lib_h = yes; then
9698 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9699 # Earlier versions can crash Emacs.
9700 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9701 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9702 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 ac_check_lib_save_LIBS
=$LIBS
9706 LIBS
="-lungif $LIBS"
9707 cat >conftest.
$ac_ext <<_ACEOF
9708 #line $LINENO "configure"
9711 cat confdefs.h
>>conftest.
$ac_ext
9712 cat >>conftest.
$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9715 /* Override any gcc2 internal prototype to avoid an error. */
9719 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */
9721 char EGifPutExtensionLast ();
9725 EGifPutExtensionLast ();
9730 rm -f conftest.
$ac_objext conftest
$ac_exeext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732 (eval $ac_link) 2>&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try
='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.
$ac_ext >&5
9747 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9750 LIBS
=$ac_check_lib_save_LIBS
9752 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9753 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9754 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9763 if test "${HAVE_GIF}" = "yes"; then
9765 cat >>confdefs.h
<<\_ACEOF
9772 ### Use Mac OS X Carbon API to implement GUI.
9774 if test "${with_carbon}" != "no"; then
9775 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9776 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9777 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9778 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9782 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9784 # Is the header compilable?
9785 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9786 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9787 cat >conftest.
$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9791 cat confdefs.h
>>conftest.
$ac_ext
9792 cat >>conftest.
$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 $ac_includes_default
9795 #include <Carbon/Carbon.h>
9797 rm -f conftest.
$ac_objext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9799 (eval $ac_compile) 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try
='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_header_compiler
=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9814 ac_header_compiler
=no
9816 rm -f conftest.
$ac_objext conftest.
$ac_ext
9817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9818 echo "${ECHO_T}$ac_header_compiler" >&6
9820 # Is the header present?
9821 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9822 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9823 cat >conftest.
$ac_ext <<_ACEOF
9824 #line $LINENO "configure"
9827 cat confdefs.h
>>conftest.
$ac_ext
9828 cat >>conftest.
$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 #include <Carbon/Carbon.h>
9832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } >/dev
/null
; then
9840 if test -s conftest.err
; then
9841 ac_cpp_err
=$ac_c_preproc_warn_flag
9848 if test -z "$ac_cpp_err"; then
9849 ac_header_preproc
=yes
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.
$ac_ext >&5
9854 ac_header_preproc
=no
9856 rm -f conftest.err conftest.
$ac_ext
9857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9858 echo "${ECHO_T}$ac_header_preproc" >&6
9860 # So? What about this header?
9861 case $ac_header_compiler:$ac_header_preproc in
9863 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9864 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9866 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9869 ## ------------------------------------ ##
9870 ## Report this to bug-autoconf@gnu.org. ##
9871 ## ------------------------------------ ##
9874 sed "s/^/$as_me: WARNING: /" >&2
9877 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9878 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9880 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9882 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9885 ## ------------------------------------ ##
9886 ## Report this to bug-autoconf@gnu.org. ##
9887 ## ------------------------------------ ##
9890 sed "s/^/$as_me: WARNING: /" >&2
9893 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9894 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9895 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
9900 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9901 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9904 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9911 if test "${HAVE_CARBON}" = "yes"; then
9913 cat >>confdefs.h
<<\_ACEOF
9914 #define HAVE_CARBON 1
9918 ## Specify the install directory
9920 if test "${carbon_appdir_x}" != ""; then
9921 case ${carbon_appdir_x} in
9922 y | ye |
yes) carbon_appdir
=/Applications
;;
9923 * ) carbon_appdir
=${carbon_appdir_x} ;;
9928 ### Use session management (-lSM -lICE) if available
9930 if test "${HAVE_X11}" = "yes"; then
9931 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9932 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9933 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9934 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9938 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9940 # Is the header compilable?
9941 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9942 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9943 cat >conftest.
$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9947 cat confdefs.h
>>conftest.
$ac_ext
9948 cat >>conftest.
$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 $ac_includes_default
9951 #include <X11/SM/SMlib.h>
9953 rm -f conftest.
$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try
='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_header_compiler
=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.
$ac_ext >&5
9970 ac_header_compiler
=no
9972 rm -f conftest.
$ac_objext conftest.
$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974 echo "${ECHO_T}$ac_header_compiler" >&6
9976 # Is the header present?
9977 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9978 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9979 cat >conftest.
$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 #include <X11/SM/SMlib.h>
9988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1
>conftest.err
9993 cat conftest.err
>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } >/dev
/null
; then
9996 if test -s conftest.err
; then
9997 ac_cpp_err
=$ac_c_preproc_warn_flag
10004 if test -z "$ac_cpp_err"; then
10005 ac_header_preproc
=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.
$ac_ext >&5
10010 ac_header_preproc
=no
10012 rm -f conftest.err conftest.
$ac_ext
10013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014 echo "${ECHO_T}$ac_header_preproc" >&6
10016 # So? What about this header?
10017 case $ac_header_compiler:$ac_header_preproc in
10019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10020 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10022 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10025 ## ------------------------------------ ##
10026 ## Report this to bug-autoconf@gnu.org. ##
10027 ## ------------------------------------ ##
10030 sed "s/^/$as_me: WARNING: /" >&2
10033 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10034 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10036 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10038 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10041 ## ------------------------------------ ##
10042 ## Report this to bug-autoconf@gnu.org. ##
10043 ## ------------------------------------ ##
10046 sed "s/^/$as_me: WARNING: /" >&2
10049 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10050 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10051 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10056 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10057 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10060 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10061 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10062 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10063 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 ac_check_lib_save_LIBS
=$LIBS
10068 cat >conftest.
$ac_ext <<_ACEOF
10069 #line $LINENO "configure"
10072 cat confdefs.h
>>conftest.
$ac_ext
10073 cat >>conftest.
$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10076 /* Override any gcc2 internal prototype to avoid an error. */
10080 /* We use char because int might match the return type of a gcc2
10081 builtin and then its argument prototype would still apply. */
10082 char SmcOpenConnection ();
10086 SmcOpenConnection ();
10091 rm -f conftest.
$ac_objext conftest
$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try
='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 ac_cv_lib_SM_SmcOpenConnection
=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.
$ac_ext >&5
10108 ac_cv_lib_SM_SmcOpenConnection
=no
10110 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10111 LIBS
=$ac_check_lib_save_LIBS
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10114 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10115 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10125 if test "${HAVE_X_SM}" = "yes"; then
10127 cat >>confdefs.h
<<\_ACEOF
10128 #define HAVE_X_SM 1
10133 *) LIBS
="-lSM -lICE $LIBS" ;;
10138 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10139 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10140 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10141 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 cat >conftest.
$ac_ext <<_ACEOF
10145 #line $LINENO "configure"
10148 cat confdefs.h
>>conftest.
$ac_ext
10149 cat >>conftest.
$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10160 rm -f conftest.
$ac_objext conftest
$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try
='test -s conftest$ac_exeext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 emacs_cv_netdb_declares_h_errno
=yes
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.
$ac_ext >&5
10177 emacs_cv_netdb_declares_h_errno
=no
10179 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10181 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10182 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10183 if test $emacs_cv_netdb_declares_h_errno = yes; then
10185 cat >>confdefs.h
<<\_ACEOF
10186 #define HAVE_H_ERRNO 1
10191 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10192 # for constant arguments. Useless!
10193 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10194 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10195 if test "${ac_cv_working_alloca_h+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 cat >conftest.
$ac_ext <<_ACEOF
10199 #line $LINENO "configure"
10202 cat confdefs.h
>>conftest.
$ac_ext
10203 cat >>conftest.
$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 #include <alloca.h>
10209 char *p = (char *) alloca (2 * sizeof (int));
10214 rm -f conftest.
$ac_objext conftest
$ac_exeext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216 (eval $ac_link) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try
='test -s conftest$ac_exeext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 ac_cv_working_alloca_h
=yes
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.
$ac_ext >&5
10231 ac_cv_working_alloca_h
=no
10233 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10235 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10236 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10237 if test $ac_cv_working_alloca_h = yes; then
10239 cat >>confdefs.h
<<\_ACEOF
10240 #define HAVE_ALLOCA_H 1
10245 echo "$as_me:$LINENO: checking for alloca" >&5
10246 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10247 if test "${ac_cv_func_alloca_works+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 cat >conftest.
$ac_ext <<_ACEOF
10251 #line $LINENO "configure"
10254 cat confdefs.h
>>conftest.
$ac_ext
10255 cat >>conftest.
$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10258 # define alloca __builtin_alloca
10261 # include <malloc.h>
10262 # define alloca _alloca
10265 # include <alloca.h>
10270 # ifndef alloca /* predefined by HP cc +Olibcalls */
10281 char *p = (char *) alloca (1);
10286 rm -f conftest.
$ac_objext conftest
$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try
='test -s conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 ac_cv_func_alloca_works
=yes
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.
$ac_ext >&5
10303 ac_cv_func_alloca_works
=no
10305 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10307 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10308 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10310 if test $ac_cv_func_alloca_works = yes; then
10312 cat >>confdefs.h
<<\_ACEOF
10313 #define HAVE_ALLOCA 1
10317 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10318 # that cause trouble. Some versions do not even contain alloca or
10319 # contain a buggy version. If you still want to use their alloca,
10320 # use ar to extract alloca.o from them instead of compiling alloca.c.
10322 ALLOCA
=alloca.
$ac_objext
10324 cat >>confdefs.h
<<\_ACEOF
10329 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10330 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10331 if test "${ac_cv_os_cray+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 cat >conftest.
$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10338 cat confdefs.h
>>conftest.
$ac_ext
10339 cat >>conftest.
$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #if defined(CRAY) && ! defined(CRAY2)
10348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10349 $EGREP "webecray" >/dev
/null
2>&1; then
10357 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10358 echo "${ECHO_T}$ac_cv_os_cray" >&6
10359 if test $ac_cv_os_cray = yes; then
10360 for ac_func
in _getb67 GETB67 getb67
; do
10361 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10362 echo "$as_me:$LINENO: checking for $ac_func" >&5
10363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10364 if eval "test \"\${$as_ac_var+set}\" = set"; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 cat >conftest.
$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10371 cat confdefs.h
>>conftest.
$ac_ext
10372 cat >>conftest.
$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 /* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char $ac_func (); below.
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377 <limits.h> exists even on freestanding compilers. */
10379 # include <limits.h>
10381 # include <assert.h>
10383 /* Override any gcc2 internal prototype to avoid an error. */
10388 /* We use char because int might match the return type of a gcc2
10389 builtin and then its argument prototype would still apply. */
10391 /* The GNU C library defines this for functions which it implements
10392 to always fail with ENOSYS. Some functions are actually named
10393 something starting with __ and the normal name is an alias. */
10394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10397 char (*f) () = $ac_func;
10406 return f != $ac_func;
10411 rm -f conftest.
$ac_objext conftest
$ac_exeext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413 (eval $ac_link) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try
='test -s conftest$ac_exeext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 eval "$as_ac_var=yes"
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.
$ac_ext >&5
10428 eval "$as_ac_var=no"
10430 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10434 if test `eval echo '${'$as_ac_var'}'` = yes; then
10436 cat >>confdefs.h
<<_ACEOF
10437 #define CRAY_STACKSEG_END $ac_func
10446 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10447 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10448 if test "${ac_cv_c_stack_direction+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 if test "$cross_compiling" = yes; then
10452 ac_cv_c_stack_direction
=0
10454 cat >conftest.
$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10458 cat confdefs.h
>>conftest.
$ac_ext
10459 cat >>conftest.
$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10462 find_stack_direction ()
10464 static char *addr = 0;
10469 return find_stack_direction ();
10472 return (&dummy > addr) ? 1 : -1;
10478 exit (find_stack_direction () < 0);
10481 rm -f conftest
$ac_exeext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483 (eval $ac_link) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_c_stack_direction
=1
10494 echo "$as_me: program exited with status $ac_status" >&5
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.
$ac_ext >&5
10498 ( exit $ac_status )
10499 ac_cv_c_stack_direction
=-1
10501 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10504 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10505 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10507 cat >>confdefs.h
<<_ACEOF
10508 #define STACK_DIRECTION $ac_cv_c_stack_direction
10515 # fmod, logb, and frexp are found in -lm on most systems.
10516 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10518 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10519 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10520 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 ac_check_lib_save_LIBS
=$LIBS
10525 cat >conftest.
$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10529 cat confdefs.h
>>conftest.
$ac_ext
10530 cat >>conftest.
$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 /* Override any gcc2 internal prototype to avoid an error. */
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10548 rm -f conftest.
$ac_objext conftest
$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try
='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_lib_m_sqrt
=yes
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.
$ac_ext >&5
10565 ac_cv_lib_m_sqrt
=no
10567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10568 LIBS
=$ac_check_lib_save_LIBS
10570 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10571 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10572 if test $ac_cv_lib_m_sqrt = yes; then
10573 cat >>confdefs.h
<<_ACEOF
10574 #define HAVE_LIBM 1
10582 # Check for mail-locking functions in a "mail" library
10584 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10585 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10586 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 ac_check_lib_save_LIBS
=$LIBS
10590 LIBS
="-lmail $LIBS"
10591 cat >conftest.
$ac_ext <<_ACEOF
10592 #line $LINENO "configure"
10595 cat confdefs.h
>>conftest.
$ac_ext
10596 cat >>conftest.
$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10599 /* Override any gcc2 internal prototype to avoid an error. */
10603 /* We use char because int might match the return type of a gcc2
10604 builtin and then its argument prototype would still apply. */
10614 rm -f conftest.
$ac_objext conftest
$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try
='test -s conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_lib_mail_maillock
=yes
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.
$ac_ext >&5
10631 ac_cv_lib_mail_maillock
=no
10633 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10634 LIBS
=$ac_check_lib_save_LIBS
10636 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10637 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10638 if test $ac_cv_lib_mail_maillock = yes; then
10639 cat >>confdefs.h
<<_ACEOF
10640 #define HAVE_LIBMAIL 1
10643 LIBS
="-lmail $LIBS"
10648 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10649 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10650 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 ac_check_lib_save_LIBS
=$LIBS
10654 LIBS
="-llockfile $LIBS"
10655 cat >conftest.
$ac_ext <<_ACEOF
10656 #line $LINENO "configure"
10659 cat confdefs.h
>>conftest.
$ac_ext
10660 cat >>conftest.
$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10663 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10678 rm -f conftest.
$ac_objext conftest
$ac_exeext
10679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680 (eval $ac_link) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } &&
10684 { ac_try
='test -s conftest$ac_exeext'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10690 ac_cv_lib_lockfile_maillock
=yes
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.
$ac_ext >&5
10695 ac_cv_lib_lockfile_maillock
=no
10697 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10698 LIBS
=$ac_check_lib_save_LIBS
10700 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10701 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10702 if test $ac_cv_lib_lockfile_maillock = yes; then
10703 cat >>confdefs.h
<<_ACEOF
10704 #define HAVE_LIBLOCKFILE 1
10707 LIBS
="-llockfile $LIBS"
10711 # If we have the shared liblockfile, assume we must use it for mail
10712 # locking (e.g. Debian). If we couldn't link against liblockfile
10713 # (no liblockfile.a installed), ensure that we don't need to.
10714 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10715 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10716 set dummy liblockfile.so
; ac_word
=$2
10717 echo "$as_me:$LINENO: checking for $ac_word" >&5
10718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10719 if test "${ac_cv_prog_liblockfile+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 if test -n "$liblockfile"; then
10723 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10726 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10727 for as_dir
in $as_dummy
10730 test -z "$as_dir" && as_dir
=.
10731 for ac_exec_ext
in '' $ac_executable_extensions; do
10732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10733 ac_cv_prog_liblockfile
="yes"
10734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10743 liblockfile
=$ac_cv_prog_liblockfile
10744 if test -n "$liblockfile"; then
10745 echo "$as_me:$LINENO: result: $liblockfile" >&5
10746 echo "${ECHO_T}$liblockfile" >&6
10748 echo "$as_me:$LINENO: result: no" >&5
10749 echo "${ECHO_T}no" >&6
10752 if test $ac_cv_prog_liblockfile = yes; then
10753 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10754 This probably means that movemail could lose mail.
10755 There may be a \`development' package to install containing liblockfile." >&5
10756 echo "$as_me: error: Shared liblockfile found but can't link against it.
10757 This probably means that movemail could lose mail.
10758 There may be a \`development' package to install containing liblockfile." >&2;}
10759 { (exit 1); exit 1; }; }
10761 cat >>confdefs.h
<<\_ACEOF
10762 #define LIBMAIL -llockfile
10769 for ac_func
in touchlock
10771 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10772 echo "$as_me:$LINENO: checking for $ac_func" >&5
10773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10774 if eval "test \"\${$as_ac_var+set}\" = set"; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 cat >conftest.
$ac_ext <<_ACEOF
10778 #line $LINENO "configure"
10781 cat confdefs.h
>>conftest.
$ac_ext
10782 cat >>conftest.
$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 /* System header to define __stub macros and hopefully few prototypes,
10785 which can conflict with char $ac_func (); below.
10786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10787 <limits.h> exists even on freestanding compilers. */
10789 # include <limits.h>
10791 # include <assert.h>
10793 /* Override any gcc2 internal prototype to avoid an error. */
10798 /* We use char because int might match the return type of a gcc2
10799 builtin and then its argument prototype would still apply. */
10801 /* The GNU C library defines this for functions which it implements
10802 to always fail with ENOSYS. Some functions are actually named
10803 something starting with __ and the normal name is an alias. */
10804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10807 char (*f) () = $ac_func;
10816 return f != $ac_func;
10821 rm -f conftest.
$ac_objext conftest
$ac_exeext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823 (eval $ac_link) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try
='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 eval "$as_ac_var=yes"
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.
$ac_ext >&5
10838 eval "$as_ac_var=no"
10840 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10844 if test `eval echo '${'$as_ac_var'}'` = yes; then
10845 cat >>confdefs.h
<<_ACEOF
10846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10853 for ac_header
in maillock.h
10855 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10857 echo "$as_me:$LINENO: checking for $ac_header" >&5
10858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10865 # Is the header compilable?
10866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10868 cat >conftest.
$ac_ext <<_ACEOF
10869 #line $LINENO "configure"
10872 cat confdefs.h
>>conftest.
$ac_ext
10873 cat >>conftest.
$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 #include <$ac_header>
10878 rm -f conftest.
$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try
='test -s conftest.$ac_objext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 ac_header_compiler
=yes
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.
$ac_ext >&5
10895 ac_header_compiler
=no
10897 rm -f conftest.
$ac_objext conftest.
$ac_ext
10898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10899 echo "${ECHO_T}$ac_header_compiler" >&6
10901 # Is the header present?
10902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10904 cat >conftest.
$ac_ext <<_ACEOF
10905 #line $LINENO "configure"
10908 cat confdefs.h
>>conftest.
$ac_ext
10909 cat >>conftest.
$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 #include <$ac_header>
10913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10916 grep -v '^ *+' conftest.er1
>conftest.err
10918 cat conftest.err
>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } >/dev
/null
; then
10921 if test -s conftest.err
; then
10922 ac_cpp_err
=$ac_c_preproc_warn_flag
10929 if test -z "$ac_cpp_err"; then
10930 ac_header_preproc
=yes
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.
$ac_ext >&5
10935 ac_header_preproc
=no
10937 rm -f conftest.err conftest.
$ac_ext
10938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939 echo "${ECHO_T}$ac_header_preproc" >&6
10941 # So? What about this header?
10942 case $ac_header_compiler:$ac_header_preproc in
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10950 ## ------------------------------------ ##
10951 ## Report this to bug-autoconf@gnu.org. ##
10952 ## ------------------------------------ ##
10955 sed "s/^/$as_me: WARNING: /" >&2
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10966 ## ------------------------------------ ##
10967 ## Report this to bug-autoconf@gnu.org. ##
10968 ## ------------------------------------ ##
10971 sed "s/^/$as_me: WARNING: /" >&2
10974 echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 eval "$as_ac_Header=$ac_header_preproc"
10981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986 cat >>confdefs.h
<<_ACEOF
10987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11055 for ac_func
in gethostname getdomainname dup2 \
11056 rename closedir mkdir
rmdir sysinfo \
11057 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11058 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11059 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11060 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11061 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11062 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11064 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11065 echo "$as_me:$LINENO: checking for $ac_func" >&5
11066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11067 if eval "test \"\${$as_ac_var+set}\" = set"; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 cat >conftest.
$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11074 cat confdefs.h
>>conftest.
$ac_ext
11075 cat >>conftest.
$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 /* System header to define __stub macros and hopefully few prototypes,
11078 which can conflict with char $ac_func (); below.
11079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11080 <limits.h> exists even on freestanding compilers. */
11082 # include <limits.h>
11084 # include <assert.h>
11086 /* Override any gcc2 internal prototype to avoid an error. */
11091 /* We use char because int might match the return type of a gcc2
11092 builtin and then its argument prototype would still apply. */
11094 /* The GNU C library defines this for functions which it implements
11095 to always fail with ENOSYS. Some functions are actually named
11096 something starting with __ and the normal name is an alias. */
11097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11100 char (*f) () = $ac_func;
11109 return f != $ac_func;
11114 rm -f conftest.
$ac_objext conftest
$ac_exeext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11116 (eval $ac_link) 2>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try
='test -s conftest$ac_exeext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 eval "$as_ac_var=yes"
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.
$ac_ext >&5
11131 eval "$as_ac_var=no"
11133 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11137 if test `eval echo '${'$as_ac_var'}'` = yes; then
11138 cat >>confdefs.h
<<_ACEOF
11139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11147 for ac_header
in sys
/un.h
11149 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11151 echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11159 # Is the header compilable?
11160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11162 cat >conftest.
$ac_ext <<_ACEOF
11163 #line $LINENO "configure"
11166 cat confdefs.h
>>conftest.
$ac_ext
11167 cat >>conftest.
$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11172 rm -f conftest.
$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174 (eval $ac_compile) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try
='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 ac_header_compiler
=yes
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.
$ac_ext >&5
11189 ac_header_compiler
=no
11191 rm -f conftest.
$ac_objext conftest.
$ac_ext
11192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11193 echo "${ECHO_T}$ac_header_compiler" >&6
11195 # Is the header present?
11196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11198 cat >conftest.
$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11202 cat confdefs.h
>>conftest.
$ac_ext
11203 cat >>conftest.
$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <$ac_header>
11207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11208 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11210 grep -v '^ *+' conftest.er1
>conftest.err
11212 cat conftest.err
>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev
/null
; then
11215 if test -s conftest.err
; then
11216 ac_cpp_err
=$ac_c_preproc_warn_flag
11223 if test -z "$ac_cpp_err"; then
11224 ac_header_preproc
=yes
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.
$ac_ext >&5
11229 ac_header_preproc
=no
11231 rm -f conftest.err conftest.
$ac_ext
11232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11233 echo "${ECHO_T}$ac_header_preproc" >&6
11235 # So? What about this header?
11236 case $ac_header_compiler:$ac_header_preproc in
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244 ## ------------------------------------ ##
11245 ## Report this to bug-autoconf@gnu.org. ##
11246 ## ------------------------------------ ##
11249 sed "s/^/$as_me: WARNING: /" >&2
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11260 ## ------------------------------------ ##
11261 ## Report this to bug-autoconf@gnu.org. ##
11262 ## ------------------------------------ ##
11265 sed "s/^/$as_me: WARNING: /" >&2
11268 echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 eval "$as_ac_Header=$ac_header_preproc"
11275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h
<<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11291 for ac_header
in sys
/time.h unistd.h
11293 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11295 echo "$as_me:$LINENO: checking for $ac_header" >&5
11296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11303 # Is the header compilable?
11304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11306 cat >conftest.
$ac_ext <<_ACEOF
11307 #line $LINENO "configure"
11310 cat confdefs.h
>>conftest.
$ac_ext
11311 cat >>conftest.
$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 $ac_includes_default
11314 #include <$ac_header>
11316 rm -f conftest.
$ac_objext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try
='test -s conftest.$ac_objext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_header_compiler
=yes
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.
$ac_ext >&5
11333 ac_header_compiler
=no
11335 rm -f conftest.
$ac_objext conftest.
$ac_ext
11336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11337 echo "${ECHO_T}$ac_header_compiler" >&6
11339 # Is the header present?
11340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11342 cat >conftest.
$ac_ext <<_ACEOF
11343 #line $LINENO "configure"
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <$ac_header>
11351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11354 grep -v '^ *+' conftest.er1
>conftest.err
11356 cat conftest.err
>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev
/null
; then
11359 if test -s conftest.err
; then
11360 ac_cpp_err
=$ac_c_preproc_warn_flag
11367 if test -z "$ac_cpp_err"; then
11368 ac_header_preproc
=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.
$ac_ext >&5
11373 ac_header_preproc
=no
11375 rm -f conftest.err conftest.
$ac_ext
11376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11377 echo "${ECHO_T}$ac_header_preproc" >&6
11379 # So? What about this header?
11380 case $ac_header_compiler:$ac_header_preproc in
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388 ## ------------------------------------ ##
11389 ## Report this to bug-autoconf@gnu.org. ##
11390 ## ------------------------------------ ##
11393 sed "s/^/$as_me: WARNING: /" >&2
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404 ## ------------------------------------ ##
11405 ## Report this to bug-autoconf@gnu.org. ##
11406 ## ------------------------------------ ##
11409 sed "s/^/$as_me: WARNING: /" >&2
11412 echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 eval "$as_ac_Header=$ac_header_preproc"
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11424 cat >>confdefs.h
<<_ACEOF
11425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 for ac_func
in alarm
11435 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11438 if eval "test \"\${$as_ac_var+set}\" = set"; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 cat >conftest.
$ac_ext <<_ACEOF
11442 #line $LINENO "configure"
11445 cat confdefs.h
>>conftest.
$ac_ext
11446 cat >>conftest.
$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 /* System header to define __stub macros and hopefully few prototypes,
11449 which can conflict with char $ac_func (); below.
11450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11451 <limits.h> exists even on freestanding compilers. */
11453 # include <limits.h>
11455 # include <assert.h>
11457 /* Override any gcc2 internal prototype to avoid an error. */
11462 /* We use char because int might match the return type of a gcc2
11463 builtin and then its argument prototype would still apply. */
11465 /* The GNU C library defines this for functions which it implements
11466 to always fail with ENOSYS. Some functions are actually named
11467 something starting with __ and the normal name is an alias. */
11468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11471 char (*f) () = $ac_func;
11480 return f != $ac_func;
11485 rm -f conftest.
$ac_objext conftest
$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try
='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 eval "$as_ac_var=yes"
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.
$ac_ext >&5
11502 eval "$as_ac_var=no"
11504 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11508 if test `eval echo '${'$as_ac_var'}'` = yes; then
11509 cat >>confdefs.h
<<_ACEOF
11510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11516 echo "$as_me:$LINENO: checking for working mktime" >&5
11517 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11518 if test "${ac_cv_func_working_mktime+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 if test "$cross_compiling" = yes; then
11522 ac_cv_func_working_mktime
=no
11524 cat >conftest.
$ac_ext <<_ACEOF
11525 #line $LINENO "configure"
11528 cat confdefs.h
>>conftest.
$ac_ext
11529 cat >>conftest.
$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 /* Test program from Paul Eggert and Tony Leneis. */
11532 #if TIME_WITH_SYS_TIME
11533 # include <sys/time.h>
11536 # if HAVE_SYS_TIME_H
11537 # include <sys/time.h>
11544 # include <unistd.h>
11548 # define alarm(X) /* empty */
11551 /* Work around redefinition to rpl_putenv by other config tests. */
11554 static time_t time_t_max;
11556 /* Values we'll use to set the TZ environment variable. */
11557 static const char *const tz_strings[] = {
11558 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11559 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11561 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11563 /* Fail if mktime fails to convert a date in the spring-forward gap.
11564 Based on a problem report from Andreas Jaeger. */
11566 spring_forward_gap ()
11568 /* glibc (up to about 1998-10-07) failed this test. */
11571 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11572 instead of "TZ=America/Vancouver" in order to detect the bug even
11573 on systems that don't support the Olson extension, or don't have the
11574 full zoneinfo tables installed. */
11575 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11584 if (mktime (&tm) == (time_t)-1)
11593 if ((lt = localtime (&now)) && mktime (lt) != now)
11595 now = time_t_max - now;
11596 if ((lt = localtime (&now)) && mktime (lt) != now)
11603 /* Based on code from Ariel Faigon. */
11613 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11623 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11624 now = mktime (&tm);
11625 if (now != (time_t) -1)
11627 struct tm *lt = localtime (&now);
11629 && lt->tm_year == tm.tm_year
11630 && lt->tm_mon == tm.tm_mon
11631 && lt->tm_mday == tm.tm_mday
11632 && lt->tm_hour == tm.tm_hour
11633 && lt->tm_min == tm.tm_min
11634 && lt->tm_sec == tm.tm_sec
11635 && lt->tm_yday == tm.tm_yday
11636 && lt->tm_wday == tm.tm_wday
11637 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11638 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11649 /* This test makes some buggy mktime implementations loop.
11650 Give up after 60 seconds; a mktime slower than that
11651 isn't worth using anyway. */
11654 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11657 delta = time_t_max / 997; /* a suitable prime number */
11658 for (i = 0; i < N_STRINGS; i++)
11661 putenv (tz_strings[i]);
11663 for (t = 0; t <= time_t_max - delta; t += delta)
11665 mktime_test ((time_t) 60 * 60);
11666 mktime_test ((time_t) 60 * 60 * 24);
11668 for (j = 1; 0 < j; j *= 2)
11670 bigtime_test (j - 1);
11673 spring_forward_gap ();
11677 rm -f conftest
$ac_exeext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679 (eval $ac_link) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_func_working_mktime
=yes
11690 echo "$as_me: program exited with status $ac_status" >&5
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.
$ac_ext >&5
11694 ( exit $ac_status )
11695 ac_cv_func_working_mktime
=no
11697 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11700 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11701 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11702 if test $ac_cv_func_working_mktime = no
; then
11703 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11706 if test "$ac_cv_func_working_mktime" = no
; then
11708 cat >>confdefs.h
<<\_ACEOF
11709 #define BROKEN_MKTIME 1
11714 ac_have_func
=no
# yes means we've found a way to get the load average.
11716 # Make sure getloadavg.c is where it belongs, at configure-time.
11717 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11718 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11719 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11720 { (exit 1); exit 1; }; }
11724 # Check for getloadavg, but be sure not to touch the cache variable.
11725 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11726 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11727 if test "${ac_cv_func_getloadavg+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 cat >conftest.
$ac_ext <<_ACEOF
11731 #line $LINENO "configure"
11734 cat confdefs.h
>>conftest.
$ac_ext
11735 cat >>conftest.
$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char getloadavg (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11742 # include <limits.h>
11744 # include <assert.h>
11746 /* Override any gcc2 internal prototype to avoid an error. */
11751 /* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11753 char getloadavg ();
11754 /* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11760 char (*f) () = getloadavg;
11769 return f != getloadavg;
11774 rm -f conftest.
$ac_objext conftest
$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try
='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 ac_cv_func_getloadavg
=yes
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.
$ac_ext >&5
11791 ac_cv_func_getloadavg
=no
11793 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11795 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11796 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11797 if test $ac_cv_func_getloadavg = yes; then
11802 ) && ac_have_func
=yes
11804 # On HPUX9, an unprivileged user can get load averages through this function.
11806 for ac_func
in pstat_getdynamic
11808 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11809 echo "$as_me:$LINENO: checking for $ac_func" >&5
11810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11811 if eval "test \"\${$as_ac_var+set}\" = set"; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 cat >conftest.
$ac_ext <<_ACEOF
11815 #line $LINENO "configure"
11818 cat confdefs.h
>>conftest.
$ac_ext
11819 cat >>conftest.
$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 /* System header to define __stub macros and hopefully few prototypes,
11822 which can conflict with char $ac_func (); below.
11823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11824 <limits.h> exists even on freestanding compilers. */
11826 # include <limits.h>
11828 # include <assert.h>
11830 /* Override any gcc2 internal prototype to avoid an error. */
11835 /* We use char because int might match the return type of a gcc2
11836 builtin and then its argument prototype would still apply. */
11838 /* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11844 char (*f) () = $ac_func;
11853 return f != $ac_func;
11858 rm -f conftest.
$ac_objext conftest
$ac_exeext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860 (eval $ac_link) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try
='test -s conftest$ac_exeext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 eval "$as_ac_var=yes"
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.
$ac_ext >&5
11875 eval "$as_ac_var=no"
11877 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h
<<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11890 # Solaris has libkstat which does not require root.
11892 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11893 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11894 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 ac_check_lib_save_LIBS
=$LIBS
11898 LIBS
="-lkstat $LIBS"
11899 cat >conftest.
$ac_ext <<_ACEOF
11900 #line $LINENO "configure"
11903 cat confdefs.h
>>conftest.
$ac_ext
11904 cat >>conftest.
$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 /* Override any gcc2 internal prototype to avoid an error. */
11911 /* We use char because int might match the return type of a gcc2
11912 builtin and then its argument prototype would still apply. */
11913 char kstat_open ();
11922 rm -f conftest.
$ac_objext conftest
$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try
='test -s conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_lib_kstat_kstat_open
=yes
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.
$ac_ext >&5
11939 ac_cv_lib_kstat_kstat_open
=no
11941 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11942 LIBS
=$ac_check_lib_save_LIBS
11944 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11945 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11946 if test $ac_cv_lib_kstat_kstat_open = yes; then
11947 cat >>confdefs.h
<<_ACEOF
11948 #define HAVE_LIBKSTAT 1
11951 LIBS
="-lkstat $LIBS"
11955 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11957 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11958 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11959 # to get the right answer into the cache.
11960 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11961 if test $ac_have_func = no
; then
11962 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11963 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11964 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 ac_check_lib_save_LIBS
=$LIBS
11969 cat >conftest.
$ac_ext <<_ACEOF
11970 #line $LINENO "configure"
11973 cat confdefs.h
>>conftest.
$ac_ext
11974 cat >>conftest.
$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11992 rm -f conftest.
$ac_objext conftest
$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try
='test -s conftest$ac_exeext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_lib_elf_elf_begin
=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.
$ac_ext >&5
12009 ac_cv_lib_elf_elf_begin
=no
12011 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12012 LIBS
=$ac_check_lib_save_LIBS
12014 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12015 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12016 if test $ac_cv_lib_elf_elf_begin = yes; then
12021 if test $ac_have_func = no
; then
12022 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12023 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12024 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 ac_check_lib_save_LIBS
=$LIBS
12029 cat >conftest.
$ac_ext <<_ACEOF
12030 #line $LINENO "configure"
12033 cat confdefs.h
>>conftest.
$ac_ext
12034 cat >>conftest.
$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12037 /* Override any gcc2 internal prototype to avoid an error. */
12041 /* We use char because int might match the return type of a gcc2
12042 builtin and then its argument prototype would still apply. */
12052 rm -f conftest.
$ac_objext conftest
$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054 (eval $ac_link) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try
='test -s conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_lib_kvm_kvm_open
=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.
$ac_ext >&5
12069 ac_cv_lib_kvm_kvm_open
=no
12071 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12072 LIBS
=$ac_check_lib_save_LIBS
12074 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12075 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12076 if test $ac_cv_lib_kvm_kvm_open = yes; then
12080 # Check for the 4.4BSD definition of getloadavg.
12081 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12082 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12083 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 ac_check_lib_save_LIBS
=$LIBS
12087 LIBS
="-lutil $LIBS"
12088 cat >conftest.
$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12092 cat confdefs.h
>>conftest.
$ac_ext
12093 cat >>conftest.
$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12096 /* Override any gcc2 internal prototype to avoid an error. */
12100 /* We use char because int might match the return type of a gcc2
12101 builtin and then its argument prototype would still apply. */
12102 char getloadavg ();
12111 rm -f conftest.
$ac_objext conftest
$ac_exeext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113 (eval $ac_link) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try
='test -s conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_cv_lib_util_getloadavg
=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.
$ac_ext >&5
12128 ac_cv_lib_util_getloadavg
=no
12130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12131 LIBS
=$ac_check_lib_save_LIBS
12133 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12134 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12135 if test $ac_cv_lib_util_getloadavg = yes; then
12136 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12141 if test $ac_have_func = no
; then
12142 # There is a commonly available library for RS/6000 AIX.
12143 # Since it is not a standard part of AIX, it might be installed locally.
12144 ac_getloadavg_LIBS
=$LIBS
12145 LIBS
="-L/usr/local/lib $LIBS"
12146 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12147 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12148 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 ac_check_lib_save_LIBS
=$LIBS
12152 LIBS
="-lgetloadavg $LIBS"
12153 cat >conftest.
$ac_ext <<_ACEOF
12154 #line $LINENO "configure"
12157 cat confdefs.h
>>conftest.
$ac_ext
12158 cat >>conftest.
$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any gcc2 internal prototype to avoid an error. */
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12167 char getloadavg ();
12176 rm -f conftest.
$ac_objext conftest
$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try
='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_lib_getloadavg_getloadavg
=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.
$ac_ext >&5
12193 ac_cv_lib_getloadavg_getloadavg
=no
12195 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12196 LIBS
=$ac_check_lib_save_LIBS
12198 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12199 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12200 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12201 LIBS
="-lgetloadavg $LIBS"
12203 LIBS
=$ac_getloadavg_LIBS
12208 # Make sure it is really in the library, if we think we found it,
12209 # otherwise set up the replacement function.
12211 for ac_func
in getloadavg
12213 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12214 echo "$as_me:$LINENO: checking for $ac_func" >&5
12215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12216 if eval "test \"\${$as_ac_var+set}\" = set"; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 cat >conftest.
$ac_ext <<_ACEOF
12220 #line $LINENO "configure"
12223 cat confdefs.h
>>conftest.
$ac_ext
12224 cat >>conftest.
$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 /* System header to define __stub macros and hopefully few prototypes,
12227 which can conflict with char $ac_func (); below.
12228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12229 <limits.h> exists even on freestanding compilers. */
12231 # include <limits.h>
12233 # include <assert.h>
12235 /* Override any gcc2 internal prototype to avoid an error. */
12240 /* We use char because int might match the return type of a gcc2
12241 builtin and then its argument prototype would still apply. */
12243 /* The GNU C library defines this for functions which it implements
12244 to always fail with ENOSYS. Some functions are actually named
12245 something starting with __ and the normal name is an alias. */
12246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12249 char (*f) () = $ac_func;
12258 return f != $ac_func;
12263 rm -f conftest.
$ac_objext conftest
$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try
='test -s conftest$ac_exeext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 eval "$as_ac_var=yes"
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.
$ac_ext >&5
12280 eval "$as_ac_var=no"
12282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12286 if test `eval echo '${'$as_ac_var'}'` = yes; then
12287 cat >>confdefs.h
<<_ACEOF
12288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12292 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12294 cat >>confdefs.h
<<\_ACEOF
12295 #define C_GETLOADAVG 1
12298 # Figure out what our getloadavg.c needs.
12300 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12301 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12302 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12303 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12307 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12309 # Is the header compilable?
12310 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12311 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12312 cat >conftest.
$ac_ext <<_ACEOF
12313 #line $LINENO "configure"
12316 cat confdefs.h
>>conftest.
$ac_ext
12317 cat >>conftest.
$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 $ac_includes_default
12320 #include <sys/dg_sys_info.h>
12322 rm -f conftest.
$ac_objext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12324 (eval $ac_compile) 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try
='test -s conftest.$ac_objext'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; }; then
12334 ac_header_compiler
=yes
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.
$ac_ext >&5
12339 ac_header_compiler
=no
12341 rm -f conftest.
$ac_objext conftest.
$ac_ext
12342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12343 echo "${ECHO_T}$ac_header_compiler" >&6
12345 # Is the header present?
12346 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12347 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12348 cat >conftest.
$ac_ext <<_ACEOF
12349 #line $LINENO "configure"
12352 cat confdefs.h
>>conftest.
$ac_ext
12353 cat >>conftest.
$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 #include <sys/dg_sys_info.h>
12357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12358 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12360 grep -v '^ *+' conftest.er1
>conftest.err
12362 cat conftest.err
>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } >/dev
/null
; then
12365 if test -s conftest.err
; then
12366 ac_cpp_err
=$ac_c_preproc_warn_flag
12373 if test -z "$ac_cpp_err"; then
12374 ac_header_preproc
=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.
$ac_ext >&5
12379 ac_header_preproc
=no
12381 rm -f conftest.err conftest.
$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12383 echo "${ECHO_T}$ac_header_preproc" >&6
12385 # So? What about this header?
12386 case $ac_header_compiler:$ac_header_preproc in
12388 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12389 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12391 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12394 ## ------------------------------------ ##
12395 ## Report this to bug-autoconf@gnu.org. ##
12396 ## ------------------------------------ ##
12399 sed "s/^/$as_me: WARNING: /" >&2
12402 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12403 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12405 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12406 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12407 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12410 ## ------------------------------------ ##
12411 ## Report this to bug-autoconf@gnu.org. ##
12412 ## ------------------------------------ ##
12415 sed "s/^/$as_me: WARNING: /" >&2
12418 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12419 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12420 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12425 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12426 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12429 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12432 cat >>confdefs.h
<<\_ACEOF
12437 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12438 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12439 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 ac_check_lib_save_LIBS
=$LIBS
12444 cat >conftest.
$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12448 cat confdefs.h
>>conftest.
$ac_ext
12449 cat >>conftest.
$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12452 /* Override any gcc2 internal prototype to avoid an error. */
12456 /* We use char because int might match the return type of a gcc2
12457 builtin and then its argument prototype would still apply. */
12458 char dg_sys_info ();
12467 rm -f conftest.
$ac_objext conftest
$ac_exeext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469 (eval $ac_link) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try
='test -s conftest$ac_exeext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_lib_dgc_dg_sys_info
=yes
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.
$ac_ext >&5
12484 ac_cv_lib_dgc_dg_sys_info
=no
12486 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12487 LIBS
=$ac_check_lib_save_LIBS
12489 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12490 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12491 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12492 cat >>confdefs.h
<<_ACEOF
12493 #define HAVE_LIBDGC 1
12504 if test "${ac_cv_header_locale_h+set}" = set; then
12505 echo "$as_me:$LINENO: checking for locale.h" >&5
12506 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12507 if test "${ac_cv_header_locale_h+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12511 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12513 # Is the header compilable?
12514 echo "$as_me:$LINENO: checking locale.h usability" >&5
12515 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12516 cat >conftest.
$ac_ext <<_ACEOF
12517 #line $LINENO "configure"
12520 cat confdefs.h
>>conftest.
$ac_ext
12521 cat >>conftest.
$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12523 $ac_includes_default
12524 #include <locale.h>
12526 rm -f conftest.
$ac_objext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try
='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_header_compiler
=yes
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.
$ac_ext >&5
12543 ac_header_compiler
=no
12545 rm -f conftest.
$ac_objext conftest.
$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 echo "${ECHO_T}$ac_header_compiler" >&6
12549 # Is the header present?
12550 echo "$as_me:$LINENO: checking locale.h presence" >&5
12551 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12552 cat >conftest.
$ac_ext <<_ACEOF
12553 #line $LINENO "configure"
12556 cat confdefs.h
>>conftest.
$ac_ext
12557 cat >>conftest.
$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 #include <locale.h>
12561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12562 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12564 grep -v '^ *+' conftest.er1
>conftest.err
12566 cat conftest.err
>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } >/dev
/null
; then
12569 if test -s conftest.err
; then
12570 ac_cpp_err
=$ac_c_preproc_warn_flag
12577 if test -z "$ac_cpp_err"; then
12578 ac_header_preproc
=yes
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.
$ac_ext >&5
12583 ac_header_preproc
=no
12585 rm -f conftest.err conftest.
$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc in
12592 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12595 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12598 ## ------------------------------------ ##
12599 ## Report this to bug-autoconf@gnu.org. ##
12600 ## ------------------------------------ ##
12603 sed "s/^/$as_me: WARNING: /" >&2
12606 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12607 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12609 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12611 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12614 ## ------------------------------------ ##
12615 ## Report this to bug-autoconf@gnu.org. ##
12616 ## ------------------------------------ ##
12619 sed "s/^/$as_me: WARNING: /" >&2
12622 echo "$as_me:$LINENO: checking for locale.h" >&5
12623 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12624 if test "${ac_cv_header_locale_h+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 ac_cv_header_locale_h
=$ac_header_preproc
12629 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12630 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12636 for ac_func
in setlocale
12638 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12639 echo "$as_me:$LINENO: checking for $ac_func" >&5
12640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12641 if eval "test \"\${$as_ac_var+set}\" = set"; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 cat >conftest.
$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12648 cat confdefs.h
>>conftest.
$ac_ext
12649 cat >>conftest.
$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 /* System header to define __stub macros and hopefully few prototypes,
12652 which can conflict with char $ac_func (); below.
12653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12654 <limits.h> exists even on freestanding compilers. */
12656 # include <limits.h>
12658 # include <assert.h>
12660 /* Override any gcc2 internal prototype to avoid an error. */
12665 /* We use char because int might match the return type of a gcc2
12666 builtin and then its argument prototype would still apply. */
12668 /* The GNU C library defines this for functions which it implements
12669 to always fail with ENOSYS. Some functions are actually named
12670 something starting with __ and the normal name is an alias. */
12671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12674 char (*f) () = $ac_func;
12683 return f != $ac_func;
12688 rm -f conftest.
$ac_objext conftest
$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690 (eval $ac_link) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } &&
12694 { ac_try
='test -s conftest$ac_exeext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 eval "$as_ac_var=yes"
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.
$ac_ext >&5
12705 eval "$as_ac_var=no"
12707 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12711 if test `eval echo '${'$as_ac_var'}'` = yes; then
12712 cat >>confdefs.h
<<_ACEOF
12713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12720 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12721 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12722 # Irix 4.0.5F has the header but not the library.
12723 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12726 cat >>confdefs.h
<<\_ACEOF
12732 if test $ac_have_func = no
; then
12733 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12734 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12735 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12736 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12740 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12742 # Is the header compilable?
12743 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12744 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12745 cat >conftest.
$ac_ext <<_ACEOF
12746 #line $LINENO "configure"
12749 cat confdefs.h
>>conftest.
$ac_ext
12750 cat >>conftest.
$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 #include <inq_stats/cpustats.h>
12755 rm -f conftest.
$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try
='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_header_compiler
=yes
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.
$ac_ext >&5
12772 ac_header_compiler
=no
12774 rm -f conftest.
$ac_objext conftest.
$ac_ext
12775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12776 echo "${ECHO_T}$ac_header_compiler" >&6
12778 # Is the header present?
12779 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12780 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12781 cat >conftest.
$ac_ext <<_ACEOF
12782 #line $LINENO "configure"
12785 cat confdefs.h
>>conftest.
$ac_ext
12786 cat >>conftest.
$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 #include <inq_stats/cpustats.h>
12790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12791 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12793 grep -v '^ *+' conftest.er1
>conftest.err
12795 cat conftest.err
>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } >/dev
/null
; then
12798 if test -s conftest.err
; then
12799 ac_cpp_err
=$ac_c_preproc_warn_flag
12806 if test -z "$ac_cpp_err"; then
12807 ac_header_preproc
=yes
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.
$ac_ext >&5
12812 ac_header_preproc
=no
12814 rm -f conftest.err conftest.
$ac_ext
12815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12816 echo "${ECHO_T}$ac_header_preproc" >&6
12818 # So? What about this header?
12819 case $ac_header_compiler:$ac_header_preproc in
12821 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12822 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12824 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12827 ## ------------------------------------ ##
12828 ## Report this to bug-autoconf@gnu.org. ##
12829 ## ------------------------------------ ##
12832 sed "s/^/$as_me: WARNING: /" >&2
12835 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12836 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12838 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12840 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12843 ## ------------------------------------ ##
12844 ## Report this to bug-autoconf@gnu.org. ##
12845 ## ------------------------------------ ##
12848 sed "s/^/$as_me: WARNING: /" >&2
12851 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12852 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12853 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
12858 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12859 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12862 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
12865 cat >>confdefs.h
<<\_ACEOF
12870 cat >>confdefs.h
<<\_ACEOF
12879 if test $ac_have_func = no
; then
12880 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12881 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12882 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12883 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12887 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12889 # Is the header compilable?
12890 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
12891 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
12892 cat >conftest.
$ac_ext <<_ACEOF
12893 #line $LINENO "configure"
12896 cat confdefs.h
>>conftest.
$ac_ext
12897 cat >>conftest.
$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 $ac_includes_default
12900 #include <sys/cpustats.h>
12902 rm -f conftest.
$ac_objext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try
='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_header_compiler
=yes
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.
$ac_ext >&5
12919 ac_header_compiler
=no
12921 rm -f conftest.
$ac_objext conftest.
$ac_ext
12922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12923 echo "${ECHO_T}$ac_header_compiler" >&6
12925 # Is the header present?
12926 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
12927 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
12928 cat >conftest.
$ac_ext <<_ACEOF
12929 #line $LINENO "configure"
12932 cat confdefs.h
>>conftest.
$ac_ext
12933 cat >>conftest.
$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 #include <sys/cpustats.h>
12937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12940 grep -v '^ *+' conftest.er1
>conftest.err
12942 cat conftest.err
>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } >/dev
/null
; then
12945 if test -s conftest.err
; then
12946 ac_cpp_err
=$ac_c_preproc_warn_flag
12953 if test -z "$ac_cpp_err"; then
12954 ac_header_preproc
=yes
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.
$ac_ext >&5
12959 ac_header_preproc
=no
12961 rm -f conftest.err conftest.
$ac_ext
12962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12963 echo "${ECHO_T}$ac_header_preproc" >&6
12965 # So? What about this header?
12966 case $ac_header_compiler:$ac_header_preproc in
12968 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12969 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12970 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12971 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12974 ## ------------------------------------ ##
12975 ## Report this to bug-autoconf@gnu.org. ##
12976 ## ------------------------------------ ##
12979 sed "s/^/$as_me: WARNING: /" >&2
12982 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
12983 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
12985 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12987 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12990 ## ------------------------------------ ##
12991 ## Report this to bug-autoconf@gnu.org. ##
12992 ## ------------------------------------ ##
12995 sed "s/^/$as_me: WARNING: /" >&2
12998 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12999 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13000 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13006 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13009 if test $ac_cv_header_sys_cpustats_h = yes; then
13010 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13019 if test $ac_have_func = no
; then
13021 for ac_header
in mach
/mach.h
13023 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13025 echo "$as_me:$LINENO: checking for $ac_header" >&5
13026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13033 # Is the header compilable?
13034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13036 cat >conftest.
$ac_ext <<_ACEOF
13037 #line $LINENO "configure"
13040 cat confdefs.h
>>conftest.
$ac_ext
13041 cat >>conftest.
$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 $ac_includes_default
13044 #include <$ac_header>
13046 rm -f conftest.
$ac_objext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } &&
13052 { ac_try
='test -s conftest.$ac_objext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_header_compiler
=yes
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.
$ac_ext >&5
13063 ac_header_compiler
=no
13065 rm -f conftest.
$ac_objext conftest.
$ac_ext
13066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067 echo "${ECHO_T}$ac_header_compiler" >&6
13069 # Is the header present?
13070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13072 cat >conftest.
$ac_ext <<_ACEOF
13073 #line $LINENO "configure"
13076 cat confdefs.h
>>conftest.
$ac_ext
13077 cat >>conftest.
$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <$ac_header>
13081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13082 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13084 grep -v '^ *+' conftest.er1
>conftest.err
13086 cat conftest.err
>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } >/dev
/null
; then
13089 if test -s conftest.err
; then
13090 ac_cpp_err
=$ac_c_preproc_warn_flag
13097 if test -z "$ac_cpp_err"; then
13098 ac_header_preproc
=yes
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.
$ac_ext >&5
13103 ac_header_preproc
=no
13105 rm -f conftest.err conftest.
$ac_ext
13106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13107 echo "${ECHO_T}$ac_header_preproc" >&6
13109 # So? What about this header?
13110 case $ac_header_compiler:$ac_header_preproc in
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13118 ## ------------------------------------ ##
13119 ## Report this to bug-autoconf@gnu.org. ##
13120 ## ------------------------------------ ##
13123 sed "s/^/$as_me: WARNING: /" >&2
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13134 ## ------------------------------------ ##
13135 ## Report this to bug-autoconf@gnu.org. ##
13136 ## ------------------------------------ ##
13139 sed "s/^/$as_me: WARNING: /" >&2
13142 echo "$as_me:$LINENO: checking for $ac_header" >&5
13143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 eval "$as_ac_Header=$ac_header_preproc"
13149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13154 cat >>confdefs.h
<<_ACEOF
13155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13165 for ac_header
in nlist.h
13167 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13169 echo "$as_me:$LINENO: checking for $ac_header" >&5
13170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13177 # Is the header compilable?
13178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13180 cat >conftest.
$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13184 cat confdefs.h
>>conftest.
$ac_ext
13185 cat >>conftest.
$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 $ac_includes_default
13188 #include <$ac_header>
13190 rm -f conftest.
$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192 (eval $ac_compile) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try
='test -s conftest.$ac_objext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_header_compiler
=yes
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.
$ac_ext >&5
13207 ac_header_compiler
=no
13209 rm -f conftest.
$ac_objext conftest.
$ac_ext
13210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13211 echo "${ECHO_T}$ac_header_compiler" >&6
13213 # Is the header present?
13214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13216 cat >conftest.
$ac_ext <<_ACEOF
13217 #line $LINENO "configure"
13220 cat confdefs.h
>>conftest.
$ac_ext
13221 cat >>conftest.
$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13223 #include <$ac_header>
13225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13228 grep -v '^ *+' conftest.er1
>conftest.err
13230 cat conftest.err
>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } >/dev
/null
; then
13233 if test -s conftest.err
; then
13234 ac_cpp_err
=$ac_c_preproc_warn_flag
13241 if test -z "$ac_cpp_err"; then
13242 ac_header_preproc
=yes
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.
$ac_ext >&5
13247 ac_header_preproc
=no
13249 rm -f conftest.err conftest.
$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13251 echo "${ECHO_T}$ac_header_preproc" >&6
13253 # So? What about this header?
13254 case $ac_header_compiler:$ac_header_preproc in
13256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13262 ## ------------------------------------ ##
13263 ## Report this to bug-autoconf@gnu.org. ##
13264 ## ------------------------------------ ##
13267 sed "s/^/$as_me: WARNING: /" >&2
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13278 ## ------------------------------------ ##
13279 ## Report this to bug-autoconf@gnu.org. ##
13280 ## ------------------------------------ ##
13283 sed "s/^/$as_me: WARNING: /" >&2
13286 echo "$as_me:$LINENO: checking for $ac_header" >&5
13287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 eval "$as_ac_Header=$ac_header_preproc"
13293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13298 cat >>confdefs.h
<<_ACEOF
13299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13301 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13302 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13303 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 cat >conftest.
$ac_ext <<_ACEOF
13307 #line $LINENO "configure"
13310 cat confdefs.h
>>conftest.
$ac_ext
13311 cat >>conftest.
$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13318 static struct nlist ac_aggr;
13319 if (ac_aggr.n_un.n_name)
13325 rm -f conftest.
$ac_objext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327 (eval $ac_compile) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try
='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_cv_member_struct_nlist_n_un_n_name
=yes
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.
$ac_ext >&5
13342 cat >conftest.
$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13346 cat confdefs.h
>>conftest.
$ac_ext
13347 cat >>conftest.
$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13354 static struct nlist ac_aggr;
13355 if (sizeof ac_aggr.n_un.n_name)
13361 rm -f conftest.
$ac_objext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13363 (eval $ac_compile) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 { ac_try
='test -s conftest.$ac_objext'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 ac_cv_member_struct_nlist_n_un_n_name
=yes
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.
$ac_ext >&5
13378 ac_cv_member_struct_nlist_n_un_n_name
=no
13380 rm -f conftest.
$ac_objext conftest.
$ac_ext
13382 rm -f conftest.
$ac_objext conftest.
$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13385 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13386 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13388 cat >>confdefs.h
<<_ACEOF
13389 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13393 cat >>confdefs.h
<<\_ACEOF
13394 #define NLIST_NAME_UNION 1
13408 # Some definitions of getloadavg require that the program be installed setgid.
13409 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13410 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13411 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 cat >conftest.
$ac_ext <<_ACEOF
13415 #line $LINENO "configure"
13418 cat confdefs.h
>>conftest.
$ac_ext
13419 cat >>conftest.
$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13422 #ifdef LDAV_PRIVILEGED
13423 Yowza Am I SETGID yet
13426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13428 ac_cv_func_getloadavg_setgid
=yes
13430 ac_cv_func_getloadavg_setgid
=no
13435 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13436 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13437 if test $ac_cv_func_getloadavg_setgid = yes; then
13440 cat >>confdefs.h
<<\_ACEOF
13441 #define GETLOADAVG_PRIVILEGED 1
13448 if test $ac_cv_func_getloadavg_setgid = yes; then
13449 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13450 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13451 if test "${ac_cv_group_kmem+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13455 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13456 # If we got an error (system does not support symlinks), try without -L.
13457 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13458 ac_cv_group_kmem
=`echo $ac_ls_output \
13459 | sed -ne 's/[ ][ ]*/ /g;
13460 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13464 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13465 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13466 KMEM_GROUP
=$ac_cv_group_kmem
13468 if test "x$ac_save_LIBS" = x
; then
13469 GETLOADAVG_LIBS
=$LIBS
13471 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13477 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13478 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13479 if test "${ac_cv_sys_largefile_source+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 ac_cv_sys_largefile_source
=no
13484 cat >conftest.
$ac_ext <<_ACEOF
13485 #line $LINENO "configure"
13488 cat confdefs.h
>>conftest.
$ac_ext
13489 cat >>conftest.
$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13500 rm -f conftest.
$ac_objext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13502 (eval $ac_compile) 2>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try
='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.
$ac_ext >&5
13518 rm -f conftest.
$ac_objext conftest.
$ac_ext
13519 cat >conftest.
$ac_ext <<_ACEOF
13520 #line $LINENO "configure"
13523 cat confdefs.h
>>conftest.
$ac_ext
13524 cat >>conftest.
$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 #define _LARGEFILE_SOURCE 1
13536 rm -f conftest.
$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try
='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_sys_largefile_source
=1; break
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.
$ac_ext >&5
13554 rm -f conftest.
$ac_objext conftest.
$ac_ext
13558 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13559 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13560 if test "$ac_cv_sys_largefile_source" != no
; then
13562 cat >>confdefs.h
<<_ACEOF
13563 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13569 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13570 # in glibc 2.1.3, but that breaks too many other things.
13571 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13572 echo "$as_me:$LINENO: checking for fseeko" >&5
13573 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13574 if test "${ac_cv_func_fseeko+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 cat >conftest.
$ac_ext <<_ACEOF
13578 #line $LINENO "configure"
13581 cat confdefs.h
>>conftest.
$ac_ext
13582 cat >>conftest.
$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13588 return fseeko && fseeko (stdin, 0, 0);
13593 rm -f conftest.
$ac_objext conftest
$ac_exeext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13595 (eval $ac_link) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try
='test -s conftest$ac_exeext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 ac_cv_func_fseeko
=yes
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.
$ac_ext >&5
13610 ac_cv_func_fseeko
=no
13612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13614 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13615 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13616 if test $ac_cv_func_fseeko = yes; then
13618 cat >>confdefs.h
<<\_ACEOF
13619 #define HAVE_FSEEKO 1
13625 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13626 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13627 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 # Use it with a single arg.
13631 cat >conftest.
$ac_ext <<_ACEOF
13632 #line $LINENO "configure"
13635 cat confdefs.h
>>conftest.
$ac_ext
13636 cat >>conftest.
$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 $ac_includes_default
13647 rm -f conftest.
$ac_objext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649 (eval $ac_compile) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try
='test -s conftest.$ac_objext'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; }; then
13659 ac_cv_func_getpgrp_void
=no
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.
$ac_ext >&5
13664 ac_cv_func_getpgrp_void
=yes
13666 rm -f conftest.
$ac_objext conftest.
$ac_ext
13669 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13670 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13671 if test $ac_cv_func_getpgrp_void = yes; then
13673 cat >>confdefs.h
<<\_ACEOF
13674 #define GETPGRP_VOID 1
13682 for ac_func
in grantpt
13684 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13685 echo "$as_me:$LINENO: checking for $ac_func" >&5
13686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13687 if eval "test \"\${$as_ac_var+set}\" = set"; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 cat >conftest.
$ac_ext <<_ACEOF
13691 #line $LINENO "configure"
13694 cat confdefs.h
>>conftest.
$ac_ext
13695 cat >>conftest.
$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 /* System header to define __stub macros and hopefully few prototypes,
13698 which can conflict with char $ac_func (); below.
13699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13700 <limits.h> exists even on freestanding compilers. */
13702 # include <limits.h>
13704 # include <assert.h>
13706 /* Override any gcc2 internal prototype to avoid an error. */
13711 /* We use char because int might match the return type of a gcc2
13712 builtin and then its argument prototype would still apply. */
13714 /* The GNU C library defines this for functions which it implements
13715 to always fail with ENOSYS. Some functions are actually named
13716 something starting with __ and the normal name is an alias. */
13717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13720 char (*f) () = $ac_func;
13729 return f != $ac_func;
13734 rm -f conftest.
$ac_objext conftest
$ac_exeext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try
='test -s conftest$ac_exeext'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 eval "$as_ac_var=yes"
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.
$ac_ext >&5
13751 eval "$as_ac_var=no"
13753 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13757 if test `eval echo '${'$as_ac_var'}'` = yes; then
13758 cat >>confdefs.h
<<_ACEOF
13759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13766 # PTY-related GNU extensions.
13768 for ac_func
in getpt
13770 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 echo "$as_me:$LINENO: checking for $ac_func" >&5
13772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_var+set}\" = set"; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 cat >conftest.
$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13780 cat confdefs.h
>>conftest.
$ac_ext
13781 cat >>conftest.
$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 /* System header to define __stub macros and hopefully few prototypes,
13784 which can conflict with char $ac_func (); below.
13785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13786 <limits.h> exists even on freestanding compilers. */
13788 # include <limits.h>
13790 # include <assert.h>
13792 /* Override any gcc2 internal prototype to avoid an error. */
13797 /* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13800 /* The GNU C library defines this for functions which it implements
13801 to always fail with ENOSYS. Some functions are actually named
13802 something starting with __ and the normal name is an alias. */
13803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13806 char (*f) () = $ac_func;
13815 return f != $ac_func;
13820 rm -f conftest.
$ac_objext conftest
$ac_exeext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try
='test -s conftest$ac_exeext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 eval "$as_ac_var=yes"
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.
$ac_ext >&5
13837 eval "$as_ac_var=no"
13839 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13843 if test `eval echo '${'$as_ac_var'}'` = yes; then
13844 cat >>confdefs.h
<<_ACEOF
13845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13852 # Check this now, so that we will NOT find the above functions in ncurses.
13853 # That is because we have not set up to link ncurses in lib-src.
13854 # It's better to believe a function is not available
13855 # than to expect to find it in ncurses.
13857 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13858 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13859 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 ac_check_lib_save_LIBS
=$LIBS
13863 LIBS
="-lncurses $LIBS"
13864 cat >conftest.
$ac_ext <<_ACEOF
13865 #line $LINENO "configure"
13868 cat confdefs.h
>>conftest.
$ac_ext
13869 cat >>conftest.
$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13872 /* Override any gcc2 internal prototype to avoid an error. */
13876 /* We use char because int might match the return type of a gcc2
13877 builtin and then its argument prototype would still apply. */
13887 rm -f conftest.
$ac_objext conftest
$ac_exeext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13889 (eval $ac_link) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try
='test -s conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_lib_ncurses_tparm
=yes
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.
$ac_ext >&5
13904 ac_cv_lib_ncurses_tparm
=no
13906 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13907 LIBS
=$ac_check_lib_save_LIBS
13909 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
13910 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
13911 if test $ac_cv_lib_ncurses_tparm = yes; then
13912 cat >>confdefs.h
<<_ACEOF
13913 #define HAVE_LIBNCURSES 1
13916 LIBS
="-lncurses $LIBS"
13921 # Do we need the Hesiod library to provide the support routines?
13922 if test "$with_hesiod" = yes ; then
13923 # Don't set $LIBS here -- see comments above.
13925 echo "$as_me:$LINENO: checking for res_send" >&5
13926 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
13927 if test "${ac_cv_func_res_send+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 cat >conftest.
$ac_ext <<_ACEOF
13931 #line $LINENO "configure"
13934 cat confdefs.h
>>conftest.
$ac_ext
13935 cat >>conftest.
$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 /* System header to define __stub macros and hopefully few prototypes,
13938 which can conflict with char res_send (); below.
13939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13940 <limits.h> exists even on freestanding compilers. */
13942 # include <limits.h>
13944 # include <assert.h>
13946 /* Override any gcc2 internal prototype to avoid an error. */
13951 /* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13954 /* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957 #if defined (__stub_res_send) || defined (__stub___res_send)
13960 char (*f) () = res_send;
13969 return f != res_send;
13974 rm -f conftest.
$ac_objext conftest
$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try
='test -s conftest$ac_exeext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 ac_cv_func_res_send
=yes
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.
$ac_ext >&5
13991 ac_cv_func_res_send
=no
13993 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13995 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
13996 echo "${ECHO_T}$ac_cv_func_res_send" >&6
13997 if test $ac_cv_func_res_send = yes; then
14000 echo "$as_me:$LINENO: checking for __res_send" >&5
14001 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14002 if test "${ac_cv_func___res_send+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 cat >conftest.
$ac_ext <<_ACEOF
14006 #line $LINENO "configure"
14009 cat confdefs.h
>>conftest.
$ac_ext
14010 cat >>conftest.
$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 /* System header to define __stub macros and hopefully few prototypes,
14013 which can conflict with char __res_send (); below.
14014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14015 <limits.h> exists even on freestanding compilers. */
14017 # include <limits.h>
14019 # include <assert.h>
14021 /* Override any gcc2 internal prototype to avoid an error. */
14026 /* We use char because int might match the return type of a gcc2
14027 builtin and then its argument prototype would still apply. */
14028 char __res_send ();
14029 /* The GNU C library defines this for functions which it implements
14030 to always fail with ENOSYS. Some functions are actually named
14031 something starting with __ and the normal name is an alias. */
14032 #if defined (__stub___res_send) || defined (__stub_____res_send)
14035 char (*f) () = __res_send;
14044 return f != __res_send;
14049 rm -f conftest.
$ac_objext conftest
$ac_exeext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14051 (eval $ac_link) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try
='test -s conftest$ac_exeext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_func___res_send
=yes
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.
$ac_ext >&5
14066 ac_cv_func___res_send
=no
14068 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14070 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14071 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14072 if test $ac_cv_func___res_send = yes; then
14075 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14076 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14077 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 ac_check_lib_save_LIBS
=$LIBS
14081 LIBS
="-lresolv $LIBS"
14082 cat >conftest.
$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14086 cat confdefs.h
>>conftest.
$ac_ext
14087 cat >>conftest.
$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14090 /* Override any gcc2 internal prototype to avoid an error. */
14094 /* We use char because int might match the return type of a gcc2
14095 builtin and then its argument prototype would still apply. */
14105 rm -f conftest.
$ac_objext conftest
$ac_exeext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14107 (eval $ac_link) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try
='test -s conftest$ac_exeext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_lib_resolv_res_send
=yes
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.
$ac_ext >&5
14122 ac_cv_lib_resolv_res_send
=no
14124 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14125 LIBS
=$ac_check_lib_save_LIBS
14127 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14128 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14129 if test $ac_cv_lib_resolv_res_send = yes; then
14132 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14133 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14134 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 ac_check_lib_save_LIBS
=$LIBS
14138 LIBS
="-lresolv $LIBS"
14139 cat >conftest.
$ac_ext <<_ACEOF
14140 #line $LINENO "configure"
14143 cat confdefs.h
>>conftest.
$ac_ext
14144 cat >>conftest.
$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14147 /* Override any gcc2 internal prototype to avoid an error. */
14151 /* We use char because int might match the return type of a gcc2
14152 builtin and then its argument prototype would still apply. */
14153 char __res_send ();
14162 rm -f conftest.
$ac_objext conftest
$ac_exeext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14164 (eval $ac_link) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try
='test -s conftest$ac_exeext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 ac_cv_lib_resolv___res_send
=yes
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.
$ac_ext >&5
14179 ac_cv_lib_resolv___res_send
=no
14181 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14182 LIBS
=$ac_check_lib_save_LIBS
14184 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14185 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14186 if test $ac_cv_lib_resolv___res_send = yes; then
14196 if test "$resolv" = yes ; then
14199 cat >>confdefs.h
<<\_ACEOF
14200 #define HAVE_LIBRESOLV 1
14206 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14207 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14208 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 cat >conftest.
$ac_ext <<_ACEOF
14212 #line $LINENO "configure"
14215 cat confdefs.h
>>conftest.
$ac_ext
14216 cat >>conftest.
$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 /* System header to define __stub macros and hopefully few prototypes,
14219 which can conflict with char hes_getmailhost (); below.
14220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14221 <limits.h> exists even on freestanding compilers. */
14223 # include <limits.h>
14225 # include <assert.h>
14227 /* Override any gcc2 internal prototype to avoid an error. */
14232 /* We use char because int might match the return type of a gcc2
14233 builtin and then its argument prototype would still apply. */
14234 char hes_getmailhost ();
14235 /* The GNU C library defines this for functions which it implements
14236 to always fail with ENOSYS. Some functions are actually named
14237 something starting with __ and the normal name is an alias. */
14238 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14241 char (*f) () = hes_getmailhost;
14250 return f != hes_getmailhost;
14255 rm -f conftest.
$ac_objext conftest
$ac_exeext
14256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14257 (eval $ac_link) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
14261 { ac_try
='test -s conftest$ac_exeext'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 ac_cv_func_hes_getmailhost
=yes
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.
$ac_ext >&5
14272 ac_cv_func_hes_getmailhost
=no
14274 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14276 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14277 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14278 if test $ac_cv_func_hes_getmailhost = yes; then
14281 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14282 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14283 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 ac_check_lib_save_LIBS
=$LIBS
14287 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14288 cat >conftest.
$ac_ext <<_ACEOF
14289 #line $LINENO "configure"
14292 cat confdefs.h
>>conftest.
$ac_ext
14293 cat >>conftest.
$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any gcc2 internal prototype to avoid an error. */
14300 /* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14302 char hes_getmailhost ();
14306 hes_getmailhost ();
14311 rm -f conftest.
$ac_objext conftest
$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try
='test -s conftest$ac_exeext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_cv_lib_hesiod_hes_getmailhost
=yes
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.
$ac_ext >&5
14328 ac_cv_lib_hesiod_hes_getmailhost
=no
14330 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14331 LIBS
=$ac_check_lib_save_LIBS
14333 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14334 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14335 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14337 cat >>confdefs.h
<<\_ACEOF
14338 #define HAVE_LIBHESIOD 1
14349 # These tell us which Kerberos-related libraries to use.
14350 if test "${with_kerberos+set}" = set; then
14352 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14353 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14354 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 ac_check_lib_save_LIBS
=$LIBS
14358 LIBS
="-lcom_err $LIBS"
14359 cat >conftest.
$ac_ext <<_ACEOF
14360 #line $LINENO "configure"
14363 cat confdefs.h
>>conftest.
$ac_ext
14364 cat >>conftest.
$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14367 /* Override any gcc2 internal prototype to avoid an error. */
14371 /* We use char because int might match the return type of a gcc2
14372 builtin and then its argument prototype would still apply. */
14382 rm -f conftest.
$ac_objext conftest
$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try
='test -s conftest$ac_exeext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_cv_lib_com_err_com_err
=yes
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.
$ac_ext >&5
14399 ac_cv_lib_com_err_com_err
=no
14401 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14402 LIBS
=$ac_check_lib_save_LIBS
14404 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14405 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14406 if test $ac_cv_lib_com_err_com_err = yes; then
14407 cat >>confdefs.h
<<_ACEOF
14408 #define HAVE_LIBCOM_ERR 1
14411 LIBS
="-lcom_err $LIBS"
14416 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14417 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14418 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 ac_check_lib_save_LIBS
=$LIBS
14422 LIBS
="-lk5crypto $LIBS"
14423 cat >conftest.
$ac_ext <<_ACEOF
14424 #line $LINENO "configure"
14427 cat confdefs.h
>>conftest.
$ac_ext
14428 cat >>conftest.
$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14431 /* Override any gcc2 internal prototype to avoid an error. */
14435 /* We use char because int might match the return type of a gcc2
14436 builtin and then its argument prototype would still apply. */
14437 char mit_des_cbc_encrypt ();
14441 mit_des_cbc_encrypt ();
14446 rm -f conftest.
$ac_objext conftest
$ac_exeext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14448 (eval $ac_link) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } &&
14452 { ac_try
='test -s conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.
$ac_ext >&5
14463 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14465 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14466 LIBS
=$ac_check_lib_save_LIBS
14468 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14469 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14470 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14471 cat >>confdefs.h
<<_ACEOF
14472 #define HAVE_LIBK5CRYPTO 1
14475 LIBS
="-lk5crypto $LIBS"
14480 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14481 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14482 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 ac_check_lib_save_LIBS
=$LIBS
14486 LIBS
="-lcrypto $LIBS"
14487 cat >conftest.
$ac_ext <<_ACEOF
14488 #line $LINENO "configure"
14491 cat confdefs.h
>>conftest.
$ac_ext
14492 cat >>conftest.
$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any gcc2 internal prototype to avoid an error. */
14499 /* We use char because int might match the return type of a gcc2
14500 builtin and then its argument prototype would still apply. */
14501 char mit_des_cbc_encrypt ();
14505 mit_des_cbc_encrypt ();
14510 rm -f conftest.
$ac_objext conftest
$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try
='test -s conftest$ac_exeext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.
$ac_ext >&5
14527 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14529 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14530 LIBS
=$ac_check_lib_save_LIBS
14532 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14533 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14534 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14535 cat >>confdefs.h
<<_ACEOF
14536 #define HAVE_LIBCRYPTO 1
14539 LIBS
="-lcrypto $LIBS"
14544 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14545 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14546 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 ac_check_lib_save_LIBS
=$LIBS
14550 LIBS
="-lkrb5 $LIBS"
14551 cat >conftest.
$ac_ext <<_ACEOF
14552 #line $LINENO "configure"
14555 cat confdefs.h
>>conftest.
$ac_ext
14556 cat >>conftest.
$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14559 /* Override any gcc2 internal prototype to avoid an error. */
14563 /* We use char because int might match the return type of a gcc2
14564 builtin and then its argument prototype would still apply. */
14565 char krb5_init_context ();
14569 krb5_init_context ();
14574 rm -f conftest.
$ac_objext conftest
$ac_exeext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14576 (eval $ac_link) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try
='test -s conftest$ac_exeext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 ac_cv_lib_krb5_krb5_init_context
=yes
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.
$ac_ext >&5
14591 ac_cv_lib_krb5_krb5_init_context
=no
14593 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14594 LIBS
=$ac_check_lib_save_LIBS
14596 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14597 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14598 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14599 cat >>confdefs.h
<<_ACEOF
14600 #define HAVE_LIBKRB5 1
14603 LIBS
="-lkrb5 $LIBS"
14607 if test "${with_kerberos5+set}" != set; then
14609 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14610 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14611 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 ac_check_lib_save_LIBS
=$LIBS
14615 LIBS
="-ldes425 $LIBS"
14616 cat >conftest.
$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14620 cat confdefs.h
>>conftest.
$ac_ext
14621 cat >>conftest.
$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14624 /* Override any gcc2 internal prototype to avoid an error. */
14628 /* We use char because int might match the return type of a gcc2
14629 builtin and then its argument prototype would still apply. */
14630 char des_cbc_encrypt ();
14634 des_cbc_encrypt ();
14639 rm -f conftest.
$ac_objext conftest
$ac_exeext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641 (eval $ac_link) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try
='test -s conftest$ac_exeext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_cv_lib_des425_des_cbc_encrypt
=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.
$ac_ext >&5
14656 ac_cv_lib_des425_des_cbc_encrypt
=no
14658 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14659 LIBS
=$ac_check_lib_save_LIBS
14661 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14662 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14663 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14664 cat >>confdefs.h
<<_ACEOF
14665 #define HAVE_LIBDES425 1
14668 LIBS
="-ldes425 $LIBS"
14672 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14673 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14674 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 ac_check_lib_save_LIBS
=$LIBS
14679 cat >conftest.
$ac_ext <<_ACEOF
14680 #line $LINENO "configure"
14683 cat confdefs.h
>>conftest.
$ac_ext
14684 cat >>conftest.
$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 /* Override any gcc2 internal prototype to avoid an error. */
14691 /* We use char because int might match the return type of a gcc2
14692 builtin and then its argument prototype would still apply. */
14693 char des_cbc_encrypt ();
14697 des_cbc_encrypt ();
14702 rm -f conftest.
$ac_objext conftest
$ac_exeext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14704 (eval $ac_link) 2>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try
='test -s conftest$ac_exeext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_lib_des_des_cbc_encrypt
=yes
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.
$ac_ext >&5
14719 ac_cv_lib_des_des_cbc_encrypt
=no
14721 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14722 LIBS
=$ac_check_lib_save_LIBS
14724 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14725 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14726 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14727 cat >>confdefs.h
<<_ACEOF
14728 #define HAVE_LIBDES 1
14738 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14739 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14740 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 ac_check_lib_save_LIBS
=$LIBS
14744 LIBS
="-lkrb4 $LIBS"
14745 cat >conftest.
$ac_ext <<_ACEOF
14746 #line $LINENO "configure"
14749 cat confdefs.h
>>conftest.
$ac_ext
14750 cat >>conftest.
$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14753 /* Override any gcc2 internal prototype to avoid an error. */
14757 /* We use char because int might match the return type of a gcc2
14758 builtin and then its argument prototype would still apply. */
14759 char krb_get_cred ();
14768 rm -f conftest.
$ac_objext conftest
$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try
='test -s conftest$ac_exeext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_cv_lib_krb4_krb_get_cred
=yes
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.
$ac_ext >&5
14785 ac_cv_lib_krb4_krb_get_cred
=no
14787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14788 LIBS
=$ac_check_lib_save_LIBS
14790 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14791 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14792 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14793 cat >>confdefs.h
<<_ACEOF
14794 #define HAVE_LIBKRB4 1
14797 LIBS
="-lkrb4 $LIBS"
14801 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14802 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14803 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 ac_check_lib_save_LIBS
=$LIBS
14808 cat >conftest.
$ac_ext <<_ACEOF
14809 #line $LINENO "configure"
14812 cat confdefs.h
>>conftest.
$ac_ext
14813 cat >>conftest.
$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14816 /* Override any gcc2 internal prototype to avoid an error. */
14820 /* We use char because int might match the return type of a gcc2
14821 builtin and then its argument prototype would still apply. */
14822 char krb_get_cred ();
14831 rm -f conftest.
$ac_objext conftest
$ac_exeext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14833 (eval $ac_link) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try
='test -s conftest$ac_exeext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_cv_lib_krb_krb_get_cred
=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.
$ac_ext >&5
14848 ac_cv_lib_krb_krb_get_cred
=no
14850 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14851 LIBS
=$ac_check_lib_save_LIBS
14853 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
14854 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
14855 if test $ac_cv_lib_krb_krb_get_cred = yes; then
14856 cat >>confdefs.h
<<_ACEOF
14857 #define HAVE_LIBKRB 1
14868 if test "${with_kerberos5+set}" = set; then
14870 for ac_header
in krb5.h
14872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14874 echo "$as_me:$LINENO: checking for $ac_header" >&5
14875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14882 # Is the header compilable?
14883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14885 cat >conftest.
$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14889 cat confdefs.h
>>conftest.
$ac_ext
14890 cat >>conftest.
$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14892 $ac_includes_default
14893 #include <$ac_header>
14895 rm -f conftest.
$ac_objext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try
='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_header_compiler
=yes
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.
$ac_ext >&5
14912 ac_header_compiler
=no
14914 rm -f conftest.
$ac_objext conftest.
$ac_ext
14915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14916 echo "${ECHO_T}$ac_header_compiler" >&6
14918 # Is the header present?
14919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14921 cat >conftest.
$ac_ext <<_ACEOF
14922 #line $LINENO "configure"
14925 cat confdefs.h
>>conftest.
$ac_ext
14926 cat >>conftest.
$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 #include <$ac_header>
14930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14931 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14933 grep -v '^ *+' conftest.er1
>conftest.err
14935 cat conftest.err
>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } >/dev
/null
; then
14938 if test -s conftest.err
; then
14939 ac_cpp_err
=$ac_c_preproc_warn_flag
14946 if test -z "$ac_cpp_err"; then
14947 ac_header_preproc
=yes
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.
$ac_ext >&5
14952 ac_header_preproc
=no
14954 rm -f conftest.err conftest.
$ac_ext
14955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14956 echo "${ECHO_T}$ac_header_preproc" >&6
14958 # So? What about this header?
14959 case $ac_header_compiler:$ac_header_preproc in
14961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14967 ## ------------------------------------ ##
14968 ## Report this to bug-autoconf@gnu.org. ##
14969 ## ------------------------------------ ##
14972 sed "s/^/$as_me: WARNING: /" >&2
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14983 ## ------------------------------------ ##
14984 ## Report this to bug-autoconf@gnu.org. ##
14985 ## ------------------------------------ ##
14988 sed "s/^/$as_me: WARNING: /" >&2
14991 echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 eval "$as_ac_Header=$ac_header_preproc"
14998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15003 cat >>confdefs.h
<<_ACEOF
15004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15013 for ac_header
in des.h
15015 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15017 echo "$as_me:$LINENO: checking for $ac_header" >&5
15018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15025 # Is the header compilable?
15026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15028 cat >conftest.
$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15032 cat confdefs.h
>>conftest.
$ac_ext
15033 cat >>conftest.
$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 $ac_includes_default
15036 #include <$ac_header>
15038 rm -f conftest.
$ac_objext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15040 (eval $ac_compile) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try
='test -s conftest.$ac_objext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_header_compiler
=yes
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.
$ac_ext >&5
15055 ac_header_compiler
=no
15057 rm -f conftest.
$ac_objext conftest.
$ac_ext
15058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15059 echo "${ECHO_T}$ac_header_compiler" >&6
15061 # Is the header present?
15062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15064 cat >conftest.
$ac_ext <<_ACEOF
15065 #line $LINENO "configure"
15068 cat confdefs.h
>>conftest.
$ac_ext
15069 cat >>conftest.
$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 #include <$ac_header>
15073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15076 grep -v '^ *+' conftest.er1
>conftest.err
15078 cat conftest.err
>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } >/dev
/null
; then
15081 if test -s conftest.err
; then
15082 ac_cpp_err
=$ac_c_preproc_warn_flag
15089 if test -z "$ac_cpp_err"; then
15090 ac_header_preproc
=yes
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.
$ac_ext >&5
15095 ac_header_preproc
=no
15097 rm -f conftest.err conftest.
$ac_ext
15098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15099 echo "${ECHO_T}$ac_header_preproc" >&6
15101 # So? What about this header?
15102 case $ac_header_compiler:$ac_header_preproc in
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15110 ## ------------------------------------ ##
15111 ## Report this to bug-autoconf@gnu.org. ##
15112 ## ------------------------------------ ##
15115 sed "s/^/$as_me: WARNING: /" >&2
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15126 ## ------------------------------------ ##
15127 ## Report this to bug-autoconf@gnu.org. ##
15128 ## ------------------------------------ ##
15131 sed "s/^/$as_me: WARNING: /" >&2
15134 echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 eval "$as_ac_Header=$ac_header_preproc"
15141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15146 cat >>confdefs.h
<<_ACEOF
15147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15152 for ac_header
in kerberosIV
/des.h
15154 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15156 echo "$as_me:$LINENO: checking for $ac_header" >&5
15157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15164 # Is the header compilable?
15165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15167 cat >conftest.
$ac_ext <<_ACEOF
15168 #line $LINENO "configure"
15171 cat confdefs.h
>>conftest.
$ac_ext
15172 cat >>conftest.
$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 $ac_includes_default
15175 #include <$ac_header>
15177 rm -f conftest.
$ac_objext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15179 (eval $ac_compile) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
15183 { ac_try
='test -s conftest.$ac_objext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler
=yes
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.
$ac_ext >&5
15194 ac_header_compiler
=no
15196 rm -f conftest.
$ac_objext conftest.
$ac_ext
15197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198 echo "${ECHO_T}$ac_header_compiler" >&6
15200 # Is the header present?
15201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15203 cat >conftest.
$ac_ext <<_ACEOF
15204 #line $LINENO "configure"
15207 cat confdefs.h
>>conftest.
$ac_ext
15208 cat >>conftest.
$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #include <$ac_header>
15212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15213 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15215 grep -v '^ *+' conftest.er1
>conftest.err
15217 cat conftest.err
>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } >/dev
/null
; then
15220 if test -s conftest.err
; then
15221 ac_cpp_err
=$ac_c_preproc_warn_flag
15228 if test -z "$ac_cpp_err"; then
15229 ac_header_preproc
=yes
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.
$ac_ext >&5
15234 ac_header_preproc
=no
15236 rm -f conftest.err conftest.
$ac_ext
15237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15238 echo "${ECHO_T}$ac_header_preproc" >&6
15240 # So? What about this header?
15241 case $ac_header_compiler:$ac_header_preproc in
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15249 ## ------------------------------------ ##
15250 ## Report this to bug-autoconf@gnu.org. ##
15251 ## ------------------------------------ ##
15254 sed "s/^/$as_me: WARNING: /" >&2
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15265 ## ------------------------------------ ##
15266 ## Report this to bug-autoconf@gnu.org. ##
15267 ## ------------------------------------ ##
15270 sed "s/^/$as_me: WARNING: /" >&2
15273 echo "$as_me:$LINENO: checking for $ac_header" >&5
15274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 eval "$as_ac_Header=$ac_header_preproc"
15280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15285 cat >>confdefs.h
<<_ACEOF
15286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15291 for ac_header
in kerberos
/des.h
15293 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15295 echo "$as_me:$LINENO: checking for $ac_header" >&5
15296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15303 # Is the header compilable?
15304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15306 cat >conftest.
$ac_ext <<_ACEOF
15307 #line $LINENO "configure"
15310 cat confdefs.h
>>conftest.
$ac_ext
15311 cat >>conftest.
$ac_ext <<_ACEOF
15312 /* end confdefs.h. */
15313 $ac_includes_default
15314 #include <$ac_header>
15316 rm -f conftest.
$ac_objext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318 (eval $ac_compile) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try
='test -s conftest.$ac_objext'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_header_compiler
=yes
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.
$ac_ext >&5
15333 ac_header_compiler
=no
15335 rm -f conftest.
$ac_objext conftest.
$ac_ext
15336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15337 echo "${ECHO_T}$ac_header_compiler" >&6
15339 # Is the header present?
15340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15342 cat >conftest.
$ac_ext <<_ACEOF
15343 #line $LINENO "configure"
15346 cat confdefs.h
>>conftest.
$ac_ext
15347 cat >>conftest.
$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 #include <$ac_header>
15351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15352 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15354 grep -v '^ *+' conftest.er1
>conftest.err
15356 cat conftest.err
>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } >/dev
/null
; then
15359 if test -s conftest.err
; then
15360 ac_cpp_err
=$ac_c_preproc_warn_flag
15367 if test -z "$ac_cpp_err"; then
15368 ac_header_preproc
=yes
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.
$ac_ext >&5
15373 ac_header_preproc
=no
15375 rm -f conftest.err conftest.
$ac_ext
15376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15377 echo "${ECHO_T}$ac_header_preproc" >&6
15379 # So? What about this header?
15380 case $ac_header_compiler:$ac_header_preproc in
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15388 ## ------------------------------------ ##
15389 ## Report this to bug-autoconf@gnu.org. ##
15390 ## ------------------------------------ ##
15393 sed "s/^/$as_me: WARNING: /" >&2
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15404 ## ------------------------------------ ##
15405 ## Report this to bug-autoconf@gnu.org. ##
15406 ## ------------------------------------ ##
15409 sed "s/^/$as_me: WARNING: /" >&2
15412 echo "$as_me:$LINENO: checking for $ac_header" >&5
15413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 eval "$as_ac_Header=$ac_header_preproc"
15419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15424 cat >>confdefs.h
<<_ACEOF
15425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15441 for ac_header
in krb.h
15443 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15445 echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15453 # Is the header compilable?
15454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15456 cat >conftest.
$ac_ext <<_ACEOF
15457 #line $LINENO "configure"
15460 cat confdefs.h
>>conftest.
$ac_ext
15461 cat >>conftest.
$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 $ac_includes_default
15464 #include <$ac_header>
15466 rm -f conftest.
$ac_objext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468 (eval $ac_compile) 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try
='test -s conftest.$ac_objext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_header_compiler
=yes
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.
$ac_ext >&5
15483 ac_header_compiler
=no
15485 rm -f conftest.
$ac_objext conftest.
$ac_ext
15486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15487 echo "${ECHO_T}$ac_header_compiler" >&6
15489 # Is the header present?
15490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15492 cat >conftest.
$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15496 cat confdefs.h
>>conftest.
$ac_ext
15497 cat >>conftest.
$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 #include <$ac_header>
15501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15502 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15504 grep -v '^ *+' conftest.er1
>conftest.err
15506 cat conftest.err
>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } >/dev
/null
; then
15509 if test -s conftest.err
; then
15510 ac_cpp_err
=$ac_c_preproc_warn_flag
15517 if test -z "$ac_cpp_err"; then
15518 ac_header_preproc
=yes
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.
$ac_ext >&5
15523 ac_header_preproc
=no
15525 rm -f conftest.err conftest.
$ac_ext
15526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15527 echo "${ECHO_T}$ac_header_preproc" >&6
15529 # So? What about this header?
15530 case $ac_header_compiler:$ac_header_preproc in
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15538 ## ------------------------------------ ##
15539 ## Report this to bug-autoconf@gnu.org. ##
15540 ## ------------------------------------ ##
15543 sed "s/^/$as_me: WARNING: /" >&2
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15554 ## ------------------------------------ ##
15555 ## Report this to bug-autoconf@gnu.org. ##
15556 ## ------------------------------------ ##
15559 sed "s/^/$as_me: WARNING: /" >&2
15562 echo "$as_me:$LINENO: checking for $ac_header" >&5
15563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 eval "$as_ac_Header=$ac_header_preproc"
15569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15574 cat >>confdefs.h
<<_ACEOF
15575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15580 for ac_header
in kerberosIV
/krb.h
15582 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15584 echo "$as_me:$LINENO: checking for $ac_header" >&5
15585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15592 # Is the header compilable?
15593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15595 cat >conftest.
$ac_ext <<_ACEOF
15596 #line $LINENO "configure"
15599 cat confdefs.h
>>conftest.
$ac_ext
15600 cat >>conftest.
$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 $ac_includes_default
15603 #include <$ac_header>
15605 rm -f conftest.
$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try
='test -s conftest.$ac_objext'
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_header_compiler
=yes
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.
$ac_ext >&5
15622 ac_header_compiler
=no
15624 rm -f conftest.
$ac_objext conftest.
$ac_ext
15625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15626 echo "${ECHO_T}$ac_header_compiler" >&6
15628 # Is the header present?
15629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15631 cat >conftest.
$ac_ext <<_ACEOF
15632 #line $LINENO "configure"
15635 cat confdefs.h
>>conftest.
$ac_ext
15636 cat >>conftest.
$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 #include <$ac_header>
15640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15641 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15643 grep -v '^ *+' conftest.er1
>conftest.err
15645 cat conftest.err
>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } >/dev
/null
; then
15648 if test -s conftest.err
; then
15649 ac_cpp_err
=$ac_c_preproc_warn_flag
15656 if test -z "$ac_cpp_err"; then
15657 ac_header_preproc
=yes
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.
$ac_ext >&5
15662 ac_header_preproc
=no
15664 rm -f conftest.err conftest.
$ac_ext
15665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15666 echo "${ECHO_T}$ac_header_preproc" >&6
15668 # So? What about this header?
15669 case $ac_header_compiler:$ac_header_preproc in
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15677 ## ------------------------------------ ##
15678 ## Report this to bug-autoconf@gnu.org. ##
15679 ## ------------------------------------ ##
15682 sed "s/^/$as_me: WARNING: /" >&2
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15693 ## ------------------------------------ ##
15694 ## Report this to bug-autoconf@gnu.org. ##
15695 ## ------------------------------------ ##
15698 sed "s/^/$as_me: WARNING: /" >&2
15701 echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 eval "$as_ac_Header=$ac_header_preproc"
15708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15713 cat >>confdefs.h
<<_ACEOF
15714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15719 for ac_header
in kerberos
/krb.h
15721 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15723 echo "$as_me:$LINENO: checking for $ac_header" >&5
15724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15731 # Is the header compilable?
15732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15734 cat >conftest.
$ac_ext <<_ACEOF
15735 #line $LINENO "configure"
15738 cat confdefs.h
>>conftest.
$ac_ext
15739 cat >>conftest.
$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15742 #include <$ac_header>
15744 rm -f conftest.
$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try
='test -s conftest.$ac_objext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_header_compiler
=yes
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.
$ac_ext >&5
15761 ac_header_compiler
=no
15763 rm -f conftest.
$ac_objext conftest.
$ac_ext
15764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15765 echo "${ECHO_T}$ac_header_compiler" >&6
15767 # Is the header present?
15768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15770 cat >conftest.
$ac_ext <<_ACEOF
15771 #line $LINENO "configure"
15774 cat confdefs.h
>>conftest.
$ac_ext
15775 cat >>conftest.
$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 #include <$ac_header>
15779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15780 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15782 grep -v '^ *+' conftest.er1
>conftest.err
15784 cat conftest.err
>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } >/dev
/null
; then
15787 if test -s conftest.err
; then
15788 ac_cpp_err
=$ac_c_preproc_warn_flag
15795 if test -z "$ac_cpp_err"; then
15796 ac_header_preproc
=yes
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.
$ac_ext >&5
15801 ac_header_preproc
=no
15803 rm -f conftest.err conftest.
$ac_ext
15804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15805 echo "${ECHO_T}$ac_header_preproc" >&6
15807 # So? What about this header?
15808 case $ac_header_compiler:$ac_header_preproc in
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15816 ## ------------------------------------ ##
15817 ## Report this to bug-autoconf@gnu.org. ##
15818 ## ------------------------------------ ##
15821 sed "s/^/$as_me: WARNING: /" >&2
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 ## ------------------------------------ ##
15833 ## Report this to bug-autoconf@gnu.org. ##
15834 ## ------------------------------------ ##
15837 sed "s/^/$as_me: WARNING: /" >&2
15840 echo "$as_me:$LINENO: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 eval "$as_ac_Header=$ac_header_preproc"
15847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15852 cat >>confdefs.h
<<_ACEOF
15853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15870 for ac_header
in com_err.h
15872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15874 echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15882 # Is the header compilable?
15883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15885 cat >conftest.
$ac_ext <<_ACEOF
15886 #line $LINENO "configure"
15889 cat confdefs.h
>>conftest.
$ac_ext
15890 cat >>conftest.
$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <$ac_header>
15895 rm -f conftest.
$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897 (eval $ac_compile) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try
='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler
=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.
$ac_ext >&5
15912 ac_header_compiler
=no
15914 rm -f conftest.
$ac_objext conftest.
$ac_ext
15915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916 echo "${ECHO_T}$ac_header_compiler" >&6
15918 # Is the header present?
15919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15921 cat >conftest.
$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15925 cat confdefs.h
>>conftest.
$ac_ext
15926 cat >>conftest.
$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 #include <$ac_header>
15930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15931 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15933 grep -v '^ *+' conftest.er1
>conftest.err
15935 cat conftest.err
>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } >/dev
/null
; then
15938 if test -s conftest.err
; then
15939 ac_cpp_err
=$ac_c_preproc_warn_flag
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc
=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15952 ac_header_preproc
=no
15954 rm -f conftest.err conftest.
$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6
15958 # So? What about this header?
15959 case $ac_header_compiler:$ac_header_preproc in
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15967 ## ------------------------------------ ##
15968 ## Report this to bug-autoconf@gnu.org. ##
15969 ## ------------------------------------ ##
15972 sed "s/^/$as_me: WARNING: /" >&2
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15983 ## ------------------------------------ ##
15984 ## Report this to bug-autoconf@gnu.org. ##
15985 ## ------------------------------------ ##
15988 sed "s/^/$as_me: WARNING: /" >&2
15991 echo "$as_me:$LINENO: checking for $ac_header" >&5
15992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 eval "$as_ac_Header=$ac_header_preproc"
15998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16003 cat >>confdefs.h
<<_ACEOF
16004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16013 # Solaris requires -lintl if you want strerror (which calls dgettext)
16014 # to return localized messages.
16016 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16017 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16018 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_check_lib_save_LIBS
=$LIBS
16022 LIBS
="-lintl $LIBS"
16023 cat >conftest.
$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16027 cat confdefs.h
>>conftest.
$ac_ext
16028 cat >>conftest.
$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16031 /* Override any gcc2 internal prototype to avoid an error. */
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16046 rm -f conftest.
$ac_objext conftest
$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try
='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_cv_lib_intl_dgettext
=yes
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.
$ac_ext >&5
16063 ac_cv_lib_intl_dgettext
=no
16065 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16066 LIBS
=$ac_check_lib_save_LIBS
16068 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16069 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16070 if test $ac_cv_lib_intl_dgettext = yes; then
16071 cat >>confdefs.h
<<_ACEOF
16072 #define HAVE_LIBINTL 1
16075 LIBS
="-lintl $LIBS"
16080 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16081 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16082 if test "${emacs_cv_localtime_cache+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 if test x
$ac_cv_func_tzset = xyes
; then
16086 if test "$cross_compiling" = yes; then
16087 # If we have tzset, assume the worst when cross-compiling.
16088 emacs_cv_localtime_cache
=yes
16090 cat >conftest.
$ac_ext <<_ACEOF
16091 #line $LINENO "configure"
16094 cat confdefs.h
>>conftest.
$ac_ext
16095 cat >>conftest.
$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16098 extern char **environ;
16102 for (to = from = environ; (*to = *from); from++)
16103 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16106 char TZ_GMT0[] = "TZ=GMT0";
16107 char TZ_PST8[] = "TZ=PST8";
16110 time_t now = time ((time_t *) 0);
16111 int hour_GMT0, hour_unset;
16112 if (putenv (TZ_GMT0) != 0)
16114 hour_GMT0 = localtime (&now)->tm_hour;
16116 hour_unset = localtime (&now)->tm_hour;
16117 if (putenv (TZ_PST8) != 0)
16119 if (localtime (&now)->tm_hour == hour_GMT0)
16122 if (localtime (&now)->tm_hour != hour_unset)
16127 rm -f conftest
$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129 (eval $ac_link) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 emacs_cv_localtime_cache
=no
16140 echo "$as_me: program exited with status $ac_status" >&5
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.
$ac_ext >&5
16144 ( exit $ac_status )
16145 emacs_cv_localtime_cache
=yes
16147 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16150 # If we lack tzset, report that localtime does not cache TZ,
16151 # since we can't invalidate the cache if we don't have tzset.
16152 emacs_cv_localtime_cache
=no
16155 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16156 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16157 if test $emacs_cv_localtime_cache = yes; then
16159 cat >>confdefs.h
<<\_ACEOF
16160 #define LOCALTIME_CACHE 1
16165 if test "x$HAVE_TIMEVAL" = xyes
; then
16167 for ac_func
in gettimeofday
16169 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16170 echo "$as_me:$LINENO: checking for $ac_func" >&5
16171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16172 if eval "test \"\${$as_ac_var+set}\" = set"; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 cat >conftest.
$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16179 cat confdefs.h
>>conftest.
$ac_ext
16180 cat >>conftest.
$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 /* System header to define __stub macros and hopefully few prototypes,
16183 which can conflict with char $ac_func (); below.
16184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16185 <limits.h> exists even on freestanding compilers. */
16187 # include <limits.h>
16189 # include <assert.h>
16191 /* Override any gcc2 internal prototype to avoid an error. */
16196 /* We use char because int might match the return type of a gcc2
16197 builtin and then its argument prototype would still apply. */
16199 /* The GNU C library defines this for functions which it implements
16200 to always fail with ENOSYS. Some functions are actually named
16201 something starting with __ and the normal name is an alias. */
16202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16205 char (*f) () = $ac_func;
16214 return f != $ac_func;
16219 rm -f conftest.
$ac_objext conftest
$ac_exeext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16221 (eval $ac_link) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try
='test -s conftest$ac_exeext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 eval "$as_ac_var=yes"
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.
$ac_ext >&5
16236 eval "$as_ac_var=no"
16238 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16242 if test `eval echo '${'$as_ac_var'}'` = yes; then
16243 cat >>confdefs.h
<<_ACEOF
16244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16250 if test $ac_cv_func_gettimeofday = yes; then
16251 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16252 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16253 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 cat >conftest.
$ac_ext <<_ACEOF
16257 #line $LINENO "configure"
16260 cat confdefs.h
>>conftest.
$ac_ext
16261 cat >>conftest.
$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16264 #ifdef TIME_WITH_SYS_TIME
16265 #include <sys/time.h>
16268 #ifdef HAVE_SYS_TIME_H
16269 #include <sys/time.h>
16277 struct timeval time;
16278 gettimeofday (&time, 0);
16283 rm -f conftest.
$ac_objext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285 (eval $ac_compile) 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
16289 { ac_try
='test -s conftest.$ac_objext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 emacs_cv_gettimeofday_two_arguments
=yes
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.
$ac_ext >&5
16300 emacs_cv_gettimeofday_two_arguments
=no
16302 rm -f conftest.
$ac_objext conftest.
$ac_ext
16304 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16305 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16306 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16308 cat >>confdefs.h
<<\_ACEOF
16309 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16316 if test "$ac_cv_func_gettimeofday" = yes; then
16317 echo "$as_me:$LINENO: checking for struct timezone" >&5
16318 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16319 if test "${emacs_cv_struct_timezone+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 cat >conftest.
$ac_ext <<_ACEOF
16323 #line $LINENO "configure"
16326 cat confdefs.h
>>conftest.
$ac_ext
16327 cat >>conftest.
$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16329 #include <sys/time.h>
16333 struct timezone tz;
16338 rm -f conftest.
$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340 (eval $ac_compile) 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try
='test -s conftest.$ac_objext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 if test "$cross_compiling" = yes; then
16351 emacs_cv_struct_timezone
=yes
16353 cat >conftest.
$ac_ext <<_ACEOF
16354 #line $LINENO "configure"
16357 cat confdefs.h
>>conftest.
$ac_ext
16358 cat >>conftest.
$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16361 #ifdef TIME_WITH_SYS_TIME
16362 #include <sys/time.h>
16365 #ifdef HAVE_SYS_TIME_H
16366 #include <sys/time.h>
16372 struct timeval time;
16373 struct timezone dummy;
16374 exit (gettimeofday (&time, &dummy));
16377 rm -f conftest
$ac_exeext
16378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16379 (eval $ac_link) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16388 emacs_cv_struct_timezone
=yes
16390 echo "$as_me: program exited with status $ac_status" >&5
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.
$ac_ext >&5
16394 ( exit $ac_status )
16395 emacs_cv_struct_timezone
=no
16397 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.
$ac_ext >&5
16403 emacs_cv_struct_timezone
=no
16405 rm -f conftest.
$ac_objext conftest.
$ac_ext
16407 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16408 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16412 echo "$as_me:$LINENO: checking for socket" >&5
16413 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16414 if test "${ac_cv_func_socket+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 cat >conftest.
$ac_ext <<_ACEOF
16418 #line $LINENO "configure"
16421 cat confdefs.h
>>conftest.
$ac_ext
16422 cat >>conftest.
$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 /* System header to define __stub macros and hopefully few prototypes,
16425 which can conflict with char socket (); below.
16426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16427 <limits.h> exists even on freestanding compilers. */
16429 # include <limits.h>
16431 # include <assert.h>
16433 /* Override any gcc2 internal prototype to avoid an error. */
16438 /* We use char because int might match the return type of a gcc2
16439 builtin and then its argument prototype would still apply. */
16441 /* The GNU C library defines this for functions which it implements
16442 to always fail with ENOSYS. Some functions are actually named
16443 something starting with __ and the normal name is an alias. */
16444 #if defined (__stub_socket) || defined (__stub___socket)
16447 char (*f) () = socket;
16456 return f != socket;
16461 rm -f conftest.
$ac_objext conftest
$ac_exeext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16463 (eval $ac_link) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try
='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_cv_func_socket
=yes
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.
$ac_ext >&5
16478 ac_cv_func_socket
=no
16480 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16482 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16483 echo "${ECHO_T}$ac_cv_func_socket" >&6
16484 if test $ac_cv_func_socket = yes; then
16490 if test $ok_so_far = yes; then
16491 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16492 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16493 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16494 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16498 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16500 # Is the header compilable?
16501 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16502 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16503 cat >conftest.
$ac_ext <<_ACEOF
16504 #line $LINENO "configure"
16507 cat confdefs.h
>>conftest.
$ac_ext
16508 cat >>conftest.
$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16510 $ac_includes_default
16511 #include <netinet/in.h>
16513 rm -f conftest.
$ac_objext
16514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515 (eval $ac_compile) 2>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try
='test -s conftest.$ac_objext'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_header_compiler
=yes
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.
$ac_ext >&5
16530 ac_header_compiler
=no
16532 rm -f conftest.
$ac_objext conftest.
$ac_ext
16533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16534 echo "${ECHO_T}$ac_header_compiler" >&6
16536 # Is the header present?
16537 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16538 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16539 cat >conftest.
$ac_ext <<_ACEOF
16540 #line $LINENO "configure"
16543 cat confdefs.h
>>conftest.
$ac_ext
16544 cat >>conftest.
$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 #include <netinet/in.h>
16548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16549 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16551 grep -v '^ *+' conftest.er1
>conftest.err
16553 cat conftest.err
>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } >/dev
/null
; then
16556 if test -s conftest.err
; then
16557 ac_cpp_err
=$ac_c_preproc_warn_flag
16564 if test -z "$ac_cpp_err"; then
16565 ac_header_preproc
=yes
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.
$ac_ext >&5
16570 ac_header_preproc
=no
16572 rm -f conftest.err conftest.
$ac_ext
16573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16574 echo "${ECHO_T}$ac_header_preproc" >&6
16576 # So? What about this header?
16577 case $ac_header_compiler:$ac_header_preproc in
16579 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16580 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16582 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16585 ## ------------------------------------ ##
16586 ## Report this to bug-autoconf@gnu.org. ##
16587 ## ------------------------------------ ##
16590 sed "s/^/$as_me: WARNING: /" >&2
16593 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16594 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16596 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16597 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16598 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16601 ## ------------------------------------ ##
16602 ## Report this to bug-autoconf@gnu.org. ##
16603 ## ------------------------------------ ##
16606 sed "s/^/$as_me: WARNING: /" >&2
16609 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16610 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16611 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 ac_cv_header_netinet_in_h
=$ac_header_preproc
16616 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16617 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16620 if test $ac_cv_header_netinet_in_h = yes; then
16628 if test $ok_so_far = yes; then
16629 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16630 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16631 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16632 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16636 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16638 # Is the header compilable?
16639 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16640 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16641 cat >conftest.
$ac_ext <<_ACEOF
16642 #line $LINENO "configure"
16645 cat confdefs.h
>>conftest.
$ac_ext
16646 cat >>conftest.
$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 $ac_includes_default
16649 #include <arpa/inet.h>
16651 rm -f conftest.
$ac_objext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16653 (eval $ac_compile) 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } &&
16657 { ac_try
='test -s conftest.$ac_objext'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 ac_header_compiler
=yes
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.
$ac_ext >&5
16668 ac_header_compiler
=no
16670 rm -f conftest.
$ac_objext conftest.
$ac_ext
16671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16672 echo "${ECHO_T}$ac_header_compiler" >&6
16674 # Is the header present?
16675 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16676 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16677 cat >conftest.
$ac_ext <<_ACEOF
16678 #line $LINENO "configure"
16681 cat confdefs.h
>>conftest.
$ac_ext
16682 cat >>conftest.
$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <arpa/inet.h>
16686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16687 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16689 grep -v '^ *+' conftest.er1
>conftest.err
16691 cat conftest.err
>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } >/dev
/null
; then
16694 if test -s conftest.err
; then
16695 ac_cpp_err
=$ac_c_preproc_warn_flag
16702 if test -z "$ac_cpp_err"; then
16703 ac_header_preproc
=yes
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.
$ac_ext >&5
16708 ac_header_preproc
=no
16710 rm -f conftest.err conftest.
$ac_ext
16711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16712 echo "${ECHO_T}$ac_header_preproc" >&6
16714 # So? What about this header?
16715 case $ac_header_compiler:$ac_header_preproc in
16717 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16718 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16719 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16720 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16723 ## ------------------------------------ ##
16724 ## Report this to bug-autoconf@gnu.org. ##
16725 ## ------------------------------------ ##
16728 sed "s/^/$as_me: WARNING: /" >&2
16731 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16732 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16734 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16736 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16739 ## ------------------------------------ ##
16740 ## Report this to bug-autoconf@gnu.org. ##
16741 ## ------------------------------------ ##
16744 sed "s/^/$as_me: WARNING: /" >&2
16747 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16748 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16749 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 ac_cv_header_arpa_inet_h
=$ac_header_preproc
16754 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16755 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16758 if test $ac_cv_header_arpa_inet_h = yes; then
16766 if test $ok_so_far = yes; then
16768 cat >>confdefs.h
<<\_ACEOF
16769 #define HAVE_INET_SOCKETS 1
16774 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16776 cat >>confdefs.h
<<\_ACEOF
16777 #define HAVE_AIX_SMT_EXP 1
16782 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16783 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16784 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16785 echo "$as_me:$LINENO: result: yes" >&5
16786 echo "${ECHO_T}yes" >&6
16788 cat >>confdefs.h
<<\_ACEOF
16789 #define HAVE_DEV_PTMX 1
16793 echo "$as_me:$LINENO: result: no" >&5
16794 echo "${ECHO_T}no" >&6
16797 echo "$as_me:$LINENO: checking for pid_t" >&5
16798 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16799 if test "${ac_cv_type_pid_t+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 cat >conftest.
$ac_ext <<_ACEOF
16803 #line $LINENO "configure"
16806 cat confdefs.h
>>conftest.
$ac_ext
16807 cat >>conftest.
$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 $ac_includes_default
16815 if (sizeof (pid_t))
16821 rm -f conftest.
$ac_objext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16823 (eval $ac_compile) 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } &&
16827 { ac_try
='test -s conftest.$ac_objext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 ac_cv_type_pid_t
=yes
16835 echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.
$ac_ext >&5
16838 ac_cv_type_pid_t
=no
16840 rm -f conftest.
$ac_objext conftest.
$ac_ext
16842 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16843 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16844 if test $ac_cv_type_pid_t = yes; then
16848 cat >>confdefs.h
<<_ACEOF
16856 for ac_header
in unistd.h vfork.h
16858 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16860 echo "$as_me:$LINENO: checking for $ac_header" >&5
16861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16868 # Is the header compilable?
16869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16871 cat >conftest.
$ac_ext <<_ACEOF
16872 #line $LINENO "configure"
16875 cat confdefs.h
>>conftest.
$ac_ext
16876 cat >>conftest.
$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 $ac_includes_default
16879 #include <$ac_header>
16881 rm -f conftest.
$ac_objext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883 (eval $ac_compile) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try
='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_header_compiler
=yes
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.
$ac_ext >&5
16898 ac_header_compiler
=no
16900 rm -f conftest.
$ac_objext conftest.
$ac_ext
16901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16902 echo "${ECHO_T}$ac_header_compiler" >&6
16904 # Is the header present?
16905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16907 cat >conftest.
$ac_ext <<_ACEOF
16908 #line $LINENO "configure"
16911 cat confdefs.h
>>conftest.
$ac_ext
16912 cat >>conftest.
$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 #include <$ac_header>
16916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16917 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16919 grep -v '^ *+' conftest.er1
>conftest.err
16921 cat conftest.err
>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } >/dev
/null
; then
16924 if test -s conftest.err
; then
16925 ac_cpp_err
=$ac_c_preproc_warn_flag
16932 if test -z "$ac_cpp_err"; then
16933 ac_header_preproc
=yes
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.
$ac_ext >&5
16938 ac_header_preproc
=no
16940 rm -f conftest.err conftest.
$ac_ext
16941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16942 echo "${ECHO_T}$ac_header_preproc" >&6
16944 # So? What about this header?
16945 case $ac_header_compiler:$ac_header_preproc in
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16953 ## ------------------------------------ ##
16954 ## Report this to bug-autoconf@gnu.org. ##
16955 ## ------------------------------------ ##
16958 sed "s/^/$as_me: WARNING: /" >&2
16961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16969 ## ------------------------------------ ##
16970 ## Report this to bug-autoconf@gnu.org. ##
16971 ## ------------------------------------ ##
16974 sed "s/^/$as_me: WARNING: /" >&2
16977 echo "$as_me:$LINENO: checking for $ac_header" >&5
16978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 eval "$as_ac_Header=$ac_header_preproc"
16984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16989 cat >>confdefs.h
<<_ACEOF
16990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16999 for ac_func
in fork vfork
17001 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17002 echo "$as_me:$LINENO: checking for $ac_func" >&5
17003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17004 if eval "test \"\${$as_ac_var+set}\" = set"; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 cat >conftest.
$ac_ext <<_ACEOF
17008 #line $LINENO "configure"
17011 cat confdefs.h
>>conftest.
$ac_ext
17012 cat >>conftest.
$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 /* System header to define __stub macros and hopefully few prototypes,
17015 which can conflict with char $ac_func (); below.
17016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17017 <limits.h> exists even on freestanding compilers. */
17019 # include <limits.h>
17021 # include <assert.h>
17023 /* Override any gcc2 internal prototype to avoid an error. */
17028 /* We use char because int might match the return type of a gcc2
17029 builtin and then its argument prototype would still apply. */
17031 /* The GNU C library defines this for functions which it implements
17032 to always fail with ENOSYS. Some functions are actually named
17033 something starting with __ and the normal name is an alias. */
17034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17037 char (*f) () = $ac_func;
17046 return f != $ac_func;
17051 rm -f conftest.
$ac_objext conftest
$ac_exeext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17053 (eval $ac_link) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try
='test -s conftest$ac_exeext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 eval "$as_ac_var=yes"
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.
$ac_ext >&5
17068 eval "$as_ac_var=no"
17070 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17074 if test `eval echo '${'$as_ac_var'}'` = yes; then
17075 cat >>confdefs.h
<<_ACEOF
17076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17082 if test "x$ac_cv_func_fork" = xyes
; then
17083 echo "$as_me:$LINENO: checking for working fork" >&5
17084 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17085 if test "${ac_cv_func_fork_works+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 if test "$cross_compiling" = yes; then
17089 ac_cv_func_fork_works
=cross
17091 cat >conftest.
$ac_ext <<_ACEOF
17092 /* By Ruediger Kuhlmann. */
17093 #include <sys/types.h>
17095 # include <unistd.h>
17097 /* Some systems only have a dummy stub for fork() */
17105 rm -f conftest
$ac_exeext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17107 (eval $ac_link) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_func_fork_works
=yes
17118 echo "$as_me: program exited with status $ac_status" >&5
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.
$ac_ext >&5
17122 ( exit $ac_status )
17123 ac_cv_func_fork_works
=no
17125 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17128 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17129 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17132 ac_cv_func_fork_works
=$ac_cv_func_fork
17134 if test "x$ac_cv_func_fork_works" = xcross
; then
17136 *-*-amigaos* |
*-*-msdosdjgpp*)
17137 # Override, as these systems have only a dummy fork() stub
17138 ac_cv_func_fork_works
=no
17141 ac_cv_func_fork_works
=yes
17144 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17145 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17147 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17148 if test "x$ac_cv_func_vfork" = xyes
; then
17149 echo "$as_me:$LINENO: checking for working vfork" >&5
17150 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17151 if test "${ac_cv_func_vfork_works+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17154 if test "$cross_compiling" = yes; then
17155 ac_cv_func_vfork_works
=cross
17157 cat >conftest.
$ac_ext <<_ACEOF
17158 #line $LINENO "configure"
17161 cat confdefs.h
>>conftest.
$ac_ext
17162 cat >>conftest.
$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 /* Thanks to Paul Eggert for this test. */
17166 #include <stdlib.h>
17167 #include <sys/types.h>
17168 #include <sys/stat.h>
17169 #include <sys/wait.h>
17171 # include <unistd.h>
17174 # include <vfork.h>
17176 /* On some sparc systems, changes by the child to local and incoming
17177 argument registers are propagated back to the parent. The compiler
17178 is told about this with #include <vfork.h>, but some compilers
17179 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17180 static variable whose address is put into a register that is
17181 clobbered by the vfork. */
17184 sparc_address_test (int arg)
17186 sparc_address_test (arg) int arg;
17189 static pid_t child;
17207 pid_t parent = getpid ();
17210 sparc_address_test (0);
17215 /* Here is another test for sparc vfork register problems. This
17216 test uses lots of local variables, at least as many local
17217 variables as main has allocated so far including compiler
17218 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17219 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17220 reuse the register of parent for one of the local variables,
17221 since it will think that parent can't possibly be used any more
17222 in this routine. Assigning to the local variable will thus
17223 munge parent in the parent process. */
17225 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17226 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17227 /* Convince the compiler that p..p7 are live; otherwise, it might
17228 use the same hardware register for all 8 local variables. */
17229 if (p != p1 || p != p2 || p != p3 || p != p4
17230 || p != p5 || p != p6 || p != p7)
17233 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17234 from child file descriptors. If the child closes a descriptor
17235 before it execs or exits, this munges the parent's descriptor
17236 as well. Test for this by closing stdout in the child. */
17237 _exit(close(fileno(stdout)) != 0);
17242 while (wait(&status) != child)
17245 /* Was there some problem with vforking? */
17248 /* Did the child fail? (This shouldn't happen.) */
17251 /* Did the vfork/compiler bug occur? */
17252 || parent != getpid()
17254 /* Did the file descriptor bug occur? */
17255 || fstat(fileno(stdout), &st) != 0
17260 rm -f conftest
$ac_exeext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17262 (eval $ac_link) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_func_vfork_works
=yes
17273 echo "$as_me: program exited with status $ac_status" >&5
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.
$ac_ext >&5
17277 ( exit $ac_status )
17278 ac_cv_func_vfork_works
=no
17280 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17283 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17284 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17287 if test "x$ac_cv_func_fork_works" = xcross
; then
17288 ac_cv_func_vfork_works
=ac_cv_func_vfork
17289 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17290 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17293 if test "x$ac_cv_func_vfork_works" = xyes
; then
17295 cat >>confdefs.h
<<\_ACEOF
17296 #define HAVE_WORKING_VFORK 1
17301 cat >>confdefs.h
<<\_ACEOF
17306 if test "x$ac_cv_func_fork_works" = xyes
; then
17308 cat >>confdefs.h
<<\_ACEOF
17309 #define HAVE_WORKING_FORK 1
17315 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17316 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17317 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17320 cat >conftest.
$ac_ext <<_ACEOF
17321 #line $LINENO "configure"
17324 cat confdefs.h
>>conftest.
$ac_ext
17325 cat >>conftest.
$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 #include <langinfo.h>
17331 char* cs = nl_langinfo(CODESET);
17336 rm -f conftest.
$ac_objext conftest
$ac_exeext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17338 (eval $ac_link) 2>&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try
='test -s conftest$ac_exeext'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 emacs_cv_langinfo_codeset
=yes
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.
$ac_ext >&5
17353 emacs_cv_langinfo_codeset
=no
17355 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17358 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17359 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17360 if test $emacs_cv_langinfo_codeset = yes; then
17362 cat >>confdefs.h
<<\_ACEOF
17363 #define HAVE_LANGINFO_CODESET 1
17368 echo "$as_me:$LINENO: checking for size_t" >&5
17369 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17370 if test "${ac_cv_type_size_t+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17373 cat >conftest.
$ac_ext <<_ACEOF
17374 #line $LINENO "configure"
17377 cat confdefs.h
>>conftest.
$ac_ext
17378 cat >>conftest.
$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17380 $ac_includes_default
17386 if (sizeof (size_t))
17392 rm -f conftest.
$ac_objext
17393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17394 (eval $ac_compile) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try
='test -s conftest.$ac_objext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_type_size_t
=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.
$ac_ext >&5
17409 ac_cv_type_size_t
=no
17411 rm -f conftest.
$ac_objext conftest.
$ac_ext
17413 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17414 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17415 if test $ac_cv_type_size_t = yes; then
17417 cat >>confdefs.h
<<_ACEOF
17418 #define HAVE_SIZE_T 1
17425 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17426 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17427 if test "${emacs_cv_c_restrict+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 cat >conftest.
$ac_ext <<_ACEOF
17431 #line $LINENO "configure"
17434 cat confdefs.h
>>conftest.
$ac_ext
17435 cat >>conftest.
$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 void fred (int *restrict x);
17446 rm -f conftest.
$ac_objext
17447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17448 (eval $ac_compile) 2>&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try
='test -s conftest.$ac_objext'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
17458 emacs_cv_c_restrict
=yes
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.
$ac_ext >&5
17463 cat >conftest.
$ac_ext <<_ACEOF
17464 #line $LINENO "configure"
17467 cat confdefs.h
>>conftest.
$ac_ext
17468 cat >>conftest.
$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 void fred (int *__restrict x);
17479 rm -f conftest.
$ac_objext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17481 (eval $ac_compile) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try
='test -s conftest.$ac_objext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 emacs_cv_c_restrict
=__restrict
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.
$ac_ext >&5
17496 emacs_cv_c_restrict
=no
17498 rm -f conftest.
$ac_objext conftest.
$ac_ext
17500 rm -f conftest.
$ac_objext conftest.
$ac_ext
17502 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17503 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17504 case "$emacs_cv_c_restrict" in
17505 yes) emacs_restrict
=restrict
;;
17506 no
) emacs_restrict
="";;
17507 *) emacs_restrict
="$emacs_cv_c_restrict";;
17509 if test "$emacs_restrict" != __restrict
; then
17511 cat >>confdefs.h
<<_ACEOF
17512 #define __restrict $emacs_restrict
17517 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17518 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17519 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 cat >conftest.
$ac_ext <<_ACEOF
17523 #line $LINENO "configure"
17526 cat confdefs.h
>>conftest.
$ac_ext
17527 cat >>conftest.
$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 void fred (int x[__restrict]);
17538 rm -f conftest.
$ac_objext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17540 (eval $ac_compile) 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try
='test -s conftest.$ac_objext'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 emacs_cv_c_restrict_arr
=yes
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.
$ac_ext >&5
17555 emacs_cv_c_restrict_arr
=no
17557 rm -f conftest.
$ac_objext conftest.
$ac_ext
17559 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17560 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17561 if test "$emacs_cv_c_restrict_arr" = yes; then
17563 cat >>confdefs.h
<<\_ACEOF
17564 #define __restrict_arr __restrict
17570 for ac_header
in nlist.h
17572 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17574 echo "$as_me:$LINENO: checking for $ac_header" >&5
17575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17582 # Is the header compilable?
17583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17585 cat >conftest.
$ac_ext <<_ACEOF
17586 #line $LINENO "configure"
17589 cat confdefs.h
>>conftest.
$ac_ext
17590 cat >>conftest.
$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 $ac_includes_default
17593 #include <$ac_header>
17595 rm -f conftest.
$ac_objext
17596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17597 (eval $ac_compile) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try
='test -s conftest.$ac_objext'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 ac_header_compiler
=yes
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.
$ac_ext >&5
17612 ac_header_compiler
=no
17614 rm -f conftest.
$ac_objext conftest.
$ac_ext
17615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17616 echo "${ECHO_T}$ac_header_compiler" >&6
17618 # Is the header present?
17619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17621 cat >conftest.
$ac_ext <<_ACEOF
17622 #line $LINENO "configure"
17625 cat confdefs.h
>>conftest.
$ac_ext
17626 cat >>conftest.
$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 #include <$ac_header>
17630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17633 grep -v '^ *+' conftest.er1
>conftest.err
17635 cat conftest.err
>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } >/dev
/null
; then
17638 if test -s conftest.err
; then
17639 ac_cpp_err
=$ac_c_preproc_warn_flag
17646 if test -z "$ac_cpp_err"; then
17647 ac_header_preproc
=yes
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.
$ac_ext >&5
17652 ac_header_preproc
=no
17654 rm -f conftest.err conftest.
$ac_ext
17655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17656 echo "${ECHO_T}$ac_header_preproc" >&6
17658 # So? What about this header?
17659 case $ac_header_compiler:$ac_header_preproc in
17661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17667 ## ------------------------------------ ##
17668 ## Report this to bug-autoconf@gnu.org. ##
17669 ## ------------------------------------ ##
17672 sed "s/^/$as_me: WARNING: /" >&2
17675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17683 ## ------------------------------------ ##
17684 ## Report this to bug-autoconf@gnu.org. ##
17685 ## ------------------------------------ ##
17688 sed "s/^/$as_me: WARNING: /" >&2
17691 echo "$as_me:$LINENO: checking for $ac_header" >&5
17692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 eval "$as_ac_Header=$ac_header_preproc"
17698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17703 cat >>confdefs.h
<<_ACEOF
17704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17707 cat >>confdefs.h
<<\_ACEOF
17708 #define NLIST_STRUCT 1
17718 # Set up the CFLAGS for real compilation, so we can substitute it.
17719 CFLAGS
="$REAL_CFLAGS"
17720 CPPFLAGS
="$REAL_CPPFLAGS"
17722 #### Find out which version of Emacs this is.
17723 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17724 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17725 if test x
"${version}" = x
; then
17726 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17727 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17728 { (exit 1); exit 1; }; }
17731 ### Specify what sort of things we'll be editing into Makefile and config.h.
17732 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17768 cat >>confdefs.h
<<_ACEOF
17769 #define EMACS_CONFIGURATION "${canonical}"
17773 cat >>confdefs.h
<<_ACEOF
17774 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17778 cat >>confdefs.h
<<_ACEOF
17779 #define config_machfile "${machfile}"
17783 cat >>confdefs.h
<<_ACEOF
17784 #define config_opsysfile "${opsysfile}"
17788 cat >>confdefs.h
<<_ACEOF
17789 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17793 cat >>confdefs.h
<<_ACEOF
17794 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17798 cat >>confdefs.h
<<_ACEOF
17799 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17803 cat >>confdefs.h
<<_ACEOF
17804 #define UNEXEC_SRC ${UNEXEC_SRC}
17808 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17810 cat >>confdefs.h
<<\_ACEOF
17811 #define HAVE_X_WINDOWS 1
17815 if test "${USE_X_TOOLKIT}" != "none" ; then
17817 cat >>confdefs.h
<<\_ACEOF
17818 #define USE_X_TOOLKIT 1
17822 if test "${HAVE_X11}" = "yes" ; then
17824 cat >>confdefs.h
<<\_ACEOF
17829 if test "${HAVE_XFREE386}" = "yes" ; then
17831 cat >>confdefs.h
<<\_ACEOF
17832 #define HAVE_XFREE386 1
17836 if test "${HAVE_MENUS}" = "yes" ; then
17838 cat >>confdefs.h
<<\_ACEOF
17839 #define HAVE_MENUS 1
17843 if test "${GNU_MALLOC}" = "yes" ; then
17845 cat >>confdefs.h
<<\_ACEOF
17846 #define GNU_MALLOC 1
17850 if test "${REL_ALLOC}" = "yes" ; then
17852 cat >>confdefs.h
<<\_ACEOF
17853 #define REL_ALLOC 1
17862 #### Report on what we decided to do.
17864 Configured for \`${canonical}'.
17866 Where should the build process find the source code? ${srcdir}
17867 What operating system and machine description files should Emacs use?
17868 \`${opsysfile}' and \`${machfile}'
17869 What compiler should emacs be built with? ${CC} ${CFLAGS}
17870 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17871 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17872 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17873 What window system should Emacs use? ${window_system}
17874 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17876 if test -n "${x_includes}"; then
17877 echo " Where do we find X Windows header files? ${x_includes}"
17879 echo " Where do we find X Windows header files? Standard dirs"
17881 if test -n "${x_libraries}"; then
17882 echo " Where do we find X Windows libraries? ${x_libraries}"
17884 echo " Where do we find X Windows libraries? Standard dirs"
17887 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17888 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17889 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17890 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17891 echo " Does Emacs use -lungif? ${HAVE_GIF}"
17892 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17893 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17896 # Remove any trailing slashes in these variables.
17897 test "${prefix}" != NONE
&&
17898 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17899 test "${exec_prefix}" != NONE
&&
17900 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17902 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
17903 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
17904 ## from Makefile.c can correctly provide the arg `-traditional' to the
17907 cat >conftest.
$ac_ext <<_ACEOF
17908 #line $LINENO "configure"
17911 cat confdefs.h
>>conftest.
$ac_ext
17912 cat >>conftest.
$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17917 $EGREP "yes..yes" >/dev
/null
2>&1; then
17918 CPP_NEED_TRADITIONAL
=no
17920 CPP_NEED_TRADITIONAL
=yes
17925 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"
17926 ac_config_commands
="$ac_config_commands default"
17927 cat >confcache
<<\_ACEOF
17928 # This file is a shell script that caches the results of configure
17929 # tests run on this system so they can be shared between configure
17930 # scripts and configure runs, see configure's option --config-cache.
17931 # It is not useful on other systems. If it contains results you don't
17932 # want to keep, you may remove or edit it.
17934 # config.status only pays attention to the cache file if you give it
17935 # the --recheck option to rerun configure.
17937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17939 # following values.
17943 # The following way of writing the cache mishandles newlines in values,
17944 # but we know of no workaround that is simple, portable, and efficient.
17945 # So, don't put newlines in cache variables' values.
17946 # Ultrix sh set writes to stderr and can't be redirected directly,
17947 # and sets the high bit in the cache file unless we assign to the vars.
17950 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17952 # `set' does not quote correctly, so add quotes (double-quote
17953 # substitution turns \\\\ into \\, and sed turns \\ into \).
17956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17959 # `set' quotes correctly as required by POSIX, so do not add quotes.
17961 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17970 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17972 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17973 if test -w $cache_file; then
17974 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17975 cat confcache
>$cache_file
17977 echo "not updating unwritable cache $cache_file"
17982 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17983 # Let make expand exec_prefix.
17984 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17986 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17987 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17988 # trailing colons and then remove the whole line if VPATH becomes empty
17989 # (actually we leave an empty line to preserve line numbers).
17990 if test "x$srcdir" = x.
; then
17991 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17992 s/:*\$(srcdir):*/:/;
17993 s/:*\${srcdir}:*/:/;
17995 s/^\([^=]*=[ ]*\):*/\1/;
18001 DEFS
=-DHAVE_CONFIG_H
18005 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18006 # 1. Remove the extension, and $U if already installed.
18007 ac_i
=`echo "$ac_i" |
18008 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18010 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18011 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18013 LIBOBJS
=$ac_libobjs
18015 LTLIBOBJS
=$ac_ltlibobjs
18019 : ${CONFIG_STATUS=./config.status}
18020 ac_clean_files_save
=$ac_clean_files
18021 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18022 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18023 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18024 cat >$CONFIG_STATUS <<_ACEOF
18026 # Generated by $as_me.
18027 # Run this file to recreate the current configuration.
18028 # Compiler output produced by configure, useful for debugging
18029 # configure, is in config.log if it exists.
18032 ac_cs_recheck=false
18034 SHELL=\${CONFIG_SHELL-$SHELL}
18037 cat >>$CONFIG_STATUS <<\_ACEOF
18038 ## --------------------- ##
18039 ## M4sh Initialization. ##
18040 ## --------------------- ##
18042 # Be Bourne compatible
18043 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18046 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18047 # is contrary to our usage. Disable this feature.
18048 alias -g '${1+"$@"}'='"$@"'
18049 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18053 # Support unset when possible.
18054 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18061 # Work around bugs in pre-3.0 UWIN ksh.
18062 $as_unset ENV MAIL MAILPATH
18069 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18070 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18071 LC_TELEPHONE LC_TIME
18073 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18074 eval $as_var=C
; export $as_var
18080 # Required to use basename.
18081 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18087 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18088 as_basename
=basename
18094 # Name of the executable.
18095 as_me
=`$as_basename "$0" ||
18096 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18097 X"$0" : 'X\(//\)$' \| \
18098 X"$0" : 'X\(/\)$' \| \
18099 . : '\(.\)' 2>/dev/null ||
18101 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18102 /^X\/\(\/\/\)$/{ s//\1/; q; }
18103 /^X\/\(\/\).*/{ s//\1/; q; }
18107 # PATH needs CR, and LINENO needs CR and PATH.
18108 # Avoid depending upon Character Ranges.
18109 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18110 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18111 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18112 as_cr_digits
='0123456789'
18113 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18115 # The user is always right.
18116 if test "${PATH_SEPARATOR+set}" != set; then
18117 echo "#! /bin/sh" >conf$$.sh
18118 echo "exit 0" >>conf$$.sh
18120 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18129 as_lineno_1
=$LINENO
18130 as_lineno_2
=$LINENO
18131 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18132 test "x$as_lineno_1" != "x$as_lineno_2" &&
18133 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18134 # Find who we are. Look in the path if we contain no path at all
18137 *[\\/]* ) as_myself
=$0 ;;
18138 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18139 for as_dir
in $PATH
18142 test -z "$as_dir" && as_dir
=.
18143 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18148 # We did not find ourselves, most probably we were run as `sh COMMAND'
18149 # in which case we are not to be found in the path.
18150 if test "x$as_myself" = x
; then
18153 if test ! -f "$as_myself"; then
18154 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18155 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18156 { (exit 1); exit 1; }; }
18158 case $CONFIG_SHELL in
18160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18161 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18164 test -z "$as_dir" && as_dir
=.
18165 for as_base
in sh bash ksh sh5
; do
18168 if ("$as_dir/$as_base" -c '
18169 as_lineno_1=$LINENO
18170 as_lineno_2=$LINENO
18171 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18172 test "x$as_lineno_1" != "x$as_lineno_2" &&
18173 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18174 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18175 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18176 CONFIG_SHELL
=$as_dir/$as_base
18177 export CONFIG_SHELL
18178 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18186 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18187 # uniformly replaced by the line number. The first 'sed' inserts a
18188 # line-number line before each line; the second 'sed' does the real
18189 # work. The second script uses 'N' to pair each line-number line
18190 # with the numbered line, and appends trailing '-' during
18191 # substitution so that $LINENO is not a special case at line end.
18192 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18193 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18194 sed '=' <$as_myself |
18199 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18202 s,^['$as_cr_digits']*\n,,
18203 ' >$as_me.lineno
&&
18204 chmod +x
$as_me.lineno ||
18205 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18206 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18207 { (exit 1); exit 1; }; }
18209 # Don't try to exec as it changes $[0], causing all sort of problems
18210 # (the dirname of $[0] is not the place where we might find the
18211 # original and so on. Autoconf is especially sensible to this).
18213 # Exit status is that of the last command.
18218 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18219 *c
*,-n*) ECHO_N
= ECHO_C
='
18221 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18222 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18225 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18231 rm -f conf$$ conf$$.exe conf$$.
file
18233 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18234 # We could just check for DJGPP; but this test a) works b) is more generic
18235 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18236 if test -f conf$$.exe
; then
18237 # Don't use ln at all; we don't have any links
18242 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18247 rm -f conf$$ conf$$.exe conf$$.
file
18249 if mkdir
-p .
2>/dev
/null
; then
18255 as_executable_p
="test -f"
18257 # Sed expression to map a string onto a valid CPP name.
18258 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18260 # Sed expression to map a string onto a valid variable name.
18261 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18265 # We need space, tab and new line, in precisely that order.
18275 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18276 # report actual input values of CONFIG_FILES etc. instead of their
18277 # values after options handling. Logging --version etc. is OK.
18281 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18282 ## Running $as_me. ##
18287 This file was extended by $as_me, which was
18288 generated by GNU Autoconf 2.57. Invocation command line was
18290 CONFIG_FILES = $CONFIG_FILES
18291 CONFIG_HEADERS = $CONFIG_HEADERS
18292 CONFIG_LINKS = $CONFIG_LINKS
18293 CONFIG_COMMANDS = $CONFIG_COMMANDS
18297 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18301 # Files that config.status was made for.
18302 if test -n "$ac_config_files"; then
18303 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18306 if test -n "$ac_config_headers"; then
18307 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18310 if test -n "$ac_config_links"; then
18311 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18314 if test -n "$ac_config_commands"; then
18315 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18318 cat >>$CONFIG_STATUS <<\_ACEOF
18321 \`$as_me' instantiates files from templates according to the
18322 current configuration.
18324 Usage: $0 [OPTIONS] [FILE]...
18326 -h, --help print this help, then exit
18327 -V, --version print version number, then exit
18328 -q, --quiet do not print progress messages
18329 -d, --debug don't remove temporary files
18330 --recheck update $as_me by reconfiguring in the same conditions
18331 --file=FILE[:TEMPLATE]
18332 instantiate the configuration file FILE
18333 --header=FILE[:TEMPLATE]
18334 instantiate the configuration header FILE
18336 Configuration files:
18339 Configuration headers:
18342 Configuration commands:
18345 Report bugs to <bug-autoconf@gnu.org>."
18348 cat >>$CONFIG_STATUS <<_ACEOF
18351 configured by $0, generated by GNU Autoconf 2.57,
18352 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18354 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18355 Free Software Foundation, Inc.
18356 This config.status script is free software; the Free Software Foundation
18357 gives unlimited permission to copy, distribute and modify it."
18362 cat >>$CONFIG_STATUS <<\_ACEOF
18363 # If no file are specified by the user, then we need to provide default
18364 # value. By we need to know if files were specified by the user.
18370 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18371 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18379 *) # This is not an option, so the user has probably given explicit
18382 ac_need_defaults
=false
;;
18386 # Handling of the options.
18388 cat >>$CONFIG_STATUS <<\_ACEOF
18389 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18391 --version |
--vers* |
-V )
18392 echo "$ac_cs_version"; exit 0 ;;
18394 # Conflict between --help and --header
18395 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18396 Try \`$0 --help' for more information." >&5
18397 echo "$as_me: error: ambiguous option: $1
18398 Try \`$0 --help' for more information." >&2;}
18399 { (exit 1); exit 1; }; };;
18400 --help |
--hel |
-h )
18401 echo "$ac_cs_usage"; exit 0 ;;
18402 --debug |
--d* |
-d )
18404 --file |
--fil |
--fi |
--f )
18406 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18407 ac_need_defaults
=false
;;
18408 --header |
--heade |
--head |
--hea )
18410 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18411 ac_need_defaults
=false
;;
18412 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18413 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18416 # This is an error.
18417 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18418 Try \`$0 --help' for more information." >&5
18419 echo "$as_me: error: unrecognized option: $1
18420 Try \`$0 --help' for more information." >&2;}
18421 { (exit 1); exit 1; }; } ;;
18423 *) ac_config_targets
="$ac_config_targets $1" ;;
18429 ac_configure_extra_args
=
18431 if $ac_cs_silent; then
18433 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18437 cat >>$CONFIG_STATUS <<_ACEOF
18438 if \$ac_cs_recheck; then
18439 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18440 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18445 cat >>$CONFIG_STATUS <<_ACEOF
18447 # INIT-COMMANDS section.
18450 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18456 cat >>$CONFIG_STATUS <<\_ACEOF
18457 for ac_config_target
in $ac_config_targets
18459 case "$ac_config_target" in
18460 # Handling of arguments.
18461 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18462 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18463 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18464 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18465 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18466 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18467 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18468 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18469 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18470 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18471 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18472 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18473 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18474 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18475 { (exit 1); exit 1; }; };;
18479 # If the user did not use the arguments to specify the items to instantiate,
18480 # then the envvar interface is used. Set only those that are not.
18481 # We use the long form for the default assignment because of an extremely
18482 # bizarre bug on SunOS 4.1.3.
18483 if $ac_need_defaults; then
18484 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18485 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18489 # Have a temporary directory for convenience. Make it in the build tree
18490 # simply because there is no reason to put it here, and in addition,
18491 # creating and moving files from /tmp can sometimes cause problems.
18492 # Create a temporary directory, and hook for its removal unless debugging.
18495 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18496 trap '{ (exit 1); exit 1; }' 1 2 13 15
18499 # Create a (secure) tmp directory for tmp files.
18502 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18503 test -n "$tmp" && test -d "$tmp"
18506 tmp
=.
/confstat$$
-$RANDOM
18507 (umask 077 && mkdir
$tmp)
18510 echo "$me: cannot create a temporary directory in ." >&2
18511 { (exit 1); exit 1; }
18516 cat >>$CONFIG_STATUS <<_ACEOF
18519 # CONFIG_FILES section.
18522 # No need to generate the scripts if there are no CONFIG_FILES.
18523 # This happens for instance when ./config.status config.h
18524 if test -n "\$CONFIG_FILES"; then
18525 # Protect against being on the right side of a sed subst in config.status.
18526 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18527 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18528 s,@SHELL@,$SHELL,;t t
18529 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18530 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18531 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18532 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18533 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18534 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18535 s,@exec_prefix@,$exec_prefix,;t t
18536 s,@prefix@,$prefix,;t t
18537 s,@program_transform_name@,$program_transform_name,;t t
18538 s,@bindir@,$bindir,;t t
18539 s,@sbindir@,$sbindir,;t t
18540 s,@libexecdir@,$libexecdir,;t t
18541 s,@datadir@,$datadir,;t t
18542 s,@sysconfdir@,$sysconfdir,;t t
18543 s,@sharedstatedir@,$sharedstatedir,;t t
18544 s,@localstatedir@,$localstatedir,;t t
18545 s,@libdir@,$libdir,;t t
18546 s,@includedir@,$includedir,;t t
18547 s,@oldincludedir@,$oldincludedir,;t t
18548 s,@infodir@,$infodir,;t t
18549 s,@mandir@,$mandir,;t t
18550 s,@build_alias@,$build_alias,;t t
18551 s,@host_alias@,$host_alias,;t t
18552 s,@target_alias@,$target_alias,;t t
18553 s,@DEFS@,$DEFS,;t t
18554 s,@ECHO_C@,$ECHO_C,;t t
18555 s,@ECHO_N@,$ECHO_N,;t t
18556 s,@ECHO_T@,$ECHO_T,;t t
18557 s,@LIBS@,$LIBS,;t t
18558 s,@build@,$build,;t t
18559 s,@build_cpu@,$build_cpu,;t t
18560 s,@build_vendor@,$build_vendor,;t t
18561 s,@build_os@,$build_os,;t t
18562 s,@host@,$host,;t t
18563 s,@host_cpu@,$host_cpu,;t t
18564 s,@host_vendor@,$host_vendor,;t t
18565 s,@host_os@,$host_os,;t t
18567 s,@CFLAGS@,$CFLAGS,;t t
18568 s,@LDFLAGS@,$LDFLAGS,;t t
18569 s,@CPPFLAGS@,$CPPFLAGS,;t t
18570 s,@ac_ct_CC@,$ac_ct_CC,;t t
18571 s,@EXEEXT@,$EXEEXT,;t t
18572 s,@OBJEXT@,$OBJEXT,;t t
18573 s,@LN_S@,$LN_S,;t t
18575 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18576 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18577 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18578 s,@RANLIB@,$RANLIB,;t t
18579 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18580 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18581 s,@EGREP@,$EGREP,;t t
18582 s,@LIBSOUND@,$LIBSOUND,;t t
18583 s,@SET_MAKE@,$SET_MAKE,;t t
18584 s,@ALLOCA@,$ALLOCA,;t t
18585 s,@liblockfile@,$liblockfile,;t t
18586 s,@LIBOBJS@,$LIBOBJS,;t t
18587 s,@NEED_SETGID@,$NEED_SETGID,;t t
18588 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18589 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18590 s,@version@,$version,;t t
18591 s,@configuration@,$configuration,;t t
18592 s,@canonical@,$canonical,;t t
18593 s,@srcdir@,$srcdir,;t t
18594 s,@lispdir@,$lispdir,;t t
18595 s,@locallisppath@,$locallisppath,;t t
18596 s,@lisppath@,$lisppath,;t t
18597 s,@x_default_search_path@,$x_default_search_path,;t t
18598 s,@etcdir@,$etcdir,;t t
18599 s,@archlibdir@,$archlibdir,;t t
18600 s,@docdir@,$docdir,;t t
18601 s,@bitmapdir@,$bitmapdir,;t t
18602 s,@gamedir@,$gamedir,;t t
18603 s,@gameuser@,$gameuser,;t t
18604 s,@c_switch_system@,$c_switch_system,;t t
18605 s,@c_switch_machine@,$c_switch_machine,;t t
18606 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18607 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18608 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18609 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18610 s,@machfile@,$machfile,;t t
18611 s,@opsysfile@,$opsysfile,;t t
18612 s,@carbon_appdir@,$carbon_appdir,;t t
18613 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18619 # Split the substitutions into bite-sized pieces for seds with
18620 # small command number limits, like on Digital OSF/1 and HP-UX.
18621 ac_max_sed_lines
=48
18622 ac_sed_frag
=1 # Number of current file.
18623 ac_beg
=1 # First line for current file.
18624 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18627 while $ac_more_lines; do
18628 if test $ac_beg -gt 1; then
18629 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18631 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18633 if test ! -s $tmp/subs.frag
; then
18634 ac_more_lines
=false
18636 # The purpose of the label and of the branching condition is to
18637 # speed up the sed processing (if there are no `@' at all, there
18638 # is no need to browse any of the substitutions).
18639 # These are the two extra sed commands mentioned above.
18641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18642 if test -z "$ac_sed_cmds"; then
18643 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18645 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18647 ac_sed_frag
=`expr $ac_sed_frag + 1`
18649 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18652 if test -z "$ac_sed_cmds"; then
18655 fi # test -n "$CONFIG_FILES"
18658 cat >>$CONFIG_STATUS <<\_ACEOF
18659 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18662 - |
*:- |
*:-:* ) # input from stdin
18664 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18665 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18666 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18667 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18668 * ) ac_file_in
=$ac_file.
in ;;
18671 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18672 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18674 X"$ac_file" : 'X\(//\)[^/]' \| \
18675 X"$ac_file" : 'X\(//\)$' \| \
18676 X"$ac_file" : 'X\(/\)' \| \
18677 . : '\(.\)' 2>/dev/null ||
18679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18681 /^X\(\/\/\)$/{ s//\1/; q; }
18682 /^X\(\/\).*/{ s//\1/; q; }
18684 { if $as_mkdir_p; then
18689 while test ! -d "$as_dir"; do
18690 as_dirs
="$as_dir $as_dirs"
18691 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18693 X"$as_dir" : 'X\(//\)[^/]' \| \
18694 X"$as_dir" : 'X\(//\)$' \| \
18695 X"$as_dir" : 'X\(/\)' \| \
18696 . : '\(.\)' 2>/dev/null ||
18698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18700 /^X\(\/\/\)$/{ s//\1/; q; }
18701 /^X\(\/\).*/{ s//\1/; q; }
18704 test ! -n "$as_dirs" || mkdir
$as_dirs
18705 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18707 { (exit 1); exit 1; }; }; }
18711 if test "$ac_dir" != .
; then
18712 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18713 # A "../" for each directory in $ac_dir_suffix.
18714 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18716 ac_dir_suffix
= ac_top_builddir
=
18720 .
) # No --srcdir option. We are building in place.
18722 if test -z "$ac_top_builddir"; then
18725 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18727 [\\/]* | ?
:[\\/]* ) # Absolute path.
18728 ac_srcdir
=$srcdir$ac_dir_suffix;
18729 ac_top_srcdir
=$srcdir ;;
18730 *) # Relative path.
18731 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18732 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18734 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18736 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
18737 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18738 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18739 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18743 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18744 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18747 if test x
"$ac_file" != x-
; then
18748 { echo "$as_me:$LINENO: creating $ac_file" >&5
18749 echo "$as_me: creating $ac_file" >&6;}
18752 # Let's still pretend it is `configure' which instantiates (i.e., don't
18753 # use $as_me), people would be surprised to read:
18754 # /* config.h. Generated by config.status. */
18755 if test x
"$ac_file" = x-
; then
18758 configure_input
="$ac_file. "
18760 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18761 sed 's,.*/,,'` by configure."
18763 # First look for the input files in the build tree, otherwise in the
18765 ac_file_inputs
=`IFS=:
18766 for f in $ac_file_in; do
18768 -) echo $tmp/stdin ;;
18770 # Absolute (can't be DOS-style, as IFS=:)
18771 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18772 echo "$as_me: error: cannot find input file: $f" >&2;}
18773 { (exit 1); exit 1; }; }
18776 if test -f "$f"; then
18779 elif test -f "$srcdir/$f"; then
18784 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18785 echo "$as_me: error: cannot find input file: $f" >&2;}
18786 { (exit 1); exit 1; }; }
18789 done` ||
{ (exit 1); exit 1; }
18791 cat >>$CONFIG_STATUS <<_ACEOF
18795 cat >>$CONFIG_STATUS <<\_ACEOF
18797 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18798 s
,@configure_input@
,$configure_input,;t t
18799 s
,@srcdir@
,$ac_srcdir,;t t
18800 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18801 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18802 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18803 s
,@builddir@
,$ac_builddir,;t t
18804 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18805 s
,@top_builddir@
,$ac_top_builddir,;t t
18806 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18807 s
,@INSTALL@
,$ac_INSTALL,;t t
18808 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18810 if test x"$ac_file" != x-; then
18811 mv $tmp/out $ac_file
18819 cat >>$CONFIG_STATUS <<\_ACEOF
18822 # CONFIG_HEADER section.
18825 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18826 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18828 # ac_d sets the value in "#define NAME VALUE" lines.
18829 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18830 ac_dB
='[ ].*$,\1#\2'
18833 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18834 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18835 ac_uB
='$,\1#\2define\3'
18839 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18842 - |
*:- |
*:-:* ) # input from stdin
18844 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18845 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18846 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18847 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18848 * ) ac_file_in
=$ac_file.
in ;;
18851 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18852 echo "$as_me: creating $ac_file" >&6;}
18854 # First look for the input files in the build tree, otherwise in the
18856 ac_file_inputs
=`IFS=:
18857 for f in $ac_file_in; do
18859 -) echo $tmp/stdin ;;
18861 # Absolute (can't be DOS-style, as IFS=:)
18862 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18863 echo "$as_me: error: cannot find input file: $f" >&2;}
18864 { (exit 1); exit 1; }; }
18867 if test -f "$f"; then
18870 elif test -f "$srcdir/$f"; then
18875 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18876 echo "$as_me: error: cannot find input file: $f" >&2;}
18877 { (exit 1); exit 1; }; }
18880 done` ||
{ (exit 1); exit 1; }
18881 # Remove the trailing spaces.
18882 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18886 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18887 # `conftest.undefs', that substitutes the proper values into
18888 # config.h.in to produce config.h. The first handles `#define'
18889 # templates, and the second `#undef' templates.
18890 # And first: Protect against being on the right side of a sed subst in
18891 # config.status. Protect against being in an unquoted here document
18892 # in config.status.
18893 rm -f conftest.defines conftest.undefs
18894 # Using a here document instead of a string reduces the quoting nightmare.
18895 # Putting comments in sed scripts is not portable.
18897 # `end' is used to avoid that the second main sed command (meant for
18898 # 0-ary CPP macros) applies to n-ary macro definitions.
18899 # See the Autoconf documentation for `clear'.
18900 cat >confdef2sed.
sed <<\_ACEOF
18905 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18907 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18910 # If some macros were called several times there might be several times
18911 # the same #defines, which is useless. Nevertheless, we may not want to
18912 # sort them, since we want the *last* AC-DEFINE to be honored.
18913 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18914 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18915 rm -f confdef2sed.sed
18917 # This sed command replaces #undef with comments. This is necessary, for
18918 # example, in the case of _POSIX_SOURCE, which is predefined and required
18919 # on some systems where configure will not decide to define it.
18920 cat >>conftest.undefs <<\_ACEOF
18921 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18924 # Break up conftest.defines because some shells have a limit on the size
18925 # of here documents, and old seds have small limits too (100 cmds).
18926 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18927 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18928 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18929 echo ' :' >>$CONFIG_STATUS
18930 rm -f conftest.tail
18931 while grep . conftest.defines >/dev/null
18933 # Write a limited-size here document to $tmp/defines.sed.
18934 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18935 # Speed up: don't consider the non `#define' lines.
18936 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18937 # Work around the forget-to-reset-the-flag bug.
18938 echo 't clr' >>$CONFIG_STATUS
18939 echo ': clr' >>$CONFIG_STATUS
18940 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18942 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18944 mv $tmp/out $tmp/in
18946 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18947 rm -f conftest.defines
18948 mv conftest.
tail conftest.defines
18950 rm -f conftest.defines
18951 echo ' fi # grep' >>$CONFIG_STATUS
18952 echo >>$CONFIG_STATUS
18954 # Break up conftest.undefs because some shells have a limit on the size
18955 # of here documents, and old seds have small limits too (100 cmds).
18956 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18957 rm -f conftest.
tail
18958 while grep . conftest.undefs
>/dev
/null
18960 # Write a limited-size here document to $tmp/undefs.sed.
18961 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18962 # Speed up: don't consider the non
`#undef'
18963 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18964 # Work around the forget-to-reset-the-flag bug.
18965 echo 't clr' >>$CONFIG_STATUS
18966 echo ': clr' >>$CONFIG_STATUS
18967 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18969 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18971 mv $tmp/out $tmp/in
18973 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18974 rm -f conftest.undefs
18975 mv conftest.tail conftest.undefs
18977 rm -f conftest.undefs
18979 cat >>$CONFIG_STATUS <<\_ACEOF
18980 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18981 # use $as_me), people would be surprised to read:
18982 # /* config.h. Generated by config.status. */
18983 if test x
"$ac_file" = x-
; then
18984 echo "/* Generated by configure. */" >$tmp/config.h
18986 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18988 cat $tmp/in >>$tmp/config.h
18990 if test x
"$ac_file" != x-
; then
18991 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18993 echo "$as_me: $ac_file is unchanged" >&6;}
18995 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18997 X"$ac_file" : 'X\(//\)[^/]' \| \
18998 X"$ac_file" : 'X\(//\)$' \| \
18999 X"$ac_file" : 'X\(/\)' \| \
19000 . : '\(.\)' 2>/dev/null ||
19002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19004 /^X\(\/\/\)$/{ s//\1/; q; }
19005 /^X\(\/\).*/{ s//\1/; q; }
19007 { if $as_mkdir_p; then
19012 while test ! -d "$as_dir"; do
19013 as_dirs
="$as_dir $as_dirs"
19014 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19016 X"$as_dir" : 'X\(//\)[^/]' \| \
19017 X"$as_dir" : 'X\(//\)$' \| \
19018 X"$as_dir" : 'X\(/\)' \| \
19019 . : '\(.\)' 2>/dev/null ||
19021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19023 /^X\(\/\/\)$/{ s//\1/; q; }
19024 /^X\(\/\).*/{ s//\1/; q; }
19027 test ! -n "$as_dirs" || mkdir
$as_dirs
19028 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19029 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19030 { (exit 1); exit 1; }; }; }
19033 mv $tmp/config.h
$ac_file
19037 rm -f $tmp/config.h
19041 cat >>$CONFIG_STATUS <<\_ACEOF
19044 # CONFIG_COMMANDS section.
19046 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19047 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19048 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19049 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19050 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051 X"$ac_dest" : 'X\(//\)[^/]' \| \
19052 X"$ac_dest" : 'X\(//\)$' \| \
19053 X"$ac_dest" : 'X\(/\)' \| \
19054 . : '\(.\)' 2>/dev/null ||
19056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19058 /^X\(\/\/\)$/{ s//\1/; q; }
19059 /^X\(\/\).*/{ s//\1/; q; }
19063 if test "$ac_dir" != .
; then
19064 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19065 # A "../" for each directory in $ac_dir_suffix.
19066 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19068 ac_dir_suffix
= ac_top_builddir
=
19072 .
) # No --srcdir option. We are building in place.
19074 if test -z "$ac_top_builddir"; then
19077 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19079 [\\/]* | ?
:[\\/]* ) # Absolute path.
19080 ac_srcdir
=$srcdir$ac_dir_suffix;
19081 ac_top_srcdir
=$srcdir ;;
19082 *) # Relative path.
19083 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19084 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19086 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19088 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19089 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19090 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19091 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19094 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19095 echo "$as_me: executing $ac_dest commands" >&6;}
19099 ### Make the necessary directories, if they don't exist.
19100 for dir
in etc lisp
; do
19101 test -d ${dir} || mkdir
${dir}
19104 # Build src/Makefile from ${srcdir}/src/Makefile.c
19105 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19106 # This must be done after src/config.h is built, since we rely on that file.
19108 # Now get this: Some word that is part of the ${srcdir} directory name
19109 # or the ${configuration} value might, just might, happen to be an
19110 # identifier like `sun4' or `i386' or something, and be predefined by
19111 # the C preprocessor to some helpful value like 1, or maybe the empty
19112 # string. Needless to say consequent macro substitutions are less
19113 # than conducive to the makefile finding the correct directory.
19114 undefs
="`echo $top_srcdir $configuration $canonical |
19115 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19116 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19119 echo creating src
/epaths.h
19120 ${MAKE-make} epaths-force
19122 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19123 # `..' to `. .' unless invoked with -traditional
19125 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19126 CPPFLAGS
="$CPPFLAGS -traditional"
19129 echo creating lib-src
/Makefile
19131 rm -f junk.c junk1.c junk2.c
19132 sed -e '/start of cpp stuff/q' \
19133 < Makefile.c
> junk1.c
19134 sed -e '1,/start of cpp stuff/d'\
19135 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19136 < Makefile.c
> junk.c
19137 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19138 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19139 cat junk1.c junk2.c
> Makefile.new
19140 rm -f junk.c junk1.c junk2.c
19141 chmod 444 Makefile.new
19142 mv -f Makefile.new Makefile
19145 echo creating src
/Makefile
19147 rm -f junk.c junk1.c junk2.c
19148 sed -e '/start of cpp stuff/q' \
19149 < Makefile.c
> junk1.c
19150 sed -e '1,/start of cpp stuff/d'\
19151 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19152 < Makefile.c
> junk.c
19153 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19154 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19155 cat junk1.c junk2.c
> Makefile.new
19156 rm -f junk.c junk1.c junk2.c
19157 chmod 444 Makefile.new
19158 mv -f Makefile.new Makefile
19161 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19162 echo creating src
/.gdbinit
19163 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19166 # This is how we know whether to re-run configure in certain cases.
19167 touch src
/config.stamp
19174 cat >>$CONFIG_STATUS <<\_ACEOF
19176 { (exit 0); exit 0; }
19178 chmod +x
$CONFIG_STATUS
19179 ac_clean_files
=$ac_clean_files_save
19182 # configure is writing to config.log, and then calls config.status.
19183 # config.status does its own redirection, appending to config.log.
19184 # Unfortunately, on DOS this fails, as config.log is still kept open
19185 # by configure, so config.status won't be able to write to it; its
19186 # output is simply discarded. So we exec the FD to /dev/null,
19187 # effectively closing config.log, so it can be properly (re)opened and
19188 # appended to by config.status. When coming back to configure, we
19189 # need to make the FD available again.
19190 if test "$no_create" != yes; then
19192 ac_config_status_args
=
19193 test "$silent" = yes &&
19194 ac_config_status_args
="$ac_config_status_args --quiet"
19196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19199 # would make configure fail if this is the last instruction.
19200 $ac_cs_success ||
{ (exit 1); exit 1; }