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 MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
849 if test -n "$ac_init_help"; then
854 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
855 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
856 --enable-carbon-app[=DIR
] [DIR
=/Application
]
857 specify
install directory
for Emacs.app on Mac OS X
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing
) to the casual installer
860 --disable-largefile omit support
for large files
863 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
864 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
865 --without-gcc don
't use GCC to compile Emacs if GCC is found
866 --without-pop don't support POP
mail retrieval with movemail
867 --with-kerberos support Kerberos-authenticated POP
868 --with-kerberos5 support Kerberos version
5 authenticated POP
869 --with-hesiod support Hesiod to get the POP server
host
870 --without-sound don
't compile with sound support
871 --with-x-toolkit=KIT use an X toolkit
872 (KIT = yes/lucid/athena/motif/gtk/no)
873 --with-xpm use -lXpm for displaying XPM images
874 --with-jpeg use -ljpeg for displaying JPEG images
875 --with-tiff use -ltiff for displaying TIFF images
876 --with-gif use -lungif for displaying GIF images
877 --with-png use -lpng for displaying PNG images
878 --with-gtk use GTK (same as --with-x-toolkit=gtk)
879 --with-pkg-config-prog Path to pkg-config to use for finding GTK
880 --without-toolkit-scroll-bars
881 don't use Motif or Xaw3d scroll bars
882 --without-xim don
't use X11 XIM
883 --without-carbon don't use Carbon GUI on Mac OS X
884 --with-x use the X Window System
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
901 if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
908 if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
913 ac_dir_suffix= ac_top_builddir=
917 .) # No --srcdir option. We are building in place.
919 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
985 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
986 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
987 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
988 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
989 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
991 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
992 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
994 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
996 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
997 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
998 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
999 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1000 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_must_keep_next=false
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 -* ) ac_must_keep_next=true ;;
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close
' the trap.
1080 trap 'exit_status
=$?
1081 # Save into config.log some information that might help in debugging.
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1091 # The following way of writing the cache mishandles newlines in values,
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1114 for ac_var
in $ac_subst_vars
1116 eval ac_val
=$
`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1121 if test -n "$ac_subst_files"; then
1128 for ac_var
in $ac_subst_files
1130 eval ac_val
=$
`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -s confdefs.h
; then
1143 sed "/^$/d" confdefs.h |
sort
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1150 rm -f core
*.core
&&
1151 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's
/^
/|
/' "$ac_site_file" >&5
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1226 # Check that the precious variables saved in the cache have kept the same
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1239 ac_cache_corrupted=: ;;
1241 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1248 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1273 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1280 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1304 test "$program_prefix" != NONE &&
1305 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1306 # Use a double $ so make ignores it.
1307 test "$program_suffix" != NONE &&
1308 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1309 # Double any \ or $. echo might interpret backslashes.
1310 # By default was `s,x,x', remove it
if useless.
1311 cat <<\_ACEOF
>conftest.
sed
1312 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1314 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1318 lispdir
='${datadir}/emacs/${version}/lisp'
1319 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1320 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1321 lisppath
='${locallisppath}:${lispdir}'
1322 etcdir
='${datadir}/emacs/${version}/etc'
1323 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1324 docdir
='${datadir}/emacs/${version}/etc'
1325 gamedir
='${localstatedir}/games/emacs'
1330 # Check whether --with-gcc or --without-gcc was given.
1331 if test "${with_gcc+set}" = set; then
1336 # Check whether --with-pop or --without-pop was given.
1337 if test "${with_pop+set}" = set; then
1339 if test "$withval" = yes; then
1340 cat >>confdefs.h
<<\_ACEOF
1341 #define MAIL_USE_POP 1
1347 cat >>confdefs.h
<<\_ACEOF
1348 #define MAIL_USE_POP 1
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval
="$with_kerberos"
1357 cat >>confdefs.h
<<\_ACEOF
1364 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1365 if test "${with_kerberos5+set}" = set; then
1366 withval
="$with_kerberos5"
1367 if test "${with_kerberos5+set}" = set; then
1368 if test "${with_kerberos+set}" != set; then
1370 cat >>confdefs.h
<<\_ACEOF
1377 cat >>confdefs.h
<<\_ACEOF
1383 # Check whether --with-hesiod or --without-hesiod was given.
1384 if test "${with_hesiod+set}" = set; then
1385 withval
="$with_hesiod"
1387 cat >>confdefs.h
<<\_ACEOF
1394 # Check whether --with-sound or --without-sound was given.
1395 if test "${with_sound+set}" = set; then
1396 withval
="$with_sound"
1401 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1402 if test "${with_x_toolkit+set}" = set; then
1403 withval
="$with_x_toolkit"
1404 case "${withval}" in
1405 y | ye |
yes ) val
=athena
;;
1407 l | lu | luc | luci | lucid
) val
=lucid
;;
1408 a |
at | ath | athe | athen | athena
) val
=athena
;;
1409 m | mo | mot | moti | motif
) val
=motif
;;
1410 g | gt | gtk
) val
=gtk
;;
1412 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1413 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1414 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1415 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1416 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1417 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1418 { (exit 1); exit 1; }; }
1425 # Check whether --with-xpm or --without-xpm was given.
1426 if test "${with_xpm+set}" = set; then
1431 # Check whether --with-jpeg or --without-jpeg was given.
1432 if test "${with_jpeg+set}" = set; then
1433 withval
="$with_jpeg"
1437 # Check whether --with-tiff or --without-tiff was given.
1438 if test "${with_tiff+set}" = set; then
1439 withval
="$with_tiff"
1443 # Check whether --with-gif or --without-gif was given.
1444 if test "${with_gif+set}" = set; then
1449 # Check whether --with-png or --without-png was given.
1450 if test "${with_png+set}" = set; then
1455 # Check whether --with-gtk or --without-gtk was given.
1456 if test "${with_gtk+set}" = set; then
1461 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1462 if test "${with_pkg_config_prog+set}" = set; then
1463 withval
="$with_pkg_config_prog"
1467 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1468 if test "${with_toolkit_scroll_bars+set}" = set; then
1469 withval
="$with_toolkit_scroll_bars"
1473 # Check whether --with-xim or --without-xim was given.
1474 if test "${with_xim+set}" = set; then
1479 # Check whether --with-carbon or --without-carbon was given.
1480 if test "${with_carbon+set}" = set; then
1481 withval
="$with_carbon"
1484 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1485 if test "${enable_carbon_app+set}" = set; then
1486 enableval
="$enable_carbon_app"
1487 carbon_appdir_x
=${enableval}
1490 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1491 if test "${enable_maintainer_mode+set}" = set; then
1492 enableval
="$enable_maintainer_mode"
1493 USE_MAINTAINER_MODE
=$enableval
1495 USE_MAINTAINER_MODE
=no
1497 if test $USE_MAINTAINER_MODE = yes; then
1504 #### Make srcdir absolute, if it isn't already. It's important to
1505 #### avoid running the path through pwd unnecessarily, since pwd can
1506 #### give you automounter prefixes, which can go away. We do all this
1507 #### so Emacs can find its files when run uninstalled.
1508 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1513 ## We may be able to use the $PWD environment variable to make this
1514 ## absolute. But sometimes PWD is inaccurate.
1515 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1516 ## but that tested only for a well-formed and valid PWD,
1517 ## it did not object when PWD was well-formed and valid but just wrong.
1518 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1522 srcdir
="`(cd ${srcdir}; pwd)`"
1525 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1528 #### Check if the source directory already has a configured system in it.
1529 if test `pwd` != `(cd ${srcdir} && pwd)` \
1530 && test -f "${srcdir}/src/config.h" ; then
1531 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1532 as a build directory right now; it has been configured in its own
1533 right. To configure in another directory as well, you MUST
1534 use GNU make. If you do not have GNU make, then you must
1535 now do \`make distclean' in ${srcdir},
1536 and then run $0 again." >&5
1537 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1538 as a build directory right now; it has been configured in its own
1539 right. To configure in another directory as well, you MUST
1540 use GNU make. If you do not have GNU make, then you must
1541 now do \`make distclean' in ${srcdir},
1542 and then run $0 again." >&2;}
1544 extrasub
='/^VPATH[ ]*=/c\
1545 vpath %.c $(srcdir)\
1546 vpath %.h $(srcdir)\
1547 vpath %.y $(srcdir)\
1548 vpath %.l $(srcdir)\
1549 vpath %.s $(srcdir)\
1550 vpath %.in $(srcdir)\
1551 vpath %.texi $(srcdir)'
1554 #### Given the configuration name, set machfile and opsysfile to the
1555 #### names of the m/*.h and s/*.h files we should use.
1557 ### Canonicalize the configuration name.
1560 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1561 if test -f $ac_dir/install-sh
; then
1563 ac_install_sh
="$ac_aux_dir/install-sh -c"
1565 elif test -f $ac_dir/install.sh
; then
1567 ac_install_sh
="$ac_aux_dir/install.sh -c"
1569 elif test -f $ac_dir/shtool
; then
1571 ac_install_sh
="$ac_aux_dir/shtool install -c"
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1580 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584 # Make sure we can run config.sub.
1585 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: checking build system type" >&5
1591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592 if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 ac_cv_build_alias
=$build_alias
1596 test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias
=`$ac_config_guess`
1598 test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609 echo "${ECHO_T}$ac_cv_build" >&6
1611 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616 echo "$as_me:$LINENO: checking host system type" >&5
1617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618 if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_host_alias
=$host_alias
1622 test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias
=$ac_cv_build_alias
1624 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631 echo "${ECHO_T}$ac_cv_host" >&6
1633 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639 configuration
=${host_alias-$host}
1643 ### If you add support for a new configuration, add code to this
1644 ### switch statement to recognize your configuration name and select
1645 ### the appropriate operating system and machine description files.
1647 ### You would hope that you could choose an m/*.h file pretty much
1648 ### based on the machine portion of the configuration name, and an s-
1649 ### file based on the operating system portion. However, it turns out
1650 ### that each m/*.h file is pretty manufacturer-specific - for
1651 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1652 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1653 ### machines. So we basically have to have a special case for each
1654 ### configuration name.
1656 ### As far as handling version numbers on operating systems is
1657 ### concerned, make sure things will fail in a fixable way. If
1658 ### /etc/MACHINES doesn't say anything about version numbers, be
1659 ### prepared to handle anything reasonably. If version numbers
1660 ### matter, be sure /etc/MACHINES says something about it.
1662 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1663 ### "System V Release 4"; he writes, "The old convention encouraged
1664 ### confusion between `system' and `release' levels'."
1666 machine
='' opsys
='' unported
=no
1667 case "${canonical}" in
1672 case "${canonical}" in
1673 alpha
*-*-freebsd*) machine
=alpha
;;
1674 i
[3456]86-*-freebsd*) machine
=intel386
;;
1681 if test -f /usr
/lib
/crti.o
; then
1683 cat >>confdefs.h
<<\_ACEOF
1689 case "${canonical}" in
1690 alpha
*-*-netbsd*) machine
=alpha
;;
1691 i
[3456]86-*-netbsd*) machine
=intel386
;;
1693 # This is somewhat bogus.
1694 machine
=hp9000s300
;;
1695 powerpc-apple-netbsd
*) machine
=macppc
;;
1696 mips-
*-netbsd*) machine
=pmax
;;
1697 mipsel-
*-netbsd*) machine
=pmax
;;
1698 mipseb-
*-netbsd*) machine
=pmax
;;
1699 ns32k-
*-netbsd*) machine
=ns32000
;;
1700 powerpc-
*-netbsd*) machine
=macppc
;;
1701 sparc
*-*-netbsd*) machine
=sparc
;;
1702 vax-
*-netbsd*) machine
=vax
;;
1703 arm-
*-netbsd*) machine
=arm
;;
1710 case "${canonical}" in
1711 alpha
*-*-openbsd*) machine
=alpha
;;
1712 i386-
*-openbsd*) machine
=intel386
;;
1713 m68k-
*-openbsd*) machine
=hp9000s300
;;
1714 mipsel-
*-openbsd*) machine
=pmax
;;
1715 ns32k-
*-openbsd*) machine
=ns32000
;;
1716 sparc-
*-openbsd*) machine
=sparc
;;
1717 vax-
*-openbsd*) machine
=vax
;;
1722 arm-acorn-riscix1.1
* )
1723 machine
=acorn opsys
=riscix1-1
1725 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1726 ## This name is riscix12 instead of riscix1.2
1727 ## to avoid a file name conflict on MSDOS.
1728 machine
=acorn opsys
=riscix12
1734 case "${canonical}" in
1735 i
[345]86-*-bsdi*) machine
=intel386
;;
1736 sparc-
*-bsdi*) machine
=sparc
;;
1737 powerpc-
*-bsdi*) machine
=macppc
;;
1739 case "${canonical}" in
1740 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1741 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1742 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1743 *-*-bsdi3* ) opsys
=bsdos3
;;
1744 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1749 ## Strictly speaking, we need the version of the alliant operating
1750 ## system to choose the right machine file, but currently the
1751 ## configuration name doesn't tell us enough to choose the right
1752 ## one; we need to give alliants their own operating system name to
1753 ## do this right. When someone cares, they can help us.
1755 machine
=alliant4 opsys
=bsd4-2
1758 machine
=alliant-2800 opsys
=bsd4-3
1761 ## Alpha (DEC) machines.
1763 machine
=alpha opsys
=osf1
1764 # This is needed to find X11R6.1 libraries for certain tests.
1765 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1766 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1767 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1768 # due to non-traditional preprocessing with the current compiler
1769 # defaults. OSF 4 can also have that compiler version, and there
1770 # seems always to have been a usable /usr/bin/cpp.
1771 NON_GNU_CPP
=/usr
/bin
/cpp
1772 case "${canonical}" in
1773 alpha
*-dec-osf[5-9]*)
1778 alpha
*-*-linux-gnu* )
1779 machine
=alpha opsys
=gnu-linux
1783 machine
=arm opsys
=gnu-linux
1788 machine
=macppc opsys
=gnu-linux
1793 machine
=altos opsys
=usg5-2
1798 machine
=amdahl opsys
=usg5-2-2
1801 ## Apollo, Domain/OS
1803 machine
=apollo opsys
=bsd4-3
1806 ## AT&T 3b2, 3b5, 3b15, 3b20
1808 machine
=att3b opsys
=usg5-2-2
1811 ## AT&T 3b1 - The Mighty Unix PC!
1813 machine
=7300 opsys
=usg5-2-2
1818 machine
=ibmrs6000 opsys
=aix3-2
1823 machine
=dpx2 opsys
=usg5-3
1828 machine
=sps7 opsys
=usg5-2
1831 ## CCI 5/32, 6/32 -- see "Tahoe".
1834 ## I don't know what configuration name to use for this; config.sub
1835 ## doesn't seem to know anything about it. Hey, Celerity users, get
1836 ## in touch with us!
1837 celerity-celerity-bsd
* )
1838 machine
=celerity opsys
=bsd4-2
1842 ## What operating systems does this chip run that Emacs has been
1846 ## We'll use the catch-all code at the bottom to guess the
1847 ## operating system.
1851 mips-compaq-nonstopux
* )
1852 machine
=nonstopux opsys
=nonstopux
1856 *-convex-bsd* |
*-convex-convexos* )
1857 machine
=convex opsys
=bsd4-3
1858 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1859 NON_GNU_CPP
="cc -E -P"
1863 i
[3456]86-cubix-sysv* )
1864 machine
=intel386 opsys
=usg5-3
1868 cydra
*-cydrome-sysv* )
1869 machine
=cydra5 opsys
=usg5-3
1872 ## Data General AViiON Machines
1873 ## DG changed naming conventions with the release of 5.4.4.10, they
1874 ## dropped the initial 5.4 but left the intervening R. Because of the
1875 ## R this shouldn't conflict with older versions of the OS (which I
1876 ## think were named like dgux4.*). In addition, DG new AViiONs series
1877 ## uses either Motorola M88k or Intel Pentium CPUs.
1878 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1879 machine
=aviion opsys
=dgux4
1881 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1882 ## This name is dgux5-4-3 instead of dgux5-4r3
1883 ## to avoid a file name conflict on MSDOS.
1884 machine
=aviion opsys
=dgux5-4-3
1886 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1887 machine
=aviion opsys
=dgux5-4r2
1890 machine
=aviion opsys
=dgux
1893 ## Data General AViiON Intel (x86) Machines
1894 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1895 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1896 i
[345]86-dg-dguxR4* )
1897 machine
=aviion-intel opsys
=dgux4
1901 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1902 machine
=pmax opsys
=bsd4-2
1904 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1905 machine
=pmax opsys
=bsd4-3
1908 machine
=pmax opsys
=ultrix4-3
1911 machine
=pmax opsys
=osf1
1913 mips-dec-mach_bsd4.3
* )
1914 machine
=pmax opsys
=mach-bsd4-3
1917 ## Motorola Delta machines
1918 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1919 machine
=delta opsys
=usg5-3
1920 if test -z "`type gnucc | grep 'not found'`"
1922 if test -s /etc
/167config
1923 then CC
="gnucc -m68040"
1924 else CC
="gnucc -m68881"
1927 if test -z "`type gcc | grep 'not found'`"
1933 m88k-motorola-sysv4
* )
1934 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1935 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1936 # I hope there are not other 4.0 versions for this machine
1937 # which really need usg5-4 instead.
1938 machine
=delta88k opsys
=usg5-4-2
1940 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1941 machine
=delta88k opsys
=usg5-3
1946 machine
=dual opsys
=usg5-2
1948 m68
*-dual-uniplus* )
1949 machine
=dual opsys
=unipl5-2
1954 machine
=elxsi opsys
=usg5-2
1959 machine
=ns16000 opsys
=umax
1962 ## The GEC 63 - apparently, this port isn't really finished yet.
1963 # I'm sure we finished off the last of the machines, though. -- fx
1965 ## Gould Power Node and NP1
1967 machine
=gould opsys
=bsd4-2
1970 machine
=gould opsys
=bsd4-3
1973 machine
=gould-np1 opsys
=bsd4-3
1976 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1977 ## as far as Emacs is concerned).
1979 # Build needs to be different on 7.0 and later releases
1980 case "`uname -r`" in
1981 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1982 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1984 NON_GNU_CPP
="/lib/cpp"
1986 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1988 machine
=nh3000 opsys
=cxux
1990 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1991 powerpc-harris-powerunix
)
1992 machine
=nh6000 opsys
=powerunix
1993 NON_GNU_CPP
="cc -Xo -E -P"
1995 ## SR2001/SR2201 running HI-UX/MPP
1996 hppa1.1
-hitachi-hiuxmpp* )
1997 machine
=sr2k opsys
=hiuxmpp
1999 hppa1.1
-hitachi-hiuxwe2* )
2000 machine
=sr2k opsys
=hiuxwe2
2003 xps
*-honeywell-sysv* )
2004 machine
=xps100 opsys
=usg5-2
2007 ## HP 9000 series 200 or 300
2009 machine
=hp9000s300 opsys
=bsd4-3
2011 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2013 case "`uname -r`" in
2014 ## Someone's system reports A.B8.05 for this.
2015 ## I wonder what other possibilities there are.
2016 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2017 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2018 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2019 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2020 *) machine
=hp9000s300 opsys
=hpux
;;
2024 ## HP 9000 series 700 and 800, running HP/UX
2026 machine
=hp800 opsys
=hpux
2029 machine
=hp800 opsys
=hpux8
2031 hppa
*-hp-hpux9shr* )
2032 machine
=hp800 opsys
=hpux9shr
2035 machine
=hp800 opsys
=hpux9
2037 hppa
*-hp-hpux10.2
* )
2038 machine
=hp800 opsys
=hpux10-20
2041 machine
=hp800 opsys
=hpux10
2043 hppa
*-hp-hpux1[1-9]* )
2044 machine
=hp800 opsys
=hpux11
2047 hppa
*-*-linux-gnu* )
2048 machine
=hp800 opsys
=gnu-linux
2051 ## HP 9000 series 700 and 800, running HP/UX
2053 ## Cross-compilation? Nah!
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2058 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2059 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2060 *) machine
=hp800 opsys
=hpux10
;;
2064 machine
=hp800 opsys
=nextstep
2069 machine
=orion opsys
=bsd4-2
2071 clipper-orion-bsd
* )
2072 machine
=orion105 opsys
=bsd4-2
2076 i
[3456]86-ibm-aix1.1
* )
2077 machine
=ibmps2-aix opsys
=usg5-2-2
2079 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2080 machine
=ibmps2-aix opsys
=usg5-3
2083 machine
=ibm370aix opsys
=usg5-3
2086 machine
=ibms390 opsys
=gnu-linux
2088 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2089 machine
=ibmrs6000 opsys
=aix3-1
2091 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2092 machine
=ibmrs6000 opsys
=aix3-2-5
2094 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2095 machine
=ibmrs6000 opsys
=aix4-1
2097 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2098 machine
=ibmrs6000 opsys
=aix4-2
2100 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2101 machine
=ibmrs6000 opsys
=aix4-2
2103 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2104 machine
=ibmrs6000 opsys
=aix4
2106 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2107 machine
=ibmrs6000 opsys
=aix4-1
2109 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2110 machine
=ibmrs6000 opsys
=aix3-2
2113 machine
=ibmrt opsys
=bsd4-3
2116 machine
=ibmrt opsys
=bsd4-2
2119 machine
=ibmrt opsys
=bsd4-3
2122 machine
=ibmrt opsys
=bsd4-2
2125 machine
=ibmrt opsys
=bsd4-3
2128 machine
=ibmrt opsys
=bsd4-3
2131 machine
=ibmrt-aix opsys
=usg5-2-2
2134 ## Integrated Solutions `Optimum V'
2136 machine
=isi-ov opsys
=bsd4-2
2139 machine
=isi-ov opsys
=bsd4-3
2142 ## Intel 386 machines where we do care about the manufacturer
2143 i
[3456]86-intsys-sysv* )
2144 machine
=is386 opsys
=usg5-2-2
2148 i
[3456]86-prime-sysv* )
2149 machine
=i386 opsys
=usg5-3
2152 ## Sequent Symmetry running Dynix
2153 i
[3456]86-sequent-bsd* )
2154 machine
=symmetry opsys
=bsd4-3
2157 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2158 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2159 machine
=sequent-ptx opsys
=ptx4
2160 NON_GNU_CPP
=/lib
/cpp
2163 ## Sequent Symmetry running DYNIX/ptx
2164 ## Use the old cpp rather than the newer ANSI one.
2165 i
[3456]86-sequent-ptx* )
2166 machine
=sequent-ptx opsys
=ptx
2167 NON_GNU_CPP
="/lib/cpp"
2170 ## ncr machine running svr4.3.
2171 i
[3456]86-ncr-sysv4.3
)
2172 machine
=ncr386 opsys
=usg5-4-3
2175 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2176 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2177 i
[3456]86-ncr-sysv* )
2178 machine
=ncr386 opsys
=usg5-4-2
2181 ## Intel Paragon OSF/1
2183 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2188 machine
=i860 opsys
=usg5-4
2189 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2190 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2193 ## Macintosh PowerPC
2194 powerpc
*-*-linux-gnu* )
2195 machine
=macppc opsys
=gnu-linux
2198 ## Masscomp machines
2199 m68
*-masscomp-rtu* )
2200 machine
=masscomp opsys
=rtu
2203 ## Megatest machines
2204 m68
*-megatest-bsd* )
2205 machine
=mega68 opsys
=bsd4-2
2208 ## Workstations sold by MIPS
2209 ## This is not necessarily all workstations using the MIPS processor -
2210 ## Irises are produced by SGI, and DECstations by DEC.
2212 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2213 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2214 ## it gives for choosing between the alternatives seems to be "Use
2215 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2216 ## the BSD world." I'll assume that these are instructions for
2217 ## handling two odd situations, and that every other situation
2218 ## should use mips.h and usg5-2-2, they being listed first.
2221 ## Fall through to the general code at the bottom to decide on the OS.
2223 mips-mips-riscos4
* )
2224 machine
=mips4 opsys
=bsd4-3
2225 NON_GNU_CC
="cc -systype bsd43"
2226 NON_GNU_CPP
="cc -systype bsd43 -E"
2228 mips-mips-riscos5
* )
2229 machine
=mips4 opsys
=riscos5
2230 NON_GNU_CC
="cc -systype bsd43"
2231 NON_GNU_CPP
="cc -systype bsd43 -E"
2234 machine
=mips opsys
=bsd4-3
2237 machine
=mips opsys
=usg5-2-2
2241 m68
*-next-* | m68k-
*-nextstep* )
2242 machine
=m68k opsys
=nextstep
2245 ## The complete machine from National Semiconductor
2247 machine
=ns32000 opsys
=usg5-2
2251 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2252 machine
=tower32 opsys
=usg5-2-2
2254 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2255 machine
=tower32v3 opsys
=usg5-3
2260 machine
=ews4800 opsys
=ux4800
2263 ## Nixdorf Targon 31
2264 m68
*-nixdorf-sysv* )
2265 machine
=targon31 opsys
=usg5-2-2
2270 machine
=nu opsys
=usg5-2
2275 machine
=plexus opsys
=usg5-2
2279 ## I don't really have any idea what sort of processor the Pyramid has,
2280 ## so I'm assuming it is its own architecture.
2281 pyramid-pyramid-bsd
* )
2282 machine
=pyramid opsys
=bsd4-2
2286 ns32k-sequent-bsd4.2
* )
2287 machine
=sequent opsys
=bsd4-2
2289 ns32k-sequent-bsd4.3
* )
2290 machine
=sequent opsys
=bsd4-3
2294 mips-siemens-sysv
* | mips-sni-sysv
*)
2295 machine
=mips-siemens opsys
=usg5-4
2296 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2297 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2300 ## Silicon Graphics machines
2301 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2303 machine
=irist opsys
=iris3-5
2305 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2306 machine
=irist opsys
=iris3-6
2310 machine
=iris4d opsys
=irix3-3
2313 machine
=iris4d opsys
=irix4-0
2316 machine
=iris4d opsys
=irix6-5
2317 # Without defining _LANGUAGE_C, things get masked out in the headers
2318 # so that, for instance, grepping for `free' in stdlib.h fails and
2319 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2320 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2321 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2324 machine
=iris4d opsys
=irix6-0
2325 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2326 # but presumably it does no harm.
2327 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2328 # -32 probably isn't necessary in later v.6s -- anyone know which?
2329 NON_GCC_TEST_OPTIONS
=-32
2331 mips-sgi-irix5.
[01]* )
2332 machine
=iris4d opsys
=irix5-0
2334 mips-sgi-irix5
* | mips-sgi-irix
* )
2335 machine
=iris4d opsys
=irix5-2
2340 machine
=news opsys
=bsd4-2
2343 machine
=news opsys
=bsd4-3
2345 m68
*-sony-newsos3* | m68
*-sony-news3*)
2346 machine
=news opsys
=bsd4-3
2348 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2349 machine
=news-risc opsys
=bsd4-3
2351 mips-sony-newsos6
* )
2352 machine
=news-r6 opsys
=newsos6
2355 machine
=news-risc opsys
=newsos5
2360 machine
=stride opsys
=usg5-2
2364 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2365 machine
=sparc opsys
=gnu-linux
2368 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2369 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2370 | rs6000-
*-solaris2*)
2371 case "${canonical}" in
2372 m68
*-sunos1* ) machine
=sun1
;;
2373 m68
*-sunos2* ) machine
=sun2
;;
2374 m68
* ) machine
=sun3
;;
2375 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2376 i
[3456]86-*-* ) machine
=intel386
;;
2377 powerpcle
* ) machine
=powerpcle
;;
2378 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2379 sparc
* ) machine
=sparc
;;
2382 case "${canonical}" in
2383 ## The Sun386 didn't get past 4.0.
2384 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2385 *-sunos4.0
* ) opsys
=sunos4-0
;;
2386 *-sunos4.1.
[3-9]*noshare
)
2387 ## This name is sunos413 instead of sunos4-1-3
2388 ## to avoid a file name conflict on MSDOS.
2390 NON_GNU_CPP
=/usr
/lib
/cpp
2391 NON_GCC_TEST_OPTIONS
=-Bstatic
2392 GCC_TEST_OPTIONS
=-static
2394 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2396 NON_GNU_CPP
=/usr
/lib
/cpp
2398 *-sunos4* |
*-sunos )
2400 NON_GCC_TEST_OPTIONS
=-Bstatic
2401 GCC_TEST_OPTIONS
=-static
2403 *-sunos5.3
* |
*-solaris2.3
* )
2405 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2407 *-sunos5.4
* |
*-solaris2.4
* )
2409 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2412 *-sunos5.5
* |
*-solaris2.5
* )
2414 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2417 *-sunos5.6
* |
*-solaris2.6
* )
2419 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2422 *-sunos5* |
*-solaris* )
2424 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2428 ## Watch out for a compiler that we know will not work.
2429 case "${canonical}" in
2430 *-solaris* |
*-sunos5* )
2431 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2432 ## /usr/ucb/cc doesn't work;
2433 ## we should find some other compiler that does work.
2441 machine
=sparc opsys
=nextstep
2445 m68
*-tadpole-sysv* )
2446 machine
=tad68k opsys
=usg5-3
2450 tahoe-tahoe-bsd4.2
* )
2451 machine
=tahoe opsys
=bsd4-2
2453 tahoe-tahoe-bsd4.3
* )
2454 machine
=tahoe opsys
=bsd4-3
2457 ## Tandem Integrity S2
2459 machine
=tandem-s2 opsys
=usg5-3
2463 m88k-tektronix-sysv3
* )
2464 machine
=tekxd88 opsys
=usg5-3
2467 ## Tektronix 16000 box (6130?)
2468 ns16k-tektronix-bsd
* )
2469 machine
=ns16000 opsys
=bsd4-2
2472 ## src/m/tek4300.h hints that this is a m68k machine.
2473 m68
*-tektronix-bsd* )
2474 machine
=tek4300 opsys
=bsd4-3
2478 ## We seem to have lost the machine-description file titan.h!
2480 machine
=titan opsys
=usg5-3
2483 ## Ustation E30 (SS5E)
2484 m68
*-unisys-uniplus* )
2485 machine
=ustation opsystem
=unipl5-2
2491 case "${canonical}" in
2492 *-bsd4.1
* ) opsys
=bsd4-1
;;
2493 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2494 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2495 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2496 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2497 *-vms* ) opsys
=vms
;;
2503 ns16k-whitechapel-
* )
2505 ## We don't know what sort of OS runs on these; we'll let the
2506 ## operating system guessing code below try.
2511 machine
=wicat opsys
=usg5-2
2516 machine
=ia64 opsys
=gnu-linux
2519 ## Intel 386 machines where we don't care about the manufacturer
2522 case "${canonical}" in
2523 *-cygwin ) opsys
=cygwin
;;
2524 *-lynxos* ) opsys
=lynxos
;;
2525 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2526 *-isc2.2
* ) opsys
=isc2-2
;;
2527 *-isc4.0
* ) opsys
=isc4-0
;;
2528 *-isc4.
* ) opsys
=isc4-1
2529 GCC_TEST_OPTIONS
=-posix
2530 NON_GCC_TEST_OPTIONS
=-Xp
2532 *-isc* ) opsys
=isc3-0
;;
2533 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2534 *-esix* ) opsys
=esix
;;
2535 *-xenix* ) opsys
=xenix
;;
2536 *-linux-gnu* ) opsys
=gnu-linux
;;
2537 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2538 *-sco3.2v5
* ) opsys
=sco5
2539 NON_GNU_CPP
=/lib
/cpp
2540 # Prevent -belf from being passed to $CPP.
2541 # /lib/cpp does not accept it.
2542 OVERRIDE_CPPFLAGS
=" "
2544 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2545 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2546 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2547 *-386bsd* ) opsys
=386bsd
;;
2548 *-nextstep* ) opsys
=nextstep
;;
2549 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2553 ## m68k Linux-based GNU system
2555 machine
=m68k opsys
=gnu-linux
2558 ## Mips Linux-based GNU system
2559 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2560 machine
=mips opsys
=gnu-linux
2564 sparc-fujitsu-sysv4
* )
2565 machine
=sparc opsys
=uxpds
2566 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2571 f301-fujitsu-uxpv4.1
)
2572 machine
=f301 opsys
=uxpv
2575 ## Darwin / Mac OS X
2576 powerpc-apple-darwin
* )
2577 machine
=powermac opsys
=darwin
2578 # Define CPP as follows to make autoconf work correctly.
2579 CPP
="cc -E -traditional-cpp"
2582 ## AMD x86-64 Linux-based GNU system
2583 x86_64-
*-linux-gnu* )
2584 machine
=amdx86-64 opsys
=gnu-linux
2592 ### If the code above didn't choose an operating system, just choose
2593 ### an operating system based on the configuration name. You really
2594 ### only want to use this when you have no idea what the right
2595 ### operating system is; if you know what operating systems a machine
2596 ### runs, it's cleaner to make it explicit in the case statement
2598 if test x
"${opsys}" = x
; then
2599 case "${canonical}" in
2600 *-gnu* ) opsys
=gnu
;;
2601 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2602 *-bsd4.2
) opsys
=bsd4-2
;;
2603 *-bsd4.3
) opsys
=bsd4-3
;;
2604 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2605 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2606 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2607 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2608 *-sysv4.2uw
* ) opsys
=unixware
;;
2609 *-sysv5uw* ) opsys
=unixware
;;
2610 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2611 *-sysv4.1
* |
*-sysvr4.1
* )
2612 NON_GNU_CPP
=/usr
/lib
/cpp
2614 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2615 if [ x
$NON_GNU_CPP = x
]; then
2616 if [ -f /usr
/ccs
/lib
/cpp
]; then
2617 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2619 NON_GNU_CPP
=/lib
/cpp
2623 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2632 if test $unported = yes; then
2633 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2634 Check \`etc/MACHINES' for recognized configuration names." >&5
2635 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2636 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2637 { (exit 1); exit 1; }; }
2640 machfile
="m/${machine}.h"
2641 opsysfile
="s/${opsys}.h"
2644 #### Choose a compiler.
2645 test -n "$CC" && cc_specified
=yes
2647 # Save the value of CFLAGS that the user specified.
2648 SPECIFIED_CFLAGS
="$CFLAGS"
2651 "yes" ) CC
="gcc" GCC
=yes ;;
2652 "no" ) : ${CC=cc} ;;
2656 ac_cpp
='$CPP $CPPFLAGS'
2657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2662 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2663 echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC
="$CC" # Let the user override the test.
2671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir
=.
2676 for ac_exec_ext
in '' $ac_executable_extensions; do
2677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test -n "$CC"; then
2689 echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2697 if test -z "$ac_cv_prog_CC"; then
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc
; ac_word
=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 for ac_exec_ext
in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC
="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2742 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC
="$CC" # Let the user override the test.
2751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir
=.
2756 for ac_exec_ext
in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2777 if test -z "$ac_cv_prog_CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc
; ac_word
=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_ac_ct_CC
="cc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2808 echo "${ECHO_T}$ac_ct_CC" >&6
2810 echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc
; ac_word
=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC
="$CC" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected
=yes
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy
$ac_cv_prog_CC
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2859 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2865 if test -n "$CC"; then
2866 echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC
="$CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2913 test -n "$CC" && break
2916 if test -z "$CC"; then
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy
$ac_prog; ac_word
=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir
=.
2935 for ac_exec_ext
in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC
="$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2955 test -n "$ac_ct_CC" && break
2964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972 "checking for C compiler version" >&5
2973 ac_compiler
=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2990 cat >conftest.
$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2994 cat confdefs.h
>>conftest.
$ac_ext
2995 cat >>conftest.
$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
3006 ac_clean_files_save
=$ac_clean_files
3007 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3011 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3012 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3013 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3015 (eval $ac_link_default) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # Find the output, starting from the most likely. This scheme is
3020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3023 # Be careful to initialize this variable, since it used to be cached.
3024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3026 # b.out is created by i960 compilers.
3027 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3029 test -f "$ac_file" ||
continue
3031 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3034 # This is the source file.
3037 # We found the default executable, but exeext='' is most
3041 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # FIXME: I believe we export ac_cv_exeext for Libtool,
3043 # but it would be cool to find out if it's true. Does anybody
3044 # maintain Libtool? --akim.
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C compiler cannot create executables
3058 See \`config.log' for more details." >&2;}
3059 { (exit 77); exit 77; }; }
3062 ac_exeext
=$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_file" >&5
3064 echo "${ECHO_T}$ac_file" >&6
3066 # Check the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3071 # If not cross compiling, check that we can run a simple program.
3072 if test "$cross_compiling" != yes; then
3073 if { ac_try
='./$ac_file'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3081 if test "$cross_compiling" = maybe
; then
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
3097 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3098 ac_clean_files
=$ac_clean_files_save
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6
3106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; then
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3117 for ac_file
in conftest.exe conftest conftest.
*; do
3118 test -f "$ac_file" ||
continue
3120 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3121 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3135 rm -f conftest
$ac_cv_exeext
3136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3137 echo "${ECHO_T}$ac_cv_exeext" >&6
3139 rm -f conftest.
$ac_ext
3140 EXEEXT
=$ac_cv_exeext
3142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3144 if test "${ac_cv_objext+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 cat >conftest.
$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3151 cat confdefs.h
>>conftest.
$ac_ext
3152 cat >>conftest.
$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.o conftest.obj
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3172 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.
$ac_ext >&5
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3187 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3189 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6
3191 OBJEXT
=$ac_cv_objext
3193 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.
$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3202 cat confdefs.h
>>conftest.
$ac_ext
3203 cat >>conftest.
$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3217 rm -f conftest.
$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try
='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.
$ac_ext >&5
3236 rm -f conftest.
$ac_objext conftest.
$ac_ext
3237 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3240 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3241 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3242 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3243 ac_test_CFLAGS
=${CFLAGS+set}
3244 ac_save_CFLAGS
=$CFLAGS
3246 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 cat >conftest.
$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3255 cat confdefs.h
>>conftest.
$ac_ext
3256 cat >>conftest.
$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 rm -f conftest.
$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try
='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.
$ac_ext >&5
3286 rm -f conftest.
$ac_objext conftest.
$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3290 if test "$ac_test_CFLAGS" = set; then
3291 CFLAGS
=$ac_save_CFLAGS
3292 elif test $ac_cv_prog_cc_g = yes; then
3293 if test "$GCC" = yes; then
3299 if test "$GCC" = yes; then
3305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 ac_cv_prog_cc_stdc
=no
3312 cat >conftest.
$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3337 s = g (p, va_arg (v,int));
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3355 # Don't try gcc -ansi; that turns off useful extensions and
3356 # breaks some systems' header files.
3357 # AIX -qlanglvl=ansi
3358 # Ultrix and OSF/1 -std1
3359 # HP-UX 10.20 and later -Ae
3360 # HP-UX older versions -Aa -D_HPUX_SOURCE
3361 # SVR4 -Xc -D__EXTENSIONS__
3362 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 CC
="$ac_save_CC $ac_arg"
3365 rm -f conftest.
$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_prog_cc_stdc
=$ac_arg
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.
$ac_ext >&5
3384 rm -f conftest.
$ac_objext
3386 rm -f conftest.
$ac_ext conftest.
$ac_objext
3391 case "x$ac_cv_prog_cc_stdc" in
3393 echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6 ;;
3396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3398 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3401 # Some people use a C++ compiler to compile C. Since we use `exit',
3402 # in C++ we need to declare it. In case someone uses the same compiler
3403 # for both compiling C and C++ we need to have the C++ compiler decide
3404 # the declaration of exit, since it's the most demanding environment.
3405 cat >conftest.
$ac_ext <<_ACEOF
3410 rm -f conftest.
$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try
='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 for ac_declaration
in \
3424 'extern "C" void std::exit (int) throw (); using std::exit;' \
3425 'extern "C" void std::exit (int); using std::exit;' \
3426 'extern "C" void exit (int) throw ();' \
3427 'extern "C" void exit (int);' \
3430 cat >conftest.
$ac_ext <<_ACEOF
3431 #line $LINENO "configure"
3434 cat confdefs.h
>>conftest.
$ac_ext
3435 cat >>conftest.
$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3447 rm -f conftest.
$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try
='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.
$ac_ext >&5
3466 rm -f conftest.
$ac_objext conftest.
$ac_ext
3467 cat >conftest.
$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3471 cat confdefs.h
>>conftest.
$ac_ext
3472 cat >>conftest.
$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3483 rm -f conftest.
$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try
='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.
$ac_ext >&5
3501 rm -f conftest.
$ac_objext conftest.
$ac_ext
3504 if test -n "$ac_declaration"; then
3505 echo '#ifdef __cplusplus' >>confdefs.h
3506 echo $ac_declaration >>confdefs.h
3507 echo '#endif' >>confdefs.h
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.
$ac_ext >&5
3515 rm -f conftest.
$ac_objext conftest.
$ac_ext
3517 ac_cpp
='$CPP $CPPFLAGS'
3518 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3523 # On Suns, sometimes $CPP names a directory.
3524 if test -n "$CPP" && test -d "$CPP"; then
3528 #### Some systems specify a CPP to use unless we are using GCC.
3529 #### Now that we know whether we are using GCC, we can decide whether
3530 #### to use that one.
3531 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3536 #### Some systems specify a CC to use unless we are using GCC.
3537 #### Now that we know whether we are using GCC, we can decide whether
3538 #### to use that one.
3539 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3540 test x
$cc_specified != xyes
3545 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3547 CC
="$CC $GCC_TEST_OPTIONS"
3550 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3552 CC
="$CC $NON_GCC_TEST_OPTIONS"
3555 #### Some other nice autoconf tests.
3557 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3558 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3560 if test "$LN_S" = "ln -s"; then
3561 echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6
3564 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3565 echo "${ECHO_T}no, using $LN_S" >&6
3569 ac_cpp
='$CPP $CPPFLAGS'
3570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3573 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3574 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3575 # On Suns, sometimes $CPP names a directory.
3576 if test -n "$CPP" && test -d "$CPP"; then
3579 if test -z "$CPP"; then
3580 if test "${ac_cv_prog_CPP+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 # Double quotes because CPP needs to be expanded
3584 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3587 for ac_c_preproc_warn_flag
in '' yes
3589 # Use a header file that comes with gcc, so configuring glibc
3590 # with a fresh cross-compiler works.
3591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3592 # <limits.h> exists even on freestanding compilers.
3593 # On the NeXT, cc -E runs the code through the compiler's parser,
3594 # not just through cpp. "Syntax error" is here to catch this case.
3595 cat >conftest.
$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3599 cat confdefs.h
>>conftest.
$ac_ext
3600 cat >>conftest.
$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3603 # include <limits.h>
3605 # include <assert.h>
3609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3610 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1
>conftest.err
3614 cat conftest.err
>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev
/null
; then
3617 if test -s conftest.err
; then
3618 ac_cpp_err
=$ac_c_preproc_warn_flag
3625 if test -z "$ac_cpp_err"; then
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3631 # Broken: fails on valid input.
3634 rm -f conftest.err conftest.
$ac_ext
3636 # OK, works on sane cases. Now check whether non-existent headers
3637 # can be detected and how.
3638 cat >conftest.
$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3642 cat confdefs.h
>>conftest.
$ac_ext
3643 cat >>conftest.
$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include <ac_nonexistent.h>
3647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3648 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3650 grep -v '^ *+' conftest.er1
>conftest.err
3652 cat conftest.err
>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev
/null
; then
3655 if test -s conftest.err
; then
3656 ac_cpp_err
=$ac_c_preproc_warn_flag
3663 if test -z "$ac_cpp_err"; then
3664 # Broken: success on invalid input.
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.
$ac_ext >&5
3670 # Passes both tests.
3674 rm -f conftest.err conftest.
$ac_ext
3677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678 rm -f conftest.err conftest.
$ac_ext
3679 if $ac_preproc_ok; then
3691 echo "$as_me:$LINENO: result: $CPP" >&5
3692 echo "${ECHO_T}$CPP" >&6
3694 for ac_c_preproc_warn_flag
in '' yes
3696 # Use a header file that comes with gcc, so configuring glibc
3697 # with a fresh cross-compiler works.
3698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 # <limits.h> exists even on freestanding compilers.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp. "Syntax error" is here to catch this case.
3702 cat >conftest.
$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3706 cat confdefs.h
>>conftest.
$ac_ext
3707 cat >>conftest.
$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3710 # include <limits.h>
3712 # include <assert.h>
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1
>conftest.err
3721 cat conftest.err
>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev
/null
; then
3724 if test -s conftest.err
; then
3725 ac_cpp_err
=$ac_c_preproc_warn_flag
3732 if test -z "$ac_cpp_err"; then
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.
$ac_ext >&5
3738 # Broken: fails on valid input.
3741 rm -f conftest.err conftest.
$ac_ext
3743 # OK, works on sane cases. Now check whether non-existent headers
3744 # can be detected and how.
3745 cat >conftest.
$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3749 cat confdefs.h
>>conftest.
$ac_ext
3750 cat >>conftest.
$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3757 grep -v '^ *+' conftest.er1
>conftest.err
3759 cat conftest.err
>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev
/null
; then
3762 if test -s conftest.err
; then
3763 ac_cpp_err
=$ac_c_preproc_warn_flag
3770 if test -z "$ac_cpp_err"; then
3771 # Broken: success on invalid input.
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.
$ac_ext >&5
3777 # Passes both tests.
3781 rm -f conftest.err conftest.
$ac_ext
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.err conftest.
$ac_ext
3786 if $ac_preproc_ok; then
3789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3790 See \`config.log' for more details." >&5
3791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3792 See \`config.log' for more details." >&2;}
3793 { (exit 1); exit 1; }; }
3797 ac_cpp
='$CPP $CPPFLAGS'
3798 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3802 # Find a good install program. We prefer a C program (faster),
3803 # so one script is as good as another. But avoid the broken or
3804 # incompatible versions:
3805 # SysV /etc/install, /usr/sbin/install
3806 # SunOS /usr/etc/install
3807 # IRIX /sbin/install
3809 # AmigaOS /C/install, which installs bootblocks on floppy discs
3810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3813 # ./install, which can be erroneously created by make from ./install.sh.
3814 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3815 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3816 if test -z "$INSTALL"; then
3817 if test "${ac_cv_path_install+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir
=.
3825 # Account for people who put trailing slashes in PATH elements.
3827 .
/ | .
// |
/cC
/* | \
3828 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3831 # OSF1 and SCO ODT 3.0 have their own names for install.
3832 # Don't use installbsd from OSF since it installs stuff as root
3834 for ac_prog
in ginstall scoinst
install; do
3835 for ac_exec_ext
in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3837 if test $ac_prog = install &&
3838 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3839 # AIX install. It has an incompatible calling convention.
3841 elif test $ac_prog = install &&
3842 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3843 # program-specific install script used by HP pwplus--don't use.
3846 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL
=$ac_cv_path_install
3861 # As a last resort, use the slow shell script. We don't cache a
3862 # path for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the path is relative.
3865 INSTALL
=$ac_install_sh
3868 echo "$as_me:$LINENO: result: $INSTALL" >&5
3869 echo "${ECHO_T}$INSTALL" >&6
3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872 # It thinks the first close brace ends the variable substitution.
3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3877 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3879 if test "x$RANLIB" = x
; then
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3882 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_RANLIB+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$RANLIB"; then
3889 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir
=.
3896 for ac_exec_ext
in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 RANLIB
=$ac_cv_prog_RANLIB
3908 if test -n "$RANLIB"; then
3909 echo "$as_me:$LINENO: result: $RANLIB" >&5
3910 echo "${ECHO_T}$RANLIB" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3917 if test -z "$ac_cv_prog_RANLIB"; then
3918 ac_ct_RANLIB
=$RANLIB
3919 # Extract the first word of "ranlib", so it can be a program name with args.
3920 set dummy ranlib
; ac_word
=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$ac_ct_RANLIB"; then
3927 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir
=.
3934 for ac_exec_ext
in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3946 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3947 if test -n "$ac_ct_RANLIB"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3949 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 RANLIB
=$ac_ct_RANLIB
3957 RANLIB
="$ac_cv_prog_RANLIB"
3961 # Extract the first word of "install-info", so it can be a program name with args.
3962 set dummy install-info
; ac_word
=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 case $INSTALL_INFO in
3970 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir
=.
3978 for ac_exec_ext
in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3992 if test -n "$INSTALL_INFO"; then
3993 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3994 echo "${ECHO_T}$INSTALL_INFO" >&6
3996 echo "$as_me:$LINENO: result: no" >&5
3997 echo "${ECHO_T}no" >&6
4000 # Extract the first word of "install-info", so it can be a program name with args.
4001 set dummy install-info
; ac_word
=$2
4002 echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 case $INSTALL_INFO in
4009 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4013 for as_dir
in /usr
/sbin
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4031 if test -n "$INSTALL_INFO"; then
4032 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4033 echo "${ECHO_T}$INSTALL_INFO" >&6
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4039 # Extract the first word of "install-info", so it can be a program name with args.
4040 set dummy install-info
; ac_word
=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 case $INSTALL_INFO in
4048 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir
=.
4056 for ac_exec_ext
in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4069 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4071 if test -n "$INSTALL_INFO"; then
4072 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4073 echo "${ECHO_T}$INSTALL_INFO" >&6
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4081 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4083 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4086 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4088 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4093 echo "$as_me:$LINENO: checking for egrep" >&5
4094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4095 if test "${ac_cv_prog_egrep+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4099 then ac_cv_prog_egrep
='grep -E'
4100 else ac_cv_prog_egrep
='egrep'
4103 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4104 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4105 EGREP
=$ac_cv_prog_egrep
4109 echo "$as_me:$LINENO: checking for AIX" >&5
4110 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4111 cat >conftest.
$ac_ext <<_ACEOF
4112 #line $LINENO "configure"
4115 cat confdefs.h
>>conftest.
$ac_ext
4116 cat >>conftest.
$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "yes" >/dev
/null
2>&1; then
4125 echo "$as_me:$LINENO: result: yes" >&5
4126 echo "${ECHO_T}yes" >&6
4127 cat >>confdefs.h
<<\_ACEOF
4128 #define _ALL_SOURCE 1
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4139 #### Extract some information from the operating system and machine files.
4141 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4142 - which libraries the lib-src programs will want, and
4143 - whether the GNU malloc routines are usable..." >&5
4144 echo "$as_me: checking the machine- and system-dependent files to find out
4145 - which libraries the lib-src programs will want, and
4146 - whether the GNU malloc routines are usable..." >&6;}
4148 ### First figure out CFLAGS (which we use for running the compiler here)
4149 ### and REAL_CFLAGS (which we use for real compilation).
4150 ### The two are the same except on a few systems, where they are made
4151 ### different to work around various lossages. For example,
4152 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4153 ### as implying static linking.
4155 ### If the CFLAGS env var is specified, we use that value
4156 ### instead of the default.
4158 ### It's not important that this name contain the PID; you can't run
4159 ### two configures in the same directory and have anything work
4161 tempcname
="conftest.c"
4164 #include "'${srcdir}'/src/'${opsysfile}'"
4165 #include "'${srcdir}'/src/'${machfile}'"
4166 #ifndef LIBS_MACHINE
4167 #define LIBS_MACHINE
4172 #ifndef C_SWITCH_SYSTEM
4173 #define C_SWITCH_SYSTEM
4175 #ifndef C_SWITCH_MACHINE
4176 #define C_SWITCH_MACHINE
4178 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4179 configure___ c_switch_system=C_SWITCH_SYSTEM
4180 configure___ c_switch_machine=C_SWITCH_MACHINE
4183 #define LIB_X11_LIB -lX11
4186 #ifndef LIBX11_MACHINE
4187 #define LIBX11_MACHINE
4190 #ifndef LIBX11_SYSTEM
4191 #define LIBX11_SYSTEM
4193 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4196 configure___ unexec=UNEXEC
4198 configure___ unexec=unexec.o
4201 #ifdef SYSTEM_MALLOC
4202 configure___ system_malloc=yes
4204 configure___ system_malloc=no
4207 #ifdef USE_MMAP_FOR_BUFFERS
4208 configure___ use_mmap_for_buffers=yes
4210 configure___ use_mmap_for_buffers=no
4213 #ifndef C_DEBUG_SWITCH
4214 #define C_DEBUG_SWITCH -g
4217 #ifndef C_OPTIMIZE_SWITCH
4219 #define C_OPTIMIZE_SWITCH -O2
4221 #define C_OPTIMIZE_SWITCH -O
4225 #ifndef LD_SWITCH_MACHINE
4226 #define LD_SWITCH_MACHINE
4229 #ifndef LD_SWITCH_SYSTEM
4230 #define LD_SWITCH_SYSTEM
4233 #ifndef LD_SWITCH_X_SITE_AUX
4234 #define LD_SWITCH_X_SITE_AUX
4237 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4238 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4240 #ifdef THIS_IS_CONFIGURE
4242 /* Get the CFLAGS for tests in configure. */
4244 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4246 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4249 #else /* not THIS_IS_CONFIGURE */
4251 /* Get the CFLAGS for real compilation. */
4253 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4255 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4258 #endif /* not THIS_IS_CONFIGURE */
4261 # The value of CPP is a quoted variable reference, so we need to do this
4262 # to get its actual value...
4263 CPP
=`eval "echo $CPP"`
4264 eval `${CPP} -Isrc ${tempcname} \
4265 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4266 if test "x$SPECIFIED_CFLAGS" = x
; then
4267 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4268 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4270 REAL_CFLAGS
="$CFLAGS"
4274 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4276 ### Make sure subsequent tests use flags consistent with the build flags.
4278 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4279 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4281 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4287 cat >>confdefs.h
<<\_ACEOF
4288 #define _GNU_SOURCE 1
4293 # Check whether --enable-largefile or --disable-largefile was given.
4294 if test "${enable_largefile+set}" = set; then
4295 enableval
="$enable_largefile"
4298 if test "$enable_largefile" != no
; then
4300 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4301 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4302 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 ac_cv_sys_largefile_CC
=no
4306 if test "$GCC" != yes; then
4309 # IRIX 6.2 and later do not support large files by default,
4310 # so use the C compiler's -n32 option if that helps.
4311 cat >conftest.
$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4315 cat confdefs.h
>>conftest.
$ac_ext
4316 cat >>conftest.
$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 /* Check that off_t can represent 2**63 - 1 correctly.
4320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4321 since some C++ compilers masquerading as C compilers
4322 incorrectly reject 9223372036854775807. */
4323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4325 && LARGE_OFF_T % 2147483647 == 1)
4335 rm -f conftest.
$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try
='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.
$ac_ext >&5
4353 rm -f conftest.
$ac_objext
4355 rm -f conftest.
$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try
='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_cv_sys_largefile_CC
=' -n32'; break
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.
$ac_ext >&5
4373 rm -f conftest.
$ac_objext
4377 rm -f conftest.
$ac_ext
4380 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4381 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4382 if test "$ac_cv_sys_largefile_CC" != no
; then
4383 CC
=$CC$ac_cv_sys_largefile_CC
4386 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4387 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4388 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_cv_sys_file_offset_bits
=no
4393 cat >conftest.
$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4397 cat confdefs.h
>>conftest.
$ac_ext
4398 cat >>conftest.
$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <sys/types.h>
4401 /* Check that off_t can represent 2**63 - 1 correctly.
4402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4403 since some C++ compilers masquerading as C compilers
4404 incorrectly reject 9223372036854775807. */
4405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4407 && LARGE_OFF_T % 2147483647 == 1)
4417 rm -f conftest.
$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try
='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.
$ac_ext >&5
4435 rm -f conftest.
$ac_objext conftest.
$ac_ext
4436 cat >conftest.
$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4440 cat confdefs.h
>>conftest.
$ac_ext
4441 cat >>conftest.
$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #define _FILE_OFFSET_BITS 64
4444 #include <sys/types.h>
4445 /* Check that off_t can represent 2**63 - 1 correctly.
4446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447 since some C++ compilers masquerading as C compilers
4448 incorrectly reject 9223372036854775807. */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451 && LARGE_OFF_T % 2147483647 == 1)
4461 rm -f conftest.
$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try
='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_sys_file_offset_bits
=64; break
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.
$ac_ext >&5
4479 rm -f conftest.
$ac_objext conftest.
$ac_ext
4483 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4484 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4485 if test "$ac_cv_sys_file_offset_bits" != no
; then
4487 cat >>confdefs.h
<<_ACEOF
4488 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4493 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4494 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4495 if test "${ac_cv_sys_large_files+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 ac_cv_sys_large_files
=no
4500 cat >conftest.
$ac_ext <<_ACEOF
4501 #line $LINENO "configure"
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <sys/types.h>
4508 /* Check that off_t can represent 2**63 - 1 correctly.
4509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510 since some C++ compilers masquerading as C compilers
4511 incorrectly reject 9223372036854775807. */
4512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514 && LARGE_OFF_T % 2147483647 == 1)
4524 rm -f conftest.
$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try
='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.
$ac_ext >&5
4542 rm -f conftest.
$ac_objext conftest.
$ac_ext
4543 cat >conftest.
$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4547 cat confdefs.h
>>conftest.
$ac_ext
4548 cat >>conftest.
$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #define _LARGE_FILES 1
4551 #include <sys/types.h>
4552 /* Check that off_t can represent 2**63 - 1 correctly.
4553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4554 since some C++ compilers masquerading as C compilers
4555 incorrectly reject 9223372036854775807. */
4556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4558 && LARGE_OFF_T % 2147483647 == 1)
4568 rm -f conftest.
$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try
='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_cv_sys_large_files
=1; break
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.
$ac_ext >&5
4586 rm -f conftest.
$ac_objext conftest.
$ac_ext
4590 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4591 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4592 if test "$ac_cv_sys_large_files" != no
; then
4594 cat >>confdefs.h
<<_ACEOF
4595 #define _LARGE_FILES $ac_cv_sys_large_files
4603 if test "${with_sound}" != "no"; then
4604 # Sound support for GNU/Linux and the free BSDs.
4605 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4606 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4607 if test "${ac_cv_header_stdc+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 cat >conftest.
$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4614 cat confdefs.h
>>conftest.
$ac_ext
4615 cat >>conftest.
$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4630 rm -f conftest.
$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try
='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_cv_header_stdc
=yes
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.
$ac_ext >&5
4647 ac_cv_header_stdc
=no
4649 rm -f conftest.
$ac_objext conftest.
$ac_ext
4651 if test $ac_cv_header_stdc = yes; then
4652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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. */
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "memchr" >/dev
/null
2>&1; then
4667 ac_cv_header_stdc
=no
4673 if test $ac_cv_header_stdc = yes; then
4674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4675 cat >conftest.
$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4679 cat confdefs.h
>>conftest.
$ac_ext
4680 cat >>conftest.
$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4686 $EGREP "free" >/dev
/null
2>&1; then
4689 ac_cv_header_stdc
=no
4695 if test $ac_cv_header_stdc = yes; then
4696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4697 if test "$cross_compiling" = yes; then
4700 cat >conftest.
$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4704 cat confdefs.h
>>conftest.
$ac_ext
4705 cat >>conftest.
$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4708 #if ((' ' & 0x0FF) == 0x020)
4709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712 # define ISLOWER(c) \
4713 (('a' <= (c) && (c) <= 'i') \
4714 || ('j' <= (c) && (c) <= 'r') \
4715 || ('s' <= (c) && (c) <= 'z'))
4716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4724 for (i = 0; i < 256; i++)
4725 if (XOR (islower (i), ISLOWER (i))
4726 || toupper (i) != TOUPPER (i))
4731 rm -f conftest
$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4749 ac_cv_header_stdc
=no
4751 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4755 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4756 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4757 if test $ac_cv_header_stdc = yes; then
4759 cat >>confdefs.h
<<\_ACEOF
4760 #define STDC_HEADERS 1
4765 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4775 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4776 inttypes.h stdint.h unistd.h
4778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_header" >&5
4780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 cat >conftest.
$ac_ext <<_ACEOF
4785 #line $LINENO "configure"
4788 cat confdefs.h
>>conftest.
$ac_ext
4789 cat >>conftest.
$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4793 #include <$ac_header>
4795 rm -f conftest.
$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try
='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 eval "$as_ac_Header=yes"
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.
$ac_ext >&5
4812 eval "$as_ac_Header=no"
4814 rm -f conftest.
$ac_objext conftest.
$ac_ext
4816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4819 cat >>confdefs.h
<<_ACEOF
4820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4831 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4833 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 # Is the header compilable?
4844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846 cat >conftest.
$ac_ext <<_ACEOF
4847 #line $LINENO "configure"
4850 cat confdefs.h
>>conftest.
$ac_ext
4851 cat >>conftest.
$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4854 #include <$ac_header>
4856 rm -f conftest.
$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try
='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_header_compiler
=yes
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.
$ac_ext >&5
4873 ac_header_compiler
=no
4875 rm -f conftest.
$ac_objext conftest.
$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877 echo "${ECHO_T}$ac_header_compiler" >&6
4879 # Is the header present?
4880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4882 cat >conftest.
$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4886 cat confdefs.h
>>conftest.
$ac_ext
4887 cat >>conftest.
$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 #include <$ac_header>
4891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4894 grep -v '^ *+' conftest.er1
>conftest.err
4896 cat conftest.err
>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } >/dev
/null
; then
4899 if test -s conftest.err
; then
4900 ac_cpp_err
=$ac_c_preproc_warn_flag
4907 if test -z "$ac_cpp_err"; then
4908 ac_header_preproc
=yes
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.
$ac_ext >&5
4913 ac_header_preproc
=no
4915 rm -f conftest.err conftest.
$ac_ext
4916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917 echo "${ECHO_T}$ac_header_preproc" >&6
4919 # So? What about this header?
4920 case $ac_header_compiler:$ac_header_preproc in
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4928 ## ------------------------------------ ##
4929 ## Report this to bug-autoconf@gnu.org. ##
4930 ## ------------------------------------ ##
4933 sed "s/^/$as_me: WARNING: /" >&2
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4944 ## ------------------------------------ ##
4945 ## Report this to bug-autoconf@gnu.org. ##
4946 ## ------------------------------------ ##
4949 sed "s/^/$as_me: WARNING: /" >&2
4952 echo "$as_me:$LINENO: checking for $ac_header" >&5
4953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 eval "$as_ac_Header=$ac_header_preproc"
4959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4964 cat >>confdefs.h
<<_ACEOF
4965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4972 # Emulation library used on NetBSD.
4973 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4974 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4975 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 ac_check_lib_save_LIBS
=$LIBS
4979 LIBS
="-lossaudio $LIBS"
4980 cat >conftest.
$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4984 cat confdefs.h
>>conftest.
$ac_ext
4985 cat >>conftest.
$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4988 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
5003 rm -f conftest.
$ac_objext conftest
$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try
='test -s conftest$ac_exeext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_lib_ossaudio__oss_ioctl
=yes
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.
$ac_ext >&5
5020 ac_cv_lib_ossaudio__oss_ioctl
=no
5022 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5023 LIBS
=$ac_check_lib_save_LIBS
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5026 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5027 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5059 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5060 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5061 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5062 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5064 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5066 echo "$as_me:$LINENO: checking for $ac_header" >&5
5067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5074 # Is the header compilable?
5075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5077 cat >conftest.
$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5081 cat confdefs.h
>>conftest.
$ac_ext
5082 cat >>conftest.
$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085 #include <$ac_header>
5087 rm -f conftest.
$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try
='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_header_compiler
=yes
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.
$ac_ext >&5
5104 ac_header_compiler
=no
5106 rm -f conftest.
$ac_objext conftest.
$ac_ext
5107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5108 echo "${ECHO_T}$ac_header_compiler" >&6
5110 # Is the header present?
5111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5113 cat >conftest.
$ac_ext <<_ACEOF
5114 #line $LINENO "configure"
5117 cat confdefs.h
>>conftest.
$ac_ext
5118 cat >>conftest.
$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #include <$ac_header>
5122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5125 grep -v '^ *+' conftest.er1
>conftest.err
5127 cat conftest.err
>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev
/null
; then
5130 if test -s conftest.err
; then
5131 ac_cpp_err
=$ac_c_preproc_warn_flag
5138 if test -z "$ac_cpp_err"; then
5139 ac_header_preproc
=yes
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.
$ac_ext >&5
5144 ac_header_preproc
=no
5146 rm -f conftest.err conftest.
$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5148 echo "${ECHO_T}$ac_header_preproc" >&6
5150 # So? What about this header?
5151 case $ac_header_compiler:$ac_header_preproc in
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159 ## ------------------------------------ ##
5160 ## Report this to bug-autoconf@gnu.org. ##
5161 ## ------------------------------------ ##
5164 sed "s/^/$as_me: WARNING: /" >&2
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5175 ## ------------------------------------ ##
5176 ## Report this to bug-autoconf@gnu.org. ##
5177 ## ------------------------------------ ##
5180 sed "s/^/$as_me: WARNING: /" >&2
5183 echo "$as_me:$LINENO: checking for $ac_header" >&5
5184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 eval "$as_ac_Header=$ac_header_preproc"
5190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5195 cat >>confdefs.h
<<_ACEOF
5196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5204 for ac_header
in term.h
5206 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 cat >conftest.
$ac_ext <<_ACEOF
5213 #line $LINENO "configure"
5216 cat confdefs.h
>>conftest.
$ac_ext
5217 cat >>conftest.
$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <$ac_header>
5221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5222 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5224 grep -v '^ *+' conftest.er1
>conftest.err
5226 cat conftest.err
>&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } >/dev
/null
; then
5229 if test -s conftest.err
; then
5230 ac_cpp_err
=$ac_c_preproc_warn_flag
5237 if test -z "$ac_cpp_err"; then
5238 eval "$as_ac_Header=yes"
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.
$ac_ext >&5
5243 eval "$as_ac_Header=no"
5245 rm -f conftest.err conftest.
$ac_ext
5247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5250 cat >>confdefs.h
<<_ACEOF
5251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5258 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5260 if test "${ac_cv_header_stdc+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 cat >conftest.
$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5267 cat confdefs.h
>>conftest.
$ac_ext
5268 cat >>conftest.
$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5283 rm -f conftest.
$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try
='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_header_stdc
=yes
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.
$ac_ext >&5
5300 ac_cv_header_stdc
=no
5302 rm -f conftest.
$ac_objext conftest.
$ac_ext
5304 if test $ac_cv_header_stdc = yes; then
5305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5306 cat >conftest.
$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5310 cat confdefs.h
>>conftest.
$ac_ext
5311 cat >>conftest.
$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "memchr" >/dev
/null
2>&1; then
5320 ac_cv_header_stdc
=no
5326 if test $ac_cv_header_stdc = yes; then
5327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5328 cat >conftest.
$ac_ext <<_ACEOF
5329 #line $LINENO "configure"
5332 cat confdefs.h
>>conftest.
$ac_ext
5333 cat >>conftest.
$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 $EGREP "free" >/dev
/null
2>&1; then
5342 ac_cv_header_stdc
=no
5348 if test $ac_cv_header_stdc = yes; then
5349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5350 if test "$cross_compiling" = yes; then
5353 cat >conftest.
$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5357 cat confdefs.h
>>conftest.
$ac_ext
5358 cat >>conftest.
$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5361 #if ((' ' & 0x0FF) == 0x020)
5362 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5363 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5365 # define ISLOWER(c) \
5366 (('a' <= (c) && (c) <= 'i') \
5367 || ('j' <= (c) && (c) <= 'r') \
5368 || ('s' <= (c) && (c) <= 'z'))
5369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5377 for (i = 0; i < 256; i++)
5378 if (XOR (islower (i), ISLOWER (i))
5379 || toupper (i) != TOUPPER (i))
5384 rm -f conftest
$ac_exeext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5386 (eval $ac_link) 2>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5397 echo "$as_me: program exited with status $ac_status" >&5
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.
$ac_ext >&5
5402 ac_cv_header_stdc
=no
5404 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5408 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5409 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5410 if test $ac_cv_header_stdc = yes; then
5412 cat >>confdefs.h
<<\_ACEOF
5413 #define STDC_HEADERS 1
5418 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5419 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5420 if test "${ac_cv_header_time+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 cat >conftest.
$ac_ext <<_ACEOF
5424 #line $LINENO "configure"
5427 cat confdefs.h
>>conftest.
$ac_ext
5428 cat >>conftest.
$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 #include <sys/types.h>
5431 #include <sys/time.h>
5437 if ((struct tm *) 0)
5443 rm -f conftest.
$ac_objext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try
='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_header_time
=yes
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.
$ac_ext >&5
5460 ac_cv_header_time
=no
5462 rm -f conftest.
$ac_objext conftest.
$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5465 echo "${ECHO_T}$ac_cv_header_time" >&6
5466 if test $ac_cv_header_time = yes; then
5468 cat >>confdefs.h
<<\_ACEOF
5469 #define TIME_WITH_SYS_TIME 1
5474 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5475 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5476 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5483 cat confdefs.h
>>conftest.
$ac_ext
5484 cat >>conftest.
$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 $ac_includes_default
5491 char *p = (char *) sys_siglist;
5498 rm -f conftest.
$ac_objext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try
='test -s conftest.$ac_objext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_have_decl_sys_siglist
=yes
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.
$ac_ext >&5
5515 ac_cv_have_decl_sys_siglist
=no
5517 rm -f conftest.
$ac_objext conftest.
$ac_ext
5519 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5520 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5521 if test $ac_cv_have_decl_sys_siglist = yes; then
5523 cat >>confdefs.h
<<_ACEOF
5524 #define HAVE_DECL_SYS_SIGLIST 1
5529 cat >>confdefs.h
<<_ACEOF
5530 #define HAVE_DECL_SYS_SIGLIST 0
5537 if test $ac_cv_have_decl_sys_siglist != yes; then
5538 # For Tru64, at least:
5539 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5540 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5541 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 cat >conftest.
$ac_ext <<_ACEOF
5545 #line $LINENO "configure"
5548 cat confdefs.h
>>conftest.
$ac_ext
5549 cat >>conftest.
$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 $ac_includes_default
5555 #ifndef __sys_siglist
5556 char *p = (char *) __sys_siglist;
5563 rm -f conftest.
$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try
='test -s conftest.$ac_objext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 ac_cv_have_decl___sys_siglist
=yes
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.
$ac_ext >&5
5580 ac_cv_have_decl___sys_siglist
=no
5582 rm -f conftest.
$ac_objext conftest.
$ac_ext
5584 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5585 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5586 if test $ac_cv_have_decl___sys_siglist = yes; then
5588 cat >>confdefs.h
<<_ACEOF
5589 #define HAVE_DECL___SYS_SIGLIST 1
5594 cat >>confdefs.h
<<_ACEOF
5595 #define HAVE_DECL___SYS_SIGLIST 0
5602 if test $ac_cv_have_decl___sys_siglist = yes; then
5604 cat >>confdefs.h
<<\_ACEOF
5605 #define sys_siglist __sys_siglist
5610 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5611 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5612 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5619 cat confdefs.h
>>conftest.
$ac_ext
5620 cat >>conftest.
$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 #include <sys/wait.h>
5625 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5628 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5636 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5641 rm -f conftest.
$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try
='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_header_sys_wait_h
=yes
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.
$ac_ext >&5
5658 ac_cv_header_sys_wait_h
=no
5660 rm -f conftest.
$ac_objext conftest.
$ac_ext
5662 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5663 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5664 if test $ac_cv_header_sys_wait_h = yes; then
5666 cat >>confdefs.h
<<\_ACEOF
5667 #define HAVE_SYS_WAIT_H 1
5673 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5674 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5675 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 cat >conftest.
$ac_ext <<_ACEOF
5679 #line $LINENO "configure"
5682 cat confdefs.h
>>conftest.
$ac_ext
5683 cat >>conftest.
$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 #ifdef TIME_WITH_SYS_TIME
5686 #include <sys/time.h>
5689 #ifdef HAVE_SYS_TIME_H
5690 #include <sys/time.h>
5701 static struct utimbuf x; x.actime = x.modtime;
5706 rm -f conftest.
$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try
='test -s conftest.$ac_objext'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 emacs_cv_struct_utimbuf
=yes
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.
$ac_ext >&5
5723 emacs_cv_struct_utimbuf
=no
5725 rm -f conftest.
$ac_objext conftest.
$ac_ext
5727 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5728 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5729 if test $emacs_cv_struct_utimbuf = yes; then
5731 cat >>confdefs.h
<<\_ACEOF
5732 #define HAVE_STRUCT_UTIMBUF 1
5737 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5738 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5739 if test "${ac_cv_type_signal+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 cat >conftest.
$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5746 cat confdefs.h
>>conftest.
$ac_ext
5747 cat >>conftest.
$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <sys/types.h>
5755 extern "C" void (*signal (int, void (*)(int)))(int);
5757 void (*signal ()) ();
5768 rm -f conftest.
$ac_objext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try
='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_cv_type_signal
=void
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.
$ac_ext >&5
5785 ac_cv_type_signal
=int
5787 rm -f conftest.
$ac_objext conftest.
$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5790 echo "${ECHO_T}$ac_cv_type_signal" >&6
5792 cat >>confdefs.h
<<_ACEOF
5793 #define RETSIGTYPE $ac_cv_type_signal
5798 echo "$as_me:$LINENO: checking for speed_t" >&5
5799 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5800 if test "${emacs_cv_speed_t+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 cat >conftest.
$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5807 cat confdefs.h
>>conftest.
$ac_ext
5808 cat >>conftest.
$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <termios.h>
5819 rm -f conftest.
$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try
='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 emacs_cv_speed_t
=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.
$ac_ext >&5
5838 rm -f conftest.
$ac_objext conftest.
$ac_ext
5840 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5841 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5842 if test $emacs_cv_speed_t = yes; then
5844 cat >>confdefs.h
<<\_ACEOF
5845 #define HAVE_SPEED_T 1
5850 echo "$as_me:$LINENO: checking for struct timeval" >&5
5851 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5852 if test "${emacs_cv_struct_timeval+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cat >conftest.
$ac_ext <<_ACEOF
5856 #line $LINENO "configure"
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #ifdef TIME_WITH_SYS_TIME
5863 #include <sys/time.h>
5866 #ifdef HAVE_SYS_TIME_H
5867 #include <sys/time.h>
5875 static struct timeval x; x.tv_sec = x.tv_usec;
5880 rm -f conftest.
$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try
='test -s conftest.$ac_objext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 emacs_cv_struct_timeval
=yes
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.
$ac_ext >&5
5897 emacs_cv_struct_timeval
=no
5899 rm -f conftest.
$ac_objext conftest.
$ac_ext
5901 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5902 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5903 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5904 if test $emacs_cv_struct_timeval = yes; then
5906 cat >>confdefs.h
<<\_ACEOF
5907 #define HAVE_TIMEVAL 1
5912 echo "$as_me:$LINENO: checking for struct exception" >&5
5913 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5914 if test "${emacs_cv_struct_exception+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 cat >conftest.
$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5921 cat confdefs.h
>>conftest.
$ac_ext
5922 cat >>conftest.
$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5928 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5933 rm -f conftest.
$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try
='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 emacs_cv_struct_exception
=yes
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.
$ac_ext >&5
5950 emacs_cv_struct_exception
=no
5952 rm -f conftest.
$ac_objext conftest.
$ac_ext
5954 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5955 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5956 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5957 if test $emacs_cv_struct_exception != yes; then
5959 cat >>confdefs.h
<<\_ACEOF
5960 #define NO_MATHERR 1
5965 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5966 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5967 if test "${ac_cv_struct_tm+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 cat >conftest.
$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5974 cat confdefs.h
>>conftest.
$ac_ext
5975 cat >>conftest.
$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <sys/types.h>
5983 struct tm *tp; tp->tm_sec;
5988 rm -f conftest.
$ac_objext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990 (eval $ac_compile) 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try
='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_struct_tm
=time.h
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.
$ac_ext >&5
6005 ac_cv_struct_tm
=sys
/time.h
6007 rm -f conftest.
$ac_objext conftest.
$ac_ext
6009 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6010 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6011 if test $ac_cv_struct_tm = sys
/time.h
; then
6013 cat >>confdefs.h
<<\_ACEOF
6014 #define TM_IN_SYS_TIME 1
6019 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6020 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6021 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 cat >conftest.
$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6028 cat confdefs.h
>>conftest.
$ac_ext
6029 cat >>conftest.
$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <sys/types.h>
6032 #include <$ac_cv_struct_tm>
6038 static struct tm ac_aggr;
6039 if (ac_aggr.tm_zone)
6045 rm -f conftest.
$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try
='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_member_struct_tm_tm_zone
=yes
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.
$ac_ext >&5
6062 cat >conftest.
$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6066 cat confdefs.h
>>conftest.
$ac_ext
6067 cat >>conftest.
$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <sys/types.h>
6070 #include <$ac_cv_struct_tm>
6076 static struct tm ac_aggr;
6077 if (sizeof ac_aggr.tm_zone)
6083 rm -f conftest.
$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try
='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_member_struct_tm_tm_zone
=yes
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.
$ac_ext >&5
6100 ac_cv_member_struct_tm_tm_zone
=no
6102 rm -f conftest.
$ac_objext conftest.
$ac_ext
6104 rm -f conftest.
$ac_objext conftest.
$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6107 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6108 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6110 cat >>confdefs.h
<<_ACEOF
6111 #define HAVE_STRUCT_TM_TM_ZONE 1
6117 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6119 cat >>confdefs.h
<<\_ACEOF
6120 #define HAVE_TM_ZONE 1
6124 echo "$as_me:$LINENO: checking for tzname" >&5
6125 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6126 if test "${ac_cv_var_tzname+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.
$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6133 cat confdefs.h
>>conftest.
$ac_ext
6134 cat >>conftest.
$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6137 #ifndef tzname /* For SGI. */
6138 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6149 rm -f conftest.
$ac_objext conftest
$ac_exeext
6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151 (eval $ac_link) 2>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try
='test -s conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_var_tzname
=yes
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.
$ac_ext >&5
6168 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6171 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6172 if test $ac_cv_var_tzname = yes; then
6174 cat >>confdefs.h
<<\_ACEOF
6175 #define HAVE_TZNAME 1
6181 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6182 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6183 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 cat >conftest.
$ac_ext <<_ACEOF
6187 #line $LINENO "configure"
6190 cat confdefs.h
>>conftest.
$ac_ext
6191 cat >>conftest.
$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6198 static struct tm ac_aggr;
6199 if (ac_aggr.tm_gmtoff)
6205 rm -f conftest.
$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try
='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_member_struct_tm_tm_gmtoff
=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.
$ac_ext >&5
6222 cat >conftest.
$ac_ext <<_ACEOF
6223 #line $LINENO "configure"
6226 cat confdefs.h
>>conftest.
$ac_ext
6227 cat >>conftest.
$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6234 static struct tm ac_aggr;
6235 if (sizeof ac_aggr.tm_gmtoff)
6241 rm -f conftest.
$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try
='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_member_struct_tm_tm_gmtoff
=yes
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.
$ac_ext >&5
6258 ac_cv_member_struct_tm_tm_gmtoff
=no
6260 rm -f conftest.
$ac_objext conftest.
$ac_ext
6262 rm -f conftest.
$ac_objext conftest.
$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6265 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6266 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6268 cat >>confdefs.h
<<\_ACEOF
6269 #define HAVE_TM_GMTOFF 1
6276 echo "$as_me:$LINENO: checking for function prototypes" >&5
6277 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6278 if test "$ac_cv_prog_cc_stdc" != no
; then
6279 echo "$as_me:$LINENO: result: yes" >&5
6280 echo "${ECHO_T}yes" >&6
6282 cat >>confdefs.h
<<\_ACEOF
6283 #define PROTOTYPES 1
6287 cat >>confdefs.h
<<\_ACEOF
6288 #define __PROTOTYPES 1
6292 echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6
6296 echo "$as_me:$LINENO: checking for working volatile" >&5
6297 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6298 if test "${ac_cv_c_volatile+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 cat >conftest.
$ac_ext <<_ACEOF
6302 #line $LINENO "configure"
6305 cat confdefs.h
>>conftest.
$ac_ext
6306 cat >>conftest.
$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6319 rm -f conftest.
$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try
='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_cv_c_volatile
=yes
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.
$ac_ext >&5
6338 rm -f conftest.
$ac_objext conftest.
$ac_ext
6340 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6341 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6342 if test $ac_cv_c_volatile = no
; then
6344 cat >>confdefs.h
<<\_ACEOF
6350 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6351 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6352 if test "${ac_cv_c_const+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 cat >conftest.
$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6359 cat confdefs.h
>>conftest.
$ac_ext
6360 cat >>conftest.
$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6366 /* FIXME: Include the comments suggested by Paul. */
6368 /* Ultrix mips cc rejects this. */
6369 typedef int charset[2];
6371 /* SunOS 4.1.1 cc rejects this. */
6372 char const *const *ccp;
6374 /* NEC SVR4.0.2 mips cc rejects this. */
6375 struct point {int x, y;};
6376 static struct point const zero = {0,0};
6377 /* AIX XL C 1.02.0.0 rejects this.
6378 It does not let you subtract one const X* pointer from another in
6379 an arm of an if-expression whose if-part is not a constant
6381 const char *g = "string";
6382 ccp = &g + (g ? g-g : 0);
6383 /* HPUX 7.0 cc rejects these. */
6386 ccp = (char const *const *) p;
6387 { /* SCO 3.2v4 cc rejects this. */
6389 char const *s = 0 ? (char *) 0 : (char const *) 0;
6393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6395 const int *foo = &x[0];
6398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6399 typedef const int *iptr;
6403 { /* AIX XL C 1.02.0.0 rejects this saying
6404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6405 struct s { int j; const int *ap[3]; };
6406 struct s *b; b->j = 5;
6408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try
='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.
$ac_ext >&5
6436 rm -f conftest.
$ac_objext conftest.
$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6439 echo "${ECHO_T}$ac_cv_c_const" >&6
6440 if test $ac_cv_c_const = no
; then
6442 cat >>confdefs.h
<<\_ACEOF
6448 echo "$as_me:$LINENO: checking for void * support" >&5
6449 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6450 if test "${emacs_cv_void_star+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 cat >conftest.
$ac_ext <<_ACEOF
6454 #line $LINENO "configure"
6457 cat confdefs.h
>>conftest.
$ac_ext
6458 cat >>conftest.
$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6469 rm -f conftest.
$ac_objext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try
='test -s conftest.$ac_objext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 emacs_cv_void_star
=yes
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.
$ac_ext >&5
6486 emacs_cv_void_star
=no
6488 rm -f conftest.
$ac_objext conftest.
$ac_ext
6490 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6491 echo "${ECHO_T}$emacs_cv_void_star" >&6
6492 if test $emacs_cv_void_star = yes; then
6493 cat >>confdefs.h
<<\_ACEOF
6494 #define POINTER_TYPE void
6498 cat >>confdefs.h
<<\_ACEOF
6499 #define POINTER_TYPE char
6506 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6507 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6508 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6509 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 cat >conftest.
make <<\_ACEOF
6514 @
echo 'ac_maketemp="$(MAKE)"'
6516 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6517 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6518 if test -n "$ac_maketemp"; then
6519 eval ac_cv_prog_make_
${ac_make}_set
=yes
6521 eval ac_cv_prog_make_
${ac_make}_set
=no
6525 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6526 echo "$as_me:$LINENO: result: yes" >&5
6527 echo "${ECHO_T}yes" >&6
6530 echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6
6532 SET_MAKE
="MAKE=${MAKE-make}"
6536 echo "$as_me:$LINENO: checking for long file names" >&5
6537 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6538 if test "${ac_cv_sys_long_file_names+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 ac_cv_sys_long_file_names
=yes
6542 # Test for long file names in all the places we know might matter:
6543 # . the current directory, where building will happen
6544 # $prefix/lib where we will be installing things
6545 # $exec_prefix/lib likewise
6546 # eval it to expand exec_prefix.
6547 # $TMPDIR if set, where it might want to write temporary files
6548 # if $TMPDIR is not set:
6549 # /tmp where it might want to write temporary files
6552 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6555 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6557 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6558 test -d $ac_dir ||
continue
6559 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6560 ac_xdir
=$ac_dir/cf$$
6561 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6562 ac_tf1
=$ac_xdir/conftest9012345
6563 ac_tf2
=$ac_xdir/conftest9012346
6564 (echo 1 >$ac_tf1) 2>/dev
/null
6565 (echo 2 >$ac_tf2) 2>/dev
/null
6566 ac_val
=`cat $ac_tf1 2>/dev/null`
6567 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6568 ac_cv_sys_long_file_names
=no
6569 rm -rf $ac_xdir 2>/dev
/null
6572 rm -rf $ac_xdir 2>/dev
/null
6575 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6576 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6577 if test $ac_cv_sys_long_file_names = yes; then
6579 cat >>confdefs.h
<<\_ACEOF
6580 #define HAVE_LONG_FILE_NAMES 1
6586 #### Choose a window system.
6588 echo "$as_me:$LINENO: checking for X" >&5
6589 echo $ECHO_N "checking for X... $ECHO_C" >&6
6592 # Check whether --with-x or --without-x was given.
6593 if test "${with_x+set}" = set; then
6597 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6598 if test "x$with_x" = xno
; then
6599 # The user explicitly disabled X.
6602 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6603 # Both variables are already set.
6606 if test "${ac_cv_have_x+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 # One or both of the vars are not set, and there is no cached value.
6610 ac_x_includes
=no ac_x_libraries
=no
6612 if mkdir conftest.dir
; then
6614 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6615 cat >Imakefile
<<'_ACEOF'
6617 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6619 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6620 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6621 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6622 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6623 for ac_extension
in a so sl
; do
6624 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6625 test -f $ac_im_libdir/libX11.
$ac_extension; then
6626 ac_im_usrlibdir
=$ac_im_libdir; break
6629 # Screen out bogus values from the imake configuration. They are
6630 # bogus both because they are the default anyway, and because
6631 # using them would break gcc on systems where it needs fixed includes.
6632 case $ac_im_incroot in
6634 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6636 case $ac_im_usrlibdir in
6638 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6645 # Standard set of common directories for X headers.
6646 # Check X11 before X11Rn because it is often a symlink to the current release.
6658 /usr/local/X11/include
6659 /usr/local/X11R6/include
6660 /usr/local/X11R5/include
6661 /usr/local/X11R4/include
6663 /usr/local/include/X11
6664 /usr/local/include/X11R6
6665 /usr/local/include/X11R5
6666 /usr/local/include/X11R4
6670 /usr/XFree86/include/X11
6674 /usr/unsupported/include
6676 /usr/local/x11r5/include
6677 /usr/lpp/Xamples/include
6679 /usr/openwin/include
6680 /usr/openwin/share/include'
6682 if test "$ac_x_includes" = no
; then
6683 # Guess where to find include files, by looking for Intrinsic.h.
6684 # First, try using that file with no special directory specified.
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>
6694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6697 grep -v '^ *+' conftest.er1
>conftest.err
6699 cat conftest.err
>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev
/null
; then
6702 if test -s conftest.err
; then
6703 ac_cpp_err
=$ac_c_preproc_warn_flag
6710 if test -z "$ac_cpp_err"; then
6711 # We can compile using X headers with no special include directory.
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.
$ac_ext >&5
6717 for ac_dir
in $ac_x_header_dirs; do
6718 if test -r "$ac_dir/X11/Intrinsic.h"; then
6719 ac_x_includes
=$ac_dir
6724 rm -f conftest.err conftest.
$ac_ext
6725 fi # $ac_x_includes = no
6727 if test "$ac_x_libraries" = no
; then
6728 # Check for the libraries.
6729 # See if we find them without any special options.
6730 # Don't add to $LIBS permanently.
6733 cat >conftest.
$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6737 cat confdefs.h
>>conftest.
$ac_ext
6738 cat >>conftest.
$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <X11/Intrinsic.h>
6749 rm -f conftest.
$ac_objext conftest
$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751 (eval $ac_link) 2>&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try
='test -s conftest$ac_exeext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6762 # We can link X programs with no special library path.
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.
$ac_ext >&5
6769 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6771 # Don't even attempt the hair of trying to link an X program!
6772 for ac_extension
in a so sl
; do
6773 if test -r $ac_dir/libXt.
$ac_extension; then
6774 ac_x_libraries
=$ac_dir
6780 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6781 fi # $ac_x_libraries = no
6783 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6784 # Didn't find X anywhere. Cache the known absence of X.
6785 ac_cv_have_x
="have_x=no"
6787 # Record where we found X for the cache.
6788 ac_cv_have_x
="have_x=yes \
6789 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6794 eval "$ac_cv_have_x"
6797 if test "$have_x" != yes; then
6798 echo "$as_me:$LINENO: result: $have_x" >&5
6799 echo "${ECHO_T}$have_x" >&6
6802 # If each of the values was on the command line, it overrides each guess.
6803 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6804 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6805 # Update the cache value to reflect the command line values.
6806 ac_cv_have_x
="have_x=yes \
6807 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6808 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6809 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6812 if test "$no_x" = yes; then
6818 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6819 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6820 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6821 x_default_search_path
=""
6822 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6824 ${x_library}/X11/%L/%T/%N%C%S:\
6825 ${x_library}/X11/%l/%T/%N%C%S:\
6826 ${x_library}/X11/%T/%N%C%S:\
6827 ${x_library}/X11/%L/%T/%N%S:\
6828 ${x_library}/X11/%l/%T/%N%S:\
6829 ${x_library}/X11/%T/%N%S"
6830 if test x
"${x_default_search_path}" = x
; then
6831 x_default_search_path
=${x_search_path}
6833 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6837 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6838 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6841 if test x
"${x_includes}" = x
; then
6842 bitmapdir
=/usr
/include
/X11
/bitmaps
6844 # accumulate include directories that have X11 bitmap subdirectories
6846 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6847 if test -d "${bmd}/X11/bitmaps"; then
6848 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6850 if test -d "${bmd}/bitmaps"; then
6851 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6854 if test ${bmd_acc} != "dummyval"; then
6855 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6859 case "${window_system}" in
6863 case "${with_x_toolkit}" in
6864 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6865 motif
) USE_X_TOOLKIT
=MOTIF
;;
6867 USE_X_TOOLKIT
=none
;;
6868 no
) USE_X_TOOLKIT
=none
;;
6869 * ) USE_X_TOOLKIT
=maybe
;;
6879 ### If we're using X11, we should use the X menu package.
6882 yes ) HAVE_MENUS
=yes ;;
6885 if test "${opsys}" = "hpux9"; then
6886 case "${x_libraries}" in
6888 opsysfile
="s/hpux9-x11r4.h"
6893 if test "${opsys}" = "hpux9shr"; then
6894 case "${x_libraries}" in
6896 opsysfile
="s/hpux9shxr4.h"
6901 ### Compute the unexec source name from the object name.
6902 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6904 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6905 # Assume not, until told otherwise.
6908 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6909 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6910 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 cat >conftest.
$ac_ext <<_ACEOF
6914 #line $LINENO "configure"
6917 cat confdefs.h
>>conftest.
$ac_ext
6918 cat >>conftest.
$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 /* System header to define __stub macros and hopefully few prototypes,
6921 which can conflict with char malloc_get_state (); below.
6922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6923 <limits.h> exists even on freestanding compilers. */
6925 # include <limits.h>
6927 # include <assert.h>
6929 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char malloc_get_state ();
6937 /* The GNU C library defines this for functions which it implements
6938 to always fail with ENOSYS. Some functions are actually named
6939 something starting with __ and the normal name is an alias. */
6940 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6943 char (*f) () = malloc_get_state;
6952 return f != malloc_get_state;
6957 rm -f conftest.
$ac_objext conftest
$ac_exeext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try
='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_func_malloc_get_state
=yes
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.
$ac_ext >&5
6974 ac_cv_func_malloc_get_state
=no
6976 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6978 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6979 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6980 if test $ac_cv_func_malloc_get_state = yes; then
6986 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6987 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6988 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.
$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6995 cat confdefs.h
>>conftest.
$ac_ext
6996 cat >>conftest.
$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 /* System header to define __stub macros and hopefully few prototypes,
6999 which can conflict with char malloc_set_state (); below.
7000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001 <limits.h> exists even on freestanding compilers. */
7003 # include <limits.h>
7005 # include <assert.h>
7007 /* Override any gcc2 internal prototype to avoid an error. */
7012 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */
7014 char malloc_set_state ();
7015 /* The GNU C library defines this for functions which it implements
7016 to always fail with ENOSYS. Some functions are actually named
7017 something starting with __ and the normal name is an alias. */
7018 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7021 char (*f) () = malloc_set_state;
7030 return f != malloc_set_state;
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 ac_cv_func_malloc_set_state
=yes
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.
$ac_ext >&5
7052 ac_cv_func_malloc_set_state
=no
7054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7056 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7057 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7058 if test $ac_cv_func_malloc_set_state = yes; then
7064 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7065 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7066 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 cat >conftest.
$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7073 cat confdefs.h
>>conftest.
$ac_ext
7074 cat >>conftest.
$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 extern void (* __after_morecore_hook)();
7080 __after_morecore_hook = 0
7085 rm -f conftest.
$ac_objext conftest
$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try
='test -s conftest$ac_exeext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 emacs_cv_var___after_morecore_hook
=yes
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.
$ac_ext >&5
7102 emacs_cv_var___after_morecore_hook
=no
7104 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7106 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7107 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7108 if test $emacs_cv_var___after_morecore_hook = no
; then
7111 if test "${system_malloc}" = "yes"; then
7114 (The GNU allocators don't work with this system configuration.)"
7116 if test "$doug_lea_malloc" = "yes" ; then
7117 if test "$GNU_MALLOC" = yes ; then
7119 (Using Doug Lea's new malloc from the GNU C Library.)"
7122 cat >>confdefs.h
<<\_ACEOF
7123 #define DOUG_LEA_MALLOC 1
7128 if test x
"${REL_ALLOC}" = x
; then
7129 REL_ALLOC
=${GNU_MALLOC}
7135 for ac_header
in stdlib.h unistd.h
7137 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7139 echo "$as_me:$LINENO: checking for $ac_header" >&5
7140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7147 # Is the header compilable?
7148 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7150 cat >conftest.
$ac_ext <<_ACEOF
7151 #line $LINENO "configure"
7154 cat confdefs.h
>>conftest.
$ac_ext
7155 cat >>conftest.
$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 $ac_includes_default
7158 #include <$ac_header>
7160 rm -f conftest.
$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try
='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_header_compiler
=yes
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.
$ac_ext >&5
7177 ac_header_compiler
=no
7179 rm -f conftest.
$ac_objext conftest.
$ac_ext
7180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7181 echo "${ECHO_T}$ac_header_compiler" >&6
7183 # Is the header present?
7184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7186 cat >conftest.
$ac_ext <<_ACEOF
7187 #line $LINENO "configure"
7190 cat confdefs.h
>>conftest.
$ac_ext
7191 cat >>conftest.
$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 #include <$ac_header>
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1
>conftest.err
7200 cat conftest.err
>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } >/dev
/null
; then
7203 if test -s conftest.err
; then
7204 ac_cpp_err
=$ac_c_preproc_warn_flag
7211 if test -z "$ac_cpp_err"; then
7212 ac_header_preproc
=yes
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.
$ac_ext >&5
7217 ac_header_preproc
=no
7219 rm -f conftest.err conftest.
$ac_ext
7220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7221 echo "${ECHO_T}$ac_header_preproc" >&6
7223 # So? What about this header?
7224 case $ac_header_compiler:$ac_header_preproc in
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7232 ## ------------------------------------ ##
7233 ## Report this to bug-autoconf@gnu.org. ##
7234 ## ------------------------------------ ##
7237 sed "s/^/$as_me: WARNING: /" >&2
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7248 ## ------------------------------------ ##
7249 ## Report this to bug-autoconf@gnu.org. ##
7250 ## ------------------------------------ ##
7253 sed "s/^/$as_me: WARNING: /" >&2
7256 echo "$as_me:$LINENO: checking for $ac_header" >&5
7257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 eval "$as_ac_Header=$ac_header_preproc"
7263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7268 cat >>confdefs.h
<<_ACEOF
7269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277 for ac_func
in getpagesize
7279 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7280 echo "$as_me:$LINENO: checking for $ac_func" >&5
7281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7282 if eval "test \"\${$as_ac_var+set}\" = set"; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 cat >conftest.
$ac_ext <<_ACEOF
7286 #line $LINENO "configure"
7289 cat confdefs.h
>>conftest.
$ac_ext
7290 cat >>conftest.
$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 /* System header to define __stub macros and hopefully few prototypes,
7293 which can conflict with char $ac_func (); below.
7294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7295 <limits.h> exists even on freestanding compilers. */
7297 # include <limits.h>
7299 # include <assert.h>
7301 /* Override any gcc2 internal prototype to avoid an error. */
7306 /* We use char because int might match the return type of a gcc2
7307 builtin and then its argument prototype would still apply. */
7309 /* The GNU C library defines this for functions which it implements
7310 to always fail with ENOSYS. Some functions are actually named
7311 something starting with __ and the normal name is an alias. */
7312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7315 char (*f) () = $ac_func;
7324 return f != $ac_func;
7329 rm -f conftest.
$ac_objext conftest
$ac_exeext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7331 (eval $ac_link) 2>&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try
='test -s conftest$ac_exeext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 eval "$as_ac_var=yes"
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.
$ac_ext >&5
7346 eval "$as_ac_var=no"
7348 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7352 if test `eval echo '${'$as_ac_var'}'` = yes; then
7353 cat >>confdefs.h
<<_ACEOF
7354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7360 echo "$as_me:$LINENO: checking for working mmap" >&5
7361 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7362 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 if test "$cross_compiling" = yes; then
7366 ac_cv_func_mmap_fixed_mapped
=no
7368 cat >conftest.
$ac_ext <<_ACEOF
7369 #line $LINENO "configure"
7372 cat confdefs.h
>>conftest.
$ac_ext
7373 cat >>conftest.
$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7375 $ac_includes_default
7376 /* malloc might have been renamed as rpl_malloc. */
7379 /* Thanks to Mike Haertel and Jim Avera for this test.
7380 Here is a matrix of mmap possibilities:
7381 mmap private not fixed
7382 mmap private fixed at somewhere currently unmapped
7383 mmap private fixed at somewhere already mapped
7384 mmap shared not fixed
7385 mmap shared fixed at somewhere currently unmapped
7386 mmap shared fixed at somewhere already mapped
7387 For private mappings, we should verify that changes cannot be read()
7388 back from the file, nor mmap's back from the file at a different
7389 address. (There have been systems where private was not correctly
7390 implemented like the infamous i386 svr4.0, and systems where the
7391 VM page cache was not coherent with the file system buffer cache
7392 like early versions of FreeBSD and possibly contemporary NetBSD.)
7393 For shared mappings, we should conversely verify that changes get
7394 propagated back to all the places they're supposed to be.
7396 Grep wants private fixed already mapped.
7397 The main things grep needs to know about mmap are:
7398 * does it exist and is it safe to write into the mmap'd area
7399 * how to use it (BSD variants) */
7402 #include <sys/mman.h>
7404 #if !STDC_HEADERS && !HAVE_STDLIB_H
7408 /* This mess was copied from the GNU getpagesize.h. */
7409 #if !HAVE_GETPAGESIZE
7410 /* Assume that all systems that can run configure have sys/param.h. */
7411 # if !HAVE_SYS_PARAM_H
7412 # define HAVE_SYS_PARAM_H 1
7415 # ifdef _SC_PAGESIZE
7416 # define getpagesize() sysconf(_SC_PAGESIZE)
7417 # else /* no _SC_PAGESIZE */
7418 # if HAVE_SYS_PARAM_H
7419 # include <sys/param.h>
7420 # ifdef EXEC_PAGESIZE
7421 # define getpagesize() EXEC_PAGESIZE
7422 # else /* no EXEC_PAGESIZE */
7424 # define getpagesize() NBPG * CLSIZE
7427 # endif /* no CLSIZE */
7428 # else /* no NBPG */
7430 # define getpagesize() NBPC
7431 # else /* no NBPC */
7433 # define getpagesize() PAGESIZE
7434 # endif /* PAGESIZE */
7435 # endif /* no NBPC */
7436 # endif /* no NBPG */
7437 # endif /* no EXEC_PAGESIZE */
7438 # else /* no HAVE_SYS_PARAM_H */
7439 # define getpagesize() 8192 /* punt totally */
7440 # endif /* no HAVE_SYS_PARAM_H */
7441 # endif /* no _SC_PAGESIZE */
7443 #endif /* no HAVE_GETPAGESIZE */
7448 char *data, *data2, *data3;
7452 pagesize = getpagesize ();
7454 /* First, make a file with some known garbage in it. */
7455 data = (char *) malloc (pagesize);
7458 for (i = 0; i < pagesize; ++i)
7459 *(data + i) = rand ();
7461 fd = creat ("conftest.mmap", 0600);
7464 if (write (fd, data, pagesize) != pagesize)
7468 /* Next, try to mmap the file at a fixed address which already has
7469 something else allocated at it. If we can, also make sure that
7470 we see the same garbage. */
7471 fd = open ("conftest.mmap", O_RDWR);
7474 data2 = (char *) malloc (2 * pagesize);
7477 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7478 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7479 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7481 for (i = 0; i < pagesize; ++i)
7482 if (*(data + i) != *(data2 + i))
7485 /* Finally, make sure that changes to the mapped area do not
7486 percolate back to the file as seen by read(). (This is a bug on
7487 some variants of i386 svr4.0.) */
7488 for (i = 0; i < pagesize; ++i)
7489 *(data2 + i) = *(data2 + i) + 1;
7490 data3 = (char *) malloc (pagesize);
7493 if (read (fd, data3, pagesize) != pagesize)
7495 for (i = 0; i < pagesize; ++i)
7496 if (*(data + i) != *(data3 + i))
7502 rm -f conftest
$ac_exeext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_cv_func_mmap_fixed_mapped
=yes
7515 echo "$as_me: program exited with status $ac_status" >&5
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.
$ac_ext >&5
7520 ac_cv_func_mmap_fixed_mapped
=no
7522 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7525 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7526 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7527 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7529 cat >>confdefs.h
<<\_ACEOF
7536 if test $use_mmap_for_buffers = yes; then
7540 LIBS
="$libsrc_libs $LIBS"
7543 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7544 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7545 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 ac_check_lib_save_LIBS
=$LIBS
7550 cat >conftest.
$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7554 cat confdefs.h
>>conftest.
$ac_ext
7555 cat >>conftest.
$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7558 /* Override any gcc2 internal prototype to avoid an error. */
7562 /* We use char because int might match the return type of a gcc2
7563 builtin and then its argument prototype would still apply. */
7573 rm -f conftest.
$ac_objext conftest
$ac_exeext
7574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575 (eval $ac_link) 2>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try
='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585 ac_cv_lib_dnet_dnet_ntoa
=yes
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.
$ac_ext >&5
7590 ac_cv_lib_dnet_dnet_ntoa
=no
7592 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7593 LIBS
=$ac_check_lib_save_LIBS
7595 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7596 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7597 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7598 cat >>confdefs.h
<<_ACEOF
7599 #define HAVE_LIBDNET 1
7607 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7608 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7609 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_check_lib_save_LIBS
=$LIBS
7614 cat >conftest.
$ac_ext <<_ACEOF
7615 #line $LINENO "configure"
7618 cat confdefs.h
>>conftest.
$ac_ext
7619 cat >>conftest.
$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7631 rm -f conftest.
$ac_objext conftest
$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try
='test -s conftest$ac_exeext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_lib_Xbsd_main
=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.
$ac_ext >&5
7648 ac_cv_lib_Xbsd_main
=no
7650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7651 LIBS
=$ac_check_lib_save_LIBS
7653 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7654 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7655 if test $ac_cv_lib_Xbsd_main = yes; then
7656 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7661 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7662 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7663 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 ac_check_lib_save_LIBS
=$LIBS
7667 LIBS
="-lpthreads $LIBS"
7668 cat >conftest.
$ac_ext <<_ACEOF
7669 #line $LINENO "configure"
7672 cat confdefs.h
>>conftest.
$ac_ext
7673 cat >>conftest.
$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7676 /* Override any gcc2 internal prototype to avoid an error. */
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7691 rm -f conftest.
$ac_objext conftest
$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try
='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_lib_pthreads_cma_open
=yes
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.
$ac_ext >&5
7708 ac_cv_lib_pthreads_cma_open
=no
7710 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7711 LIBS
=$ac_check_lib_save_LIBS
7713 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7714 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7715 if test $ac_cv_lib_pthreads_cma_open = yes; then
7716 cat >>confdefs.h
<<_ACEOF
7717 #define HAVE_LIBPTHREADS 1
7720 LIBS
="-lpthreads $LIBS"
7725 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7726 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7727 if test -d /usr
/X386
/include
; then
7729 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7733 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7734 echo "${ECHO_T}$HAVE_XFREE386" >&6
7739 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7740 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7741 if test "${gdb_cv_bigtoc+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7747 *) gdb_cv_bigtoc
=-bbigtoc ;;
7750 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7751 cat >conftest.
$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7755 cat confdefs.h
>>conftest.
$ac_ext
7756 cat >>conftest.
$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7767 rm -f conftest.
$ac_objext conftest
$ac_exeext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try
='test -s conftest$ac_exeext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.
$ac_ext >&5
7786 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7789 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7790 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7794 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7795 # used for the tests that follow. We set them back to REAL_CFLAGS and
7796 # REAL_CPPFLAGS later on.
7798 REAL_CPPFLAGS
="$CPPFLAGS"
7800 if test "${HAVE_X11}" = "yes"; then
7801 DEFS
="$C_SWITCH_X_SITE $DEFS"
7802 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7804 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7805 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7807 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7808 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7809 # but it's more convenient here to set LD_RUN_PATH
7810 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7811 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7812 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7816 if test "${opsys}" = "gnu-linux"; then
7817 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7818 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7819 cat >conftest.
$ac_ext <<_ACEOF
7820 #line $LINENO "configure"
7823 cat confdefs.h
>>conftest.
$ac_ext
7824 cat >>conftest.
$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7830 XOpenDisplay ("foo");
7835 rm -f conftest.
$ac_objext conftest
$ac_exeext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try
='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 xlinux_first_failure
=no
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.
$ac_ext >&5
7852 xlinux_first_failure
=yes
7854 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7855 if test "${xlinux_first_failure}" = "yes"; then
7856 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7857 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7858 OLD_CPPFLAGS
="$CPPFLAGS"
7860 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7861 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7862 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7863 LIBS
="$LIBS -b i486-linuxaout"
7864 cat >conftest.
$ac_ext <<_ACEOF
7865 #line $LINENO "configure"
7868 cat confdefs.h
>>conftest.
$ac_ext
7869 cat >>conftest.
$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7875 XOpenDisplay ("foo");
7880 rm -f conftest.
$ac_objext conftest
$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try
='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 xlinux_second_failure
=no
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.
$ac_ext >&5
7897 xlinux_second_failure
=yes
7899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7900 if test "${xlinux_second_failure}" = "yes"; then
7901 # If we get the same failure with -b, there is no use adding -b.
7902 # So take it out. This plays safe.
7903 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7904 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7905 CPPFLAGS
="$OLD_CPPFLAGS"
7907 echo "$as_me:$LINENO: result: no" >&5
7908 echo "${ECHO_T}no" >&6
7910 echo "$as_me:$LINENO: result: yes" >&5
7911 echo "${ECHO_T}yes" >&6
7914 echo "$as_me:$LINENO: result: no" >&5
7915 echo "${ECHO_T}no" >&6
7919 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7920 # header files included from there.
7921 echo "$as_me:$LINENO: checking for Xkb" >&5
7922 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7923 cat >conftest.
$ac_ext <<_ACEOF
7924 #line $LINENO "configure"
7927 cat confdefs.h
>>conftest.
$ac_ext
7928 cat >>conftest.
$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 #include <X11/Xlib.h>
7931 #include <X11/XKBlib.h>
7935 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7940 rm -f conftest.
$ac_objext conftest
$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try
='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.
$ac_ext >&5
7959 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7960 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7961 echo "${ECHO_T}$emacs_xkb" >&6
7962 if test $emacs_xkb = yes; then
7964 cat >>confdefs.h
<<\_ACEOF
7965 #define HAVE_XKBGETKEYBOARD 1
7974 for ac_func
in XrmSetDatabase XScreenResourceString \
7975 XScreenNumberOfScreen XSetWMProtocols
7977 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7978 echo "$as_me:$LINENO: checking for $ac_func" >&5
7979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7980 if eval "test \"\${$as_ac_var+set}\" = set"; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.
$ac_ext <<_ACEOF
7984 #line $LINENO "configure"
7987 cat confdefs.h
>>conftest.
$ac_ext
7988 cat >>conftest.
$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 /* System header to define __stub macros and hopefully few prototypes,
7991 which can conflict with char $ac_func (); below.
7992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7993 <limits.h> exists even on freestanding compilers. */
7995 # include <limits.h>
7997 # include <assert.h>
7999 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8007 /* The GNU C library defines this for functions which it implements
8008 to always fail with ENOSYS. Some functions are actually named
8009 something starting with __ and the normal name is an alias. */
8010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8013 char (*f) () = $ac_func;
8022 return f != $ac_func;
8027 rm -f conftest.
$ac_objext conftest
$ac_exeext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8029 (eval $ac_link) 2>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try
='test -s conftest$ac_exeext'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 eval "$as_ac_var=yes"
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.
$ac_ext >&5
8044 eval "$as_ac_var=no"
8046 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8050 if test `eval echo '${'$as_ac_var'}'` = yes; then
8051 cat >>confdefs.h
<<_ACEOF
8052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8060 if test "${window_system}" = "x11"; then
8061 echo "$as_me:$LINENO: checking X11 version 6" >&5
8062 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8063 if test "${emacs_cv_x11_version_6+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 cat >conftest.
$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8070 cat confdefs.h
>>conftest.
$ac_ext
8071 cat >>conftest.
$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <X11/Xlib.h>
8077 #if XlibSpecificationRelease < 6
8085 rm -f conftest.
$ac_objext conftest
$ac_exeext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087 (eval $ac_link) 2>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try
='test -s conftest$ac_exeext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 emacs_cv_x11_version_6
=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 emacs_cv_x11_version_6
=no
8104 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8107 if test $emacs_cv_x11_version_6 = yes; then
8108 echo "$as_me:$LINENO: result: 6 or newer" >&5
8109 echo "${ECHO_T}6 or newer" >&6
8111 cat >>confdefs.h
<<\_ACEOF
8112 #define HAVE_X11R6 1
8116 echo "$as_me:$LINENO: result: before 6" >&5
8117 echo "${ECHO_T}before 6" >&6
8121 if test "${window_system}" = "x11"; then
8122 echo "$as_me:$LINENO: checking X11 version 5" >&5
8123 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8124 if test "${emacs_cv_x11_version_5+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 cat >conftest.
$ac_ext <<_ACEOF
8128 #line $LINENO "configure"
8131 cat confdefs.h
>>conftest.
$ac_ext
8132 cat >>conftest.
$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 #include <X11/Xlib.h>
8138 #if XlibSpecificationRelease < 5
8146 rm -f conftest.
$ac_objext conftest
$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try
='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 emacs_cv_x11_version_5
=yes
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.
$ac_ext >&5
8163 emacs_cv_x11_version_5
=no
8165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8168 if test $emacs_cv_x11_version_5 = yes; then
8169 echo "$as_me:$LINENO: result: 5 or newer" >&5
8170 echo "${ECHO_T}5 or newer" >&6
8173 cat >>confdefs.h
<<\_ACEOF
8174 #define HAVE_X11R5 1
8179 echo "$as_me:$LINENO: result: before 5" >&5
8180 echo "${ECHO_T}before 5" >&6
8187 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8188 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8189 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8190 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8191 { (exit 1); exit 1; }; };
8195 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8197 if test "X${with_pkg_config_prog}" != X
; then
8198 PKG_CONFIG
="${with_pkg_config_prog}"
8203 if test -z "$PKG_CONFIG"; then
8204 # Extract the first word of "pkg-config", so it can be a program name with args.
8205 set dummy pkg-config
; ac_word
=$2
8206 echo "$as_me:$LINENO: checking for $ac_word" >&5
8207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8208 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8220 test -z "$as_dir" && as_dir
=.
8221 for ac_exec_ext
in '' $ac_executable_extensions; do
8222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8234 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8236 if test -n "$PKG_CONFIG"; then
8237 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8238 echo "${ECHO_T}$PKG_CONFIG" >&6
8240 echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6
8246 if test "$PKG_CONFIG" = "no" ; then
8247 echo "*** The pkg-config script could not be found. Make sure it is"
8248 echo "*** in your path, or give the full path to pkg-config with"
8249 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8250 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8252 PKG_CONFIG_MIN_VERSION
=0.9.0
8253 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8254 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8255 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8257 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8258 echo "$as_me:$LINENO: result: yes" >&5
8259 echo "${ECHO_T}yes" >&6
8262 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8263 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8264 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8265 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8266 echo "${ECHO_T}$GTK_CFLAGS" >&6
8268 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8269 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8270 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8271 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8272 echo "${ECHO_T}$GTK_LIBS" >&6
8276 ## If we have a custom action on failure, don't print errors, but
8277 ## do set a variable so people can do so.
8278 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8279 echo $GTK_PKG_ERRORS
8285 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8286 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8290 if test $succeeded = yes; then
8293 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8294 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8295 { (exit 1); exit 1; }; }
8300 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8303 cat >>confdefs.h
<<\_ACEOF
8309 with_toolkit_scroll_bars
=yes
8312 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8313 if test x
"${HAVE_X11R5}" = xyes
; then
8314 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8315 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8316 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 cat >conftest.
$ac_ext <<_ACEOF
8320 #line $LINENO "configure"
8323 cat confdefs.h
>>conftest.
$ac_ext
8324 cat >>conftest.
$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 #include <X11/Intrinsic.h>
8328 #include <X11/Xaw/Simple.h>
8337 rm -f conftest.
$ac_objext conftest
$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339 (eval $ac_link) 2>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try
='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 emacs_cv_x11_version_5_with_xaw
=yes
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.
$ac_ext >&5
8354 emacs_cv_x11_version_5_with_xaw
=no
8356 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8359 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8360 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8361 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8364 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8365 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8373 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8375 if test "${USE_X_TOOLKIT}" != "none"; then
8376 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8377 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8378 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 cat >conftest.
$ac_ext <<_ACEOF
8382 #line $LINENO "configure"
8385 cat confdefs.h
>>conftest.
$ac_ext
8386 cat >>conftest.
$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 #include <X11/Intrinsic.h>
8392 #if XtSpecificationRelease < 6
8400 rm -f conftest.
$ac_objext conftest
$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402 (eval $ac_link) 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try
='test -s conftest$ac_exeext'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
8412 emacs_cv_x11_toolkit_version_6
=yes
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.
$ac_ext >&5
8417 emacs_cv_x11_toolkit_version_6
=no
8419 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8422 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8423 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8424 echo "$as_me:$LINENO: result: 6 or newer" >&5
8425 echo "${ECHO_T}6 or newer" >&6
8427 cat >>confdefs.h
<<\_ACEOF
8428 #define HAVE_X11XTR6 1
8432 echo "$as_me:$LINENO: result: before 6" >&5
8433 echo "${ECHO_T}before 6" >&6
8437 if test x
$HAVE_X11XTR6 = xyes
; then
8438 LIBS
="-lXt -lSM -lICE $LIBS"
8443 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8444 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8445 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_check_lib_save_LIBS
=$LIBS
8450 cat >conftest.
$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8454 cat confdefs.h
>>conftest.
$ac_ext
8455 cat >>conftest.
$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8458 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8464 char XmuConvertStandardSelection ();
8468 XmuConvertStandardSelection ();
8473 rm -f conftest.
$ac_objext conftest
$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try
='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.
$ac_ext >&5
8490 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8493 LIBS
=$ac_check_lib_save_LIBS
8495 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8496 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8497 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8498 cat >>confdefs.h
<<_ACEOF
8499 #define HAVE_LIBXMU 1
8506 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8509 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8510 if test "${HAVE_X11}" = "yes"; then
8511 if test "${USE_X_TOOLKIT}" != "none"; then
8513 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8514 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8515 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 ac_check_lib_save_LIBS
=$LIBS
8520 cat >conftest.
$ac_ext <<_ACEOF
8521 #line $LINENO "configure"
8524 cat confdefs.h
>>conftest.
$ac_ext
8525 cat >>conftest.
$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8528 /* Override any gcc2 internal prototype to avoid an error. */
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8534 char XShapeQueryExtension ();
8538 XShapeQueryExtension ();
8543 rm -f conftest.
$ac_objext conftest
$ac_exeext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545 (eval $ac_link) 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try
='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.
$ac_ext >&5
8560 ac_cv_lib_Xext_XShapeQueryExtension
=no
8562 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8563 LIBS
=$ac_check_lib_save_LIBS
8565 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8566 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8567 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8568 cat >>confdefs.h
<<_ACEOF
8569 #define HAVE_LIBXEXT 1
8579 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8580 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8581 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8582 if test "${emacs_cv_lesstif+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 # We put this in CFLAGS temporarily to precede other -I options
8586 # that might be in CFLAGS temporarily.
8587 # We put this in CPPFLAGS where it precedes the other -I options.
8588 OLD_CPPFLAGS
=$CPPFLAGS
8590 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8591 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8592 cat >conftest.
$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8596 cat confdefs.h
>>conftest.
$ac_ext
8597 cat >>conftest.
$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8608 rm -f conftest.
$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610 (eval $ac_compile) 2>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try
='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 emacs_cv_lesstif
=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.
$ac_ext >&5
8627 rm -f conftest.
$ac_objext conftest.
$ac_ext
8629 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8630 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8631 if test $emacs_cv_lesstif = yes; then
8632 # Make sure this -I option remains in CPPFLAGS after it is set
8633 # back to REAL_CPPFLAGS.
8634 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8635 # have those other -I options anyway. Ultimately, having this
8636 # directory ultimately in CPPFLAGS will be enough.
8637 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8638 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8641 CPPFLAGS
=$OLD_CPPFLAGS
8643 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8644 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8645 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 cat >conftest.
$ac_ext <<_ACEOF
8649 #line $LINENO "configure"
8652 cat confdefs.h
>>conftest.
$ac_ext
8653 cat >>conftest.
$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8659 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8662 Motif version prior to 2.1.
8668 rm -f conftest.
$ac_objext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8670 (eval $ac_compile) 2>&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try
='test -s conftest.$ac_objext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 emacs_cv_motif_version_2_1
=yes
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.
$ac_ext >&5
8685 emacs_cv_motif_version_2_1
=no
8687 rm -f conftest.
$ac_objext conftest.
$ac_ext
8689 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8690 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8691 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8692 if test $emacs_cv_motif_version_2_1 = yes; then
8695 cat >>confdefs.h
<<\_ACEOF
8696 #define HAVE_MOTIF_2_1 1
8699 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8700 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8701 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 ac_check_lib_save_LIBS
=$LIBS
8706 cat >conftest.
$ac_ext <<_ACEOF
8707 #line $LINENO "configure"
8710 cat confdefs.h
>>conftest.
$ac_ext
8711 cat >>conftest.
$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 /* Override any gcc2 internal prototype to avoid an error. */
8718 /* We use char because int might match the return type of a gcc2
8719 builtin and then its argument prototype would still apply. */
8720 char XpCreateContext ();
8729 rm -f conftest.
$ac_objext conftest
$ac_exeext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731 (eval $ac_link) 2>&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try
='test -s conftest$ac_exeext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_cv_lib_Xp_XpCreateContext
=yes
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.
$ac_ext >&5
8746 ac_cv_lib_Xp_XpCreateContext
=no
8748 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8749 LIBS
=$ac_check_lib_save_LIBS
8751 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8752 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8753 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8757 if test ${HAVE_LIBXP} = yes; then
8759 cat >>confdefs.h
<<\_ACEOF
8760 #define HAVE_LIBXP 1
8767 ### Is -lXaw3d available?
8769 if test "${HAVE_X11}" = "yes"; then
8770 if test "${USE_X_TOOLKIT}" != "none"; then
8771 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8772 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8773 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 cat >conftest.
$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8780 cat confdefs.h
>>conftest.
$ac_ext
8781 cat >>conftest.
$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 #include <X11/Xaw3d/Scrollbar.h>
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1
>conftest.err
8790 cat conftest.err
>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } >/dev
/null
; then
8793 if test -s conftest.err
; then
8794 ac_cpp_err
=$ac_c_preproc_warn_flag
8801 if test -z "$ac_cpp_err"; then
8802 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.
$ac_ext >&5
8807 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8809 rm -f conftest.err conftest.
$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8812 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8813 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8814 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8815 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8816 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 ac_check_lib_save_LIBS
=$LIBS
8820 LIBS
="-lXaw3d $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 XawScrollbarSetThumb ();
8839 XawScrollbarSetThumb ();
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_Xaw3d_XawScrollbarSetThumb
=yes
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.
$ac_ext >&5
8861 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=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_Xaw3d_XawScrollbarSetThumb" >&5
8867 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8868 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8875 if test "${HAVE_XAW3D}" = "yes"; then
8877 cat >>confdefs.h
<<\_ACEOF
8878 #define HAVE_XAW3D 1
8887 USE_TOOLKIT_SCROLL_BARS
=no
8888 if test "${with_toolkit_scroll_bars}" != "no"; then
8889 if test "${USE_X_TOOLKIT}" != "none"; then
8890 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8891 cat >>confdefs.h
<<\_ACEOF
8892 #define USE_TOOLKIT_SCROLL_BARS 1
8896 USE_TOOLKIT_SCROLL_BARS
=yes
8897 elif test "${HAVE_XAW3D}" = "yes"; then
8898 cat >>confdefs.h
<<\_ACEOF
8899 #define USE_TOOLKIT_SCROLL_BARS 1
8902 USE_TOOLKIT_SCROLL_BARS
=yes
8904 elif test "${HAVE_GTK}" = "yes"; then
8905 cat >>confdefs.h
<<\_ACEOF
8906 #define USE_TOOLKIT_SCROLL_BARS 1
8909 USE_TOOLKIT_SCROLL_BARS
=yes
8913 cat >conftest.
$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8917 cat confdefs.h
>>conftest.
$ac_ext
8918 cat >>conftest.
$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8921 #include <X11/Xlib.h>
8922 #include <X11/Xresource.h>
8931 rm -f conftest.
$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try
='test -s conftest.$ac_objext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8945 cat >>confdefs.h
<<\_ACEOF
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.
$ac_ext >&5
8955 rm -f conftest.
$ac_objext conftest.
$ac_ext
8958 if test "${with_xim}" != "no"; then
8960 cat >>confdefs.h
<<\_ACEOF
8967 if test "${HAVE_XIM}" != "no"; then
8969 if test "$GCC" = yes; then
8970 CFLAGS
="$CFLAGS --pedantic-errors"
8972 cat >conftest.
$ac_ext <<_ACEOF
8973 #line $LINENO "configure"
8976 cat confdefs.h
>>conftest.
$ac_ext
8977 cat >>conftest.
$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8980 #include <X11/Xlib.h>
8981 #include <X11/Xresource.h>
8990 XPointer *client_data;
8992 /* If we're not using GCC, it's probably not XFree86, and this is
8993 probably right, but we can't use something like --pedantic-errors. */
8994 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8995 char*, XIMProc, XPointer*);
8997 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9003 rm -f conftest.
$ac_objext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9005 (eval $ac_compile) 2>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try
='test -s conftest.$ac_objext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 emacs_cv_arg6_star
=yes
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.
$ac_ext >&5
9021 rm -f conftest.
$ac_objext conftest.
$ac_ext
9023 if test "$emacs_cv_arg6_star" = yes; then
9024 cat >>confdefs.h
<<\_ACEOF
9025 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9029 cat >>confdefs.h
<<\_ACEOF
9030 #define XRegisterIMInstantiateCallback_arg6 XPointer
9037 ### Use -lXpm if available, unless `--with-xpm=no'.
9039 if test "${HAVE_X11}" = "yes"; then
9040 if test "${with_xpm}" != "no"; then
9041 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9042 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9043 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9044 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9048 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9050 # Is the header compilable?
9051 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9052 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9053 cat >conftest.
$ac_ext <<_ACEOF
9054 #line $LINENO "configure"
9057 cat confdefs.h
>>conftest.
$ac_ext
9058 cat >>conftest.
$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 #include <X11/xpm.h>
9063 rm -f conftest.
$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try
='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_header_compiler
=yes
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.
$ac_ext >&5
9080 ac_header_compiler
=no
9082 rm -f conftest.
$ac_objext conftest.
$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9084 echo "${ECHO_T}$ac_header_compiler" >&6
9086 # Is the header present?
9087 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9088 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9089 cat >conftest.
$ac_ext <<_ACEOF
9090 #line $LINENO "configure"
9093 cat confdefs.h
>>conftest.
$ac_ext
9094 cat >>conftest.
$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 #include <X11/xpm.h>
9098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9099 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9101 grep -v '^ *+' conftest.er1
>conftest.err
9103 cat conftest.err
>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } >/dev
/null
; then
9106 if test -s conftest.err
; then
9107 ac_cpp_err
=$ac_c_preproc_warn_flag
9114 if test -z "$ac_cpp_err"; then
9115 ac_header_preproc
=yes
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.
$ac_ext >&5
9120 ac_header_preproc
=no
9122 rm -f conftest.err conftest.
$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9124 echo "${ECHO_T}$ac_header_preproc" >&6
9126 # So? What about this header?
9127 case $ac_header_compiler:$ac_header_preproc in
9129 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9130 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9132 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9135 ## ------------------------------------ ##
9136 ## Report this to bug-autoconf@gnu.org. ##
9137 ## ------------------------------------ ##
9140 sed "s/^/$as_me: WARNING: /" >&2
9143 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9144 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9145 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9146 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9151 ## ------------------------------------ ##
9152 ## Report this to bug-autoconf@gnu.org. ##
9153 ## ------------------------------------ ##
9156 sed "s/^/$as_me: WARNING: /" >&2
9159 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9160 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9161 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9166 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9167 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9170 if test $ac_cv_header_X11_xpm_h = yes; then
9171 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9172 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9173 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 ac_check_lib_save_LIBS
=$LIBS
9177 LIBS
="-lXpm -lX11 $LIBS"
9178 cat >conftest.
$ac_ext <<_ACEOF
9179 #line $LINENO "configure"
9182 cat confdefs.h
>>conftest.
$ac_ext
9183 cat >>conftest.
$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9186 /* Override any gcc2 internal prototype to avoid an error. */
9190 /* We use char because int might match the return type of a gcc2
9191 builtin and then its argument prototype would still apply. */
9192 char XpmReadFileToPixmap ();
9196 XpmReadFileToPixmap ();
9201 rm -f conftest.
$ac_objext conftest
$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203 (eval $ac_link) 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try
='test -s conftest$ac_exeext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.
$ac_ext >&5
9218 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9220 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9221 LIBS
=$ac_check_lib_save_LIBS
9223 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9224 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9225 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9232 if test "${HAVE_XPM}" = "yes"; then
9233 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9234 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9235 cat >conftest.
$ac_ext <<_ACEOF
9236 #line $LINENO "configure"
9239 cat confdefs.h
>>conftest.
$ac_ext
9240 cat >>conftest.
$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242 #include "X11/xpm.h"
9243 #ifndef XpmReturnAllocPixels
9244 no_return_alloc_pixels
9248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9249 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9257 if test "${HAVE_XPM}" = "yes"; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259 echo "${ECHO_T}yes" >&6
9261 echo "$as_me:$LINENO: result: no" >&5
9262 echo "${ECHO_T}no" >&6
9267 if test "${HAVE_XPM}" = "yes"; then
9269 cat >>confdefs.h
<<\_ACEOF
9276 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9278 if test "${HAVE_X11}" = "yes"; then
9279 if test "${with_jpeg}" != "no"; then
9280 if test "${ac_cv_header_jerror_h+set}" = set; then
9281 echo "$as_me:$LINENO: checking for jerror.h" >&5
9282 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9283 if test "${ac_cv_header_jerror_h+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9287 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9289 # Is the header compilable?
9290 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9291 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9292 cat >conftest.
$ac_ext <<_ACEOF
9293 #line $LINENO "configure"
9296 cat confdefs.h
>>conftest.
$ac_ext
9297 cat >>conftest.
$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9299 $ac_includes_default
9302 rm -f conftest.
$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304 (eval $ac_compile) 2>&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try
='test -s conftest.$ac_objext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 ac_header_compiler
=yes
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.
$ac_ext >&5
9319 ac_header_compiler
=no
9321 rm -f conftest.
$ac_objext conftest.
$ac_ext
9322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9323 echo "${ECHO_T}$ac_header_compiler" >&6
9325 # Is the header present?
9326 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9327 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9328 cat >conftest.
$ac_ext <<_ACEOF
9329 #line $LINENO "configure"
9332 cat confdefs.h
>>conftest.
$ac_ext
9333 cat >>conftest.
$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1
>conftest.err
9342 cat conftest.err
>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } >/dev
/null
; then
9345 if test -s conftest.err
; then
9346 ac_cpp_err
=$ac_c_preproc_warn_flag
9353 if test -z "$ac_cpp_err"; then
9354 ac_header_preproc
=yes
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.
$ac_ext >&5
9359 ac_header_preproc
=no
9361 rm -f conftest.err conftest.
$ac_ext
9362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9363 echo "${ECHO_T}$ac_header_preproc" >&6
9365 # So? What about this header?
9366 case $ac_header_compiler:$ac_header_preproc in
9368 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9369 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9371 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9374 ## ------------------------------------ ##
9375 ## Report this to bug-autoconf@gnu.org. ##
9376 ## ------------------------------------ ##
9379 sed "s/^/$as_me: WARNING: /" >&2
9382 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9383 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9385 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9387 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9390 ## ------------------------------------ ##
9391 ## Report this to bug-autoconf@gnu.org. ##
9392 ## ------------------------------------ ##
9395 sed "s/^/$as_me: WARNING: /" >&2
9398 echo "$as_me:$LINENO: checking for jerror.h" >&5
9399 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9400 if test "${ac_cv_header_jerror_h+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 ac_cv_header_jerror_h
=$ac_header_preproc
9405 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9406 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9409 if test $ac_cv_header_jerror_h = yes; then
9410 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9411 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9412 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 ac_check_lib_save_LIBS
=$LIBS
9417 cat >conftest.
$ac_ext <<_ACEOF
9418 #line $LINENO "configure"
9421 cat confdefs.h
>>conftest.
$ac_ext
9422 cat >>conftest.
$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9425 /* Override any gcc2 internal prototype to avoid an error. */
9429 /* We use char because int might match the return type of a gcc2
9430 builtin and then its argument prototype would still apply. */
9431 char jpeg_destroy_compress ();
9435 jpeg_destroy_compress ();
9440 rm -f conftest.
$ac_objext conftest
$ac_exeext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442 (eval $ac_link) 2>&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try
='test -s conftest$ac_exeext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.
$ac_ext >&5
9457 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9459 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9460 LIBS
=$ac_check_lib_save_LIBS
9462 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9463 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9464 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9474 if test "${HAVE_JPEG}" = "yes"; then
9475 cat >>confdefs.h
<<\_ACEOF
9479 cat >conftest.
$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9483 cat confdefs.h
>>conftest.
$ac_ext
9484 cat >>conftest.
$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 #include <jpeglib.h>
9487 version=JPEG_LIB_VERSION
9490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9491 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9492 cat >>confdefs.h
<<\_ACEOF
9497 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9498 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9506 ### Use -lpng if available, unless `--with-png=no'.
9508 if test "${HAVE_X11}" = "yes"; then
9509 if test "${with_png}" != "no"; then
9510 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9511 # in /usr/include/libpng.
9514 for ac_header
in png.h libpng
/png.h
9516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9518 echo "$as_me:$LINENO: checking for $ac_header" >&5
9519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9526 # Is the header compilable?
9527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9529 cat >conftest.
$ac_ext <<_ACEOF
9530 #line $LINENO "configure"
9533 cat confdefs.h
>>conftest.
$ac_ext
9534 cat >>conftest.
$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 $ac_includes_default
9537 #include <$ac_header>
9539 rm -f conftest.
$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try
='test -s conftest.$ac_objext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_header_compiler
=yes
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.
$ac_ext >&5
9556 ac_header_compiler
=no
9558 rm -f conftest.
$ac_objext conftest.
$ac_ext
9559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9560 echo "${ECHO_T}$ac_header_compiler" >&6
9562 # Is the header present?
9563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9565 cat >conftest.
$ac_ext <<_ACEOF
9566 #line $LINENO "configure"
9569 cat confdefs.h
>>conftest.
$ac_ext
9570 cat >>conftest.
$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <$ac_header>
9574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9577 grep -v '^ *+' conftest.er1
>conftest.err
9579 cat conftest.err
>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } >/dev
/null
; then
9582 if test -s conftest.err
; then
9583 ac_cpp_err
=$ac_c_preproc_warn_flag
9590 if test -z "$ac_cpp_err"; then
9591 ac_header_preproc
=yes
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.
$ac_ext >&5
9596 ac_header_preproc
=no
9598 rm -f conftest.err conftest.
$ac_ext
9599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9600 echo "${ECHO_T}$ac_header_preproc" >&6
9602 # So? What about this header?
9603 case $ac_header_compiler:$ac_header_preproc in
9605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9611 ## ------------------------------------ ##
9612 ## Report this to bug-autoconf@gnu.org. ##
9613 ## ------------------------------------ ##
9616 sed "s/^/$as_me: WARNING: /" >&2
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9627 ## ------------------------------------ ##
9628 ## Report this to bug-autoconf@gnu.org. ##
9629 ## ------------------------------------ ##
9632 sed "s/^/$as_me: WARNING: /" >&2
9635 echo "$as_me:$LINENO: checking for $ac_header" >&5
9636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 eval "$as_ac_Header=$ac_header_preproc"
9642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9647 cat >>confdefs.h
<<_ACEOF
9648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9655 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
9656 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9657 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9658 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 ac_check_lib_save_LIBS
=$LIBS
9662 LIBS
="-lpng -lz -lm $LIBS"
9663 cat >conftest.
$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9667 cat confdefs.h
>>conftest.
$ac_ext
9668 cat >>conftest.
$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9671 /* Override any gcc2 internal prototype to avoid an error. */
9675 /* We use char because int might match the return type of a gcc2
9676 builtin and then its argument prototype would still apply. */
9677 char png_get_channels ();
9681 png_get_channels ();
9686 rm -f conftest.
$ac_objext conftest
$ac_exeext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try
='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_lib_png_png_get_channels
=yes
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.
$ac_ext >&5
9703 ac_cv_lib_png_png_get_channels
=no
9705 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9706 LIBS
=$ac_check_lib_save_LIBS
9708 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9709 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9710 if test $ac_cv_lib_png_png_get_channels = yes; then
9717 if test "${HAVE_PNG}" = "yes"; then
9719 cat >>confdefs.h
<<\_ACEOF
9726 ### Use -ltiff if available, unless `--with-tiff=no'.
9728 if test "${HAVE_X11}" = "yes"; then
9729 if test "${with_tiff}" != "no"; then
9730 if test "${ac_cv_header_tiffio_h+set}" = set; then
9731 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9732 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9733 if test "${ac_cv_header_tiffio_h+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9737 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9739 # Is the header compilable?
9740 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9741 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9742 cat >conftest.
$ac_ext <<_ACEOF
9743 #line $LINENO "configure"
9746 cat confdefs.h
>>conftest.
$ac_ext
9747 cat >>conftest.
$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 $ac_includes_default
9752 rm -f conftest.
$ac_objext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754 (eval $ac_compile) 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try
='test -s conftest.$ac_objext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_header_compiler
=yes
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.
$ac_ext >&5
9769 ac_header_compiler
=no
9771 rm -f conftest.
$ac_objext conftest.
$ac_ext
9772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9773 echo "${ECHO_T}$ac_header_compiler" >&6
9775 # Is the header present?
9776 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9777 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9778 cat >conftest.
$ac_ext <<_ACEOF
9779 #line $LINENO "configure"
9782 cat confdefs.h
>>conftest.
$ac_ext
9783 cat >>conftest.
$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9790 grep -v '^ *+' conftest.er1
>conftest.err
9792 cat conftest.err
>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev
/null
; then
9795 if test -s conftest.err
; then
9796 ac_cpp_err
=$ac_c_preproc_warn_flag
9803 if test -z "$ac_cpp_err"; then
9804 ac_header_preproc
=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9809 ac_header_preproc
=no
9811 rm -f conftest.err conftest.
$ac_ext
9812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9813 echo "${ECHO_T}$ac_header_preproc" >&6
9815 # So? What about this header?
9816 case $ac_header_compiler:$ac_header_preproc in
9818 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9819 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9820 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9821 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9824 ## ------------------------------------ ##
9825 ## Report this to bug-autoconf@gnu.org. ##
9826 ## ------------------------------------ ##
9829 sed "s/^/$as_me: WARNING: /" >&2
9832 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9833 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9835 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9837 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9840 ## ------------------------------------ ##
9841 ## Report this to bug-autoconf@gnu.org. ##
9842 ## ------------------------------------ ##
9845 sed "s/^/$as_me: WARNING: /" >&2
9848 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9849 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9850 if test "${ac_cv_header_tiffio_h+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 ac_cv_header_tiffio_h
=$ac_header_preproc
9855 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9856 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9859 if test $ac_cv_header_tiffio_h = yes; then
9861 # At least one tiff package requires the jpeg library.
9862 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9863 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9864 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9865 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 ac_check_lib_save_LIBS
=$LIBS
9869 LIBS
="-ltiff $tifflibs $LIBS"
9870 cat >conftest.
$ac_ext <<_ACEOF
9871 #line $LINENO "configure"
9874 cat confdefs.h
>>conftest.
$ac_ext
9875 cat >>conftest.
$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9878 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9884 char TIFFGetVersion ();
9893 rm -f conftest.
$ac_objext conftest
$ac_exeext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9895 (eval $ac_link) 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try
='test -s conftest$ac_exeext'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_cv_lib_tiff_TIFFGetVersion
=yes
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.
$ac_ext >&5
9910 ac_cv_lib_tiff_TIFFGetVersion
=no
9912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9913 LIBS
=$ac_check_lib_save_LIBS
9915 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9916 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9917 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9926 if test "${HAVE_TIFF}" = "yes"; then
9928 cat >>confdefs.h
<<\_ACEOF
9935 ### Use -lgif if available, unless `--with-gif=no'.
9937 if test "${HAVE_X11}" = "yes"; then
9938 if test "${with_gif}" != "no"; then
9939 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9940 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9941 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9942 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9946 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9948 # Is the header compilable?
9949 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9950 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9951 cat >conftest.
$ac_ext <<_ACEOF
9952 #line $LINENO "configure"
9955 cat confdefs.h
>>conftest.
$ac_ext
9956 cat >>conftest.
$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 $ac_includes_default
9959 #include <gif_lib.h>
9961 rm -f conftest.
$ac_objext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9963 (eval $ac_compile) 2>&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try
='test -s conftest.$ac_objext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_header_compiler
=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.
$ac_ext >&5
9978 ac_header_compiler
=no
9980 rm -f conftest.
$ac_objext conftest.
$ac_ext
9981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9982 echo "${ECHO_T}$ac_header_compiler" >&6
9984 # Is the header present?
9985 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9986 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9987 cat >conftest.
$ac_ext <<_ACEOF
9988 #line $LINENO "configure"
9991 cat confdefs.h
>>conftest.
$ac_ext
9992 cat >>conftest.
$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 #include <gif_lib.h>
9996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9997 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1
>conftest.err
10001 cat conftest.err
>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } >/dev
/null
; then
10004 if test -s conftest.err
; then
10005 ac_cpp_err
=$ac_c_preproc_warn_flag
10012 if test -z "$ac_cpp_err"; then
10013 ac_header_preproc
=yes
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.
$ac_ext >&5
10018 ac_header_preproc
=no
10020 rm -f conftest.err conftest.
$ac_ext
10021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10022 echo "${ECHO_T}$ac_header_preproc" >&6
10024 # So? What about this header?
10025 case $ac_header_compiler:$ac_header_preproc in
10027 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10028 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10030 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10033 ## ------------------------------------ ##
10034 ## Report this to bug-autoconf@gnu.org. ##
10035 ## ------------------------------------ ##
10038 sed "s/^/$as_me: WARNING: /" >&2
10041 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10042 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10044 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10046 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10049 ## ------------------------------------ ##
10050 ## Report this to bug-autoconf@gnu.org. ##
10051 ## ------------------------------------ ##
10054 sed "s/^/$as_me: WARNING: /" >&2
10057 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10058 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10059 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 ac_cv_header_gif_lib_h
=$ac_header_preproc
10064 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10065 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10068 if test $ac_cv_header_gif_lib_h = yes; then
10069 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10070 # Earlier versions can crash Emacs.
10071 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10072 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10073 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_check_lib_save_LIBS
=$LIBS
10077 LIBS
="-lungif $LIBS"
10078 cat >conftest.
$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10082 cat confdefs.h
>>conftest.
$ac_ext
10083 cat >>conftest.
$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10086 /* Override any gcc2 internal prototype to avoid an error. */
10090 /* We use char because int might match the return type of a gcc2
10091 builtin and then its argument prototype would still apply. */
10092 char EGifPutExtensionLast ();
10096 EGifPutExtensionLast ();
10101 rm -f conftest.
$ac_objext conftest
$ac_exeext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try
='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.
$ac_ext >&5
10118 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10120 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10121 LIBS
=$ac_check_lib_save_LIBS
10123 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10124 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10125 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10134 if test "${HAVE_GIF}" = "yes"; then
10136 cat >>confdefs.h
<<\_ACEOF
10143 ### Use Mac OS X Carbon API to implement GUI.
10145 if test "${with_carbon}" != "no"; then
10146 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10147 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10148 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10149 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10153 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10155 # Is the header compilable?
10156 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10157 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10158 cat >conftest.
$ac_ext <<_ACEOF
10159 #line $LINENO "configure"
10162 cat confdefs.h
>>conftest.
$ac_ext
10163 cat >>conftest.
$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 #include <Carbon/Carbon.h>
10168 rm -f conftest.
$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170 (eval $ac_compile) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try
='test -s conftest.$ac_objext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_header_compiler
=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.
$ac_ext >&5
10185 ac_header_compiler
=no
10187 rm -f conftest.
$ac_objext conftest.
$ac_ext
10188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10189 echo "${ECHO_T}$ac_header_compiler" >&6
10191 # Is the header present?
10192 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10193 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10194 cat >conftest.
$ac_ext <<_ACEOF
10195 #line $LINENO "configure"
10198 cat confdefs.h
>>conftest.
$ac_ext
10199 cat >>conftest.
$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 #include <Carbon/Carbon.h>
10203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10204 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10206 grep -v '^ *+' conftest.er1
>conftest.err
10208 cat conftest.err
>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } >/dev
/null
; then
10211 if test -s conftest.err
; then
10212 ac_cpp_err
=$ac_c_preproc_warn_flag
10219 if test -z "$ac_cpp_err"; then
10220 ac_header_preproc
=yes
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.
$ac_ext >&5
10225 ac_header_preproc
=no
10227 rm -f conftest.err conftest.
$ac_ext
10228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10229 echo "${ECHO_T}$ac_header_preproc" >&6
10231 # So? What about this header?
10232 case $ac_header_compiler:$ac_header_preproc in
10234 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10235 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10237 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10240 ## ------------------------------------ ##
10241 ## Report this to bug-autoconf@gnu.org. ##
10242 ## ------------------------------------ ##
10245 sed "s/^/$as_me: WARNING: /" >&2
10248 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10249 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10250 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10251 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10253 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10256 ## ------------------------------------ ##
10257 ## Report this to bug-autoconf@gnu.org. ##
10258 ## ------------------------------------ ##
10261 sed "s/^/$as_me: WARNING: /" >&2
10264 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10265 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10266 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10271 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10272 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10275 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10282 if test "${HAVE_CARBON}" = "yes"; then
10284 cat >>confdefs.h
<<\_ACEOF
10285 #define HAVE_CARBON 1
10289 ## Specify the install directory
10291 if test "${carbon_appdir_x}" != ""; then
10292 case ${carbon_appdir_x} in
10293 y | ye |
yes) carbon_appdir
=/Applications
;;
10294 * ) carbon_appdir
=${carbon_appdir_x} ;;
10297 # We also have mouse menus.
10301 ### Use session management (-lSM -lICE) if available
10303 if test "${HAVE_X11}" = "yes"; then
10304 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10305 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10306 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10307 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10311 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10313 # Is the header compilable?
10314 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10315 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10316 cat >conftest.
$ac_ext <<_ACEOF
10317 #line $LINENO "configure"
10320 cat confdefs.h
>>conftest.
$ac_ext
10321 cat >>conftest.
$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 $ac_includes_default
10324 #include <X11/SM/SMlib.h>
10326 rm -f conftest.
$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try
='test -s conftest.$ac_objext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_header_compiler
=yes
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.
$ac_ext >&5
10343 ac_header_compiler
=no
10345 rm -f conftest.
$ac_objext conftest.
$ac_ext
10346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10347 echo "${ECHO_T}$ac_header_compiler" >&6
10349 # Is the header present?
10350 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10351 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10352 cat >conftest.
$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10356 cat confdefs.h
>>conftest.
$ac_ext
10357 cat >>conftest.
$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 #include <X11/SM/SMlib.h>
10361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10362 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10364 grep -v '^ *+' conftest.er1
>conftest.err
10366 cat conftest.err
>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } >/dev
/null
; then
10369 if test -s conftest.err
; then
10370 ac_cpp_err
=$ac_c_preproc_warn_flag
10377 if test -z "$ac_cpp_err"; then
10378 ac_header_preproc
=yes
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.
$ac_ext >&5
10383 ac_header_preproc
=no
10385 rm -f conftest.err conftest.
$ac_ext
10386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10387 echo "${ECHO_T}$ac_header_preproc" >&6
10389 # So? What about this header?
10390 case $ac_header_compiler:$ac_header_preproc in
10392 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10393 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10395 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10398 ## ------------------------------------ ##
10399 ## Report this to bug-autoconf@gnu.org. ##
10400 ## ------------------------------------ ##
10403 sed "s/^/$as_me: WARNING: /" >&2
10406 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10407 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10409 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10411 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10414 ## ------------------------------------ ##
10415 ## Report this to bug-autoconf@gnu.org. ##
10416 ## ------------------------------------ ##
10419 sed "s/^/$as_me: WARNING: /" >&2
10422 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10423 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10424 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10429 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10430 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10433 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10434 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10435 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10436 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 ac_check_lib_save_LIBS
=$LIBS
10441 cat >conftest.
$ac_ext <<_ACEOF
10442 #line $LINENO "configure"
10445 cat confdefs.h
>>conftest.
$ac_ext
10446 cat >>conftest.
$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10449 /* Override any gcc2 internal prototype to avoid an error. */
10453 /* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10455 char SmcOpenConnection ();
10459 SmcOpenConnection ();
10464 rm -f conftest.
$ac_objext conftest
$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try
='test -s conftest$ac_exeext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_lib_SM_SmcOpenConnection
=yes
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.
$ac_ext >&5
10481 ac_cv_lib_SM_SmcOpenConnection
=no
10483 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10484 LIBS
=$ac_check_lib_save_LIBS
10486 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10487 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10488 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10498 if test "${HAVE_X_SM}" = "yes"; then
10500 cat >>confdefs.h
<<\_ACEOF
10501 #define HAVE_X_SM 1
10506 *) LIBS
="-lSM -lICE $LIBS" ;;
10511 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10512 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10513 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10514 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 cat >conftest.
$ac_ext <<_ACEOF
10518 #line $LINENO "configure"
10521 cat confdefs.h
>>conftest.
$ac_ext
10522 cat >>conftest.
$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10533 rm -f conftest.
$ac_objext conftest
$ac_exeext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535 (eval $ac_link) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try
='test -s conftest$ac_exeext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 emacs_cv_netdb_declares_h_errno
=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10550 emacs_cv_netdb_declares_h_errno
=no
10552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10554 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10555 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10556 if test $emacs_cv_netdb_declares_h_errno = yes; then
10558 cat >>confdefs.h
<<\_ACEOF
10559 #define HAVE_H_ERRNO 1
10564 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10565 # for constant arguments. Useless!
10566 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10567 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10568 if test "${ac_cv_working_alloca_h+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 cat >conftest.
$ac_ext <<_ACEOF
10572 #line $LINENO "configure"
10575 cat confdefs.h
>>conftest.
$ac_ext
10576 cat >>conftest.
$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 #include <alloca.h>
10582 char *p = (char *) alloca (2 * sizeof (int));
10587 rm -f conftest.
$ac_objext conftest
$ac_exeext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589 (eval $ac_link) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try
='test -s conftest$ac_exeext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_cv_working_alloca_h
=yes
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.
$ac_ext >&5
10604 ac_cv_working_alloca_h
=no
10606 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10608 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10609 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10610 if test $ac_cv_working_alloca_h = yes; then
10612 cat >>confdefs.h
<<\_ACEOF
10613 #define HAVE_ALLOCA_H 1
10618 echo "$as_me:$LINENO: checking for alloca" >&5
10619 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10620 if test "${ac_cv_func_alloca_works+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 cat >conftest.
$ac_ext <<_ACEOF
10624 #line $LINENO "configure"
10627 cat confdefs.h
>>conftest.
$ac_ext
10628 cat >>conftest.
$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10631 # define alloca __builtin_alloca
10634 # include <malloc.h>
10635 # define alloca _alloca
10638 # include <alloca.h>
10643 # ifndef alloca /* predefined by HP cc +Olibcalls */
10654 char *p = (char *) alloca (1);
10659 rm -f conftest.
$ac_objext conftest
$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661 (eval $ac_link) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try
='test -s conftest$ac_exeext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_cv_func_alloca_works
=yes
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.
$ac_ext >&5
10676 ac_cv_func_alloca_works
=no
10678 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10680 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10681 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10683 if test $ac_cv_func_alloca_works = yes; then
10685 cat >>confdefs.h
<<\_ACEOF
10686 #define HAVE_ALLOCA 1
10690 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10691 # that cause trouble. Some versions do not even contain alloca or
10692 # contain a buggy version. If you still want to use their alloca,
10693 # use ar to extract alloca.o from them instead of compiling alloca.c.
10695 ALLOCA
=alloca.
$ac_objext
10697 cat >>confdefs.h
<<\_ACEOF
10702 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10703 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10704 if test "${ac_cv_os_cray+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 cat >conftest.
$ac_ext <<_ACEOF
10708 #line $LINENO "configure"
10711 cat confdefs.h
>>conftest.
$ac_ext
10712 cat >>conftest.
$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #if defined(CRAY) && ! defined(CRAY2)
10721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10722 $EGREP "webecray" >/dev
/null
2>&1; then
10730 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10731 echo "${ECHO_T}$ac_cv_os_cray" >&6
10732 if test $ac_cv_os_cray = yes; then
10733 for ac_func
in _getb67 GETB67 getb67
; do
10734 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10735 echo "$as_me:$LINENO: checking for $ac_func" >&5
10736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10737 if eval "test \"\${$as_ac_var+set}\" = set"; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 cat >conftest.
$ac_ext <<_ACEOF
10741 #line $LINENO "configure"
10744 cat confdefs.h
>>conftest.
$ac_ext
10745 cat >>conftest.
$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char $ac_func (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10752 # include <limits.h>
10754 # include <assert.h>
10756 /* Override any gcc2 internal prototype to avoid an error. */
10761 /* We use char because int might match the return type of a gcc2
10762 builtin and then its argument prototype would still apply. */
10764 /* The GNU C library defines this for functions which it implements
10765 to always fail with ENOSYS. Some functions are actually named
10766 something starting with __ and the normal name is an alias. */
10767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10770 char (*f) () = $ac_func;
10779 return f != $ac_func;
10784 rm -f conftest.
$ac_objext conftest
$ac_exeext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786 (eval $ac_link) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try
='test -s conftest$ac_exeext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 eval "$as_ac_var=yes"
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.
$ac_ext >&5
10801 eval "$as_ac_var=no"
10803 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10807 if test `eval echo '${'$as_ac_var'}'` = yes; then
10809 cat >>confdefs.h
<<_ACEOF
10810 #define CRAY_STACKSEG_END $ac_func
10819 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10820 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10821 if test "${ac_cv_c_stack_direction+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 if test "$cross_compiling" = yes; then
10825 ac_cv_c_stack_direction
=0
10827 cat >conftest.
$ac_ext <<_ACEOF
10828 #line $LINENO "configure"
10831 cat confdefs.h
>>conftest.
$ac_ext
10832 cat >>conftest.
$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10835 find_stack_direction ()
10837 static char *addr = 0;
10842 return find_stack_direction ();
10845 return (&dummy > addr) ? 1 : -1;
10851 exit (find_stack_direction () < 0);
10854 rm -f conftest
$ac_exeext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; }; then
10865 ac_cv_c_stack_direction
=1
10867 echo "$as_me: program exited with status $ac_status" >&5
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.
$ac_ext >&5
10871 ( exit $ac_status )
10872 ac_cv_c_stack_direction
=-1
10874 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10877 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10878 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10880 cat >>confdefs.h
<<_ACEOF
10881 #define STACK_DIRECTION $ac_cv_c_stack_direction
10888 # fmod, logb, and frexp are found in -lm on most systems.
10889 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10891 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10892 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10893 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 ac_check_lib_save_LIBS
=$LIBS
10898 cat >conftest.
$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10902 cat confdefs.h
>>conftest.
$ac_ext
10903 cat >>conftest.
$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10906 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10921 rm -f conftest.
$ac_objext conftest
$ac_exeext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10923 (eval $ac_link) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try
='test -s conftest$ac_exeext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_lib_m_sqrt
=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.
$ac_ext >&5
10938 ac_cv_lib_m_sqrt
=no
10940 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10941 LIBS
=$ac_check_lib_save_LIBS
10943 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10944 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10945 if test $ac_cv_lib_m_sqrt = yes; then
10946 cat >>confdefs.h
<<_ACEOF
10947 #define HAVE_LIBM 1
10955 # Check for mail-locking functions in a "mail" library. Probably this should
10956 # have the same check as for liblockfile below.
10958 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10959 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10960 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 ac_check_lib_save_LIBS
=$LIBS
10964 LIBS
="-lmail $LIBS"
10965 cat >conftest.
$ac_ext <<_ACEOF
10966 #line $LINENO "configure"
10969 cat confdefs.h
>>conftest.
$ac_ext
10970 cat >>conftest.
$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10973 /* Override any gcc2 internal prototype to avoid an error. */
10977 /* We use char because int might match the return type of a gcc2
10978 builtin and then its argument prototype would still apply. */
10988 rm -f conftest.
$ac_objext conftest
$ac_exeext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990 (eval $ac_link) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try
='test -s conftest$ac_exeext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_cv_lib_mail_maillock
=yes
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.
$ac_ext >&5
11005 ac_cv_lib_mail_maillock
=no
11007 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11008 LIBS
=$ac_check_lib_save_LIBS
11010 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11011 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11012 if test $ac_cv_lib_mail_maillock = yes; then
11013 cat >>confdefs.h
<<_ACEOF
11014 #define HAVE_LIBMAIL 1
11017 LIBS
="-lmail $LIBS"
11022 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11023 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11024 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 ac_check_lib_save_LIBS
=$LIBS
11028 LIBS
="-llockfile $LIBS"
11029 cat >conftest.
$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11033 cat confdefs.h
>>conftest.
$ac_ext
11034 cat >>conftest.
$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11037 /* Override any gcc2 internal prototype to avoid an error. */
11041 /* We use char because int might match the return type of a gcc2
11042 builtin and then its argument prototype would still apply. */
11052 rm -f conftest.
$ac_objext conftest
$ac_exeext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11054 (eval $ac_link) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try
='test -s conftest$ac_exeext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_cv_lib_lockfile_maillock
=yes
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.
$ac_ext >&5
11069 ac_cv_lib_lockfile_maillock
=no
11071 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11072 LIBS
=$ac_check_lib_save_LIBS
11074 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11075 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11076 if test $ac_cv_lib_lockfile_maillock = yes; then
11077 cat >>confdefs.h
<<_ACEOF
11078 #define HAVE_LIBLOCKFILE 1
11081 LIBS
="-llockfile $LIBS"
11085 # If we have the shared liblockfile, assume we must use it for mail
11086 # locking (e.g. Debian). If we couldn't link against liblockfile
11087 # (no liblockfile.a installed), ensure that we don't need to.
11088 if test "$ac_cv_lib_lockfile_maillock" = no
; then
11089 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11090 set dummy liblockfile.so
; ac_word
=$2
11091 echo "$as_me:$LINENO: checking for $ac_word" >&5
11092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11093 if test "${ac_cv_prog_liblockfile+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 if test -n "$liblockfile"; then
11097 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11100 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11101 for as_dir
in $as_dummy
11104 test -z "$as_dir" && as_dir
=.
11105 for ac_exec_ext
in '' $ac_executable_extensions; do
11106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11107 ac_cv_prog_liblockfile
="yes"
11108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11117 liblockfile
=$ac_cv_prog_liblockfile
11118 if test -n "$liblockfile"; then
11119 echo "$as_me:$LINENO: result: $liblockfile" >&5
11120 echo "${ECHO_T}$liblockfile" >&6
11122 echo "$as_me:$LINENO: result: no" >&5
11123 echo "${ECHO_T}no" >&6
11126 if test $ac_cv_prog_liblockfile = yes; then
11127 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11128 This probably means that movemail could lose mail.
11129 There may be a \`development' package to install containing liblockfile." >&5
11130 echo "$as_me: error: Shared liblockfile found but can't link against it.
11131 This probably means that movemail could lose mail.
11132 There may be a \`development' package to install containing liblockfile." >&2;}
11133 { (exit 1); exit 1; }; }
11138 for ac_func
in touchlock
11140 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11141 echo "$as_me:$LINENO: checking for $ac_func" >&5
11142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11143 if eval "test \"\${$as_ac_var+set}\" = set"; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 cat >conftest.
$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11150 cat confdefs.h
>>conftest.
$ac_ext
11151 cat >>conftest.
$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 /* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11158 # include <limits.h>
11160 # include <assert.h>
11162 /* Override any gcc2 internal prototype to avoid an error. */
11167 /* We use char because int might match the return type of a gcc2
11168 builtin and then its argument prototype would still apply. */
11170 /* The GNU C library defines this for functions which it implements
11171 to always fail with ENOSYS. Some functions are actually named
11172 something starting with __ and the normal name is an alias. */
11173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11176 char (*f) () = $ac_func;
11185 return f != $ac_func;
11190 rm -f conftest.
$ac_objext conftest
$ac_exeext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192 (eval $ac_link) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try
='test -s conftest$ac_exeext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 eval "$as_ac_var=yes"
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.
$ac_ext >&5
11207 eval "$as_ac_var=no"
11209 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11213 if test `eval echo '${'$as_ac_var'}'` = yes; then
11214 cat >>confdefs.h
<<_ACEOF
11215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 for ac_header
in maillock.h
11224 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11226 echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11234 # Is the header compilable?
11235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11237 cat >conftest.
$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11241 cat confdefs.h
>>conftest.
$ac_ext
11242 cat >>conftest.
$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 $ac_includes_default
11245 #include <$ac_header>
11247 rm -f conftest.
$ac_objext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11249 (eval $ac_compile) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try
='test -s conftest.$ac_objext'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 ac_header_compiler
=yes
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.
$ac_ext >&5
11264 ac_header_compiler
=no
11266 rm -f conftest.
$ac_objext conftest.
$ac_ext
11267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11268 echo "${ECHO_T}$ac_header_compiler" >&6
11270 # Is the header present?
11271 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11273 cat >conftest.
$ac_ext <<_ACEOF
11274 #line $LINENO "configure"
11277 cat confdefs.h
>>conftest.
$ac_ext
11278 cat >>conftest.
$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280 #include <$ac_header>
11282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11283 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11285 grep -v '^ *+' conftest.er1
>conftest.err
11287 cat conftest.err
>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } >/dev
/null
; then
11290 if test -s conftest.err
; then
11291 ac_cpp_err
=$ac_c_preproc_warn_flag
11298 if test -z "$ac_cpp_err"; then
11299 ac_header_preproc
=yes
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.
$ac_ext >&5
11304 ac_header_preproc
=no
11306 rm -f conftest.err conftest.
$ac_ext
11307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11308 echo "${ECHO_T}$ac_header_preproc" >&6
11310 # So? What about this header?
11311 case $ac_header_compiler:$ac_header_preproc in
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11319 ## ------------------------------------ ##
11320 ## Report this to bug-autoconf@gnu.org. ##
11321 ## ------------------------------------ ##
11324 sed "s/^/$as_me: WARNING: /" >&2
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11335 ## ------------------------------------ ##
11336 ## Report this to bug-autoconf@gnu.org. ##
11337 ## ------------------------------------ ##
11340 sed "s/^/$as_me: WARNING: /" >&2
11343 echo "$as_me:$LINENO: checking for $ac_header" >&5
11344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 eval "$as_ac_Header=$ac_header_preproc"
11350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11355 cat >>confdefs.h
<<_ACEOF
11356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11431 for ac_func
in gethostname getdomainname dup2 \
11432 rename closedir mkdir
rmdir sysinfo \
11433 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11434 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11435 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11436 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11437 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11438 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11439 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11441 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11442 echo "$as_me:$LINENO: checking for $ac_func" >&5
11443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11444 if eval "test \"\${$as_ac_var+set}\" = set"; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 cat >conftest.
$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11451 cat confdefs.h
>>conftest.
$ac_ext
11452 cat >>conftest.
$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 /* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char $ac_func (); below.
11456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 <limits.h> exists even on freestanding compilers. */
11459 # include <limits.h>
11461 # include <assert.h>
11463 /* Override any gcc2 internal prototype to avoid an error. */
11468 /* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11477 char (*f) () = $ac_func;
11486 return f != $ac_func;
11491 rm -f conftest.
$ac_objext conftest
$ac_exeext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11493 (eval $ac_link) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try
='test -s conftest$ac_exeext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 eval "$as_ac_var=yes"
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.
$ac_ext >&5
11508 eval "$as_ac_var=no"
11510 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11514 if test `eval echo '${'$as_ac_var'}'` = yes; then
11515 cat >>confdefs.h
<<_ACEOF
11516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11524 for ac_header
in sys
/un.h
11526 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11528 echo "$as_me:$LINENO: checking for $ac_header" >&5
11529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11536 # Is the header compilable?
11537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11539 cat >conftest.
$ac_ext <<_ACEOF
11540 #line $LINENO "configure"
11543 cat confdefs.h
>>conftest.
$ac_ext
11544 cat >>conftest.
$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 $ac_includes_default
11547 #include <$ac_header>
11549 rm -f conftest.
$ac_objext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551 (eval $ac_compile) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try
='test -s conftest.$ac_objext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_header_compiler
=yes
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.
$ac_ext >&5
11566 ac_header_compiler
=no
11568 rm -f conftest.
$ac_objext conftest.
$ac_ext
11569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11570 echo "${ECHO_T}$ac_header_compiler" >&6
11572 # Is the header present?
11573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11575 cat >conftest.
$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11579 cat confdefs.h
>>conftest.
$ac_ext
11580 cat >>conftest.
$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <$ac_header>
11584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11585 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11587 grep -v '^ *+' conftest.er1
>conftest.err
11589 cat conftest.err
>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } >/dev
/null
; then
11592 if test -s conftest.err
; then
11593 ac_cpp_err
=$ac_c_preproc_warn_flag
11600 if test -z "$ac_cpp_err"; then
11601 ac_header_preproc
=yes
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.
$ac_ext >&5
11606 ac_header_preproc
=no
11608 rm -f conftest.err conftest.
$ac_ext
11609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11610 echo "${ECHO_T}$ac_header_preproc" >&6
11612 # So? What about this header?
11613 case $ac_header_compiler:$ac_header_preproc in
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11621 ## ------------------------------------ ##
11622 ## Report this to bug-autoconf@gnu.org. ##
11623 ## ------------------------------------ ##
11626 sed "s/^/$as_me: WARNING: /" >&2
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11637 ## ------------------------------------ ##
11638 ## Report this to bug-autoconf@gnu.org. ##
11639 ## ------------------------------------ ##
11642 sed "s/^/$as_me: WARNING: /" >&2
11645 echo "$as_me:$LINENO: checking for $ac_header" >&5
11646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 eval "$as_ac_Header=$ac_header_preproc"
11652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11657 cat >>confdefs.h
<<_ACEOF
11658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11668 for ac_header
in sys
/time.h unistd.h
11670 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11672 echo "$as_me:$LINENO: checking for $ac_header" >&5
11673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11680 # Is the header compilable?
11681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11683 cat >conftest.
$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11687 cat confdefs.h
>>conftest.
$ac_ext
11688 cat >>conftest.
$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 $ac_includes_default
11691 #include <$ac_header>
11693 rm -f conftest.
$ac_objext
11694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11695 (eval $ac_compile) 2>&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } &&
11699 { ac_try
='test -s conftest.$ac_objext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_header_compiler
=yes
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.
$ac_ext >&5
11710 ac_header_compiler
=no
11712 rm -f conftest.
$ac_objext conftest.
$ac_ext
11713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11714 echo "${ECHO_T}$ac_header_compiler" >&6
11716 # Is the header present?
11717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11719 cat >conftest.
$ac_ext <<_ACEOF
11720 #line $LINENO "configure"
11723 cat confdefs.h
>>conftest.
$ac_ext
11724 cat >>conftest.
$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 #include <$ac_header>
11728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11731 grep -v '^ *+' conftest.er1
>conftest.err
11733 cat conftest.err
>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } >/dev
/null
; then
11736 if test -s conftest.err
; then
11737 ac_cpp_err
=$ac_c_preproc_warn_flag
11744 if test -z "$ac_cpp_err"; then
11745 ac_header_preproc
=yes
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.
$ac_ext >&5
11750 ac_header_preproc
=no
11752 rm -f conftest.err conftest.
$ac_ext
11753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11754 echo "${ECHO_T}$ac_header_preproc" >&6
11756 # So? What about this header?
11757 case $ac_header_compiler:$ac_header_preproc in
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 ## ------------------------------------ ##
11766 ## Report this to bug-autoconf@gnu.org. ##
11767 ## ------------------------------------ ##
11770 sed "s/^/$as_me: WARNING: /" >&2
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11781 ## ------------------------------------ ##
11782 ## Report this to bug-autoconf@gnu.org. ##
11783 ## ------------------------------------ ##
11786 sed "s/^/$as_me: WARNING: /" >&2
11789 echo "$as_me:$LINENO: checking for $ac_header" >&5
11790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 eval "$as_ac_Header=$ac_header_preproc"
11796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11801 cat >>confdefs.h
<<_ACEOF
11802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11810 for ac_func
in alarm
11812 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11813 echo "$as_me:$LINENO: checking for $ac_func" >&5
11814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11815 if eval "test \"\${$as_ac_var+set}\" = set"; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 cat >conftest.
$ac_ext <<_ACEOF
11819 #line $LINENO "configure"
11822 cat confdefs.h
>>conftest.
$ac_ext
11823 cat >>conftest.
$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 /* System header to define __stub macros and hopefully few prototypes,
11826 which can conflict with char $ac_func (); below.
11827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828 <limits.h> exists even on freestanding compilers. */
11830 # include <limits.h>
11832 # include <assert.h>
11834 /* Override any gcc2 internal prototype to avoid an error. */
11839 /* We use char because int might match the return type of a gcc2
11840 builtin and then its argument prototype would still apply. */
11842 /* The GNU C library defines this for functions which it implements
11843 to always fail with ENOSYS. Some functions are actually named
11844 something starting with __ and the normal name is an alias. */
11845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11848 char (*f) () = $ac_func;
11857 return f != $ac_func;
11862 rm -f conftest.
$ac_objext conftest
$ac_exeext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864 (eval $ac_link) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try
='test -s conftest$ac_exeext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 eval "$as_ac_var=yes"
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.
$ac_ext >&5
11879 eval "$as_ac_var=no"
11881 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11885 if test `eval echo '${'$as_ac_var'}'` = yes; then
11886 cat >>confdefs.h
<<_ACEOF
11887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11893 echo "$as_me:$LINENO: checking for working mktime" >&5
11894 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11895 if test "${ac_cv_func_working_mktime+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 if test "$cross_compiling" = yes; then
11899 ac_cv_func_working_mktime
=no
11901 cat >conftest.
$ac_ext <<_ACEOF
11902 #line $LINENO "configure"
11905 cat confdefs.h
>>conftest.
$ac_ext
11906 cat >>conftest.
$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 /* Test program from Paul Eggert and Tony Leneis. */
11909 #if TIME_WITH_SYS_TIME
11910 # include <sys/time.h>
11913 # if HAVE_SYS_TIME_H
11914 # include <sys/time.h>
11921 # include <unistd.h>
11925 # define alarm(X) /* empty */
11928 /* Work around redefinition to rpl_putenv by other config tests. */
11931 static time_t time_t_max;
11933 /* Values we'll use to set the TZ environment variable. */
11934 static const char *const tz_strings[] = {
11935 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11936 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11938 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11940 /* Fail if mktime fails to convert a date in the spring-forward gap.
11941 Based on a problem report from Andreas Jaeger. */
11943 spring_forward_gap ()
11945 /* glibc (up to about 1998-10-07) failed this test. */
11948 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11949 instead of "TZ=America/Vancouver" in order to detect the bug even
11950 on systems that don't support the Olson extension, or don't have the
11951 full zoneinfo tables installed. */
11952 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11961 if (mktime (&tm) == (time_t)-1)
11970 if ((lt = localtime (&now)) && mktime (lt) != now)
11972 now = time_t_max - now;
11973 if ((lt = localtime (&now)) && mktime (lt) != now)
11980 /* Based on code from Ariel Faigon. */
11990 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12000 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12001 now = mktime (&tm);
12002 if (now != (time_t) -1)
12004 struct tm *lt = localtime (&now);
12006 && lt->tm_year == tm.tm_year
12007 && lt->tm_mon == tm.tm_mon
12008 && lt->tm_mday == tm.tm_mday
12009 && lt->tm_hour == tm.tm_hour
12010 && lt->tm_min == tm.tm_min
12011 && lt->tm_sec == tm.tm_sec
12012 && lt->tm_yday == tm.tm_yday
12013 && lt->tm_wday == tm.tm_wday
12014 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12015 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12026 /* This test makes some buggy mktime implementations loop.
12027 Give up after 60 seconds; a mktime slower than that
12028 isn't worth using anyway. */
12031 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12034 delta = time_t_max / 997; /* a suitable prime number */
12035 for (i = 0; i < N_STRINGS; i++)
12038 putenv (tz_strings[i]);
12040 for (t = 0; t <= time_t_max - delta; t += delta)
12042 mktime_test ((time_t) 60 * 60);
12043 mktime_test ((time_t) 60 * 60 * 24);
12045 for (j = 1; 0 < j; j *= 2)
12047 bigtime_test (j - 1);
12050 spring_forward_gap ();
12054 rm -f conftest
$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; }; then
12065 ac_cv_func_working_mktime
=yes
12067 echo "$as_me: program exited with status $ac_status" >&5
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.
$ac_ext >&5
12071 ( exit $ac_status )
12072 ac_cv_func_working_mktime
=no
12074 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12077 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12078 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12079 if test $ac_cv_func_working_mktime = no
; then
12080 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12083 if test "$ac_cv_func_working_mktime" = no
; then
12085 cat >>confdefs.h
<<\_ACEOF
12086 #define BROKEN_MKTIME 1
12091 ac_have_func
=no
# yes means we've found a way to get the load average.
12093 # Make sure getloadavg.c is where it belongs, at configure-time.
12094 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12095 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12096 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12097 { (exit 1); exit 1; }; }
12101 # Check for getloadavg, but be sure not to touch the cache variable.
12102 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12103 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12104 if test "${ac_cv_func_getloadavg+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 cat >conftest.
$ac_ext <<_ACEOF
12108 #line $LINENO "configure"
12111 cat confdefs.h
>>conftest.
$ac_ext
12112 cat >>conftest.
$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 /* System header to define __stub macros and hopefully few prototypes,
12115 which can conflict with char getloadavg (); below.
12116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117 <limits.h> exists even on freestanding compilers. */
12119 # include <limits.h>
12121 # include <assert.h>
12123 /* Override any gcc2 internal prototype to avoid an error. */
12128 /* We use char because int might match the return type of a gcc2
12129 builtin and then its argument prototype would still apply. */
12130 char getloadavg ();
12131 /* The GNU C library defines this for functions which it implements
12132 to always fail with ENOSYS. Some functions are actually named
12133 something starting with __ and the normal name is an alias. */
12134 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12137 char (*f) () = getloadavg;
12146 return f != getloadavg;
12151 rm -f conftest.
$ac_objext conftest
$ac_exeext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12153 (eval $ac_link) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } &&
12157 { ac_try
='test -s conftest$ac_exeext'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; }; then
12163 ac_cv_func_getloadavg
=yes
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.
$ac_ext >&5
12168 ac_cv_func_getloadavg
=no
12170 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12172 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12173 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12174 if test $ac_cv_func_getloadavg = yes; then
12179 ) && ac_have_func
=yes
12181 # On HPUX9, an unprivileged user can get load averages through this function.
12183 for ac_func
in pstat_getdynamic
12185 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12186 echo "$as_me:$LINENO: checking for $ac_func" >&5
12187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12188 if eval "test \"\${$as_ac_var+set}\" = set"; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.
$ac_ext <<_ACEOF
12192 #line $LINENO "configure"
12195 cat confdefs.h
>>conftest.
$ac_ext
12196 cat >>conftest.
$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 /* System header to define __stub macros and hopefully few prototypes,
12199 which can conflict with char $ac_func (); below.
12200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12201 <limits.h> exists even on freestanding compilers. */
12203 # include <limits.h>
12205 # include <assert.h>
12207 /* Override any gcc2 internal prototype to avoid an error. */
12212 /* We use char because int might match the return type of a gcc2
12213 builtin and then its argument prototype would still apply. */
12215 /* The GNU C library defines this for functions which it implements
12216 to always fail with ENOSYS. Some functions are actually named
12217 something starting with __ and the normal name is an alias. */
12218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12221 char (*f) () = $ac_func;
12230 return f != $ac_func;
12235 rm -f conftest.
$ac_objext conftest
$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try
='test -s conftest$ac_exeext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 eval "$as_ac_var=yes"
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.
$ac_ext >&5
12252 eval "$as_ac_var=no"
12254 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12258 if test `eval echo '${'$as_ac_var'}'` = yes; then
12259 cat >>confdefs.h
<<_ACEOF
12260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12267 # Solaris has libkstat which does not require root.
12269 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12270 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12271 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 ac_check_lib_save_LIBS
=$LIBS
12275 LIBS
="-lkstat $LIBS"
12276 cat >conftest.
$ac_ext <<_ACEOF
12277 #line $LINENO "configure"
12280 cat confdefs.h
>>conftest.
$ac_ext
12281 cat >>conftest.
$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 /* Override any gcc2 internal prototype to avoid an error. */
12288 /* We use char because int might match the return type of a gcc2
12289 builtin and then its argument prototype would still apply. */
12290 char kstat_open ();
12299 rm -f conftest.
$ac_objext conftest
$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try
='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_lib_kstat_kstat_open
=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.
$ac_ext >&5
12316 ac_cv_lib_kstat_kstat_open
=no
12318 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12319 LIBS
=$ac_check_lib_save_LIBS
12321 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12322 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12323 if test $ac_cv_lib_kstat_kstat_open = yes; then
12324 cat >>confdefs.h
<<_ACEOF
12325 #define HAVE_LIBKSTAT 1
12328 LIBS
="-lkstat $LIBS"
12332 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12334 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12335 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12336 # to get the right answer into the cache.
12337 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12338 if test $ac_have_func = no
; then
12339 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12340 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12341 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 ac_check_lib_save_LIBS
=$LIBS
12346 cat >conftest.
$ac_ext <<_ACEOF
12347 #line $LINENO "configure"
12350 cat confdefs.h
>>conftest.
$ac_ext
12351 cat >>conftest.
$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12354 /* Override any gcc2 internal prototype to avoid an error. */
12358 /* We use char because int might match the return type of a gcc2
12359 builtin and then its argument prototype would still apply. */
12369 rm -f conftest.
$ac_objext conftest
$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371 (eval $ac_link) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try
='test -s conftest$ac_exeext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_lib_elf_elf_begin
=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.
$ac_ext >&5
12386 ac_cv_lib_elf_elf_begin
=no
12388 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12389 LIBS
=$ac_check_lib_save_LIBS
12391 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12392 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12393 if test $ac_cv_lib_elf_elf_begin = yes; then
12398 if test $ac_have_func = no
; then
12399 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12400 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12401 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 ac_check_lib_save_LIBS
=$LIBS
12406 cat >conftest.
$ac_ext <<_ACEOF
12407 #line $LINENO "configure"
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12414 /* Override any gcc2 internal prototype to avoid an error. */
12418 /* We use char because int might match the return type of a gcc2
12419 builtin and then its argument prototype would still apply. */
12429 rm -f conftest.
$ac_objext conftest
$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431 (eval $ac_link) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try
='test -s conftest$ac_exeext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_cv_lib_kvm_kvm_open
=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.
$ac_ext >&5
12446 ac_cv_lib_kvm_kvm_open
=no
12448 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12449 LIBS
=$ac_check_lib_save_LIBS
12451 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12452 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12453 if test $ac_cv_lib_kvm_kvm_open = yes; then
12457 # Check for the 4.4BSD definition of getloadavg.
12458 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12459 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12460 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 ac_check_lib_save_LIBS
=$LIBS
12464 LIBS
="-lutil $LIBS"
12465 cat >conftest.
$ac_ext <<_ACEOF
12466 #line $LINENO "configure"
12469 cat confdefs.h
>>conftest.
$ac_ext
12470 cat >>conftest.
$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12473 /* Override any gcc2 internal prototype to avoid an error. */
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12479 char getloadavg ();
12488 rm -f conftest.
$ac_objext conftest
$ac_exeext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12490 (eval $ac_link) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try
='test -s conftest$ac_exeext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 ac_cv_lib_util_getloadavg
=yes
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.
$ac_ext >&5
12505 ac_cv_lib_util_getloadavg
=no
12507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12508 LIBS
=$ac_check_lib_save_LIBS
12510 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12511 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12512 if test $ac_cv_lib_util_getloadavg = yes; then
12513 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12518 if test $ac_have_func = no
; then
12519 # There is a commonly available library for RS/6000 AIX.
12520 # Since it is not a standard part of AIX, it might be installed locally.
12521 ac_getloadavg_LIBS
=$LIBS
12522 LIBS
="-L/usr/local/lib $LIBS"
12523 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12524 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12525 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 ac_check_lib_save_LIBS
=$LIBS
12529 LIBS
="-lgetloadavg $LIBS"
12530 cat >conftest.
$ac_ext <<_ACEOF
12531 #line $LINENO "configure"
12534 cat confdefs.h
>>conftest.
$ac_ext
12535 cat >>conftest.
$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12538 /* Override any gcc2 internal prototype to avoid an error. */
12542 /* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12544 char getloadavg ();
12553 rm -f conftest.
$ac_objext conftest
$ac_exeext
12554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555 (eval $ac_link) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try
='test -s conftest$ac_exeext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_cv_lib_getloadavg_getloadavg
=yes
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.
$ac_ext >&5
12570 ac_cv_lib_getloadavg_getloadavg
=no
12572 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12573 LIBS
=$ac_check_lib_save_LIBS
12575 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12576 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12577 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12578 LIBS
="-lgetloadavg $LIBS"
12580 LIBS
=$ac_getloadavg_LIBS
12585 # Make sure it is really in the library, if we think we found it,
12586 # otherwise set up the replacement function.
12588 for ac_func
in getloadavg
12590 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12591 echo "$as_me:$LINENO: checking for $ac_func" >&5
12592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12593 if eval "test \"\${$as_ac_var+set}\" = set"; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 cat >conftest.
$ac_ext <<_ACEOF
12597 #line $LINENO "configure"
12600 cat confdefs.h
>>conftest.
$ac_ext
12601 cat >>conftest.
$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 /* System header to define __stub macros and hopefully few prototypes,
12604 which can conflict with char $ac_func (); below.
12605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12606 <limits.h> exists even on freestanding compilers. */
12608 # include <limits.h>
12610 # include <assert.h>
12612 /* Override any gcc2 internal prototype to avoid an error. */
12617 /* We use char because int might match the return type of a gcc2
12618 builtin and then its argument prototype would still apply. */
12620 /* The GNU C library defines this for functions which it implements
12621 to always fail with ENOSYS. Some functions are actually named
12622 something starting with __ and the normal name is an alias. */
12623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12626 char (*f) () = $ac_func;
12635 return f != $ac_func;
12640 rm -f conftest.
$ac_objext conftest
$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try
='test -s conftest$ac_exeext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 eval "$as_ac_var=yes"
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.
$ac_ext >&5
12657 eval "$as_ac_var=no"
12659 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12663 if test `eval echo '${'$as_ac_var'}'` = yes; then
12664 cat >>confdefs.h
<<_ACEOF
12665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12669 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12671 cat >>confdefs.h
<<\_ACEOF
12672 #define C_GETLOADAVG 1
12675 # Figure out what our getloadavg.c needs.
12677 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12678 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12679 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12680 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12684 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12686 # Is the header compilable?
12687 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12688 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12689 cat >conftest.
$ac_ext <<_ACEOF
12690 #line $LINENO "configure"
12693 cat confdefs.h
>>conftest.
$ac_ext
12694 cat >>conftest.
$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 $ac_includes_default
12697 #include <sys/dg_sys_info.h>
12699 rm -f conftest.
$ac_objext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12701 (eval $ac_compile) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try
='test -s conftest.$ac_objext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 ac_header_compiler
=yes
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.
$ac_ext >&5
12716 ac_header_compiler
=no
12718 rm -f conftest.
$ac_objext conftest.
$ac_ext
12719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12720 echo "${ECHO_T}$ac_header_compiler" >&6
12722 # Is the header present?
12723 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12724 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12725 cat >conftest.
$ac_ext <<_ACEOF
12726 #line $LINENO "configure"
12729 cat confdefs.h
>>conftest.
$ac_ext
12730 cat >>conftest.
$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 #include <sys/dg_sys_info.h>
12734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12735 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12737 grep -v '^ *+' conftest.er1
>conftest.err
12739 cat conftest.err
>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } >/dev
/null
; then
12742 if test -s conftest.err
; then
12743 ac_cpp_err
=$ac_c_preproc_warn_flag
12750 if test -z "$ac_cpp_err"; then
12751 ac_header_preproc
=yes
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.
$ac_ext >&5
12756 ac_header_preproc
=no
12758 rm -f conftest.err conftest.
$ac_ext
12759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12760 echo "${ECHO_T}$ac_header_preproc" >&6
12762 # So? What about this header?
12763 case $ac_header_compiler:$ac_header_preproc in
12765 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12766 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12767 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12768 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12771 ## ------------------------------------ ##
12772 ## Report this to bug-autoconf@gnu.org. ##
12773 ## ------------------------------------ ##
12776 sed "s/^/$as_me: WARNING: /" >&2
12779 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12780 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12781 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12782 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12783 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12784 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12787 ## ------------------------------------ ##
12788 ## Report this to bug-autoconf@gnu.org. ##
12789 ## ------------------------------------ ##
12792 sed "s/^/$as_me: WARNING: /" >&2
12795 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12796 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12797 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12802 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12803 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12806 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12809 cat >>confdefs.h
<<\_ACEOF
12814 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12815 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12816 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 ac_check_lib_save_LIBS
=$LIBS
12821 cat >conftest.
$ac_ext <<_ACEOF
12822 #line $LINENO "configure"
12825 cat confdefs.h
>>conftest.
$ac_ext
12826 cat >>conftest.
$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12829 /* Override any gcc2 internal prototype to avoid an error. */
12833 /* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12835 char dg_sys_info ();
12844 rm -f conftest.
$ac_objext conftest
$ac_exeext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846 (eval $ac_link) 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try
='test -s conftest$ac_exeext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_cv_lib_dgc_dg_sys_info
=yes
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.
$ac_ext >&5
12861 ac_cv_lib_dgc_dg_sys_info
=no
12863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12864 LIBS
=$ac_check_lib_save_LIBS
12866 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12867 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12868 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12869 cat >>confdefs.h
<<_ACEOF
12870 #define HAVE_LIBDGC 1
12881 if test "${ac_cv_header_locale_h+set}" = set; then
12882 echo "$as_me:$LINENO: checking for locale.h" >&5
12883 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12884 if test "${ac_cv_header_locale_h+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12888 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12890 # Is the header compilable?
12891 echo "$as_me:$LINENO: checking locale.h usability" >&5
12892 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12893 cat >conftest.
$ac_ext <<_ACEOF
12894 #line $LINENO "configure"
12897 cat confdefs.h
>>conftest.
$ac_ext
12898 cat >>conftest.
$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12900 $ac_includes_default
12901 #include <locale.h>
12903 rm -f conftest.
$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try
='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_header_compiler
=yes
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.
$ac_ext >&5
12920 ac_header_compiler
=no
12922 rm -f conftest.
$ac_objext conftest.
$ac_ext
12923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12924 echo "${ECHO_T}$ac_header_compiler" >&6
12926 # Is the header present?
12927 echo "$as_me:$LINENO: checking locale.h presence" >&5
12928 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12929 cat >conftest.
$ac_ext <<_ACEOF
12930 #line $LINENO "configure"
12933 cat confdefs.h
>>conftest.
$ac_ext
12934 cat >>conftest.
$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <locale.h>
12938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12941 grep -v '^ *+' conftest.er1
>conftest.err
12943 cat conftest.err
>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } >/dev
/null
; then
12946 if test -s conftest.err
; then
12947 ac_cpp_err
=$ac_c_preproc_warn_flag
12954 if test -z "$ac_cpp_err"; then
12955 ac_header_preproc
=yes
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.
$ac_ext >&5
12960 ac_header_preproc
=no
12962 rm -f conftest.err conftest.
$ac_ext
12963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12964 echo "${ECHO_T}$ac_header_preproc" >&6
12966 # So? What about this header?
12967 case $ac_header_compiler:$ac_header_preproc in
12969 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12970 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12971 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12972 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12975 ## ------------------------------------ ##
12976 ## Report this to bug-autoconf@gnu.org. ##
12977 ## ------------------------------------ ##
12980 sed "s/^/$as_me: WARNING: /" >&2
12983 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12984 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12986 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12988 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12991 ## ------------------------------------ ##
12992 ## Report this to bug-autoconf@gnu.org. ##
12993 ## ------------------------------------ ##
12996 sed "s/^/$as_me: WARNING: /" >&2
12999 echo "$as_me:$LINENO: checking for locale.h" >&5
13000 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13001 if test "${ac_cv_header_locale_h+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 ac_cv_header_locale_h
=$ac_header_preproc
13006 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13007 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13013 for ac_func
in setlocale
13015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13016 echo "$as_me:$LINENO: checking for $ac_func" >&5
13017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13018 if eval "test \"\${$as_ac_var+set}\" = set"; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 cat >conftest.
$ac_ext <<_ACEOF
13022 #line $LINENO "configure"
13025 cat confdefs.h
>>conftest.
$ac_ext
13026 cat >>conftest.
$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 /* System header to define __stub macros and hopefully few prototypes,
13029 which can conflict with char $ac_func (); below.
13030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13031 <limits.h> exists even on freestanding compilers. */
13033 # include <limits.h>
13035 # include <assert.h>
13037 /* Override any gcc2 internal prototype to avoid an error. */
13042 /* We use char because int might match the return type of a gcc2
13043 builtin and then its argument prototype would still apply. */
13045 /* The GNU C library defines this for functions which it implements
13046 to always fail with ENOSYS. Some functions are actually named
13047 something starting with __ and the normal name is an alias. */
13048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13051 char (*f) () = $ac_func;
13060 return f != $ac_func;
13065 rm -f conftest.
$ac_objext conftest
$ac_exeext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } &&
13071 { ac_try
='test -s conftest$ac_exeext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 eval "$as_ac_var=yes"
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.
$ac_ext >&5
13082 eval "$as_ac_var=no"
13084 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13088 if test `eval echo '${'$as_ac_var'}'` = yes; then
13089 cat >>confdefs.h
<<_ACEOF
13090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13097 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13098 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13099 # Irix 4.0.5F has the header but not the library.
13100 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13103 cat >>confdefs.h
<<\_ACEOF
13109 if test $ac_have_func = no
; then
13110 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13111 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13112 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13113 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13117 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13119 # Is the header compilable?
13120 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13121 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13122 cat >conftest.
$ac_ext <<_ACEOF
13123 #line $LINENO "configure"
13126 cat confdefs.h
>>conftest.
$ac_ext
13127 cat >>conftest.
$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 $ac_includes_default
13130 #include <inq_stats/cpustats.h>
13132 rm -f conftest.
$ac_objext
13133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13134 (eval $ac_compile) 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try
='test -s conftest.$ac_objext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
13144 ac_header_compiler
=yes
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.
$ac_ext >&5
13149 ac_header_compiler
=no
13151 rm -f conftest.
$ac_objext conftest.
$ac_ext
13152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13153 echo "${ECHO_T}$ac_header_compiler" >&6
13155 # Is the header present?
13156 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13157 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13158 cat >conftest.
$ac_ext <<_ACEOF
13159 #line $LINENO "configure"
13162 cat confdefs.h
>>conftest.
$ac_ext
13163 cat >>conftest.
$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 #include <inq_stats/cpustats.h>
13167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13170 grep -v '^ *+' conftest.er1
>conftest.err
13172 cat conftest.err
>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } >/dev
/null
; then
13175 if test -s conftest.err
; then
13176 ac_cpp_err
=$ac_c_preproc_warn_flag
13183 if test -z "$ac_cpp_err"; then
13184 ac_header_preproc
=yes
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.
$ac_ext >&5
13189 ac_header_preproc
=no
13191 rm -f conftest.err conftest.
$ac_ext
13192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13193 echo "${ECHO_T}$ac_header_preproc" >&6
13195 # So? What about this header?
13196 case $ac_header_compiler:$ac_header_preproc in
13198 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13199 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13200 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13201 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13204 ## ------------------------------------ ##
13205 ## Report this to bug-autoconf@gnu.org. ##
13206 ## ------------------------------------ ##
13209 sed "s/^/$as_me: WARNING: /" >&2
13212 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13213 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13214 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13215 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13217 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13220 ## ------------------------------------ ##
13221 ## Report this to bug-autoconf@gnu.org. ##
13222 ## ------------------------------------ ##
13225 sed "s/^/$as_me: WARNING: /" >&2
13228 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13229 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13230 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13235 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13236 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13239 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13242 cat >>confdefs.h
<<\_ACEOF
13247 cat >>confdefs.h
<<\_ACEOF
13256 if test $ac_have_func = no
; then
13257 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13258 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13259 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13260 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13264 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13266 # Is the header compilable?
13267 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13268 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13269 cat >conftest.
$ac_ext <<_ACEOF
13270 #line $LINENO "configure"
13273 cat confdefs.h
>>conftest.
$ac_ext
13274 cat >>conftest.
$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 $ac_includes_default
13277 #include <sys/cpustats.h>
13279 rm -f conftest.
$ac_objext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13281 (eval $ac_compile) 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); } &&
13285 { ac_try
='test -s conftest.$ac_objext'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 ac_header_compiler
=yes
13293 echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.
$ac_ext >&5
13296 ac_header_compiler
=no
13298 rm -f conftest.
$ac_objext conftest.
$ac_ext
13299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13300 echo "${ECHO_T}$ac_header_compiler" >&6
13302 # Is the header present?
13303 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13304 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13305 cat >conftest.
$ac_ext <<_ACEOF
13306 #line $LINENO "configure"
13309 cat confdefs.h
>>conftest.
$ac_ext
13310 cat >>conftest.
$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <sys/cpustats.h>
13314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13317 grep -v '^ *+' conftest.er1
>conftest.err
13319 cat conftest.err
>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } >/dev
/null
; then
13322 if test -s conftest.err
; then
13323 ac_cpp_err
=$ac_c_preproc_warn_flag
13330 if test -z "$ac_cpp_err"; then
13331 ac_header_preproc
=yes
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.
$ac_ext >&5
13336 ac_header_preproc
=no
13338 rm -f conftest.err conftest.
$ac_ext
13339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13340 echo "${ECHO_T}$ac_header_preproc" >&6
13342 # So? What about this header?
13343 case $ac_header_compiler:$ac_header_preproc in
13345 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13346 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13348 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13351 ## ------------------------------------ ##
13352 ## Report this to bug-autoconf@gnu.org. ##
13353 ## ------------------------------------ ##
13356 sed "s/^/$as_me: WARNING: /" >&2
13359 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13360 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13362 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13363 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13364 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13367 ## ------------------------------------ ##
13368 ## Report this to bug-autoconf@gnu.org. ##
13369 ## ------------------------------------ ##
13372 sed "s/^/$as_me: WARNING: /" >&2
13375 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13376 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13377 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13382 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13383 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13386 if test $ac_cv_header_sys_cpustats_h = yes; then
13387 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13396 if test $ac_have_func = no
; then
13398 for ac_header
in mach
/mach.h
13400 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13402 echo "$as_me:$LINENO: checking for $ac_header" >&5
13403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13410 # Is the header compilable?
13411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13413 cat >conftest.
$ac_ext <<_ACEOF
13414 #line $LINENO "configure"
13417 cat confdefs.h
>>conftest.
$ac_ext
13418 cat >>conftest.
$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 $ac_includes_default
13421 #include <$ac_header>
13423 rm -f conftest.
$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try
='test -s conftest.$ac_objext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_header_compiler
=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.
$ac_ext >&5
13440 ac_header_compiler
=no
13442 rm -f conftest.
$ac_objext conftest.
$ac_ext
13443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13444 echo "${ECHO_T}$ac_header_compiler" >&6
13446 # Is the header present?
13447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13449 cat >conftest.
$ac_ext <<_ACEOF
13450 #line $LINENO "configure"
13453 cat confdefs.h
>>conftest.
$ac_ext
13454 cat >>conftest.
$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 #include <$ac_header>
13458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13459 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13461 grep -v '^ *+' conftest.er1
>conftest.err
13463 cat conftest.err
>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } >/dev
/null
; then
13466 if test -s conftest.err
; then
13467 ac_cpp_err
=$ac_c_preproc_warn_flag
13474 if test -z "$ac_cpp_err"; then
13475 ac_header_preproc
=yes
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.
$ac_ext >&5
13480 ac_header_preproc
=no
13482 rm -f conftest.err conftest.
$ac_ext
13483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13484 echo "${ECHO_T}$ac_header_preproc" >&6
13486 # So? What about this header?
13487 case $ac_header_compiler:$ac_header_preproc in
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13495 ## ------------------------------------ ##
13496 ## Report this to bug-autoconf@gnu.org. ##
13497 ## ------------------------------------ ##
13500 sed "s/^/$as_me: WARNING: /" >&2
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13511 ## ------------------------------------ ##
13512 ## Report this to bug-autoconf@gnu.org. ##
13513 ## ------------------------------------ ##
13516 sed "s/^/$as_me: WARNING: /" >&2
13519 echo "$as_me:$LINENO: checking for $ac_header" >&5
13520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 eval "$as_ac_Header=$ac_header_preproc"
13526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13531 cat >>confdefs.h
<<_ACEOF
13532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13542 for ac_header
in nlist.h
13544 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13546 echo "$as_me:$LINENO: checking for $ac_header" >&5
13547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13554 # Is the header compilable?
13555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13557 cat >conftest.
$ac_ext <<_ACEOF
13558 #line $LINENO "configure"
13561 cat confdefs.h
>>conftest.
$ac_ext
13562 cat >>conftest.
$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 $ac_includes_default
13565 #include <$ac_header>
13567 rm -f conftest.
$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569 (eval $ac_compile) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try
='test -s conftest.$ac_objext'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_header_compiler
=yes
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.
$ac_ext >&5
13584 ac_header_compiler
=no
13586 rm -f conftest.
$ac_objext conftest.
$ac_ext
13587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13588 echo "${ECHO_T}$ac_header_compiler" >&6
13590 # Is the header present?
13591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13593 cat >conftest.
$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13597 cat confdefs.h
>>conftest.
$ac_ext
13598 cat >>conftest.
$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 #include <$ac_header>
13602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13605 grep -v '^ *+' conftest.er1
>conftest.err
13607 cat conftest.err
>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev
/null
; then
13610 if test -s conftest.err
; then
13611 ac_cpp_err
=$ac_c_preproc_warn_flag
13618 if test -z "$ac_cpp_err"; then
13619 ac_header_preproc
=yes
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.
$ac_ext >&5
13624 ac_header_preproc
=no
13626 rm -f conftest.err conftest.
$ac_ext
13627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13628 echo "${ECHO_T}$ac_header_preproc" >&6
13630 # So? What about this header?
13631 case $ac_header_compiler:$ac_header_preproc in
13633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13639 ## ------------------------------------ ##
13640 ## Report this to bug-autoconf@gnu.org. ##
13641 ## ------------------------------------ ##
13644 sed "s/^/$as_me: WARNING: /" >&2
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13655 ## ------------------------------------ ##
13656 ## Report this to bug-autoconf@gnu.org. ##
13657 ## ------------------------------------ ##
13660 sed "s/^/$as_me: WARNING: /" >&2
13663 echo "$as_me:$LINENO: checking for $ac_header" >&5
13664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 eval "$as_ac_Header=$ac_header_preproc"
13670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675 cat >>confdefs.h
<<_ACEOF
13676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13678 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13679 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13680 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 cat >conftest.
$ac_ext <<_ACEOF
13684 #line $LINENO "configure"
13687 cat confdefs.h
>>conftest.
$ac_ext
13688 cat >>conftest.
$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13695 static struct nlist ac_aggr;
13696 if (ac_aggr.n_un.n_name)
13702 rm -f conftest.
$ac_objext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704 (eval $ac_compile) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try
='test -s conftest.$ac_objext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_member_struct_nlist_n_un_n_name
=yes
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.
$ac_ext >&5
13719 cat >conftest.
$ac_ext <<_ACEOF
13720 #line $LINENO "configure"
13723 cat confdefs.h
>>conftest.
$ac_ext
13724 cat >>conftest.
$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13731 static struct nlist ac_aggr;
13732 if (sizeof ac_aggr.n_un.n_name)
13738 rm -f conftest.
$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try
='test -s conftest.$ac_objext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_member_struct_nlist_n_un_n_name
=yes
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.
$ac_ext >&5
13755 ac_cv_member_struct_nlist_n_un_n_name
=no
13757 rm -f conftest.
$ac_objext conftest.
$ac_ext
13759 rm -f conftest.
$ac_objext conftest.
$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13762 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13763 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13765 cat >>confdefs.h
<<_ACEOF
13766 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13770 cat >>confdefs.h
<<\_ACEOF
13771 #define NLIST_NAME_UNION 1
13785 # Some definitions of getloadavg require that the program be installed setgid.
13786 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13787 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13788 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 cat >conftest.
$ac_ext <<_ACEOF
13792 #line $LINENO "configure"
13795 cat confdefs.h
>>conftest.
$ac_ext
13796 cat >>conftest.
$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13799 #ifdef LDAV_PRIVILEGED
13800 Yowza Am I SETGID yet
13803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13804 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13805 ac_cv_func_getloadavg_setgid
=yes
13807 ac_cv_func_getloadavg_setgid
=no
13812 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13813 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13814 if test $ac_cv_func_getloadavg_setgid = yes; then
13817 cat >>confdefs.h
<<\_ACEOF
13818 #define GETLOADAVG_PRIVILEGED 1
13825 if test $ac_cv_func_getloadavg_setgid = yes; then
13826 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13827 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13828 if test "${ac_cv_group_kmem+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13832 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13833 # If we got an error (system does not support symlinks), try without -L.
13834 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13835 ac_cv_group_kmem
=`echo $ac_ls_output \
13836 | sed -ne 's/[ ][ ]*/ /g;
13837 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13841 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13842 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13843 KMEM_GROUP
=$ac_cv_group_kmem
13845 if test "x$ac_save_LIBS" = x
; then
13846 GETLOADAVG_LIBS
=$LIBS
13848 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13854 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13855 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13856 if test "${ac_cv_sys_largefile_source+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 ac_cv_sys_largefile_source
=no
13861 cat >conftest.
$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13865 cat confdefs.h
>>conftest.
$ac_ext
13866 cat >>conftest.
$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13877 rm -f conftest.
$ac_objext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879 (eval $ac_compile) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
13883 { ac_try
='test -s conftest.$ac_objext'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; }; then
13891 echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.
$ac_ext >&5
13895 rm -f conftest.
$ac_objext conftest.
$ac_ext
13896 cat >conftest.
$ac_ext <<_ACEOF
13897 #line $LINENO "configure"
13900 cat confdefs.h
>>conftest.
$ac_ext
13901 cat >>conftest.
$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 #define _LARGEFILE_SOURCE 1
13913 rm -f conftest.
$ac_objext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13915 (eval $ac_compile) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try
='test -s conftest.$ac_objext'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 ac_cv_sys_largefile_source
=1; break
13927 echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.
$ac_ext >&5
13931 rm -f conftest.
$ac_objext conftest.
$ac_ext
13935 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13936 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13937 if test "$ac_cv_sys_largefile_source" != no
; then
13939 cat >>confdefs.h
<<_ACEOF
13940 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13946 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13947 # in glibc 2.1.3, but that breaks too many other things.
13948 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13949 echo "$as_me:$LINENO: checking for fseeko" >&5
13950 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13951 if test "${ac_cv_func_fseeko+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 cat >conftest.
$ac_ext <<_ACEOF
13955 #line $LINENO "configure"
13958 cat confdefs.h
>>conftest.
$ac_ext
13959 cat >>conftest.
$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13965 return fseeko && fseeko (stdin, 0, 0);
13970 rm -f conftest.
$ac_objext conftest
$ac_exeext
13971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13972 (eval $ac_link) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try
='test -s conftest$ac_exeext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_func_fseeko
=yes
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.
$ac_ext >&5
13987 ac_cv_func_fseeko
=no
13989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13991 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13992 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13993 if test $ac_cv_func_fseeko = yes; then
13995 cat >>confdefs.h
<<\_ACEOF
13996 #define HAVE_FSEEKO 1
14002 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14003 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14004 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 # Use it with a single arg.
14008 cat >conftest.
$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14012 cat confdefs.h
>>conftest.
$ac_ext
14013 cat >>conftest.
$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14024 rm -f conftest.
$ac_objext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026 (eval $ac_compile) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try
='test -s conftest.$ac_objext'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 ac_cv_func_getpgrp_void
=no
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.
$ac_ext >&5
14041 ac_cv_func_getpgrp_void
=yes
14043 rm -f conftest.
$ac_objext conftest.
$ac_ext
14046 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14047 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14048 if test $ac_cv_func_getpgrp_void = yes; then
14050 cat >>confdefs.h
<<\_ACEOF
14051 #define GETPGRP_VOID 1
14058 for ac_func
in strftime
14060 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14061 echo "$as_me:$LINENO: checking for $ac_func" >&5
14062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14063 if eval "test \"\${$as_ac_var+set}\" = set"; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 cat >conftest.
$ac_ext <<_ACEOF
14067 #line $LINENO "configure"
14070 cat confdefs.h
>>conftest.
$ac_ext
14071 cat >>conftest.
$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 /* System header to define __stub macros and hopefully few prototypes,
14074 which can conflict with char $ac_func (); below.
14075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14076 <limits.h> exists even on freestanding compilers. */
14078 # include <limits.h>
14080 # include <assert.h>
14082 /* Override any gcc2 internal prototype to avoid an error. */
14087 /* We use char because int might match the return type of a gcc2
14088 builtin and then its argument prototype would still apply. */
14090 /* The GNU C library defines this for functions which it implements
14091 to always fail with ENOSYS. Some functions are actually named
14092 something starting with __ and the normal name is an alias. */
14093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14096 char (*f) () = $ac_func;
14105 return f != $ac_func;
14110 rm -f conftest.
$ac_objext conftest
$ac_exeext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
14116 { ac_try
='test -s conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 eval "$as_ac_var=yes"
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.
$ac_ext >&5
14127 eval "$as_ac_var=no"
14129 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14133 if test `eval echo '${'$as_ac_var'}'` = yes; then
14134 cat >>confdefs.h
<<_ACEOF
14135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14139 # strftime is in -lintl on SCO UNIX.
14140 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14141 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14142 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 ac_check_lib_save_LIBS
=$LIBS
14146 LIBS
="-lintl $LIBS"
14147 cat >conftest.
$ac_ext <<_ACEOF
14148 #line $LINENO "configure"
14151 cat confdefs.h
>>conftest.
$ac_ext
14152 cat >>conftest.
$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14155 /* Override any gcc2 internal prototype to avoid an error. */
14159 /* We use char because int might match the return type of a gcc2
14160 builtin and then its argument prototype would still apply. */
14170 rm -f conftest.
$ac_objext conftest
$ac_exeext
14171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14172 (eval $ac_link) 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try
='test -s conftest$ac_exeext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_cv_lib_intl_strftime
=yes
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.
$ac_ext >&5
14187 ac_cv_lib_intl_strftime
=no
14189 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14190 LIBS
=$ac_check_lib_save_LIBS
14192 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14193 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14194 if test $ac_cv_lib_intl_strftime = yes; then
14195 cat >>confdefs.h
<<\_ACEOF
14196 #define HAVE_STRFTIME 1
14199 LIBS
="-lintl $LIBS"
14208 for ac_func
in grantpt
14210 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14211 echo "$as_me:$LINENO: checking for $ac_func" >&5
14212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14213 if eval "test \"\${$as_ac_var+set}\" = set"; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 cat >conftest.
$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14220 cat confdefs.h
>>conftest.
$ac_ext
14221 cat >>conftest.
$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 /* System header to define __stub macros and hopefully few prototypes,
14224 which can conflict with char $ac_func (); below.
14225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14226 <limits.h> exists even on freestanding compilers. */
14228 # include <limits.h>
14230 # include <assert.h>
14232 /* Override any gcc2 internal prototype to avoid an error. */
14237 /* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14240 /* The GNU C library defines this for functions which it implements
14241 to always fail with ENOSYS. Some functions are actually named
14242 something starting with __ and the normal name is an alias. */
14243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14246 char (*f) () = $ac_func;
14255 return f != $ac_func;
14260 rm -f conftest.
$ac_objext conftest
$ac_exeext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14262 (eval $ac_link) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try
='test -s conftest$ac_exeext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 eval "$as_ac_var=yes"
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.
$ac_ext >&5
14277 eval "$as_ac_var=no"
14279 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14283 if test `eval echo '${'$as_ac_var'}'` = yes; then
14284 cat >>confdefs.h
<<_ACEOF
14285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14292 # PTY-related GNU extensions.
14294 for ac_func
in getpt
14296 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14297 echo "$as_me:$LINENO: checking for $ac_func" >&5
14298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14299 if eval "test \"\${$as_ac_var+set}\" = set"; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 cat >conftest.
$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14306 cat confdefs.h
>>conftest.
$ac_ext
14307 cat >>conftest.
$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 /* System header to define __stub macros and hopefully few prototypes,
14310 which can conflict with char $ac_func (); below.
14311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14312 <limits.h> exists even on freestanding compilers. */
14314 # include <limits.h>
14316 # include <assert.h>
14318 /* Override any gcc2 internal prototype to avoid an error. */
14323 /* We use char because int might match the return type of a gcc2
14324 builtin and then its argument prototype would still apply. */
14326 /* The GNU C library defines this for functions which it implements
14327 to always fail with ENOSYS. Some functions are actually named
14328 something starting with __ and the normal name is an alias. */
14329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14332 char (*f) () = $ac_func;
14341 return f != $ac_func;
14346 rm -f conftest.
$ac_objext conftest
$ac_exeext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14348 (eval $ac_link) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
14352 { ac_try
='test -s conftest$ac_exeext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14358 eval "$as_ac_var=yes"
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.
$ac_ext >&5
14363 eval "$as_ac_var=no"
14365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14369 if test `eval echo '${'$as_ac_var'}'` = yes; then
14370 cat >>confdefs.h
<<_ACEOF
14371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14378 # Check this now, so that we will NOT find the above functions in ncurses.
14379 # That is because we have not set up to link ncurses in lib-src.
14380 # It's better to believe a function is not available
14381 # than to expect to find it in ncurses.
14383 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14384 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14385 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 ac_check_lib_save_LIBS
=$LIBS
14389 LIBS
="-lncurses $LIBS"
14390 cat >conftest.
$ac_ext <<_ACEOF
14391 #line $LINENO "configure"
14394 cat confdefs.h
>>conftest.
$ac_ext
14395 cat >>conftest.
$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14398 /* Override any gcc2 internal prototype to avoid an error. */
14402 /* We use char because int might match the return type of a gcc2
14403 builtin and then its argument prototype would still apply. */
14413 rm -f conftest.
$ac_objext conftest
$ac_exeext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14415 (eval $ac_link) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try
='test -s conftest$ac_exeext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_cv_lib_ncurses_tparm
=yes
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.
$ac_ext >&5
14430 ac_cv_lib_ncurses_tparm
=no
14432 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14433 LIBS
=$ac_check_lib_save_LIBS
14435 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14436 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14437 if test $ac_cv_lib_ncurses_tparm = yes; then
14438 cat >>confdefs.h
<<_ACEOF
14439 #define HAVE_LIBNCURSES 1
14442 LIBS
="-lncurses $LIBS"
14447 # Do we need the Hesiod library to provide the support routines?
14448 if test "$with_hesiod" = yes ; then
14449 # Don't set $LIBS here -- see comments above.
14451 echo "$as_me:$LINENO: checking for res_send" >&5
14452 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14453 if test "${ac_cv_func_res_send+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 cat >conftest.
$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14460 cat confdefs.h
>>conftest.
$ac_ext
14461 cat >>conftest.
$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 /* System header to define __stub macros and hopefully few prototypes,
14464 which can conflict with char res_send (); below.
14465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14466 <limits.h> exists even on freestanding compilers. */
14468 # include <limits.h>
14470 # include <assert.h>
14472 /* Override any gcc2 internal prototype to avoid an error. */
14477 /* We use char because int might match the return type of a gcc2
14478 builtin and then its argument prototype would still apply. */
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined (__stub_res_send) || defined (__stub___res_send)
14486 char (*f) () = res_send;
14495 return f != res_send;
14500 rm -f conftest.
$ac_objext conftest
$ac_exeext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try
='test -s conftest$ac_exeext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_func_res_send
=yes
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.
$ac_ext >&5
14517 ac_cv_func_res_send
=no
14519 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14521 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14522 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14523 if test $ac_cv_func_res_send = yes; then
14526 echo "$as_me:$LINENO: checking for __res_send" >&5
14527 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14528 if test "${ac_cv_func___res_send+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.
$ac_ext <<_ACEOF
14532 #line $LINENO "configure"
14535 cat confdefs.h
>>conftest.
$ac_ext
14536 cat >>conftest.
$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 /* System header to define __stub macros and hopefully few prototypes,
14539 which can conflict with char __res_send (); below.
14540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14541 <limits.h> exists even on freestanding compilers. */
14543 # include <limits.h>
14545 # include <assert.h>
14547 /* Override any gcc2 internal prototype to avoid an error. */
14552 /* We use char because int might match the return type of a gcc2
14553 builtin and then its argument prototype would still apply. */
14554 char __res_send ();
14555 /* The GNU C library defines this for functions which it implements
14556 to always fail with ENOSYS. Some functions are actually named
14557 something starting with __ and the normal name is an alias. */
14558 #if defined (__stub___res_send) || defined (__stub_____res_send)
14561 char (*f) () = __res_send;
14570 return f != __res_send;
14575 rm -f conftest.
$ac_objext conftest
$ac_exeext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577 (eval $ac_link) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try
='test -s conftest$ac_exeext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_cv_func___res_send
=yes
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.
$ac_ext >&5
14592 ac_cv_func___res_send
=no
14594 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14596 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14597 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14598 if test $ac_cv_func___res_send = yes; then
14601 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14602 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14603 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 ac_check_lib_save_LIBS
=$LIBS
14607 LIBS
="-lresolv $LIBS"
14608 cat >conftest.
$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14612 cat confdefs.h
>>conftest.
$ac_ext
14613 cat >>conftest.
$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14616 /* Override any gcc2 internal prototype to avoid an error. */
14620 /* We use char because int might match the return type of a gcc2
14621 builtin and then its argument prototype would still apply. */
14631 rm -f conftest.
$ac_objext conftest
$ac_exeext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14633 (eval $ac_link) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try
='test -s conftest$ac_exeext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_cv_lib_resolv_res_send
=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.
$ac_ext >&5
14648 ac_cv_lib_resolv_res_send
=no
14650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14651 LIBS
=$ac_check_lib_save_LIBS
14653 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14654 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14655 if test $ac_cv_lib_resolv_res_send = yes; then
14658 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14659 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14660 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 ac_check_lib_save_LIBS
=$LIBS
14664 LIBS
="-lresolv $LIBS"
14665 cat >conftest.
$ac_ext <<_ACEOF
14666 #line $LINENO "configure"
14669 cat confdefs.h
>>conftest.
$ac_ext
14670 cat >>conftest.
$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14673 /* Override any gcc2 internal prototype to avoid an error. */
14677 /* We use char because int might match the return type of a gcc2
14678 builtin and then its argument prototype would still apply. */
14679 char __res_send ();
14688 rm -f conftest.
$ac_objext conftest
$ac_exeext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14690 (eval $ac_link) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } &&
14694 { ac_try
='test -s conftest$ac_exeext'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_lib_resolv___res_send
=yes
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.
$ac_ext >&5
14705 ac_cv_lib_resolv___res_send
=no
14707 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14708 LIBS
=$ac_check_lib_save_LIBS
14710 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14711 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14712 if test $ac_cv_lib_resolv___res_send = yes; then
14722 if test "$resolv" = yes ; then
14725 cat >>confdefs.h
<<\_ACEOF
14726 #define HAVE_LIBRESOLV 1
14732 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14733 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14734 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 cat >conftest.
$ac_ext <<_ACEOF
14738 #line $LINENO "configure"
14741 cat confdefs.h
>>conftest.
$ac_ext
14742 cat >>conftest.
$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 /* System header to define __stub macros and hopefully few prototypes,
14745 which can conflict with char hes_getmailhost (); below.
14746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14747 <limits.h> exists even on freestanding compilers. */
14749 # include <limits.h>
14751 # include <assert.h>
14753 /* Override any gcc2 internal prototype to avoid an error. */
14758 /* We use char because int might match the return type of a gcc2
14759 builtin and then its argument prototype would still apply. */
14760 char hes_getmailhost ();
14761 /* The GNU C library defines this for functions which it implements
14762 to always fail with ENOSYS. Some functions are actually named
14763 something starting with __ and the normal name is an alias. */
14764 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14767 char (*f) () = hes_getmailhost;
14776 return f != hes_getmailhost;
14781 rm -f conftest.
$ac_objext conftest
$ac_exeext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14783 (eval $ac_link) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } &&
14787 { ac_try
='test -s conftest$ac_exeext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_cv_func_hes_getmailhost
=yes
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.
$ac_ext >&5
14798 ac_cv_func_hes_getmailhost
=no
14800 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14802 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14803 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14804 if test $ac_cv_func_hes_getmailhost = yes; then
14807 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14808 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14809 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 ac_check_lib_save_LIBS
=$LIBS
14813 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14814 cat >conftest.
$ac_ext <<_ACEOF
14815 #line $LINENO "configure"
14818 cat confdefs.h
>>conftest.
$ac_ext
14819 cat >>conftest.
$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14822 /* Override any gcc2 internal prototype to avoid an error. */
14826 /* We use char because int might match the return type of a gcc2
14827 builtin and then its argument prototype would still apply. */
14828 char hes_getmailhost ();
14832 hes_getmailhost ();
14837 rm -f conftest.
$ac_objext conftest
$ac_exeext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14839 (eval $ac_link) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try
='test -s conftest$ac_exeext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_cv_lib_hesiod_hes_getmailhost
=yes
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.
$ac_ext >&5
14854 ac_cv_lib_hesiod_hes_getmailhost
=no
14856 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14857 LIBS
=$ac_check_lib_save_LIBS
14859 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14860 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14861 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14863 cat >>confdefs.h
<<\_ACEOF
14864 #define HAVE_LIBHESIOD 1
14875 # These tell us which Kerberos-related libraries to use.
14876 if test "${with_kerberos+set}" = set; then
14878 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14879 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14880 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 ac_check_lib_save_LIBS
=$LIBS
14884 LIBS
="-lcom_err $LIBS"
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. */
14893 /* Override any gcc2 internal prototype to avoid an error. */
14897 /* We use char because int might match the return type of a gcc2
14898 builtin and then its argument prototype would still apply. */
14908 rm -f conftest.
$ac_objext conftest
$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try
='test -s conftest$ac_exeext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_lib_com_err_com_err
=yes
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.
$ac_ext >&5
14925 ac_cv_lib_com_err_com_err
=no
14927 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14928 LIBS
=$ac_check_lib_save_LIBS
14930 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14931 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14932 if test $ac_cv_lib_com_err_com_err = yes; then
14933 cat >>confdefs.h
<<_ACEOF
14934 #define HAVE_LIBCOM_ERR 1
14937 LIBS
="-lcom_err $LIBS"
14942 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14943 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14944 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 ac_check_lib_save_LIBS
=$LIBS
14948 LIBS
="-lk5crypto $LIBS"
14949 cat >conftest.
$ac_ext <<_ACEOF
14950 #line $LINENO "configure"
14953 cat confdefs.h
>>conftest.
$ac_ext
14954 cat >>conftest.
$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14957 /* Override any gcc2 internal prototype to avoid an error. */
14961 /* We use char because int might match the return type of a gcc2
14962 builtin and then its argument prototype would still apply. */
14963 char mit_des_cbc_encrypt ();
14967 mit_des_cbc_encrypt ();
14972 rm -f conftest.
$ac_objext conftest
$ac_exeext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14974 (eval $ac_link) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try
='test -s conftest$ac_exeext'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.
$ac_ext >&5
14989 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14991 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14992 LIBS
=$ac_check_lib_save_LIBS
14994 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14995 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14996 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14997 cat >>confdefs.h
<<_ACEOF
14998 #define HAVE_LIBK5CRYPTO 1
15001 LIBS
="-lk5crypto $LIBS"
15006 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15007 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15008 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 ac_check_lib_save_LIBS
=$LIBS
15012 LIBS
="-lcrypto $LIBS"
15013 cat >conftest.
$ac_ext <<_ACEOF
15014 #line $LINENO "configure"
15017 cat confdefs.h
>>conftest.
$ac_ext
15018 cat >>conftest.
$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15021 /* Override any gcc2 internal prototype to avoid an error. */
15025 /* We use char because int might match the return type of a gcc2
15026 builtin and then its argument prototype would still apply. */
15027 char mit_des_cbc_encrypt ();
15031 mit_des_cbc_encrypt ();
15036 rm -f conftest.
$ac_objext conftest
$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038 (eval $ac_link) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
15042 { ac_try
='test -s conftest$ac_exeext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.
$ac_ext >&5
15053 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15056 LIBS
=$ac_check_lib_save_LIBS
15058 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15059 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15060 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15061 cat >>confdefs.h
<<_ACEOF
15062 #define HAVE_LIBCRYPTO 1
15065 LIBS
="-lcrypto $LIBS"
15070 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15071 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15072 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 ac_check_lib_save_LIBS
=$LIBS
15076 LIBS
="-lkrb5 $LIBS"
15077 cat >conftest.
$ac_ext <<_ACEOF
15078 #line $LINENO "configure"
15081 cat confdefs.h
>>conftest.
$ac_ext
15082 cat >>conftest.
$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15085 /* Override any gcc2 internal prototype to avoid an error. */
15089 /* We use char because int might match the return type of a gcc2
15090 builtin and then its argument prototype would still apply. */
15091 char krb5_init_context ();
15095 krb5_init_context ();
15100 rm -f conftest.
$ac_objext conftest
$ac_exeext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15102 (eval $ac_link) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try
='test -s conftest$ac_exeext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_lib_krb5_krb5_init_context
=yes
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.
$ac_ext >&5
15117 ac_cv_lib_krb5_krb5_init_context
=no
15119 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15120 LIBS
=$ac_check_lib_save_LIBS
15122 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15123 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15124 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15125 cat >>confdefs.h
<<_ACEOF
15126 #define HAVE_LIBKRB5 1
15129 LIBS
="-lkrb5 $LIBS"
15133 if test "${with_kerberos5+set}" != set; then
15135 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15136 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15137 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 ac_check_lib_save_LIBS
=$LIBS
15141 LIBS
="-ldes425 $LIBS"
15142 cat >conftest.
$ac_ext <<_ACEOF
15143 #line $LINENO "configure"
15146 cat confdefs.h
>>conftest.
$ac_ext
15147 cat >>conftest.
$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15150 /* Override any gcc2 internal prototype to avoid an error. */
15154 /* We use char because int might match the return type of a gcc2
15155 builtin and then its argument prototype would still apply. */
15156 char des_cbc_encrypt ();
15160 des_cbc_encrypt ();
15165 rm -f conftest.
$ac_objext conftest
$ac_exeext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15167 (eval $ac_link) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } &&
15171 { ac_try
='test -s conftest$ac_exeext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_lib_des425_des_cbc_encrypt
=yes
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.
$ac_ext >&5
15182 ac_cv_lib_des425_des_cbc_encrypt
=no
15184 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15185 LIBS
=$ac_check_lib_save_LIBS
15187 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15188 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15189 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15190 cat >>confdefs.h
<<_ACEOF
15191 #define HAVE_LIBDES425 1
15194 LIBS
="-ldes425 $LIBS"
15198 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15199 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15200 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 ac_check_lib_save_LIBS
=$LIBS
15205 cat >conftest.
$ac_ext <<_ACEOF
15206 #line $LINENO "configure"
15209 cat confdefs.h
>>conftest.
$ac_ext
15210 cat >>conftest.
$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15213 /* Override any gcc2 internal prototype to avoid an error. */
15217 /* We use char because int might match the return type of a gcc2
15218 builtin and then its argument prototype would still apply. */
15219 char des_cbc_encrypt ();
15223 des_cbc_encrypt ();
15228 rm -f conftest.
$ac_objext conftest
$ac_exeext
15229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15230 (eval $ac_link) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try
='test -s conftest$ac_exeext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_cv_lib_des_des_cbc_encrypt
=yes
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.
$ac_ext >&5
15245 ac_cv_lib_des_des_cbc_encrypt
=no
15247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15248 LIBS
=$ac_check_lib_save_LIBS
15250 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15251 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15252 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15253 cat >>confdefs.h
<<_ACEOF
15254 #define HAVE_LIBDES 1
15264 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15265 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15266 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 ac_check_lib_save_LIBS
=$LIBS
15270 LIBS
="-lkrb4 $LIBS"
15271 cat >conftest.
$ac_ext <<_ACEOF
15272 #line $LINENO "configure"
15275 cat confdefs.h
>>conftest.
$ac_ext
15276 cat >>conftest.
$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15279 /* Override any gcc2 internal prototype to avoid an error. */
15283 /* We use char because int might match the return type of a gcc2
15284 builtin and then its argument prototype would still apply. */
15285 char krb_get_cred ();
15294 rm -f conftest.
$ac_objext conftest
$ac_exeext
15295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15296 (eval $ac_link) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try
='test -s conftest$ac_exeext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_cv_lib_krb4_krb_get_cred
=yes
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.
$ac_ext >&5
15311 ac_cv_lib_krb4_krb_get_cred
=no
15313 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15314 LIBS
=$ac_check_lib_save_LIBS
15316 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15317 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15318 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15319 cat >>confdefs.h
<<_ACEOF
15320 #define HAVE_LIBKRB4 1
15323 LIBS
="-lkrb4 $LIBS"
15327 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15328 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15329 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 ac_check_lib_save_LIBS
=$LIBS
15334 cat >conftest.
$ac_ext <<_ACEOF
15335 #line $LINENO "configure"
15338 cat confdefs.h
>>conftest.
$ac_ext
15339 cat >>conftest.
$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15342 /* Override any gcc2 internal prototype to avoid an error. */
15346 /* We use char because int might match the return type of a gcc2
15347 builtin and then its argument prototype would still apply. */
15348 char krb_get_cred ();
15357 rm -f conftest.
$ac_objext conftest
$ac_exeext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try
='test -s conftest$ac_exeext'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_cv_lib_krb_krb_get_cred
=yes
15371 echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.
$ac_ext >&5
15374 ac_cv_lib_krb_krb_get_cred
=no
15376 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15377 LIBS
=$ac_check_lib_save_LIBS
15379 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15380 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15381 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15382 cat >>confdefs.h
<<_ACEOF
15383 #define HAVE_LIBKRB 1
15394 if test "${with_kerberos5+set}" = set; then
15396 for ac_header
in krb5.h
15398 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15400 echo "$as_me:$LINENO: checking for $ac_header" >&5
15401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15408 # Is the header compilable?
15409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15411 cat >conftest.
$ac_ext <<_ACEOF
15412 #line $LINENO "configure"
15415 cat confdefs.h
>>conftest.
$ac_ext
15416 cat >>conftest.
$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 $ac_includes_default
15419 #include <$ac_header>
15421 rm -f conftest.
$ac_objext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15423 (eval $ac_compile) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try
='test -s conftest.$ac_objext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_header_compiler
=yes
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.
$ac_ext >&5
15438 ac_header_compiler
=no
15440 rm -f conftest.
$ac_objext conftest.
$ac_ext
15441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15442 echo "${ECHO_T}$ac_header_compiler" >&6
15444 # Is the header present?
15445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15447 cat >conftest.
$ac_ext <<_ACEOF
15448 #line $LINENO "configure"
15451 cat confdefs.h
>>conftest.
$ac_ext
15452 cat >>conftest.
$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 #include <$ac_header>
15456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15457 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15459 grep -v '^ *+' conftest.er1
>conftest.err
15461 cat conftest.err
>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } >/dev
/null
; then
15464 if test -s conftest.err
; then
15465 ac_cpp_err
=$ac_c_preproc_warn_flag
15472 if test -z "$ac_cpp_err"; then
15473 ac_header_preproc
=yes
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.
$ac_ext >&5
15478 ac_header_preproc
=no
15480 rm -f conftest.err conftest.
$ac_ext
15481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 echo "${ECHO_T}$ac_header_preproc" >&6
15484 # So? What about this header?
15485 case $ac_header_compiler:$ac_header_preproc in
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15493 ## ------------------------------------ ##
15494 ## Report this to bug-autoconf@gnu.org. ##
15495 ## ------------------------------------ ##
15498 sed "s/^/$as_me: WARNING: /" >&2
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15509 ## ------------------------------------ ##
15510 ## Report this to bug-autoconf@gnu.org. ##
15511 ## ------------------------------------ ##
15514 sed "s/^/$as_me: WARNING: /" >&2
15517 echo "$as_me:$LINENO: checking for $ac_header" >&5
15518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 eval "$as_ac_Header=$ac_header_preproc"
15524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15529 cat >>confdefs.h
<<_ACEOF
15530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15539 for ac_header
in des.h
15541 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15543 echo "$as_me:$LINENO: checking for $ac_header" >&5
15544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15551 # Is the header compilable?
15552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15554 cat >conftest.
$ac_ext <<_ACEOF
15555 #line $LINENO "configure"
15558 cat confdefs.h
>>conftest.
$ac_ext
15559 cat >>conftest.
$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 $ac_includes_default
15562 #include <$ac_header>
15564 rm -f conftest.
$ac_objext
15565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15566 (eval $ac_compile) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try
='test -s conftest.$ac_objext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_header_compiler
=yes
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.
$ac_ext >&5
15581 ac_header_compiler
=no
15583 rm -f conftest.
$ac_objext conftest.
$ac_ext
15584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15585 echo "${ECHO_T}$ac_header_compiler" >&6
15587 # Is the header present?
15588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15590 cat >conftest.
$ac_ext <<_ACEOF
15591 #line $LINENO "configure"
15594 cat confdefs.h
>>conftest.
$ac_ext
15595 cat >>conftest.
$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 #include <$ac_header>
15599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15600 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15602 grep -v '^ *+' conftest.er1
>conftest.err
15604 cat conftest.err
>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } >/dev
/null
; then
15607 if test -s conftest.err
; then
15608 ac_cpp_err
=$ac_c_preproc_warn_flag
15615 if test -z "$ac_cpp_err"; then
15616 ac_header_preproc
=yes
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.
$ac_ext >&5
15621 ac_header_preproc
=no
15623 rm -f conftest.err conftest.
$ac_ext
15624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15625 echo "${ECHO_T}$ac_header_preproc" >&6
15627 # So? What about this header?
15628 case $ac_header_compiler:$ac_header_preproc in
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15636 ## ------------------------------------ ##
15637 ## Report this to bug-autoconf@gnu.org. ##
15638 ## ------------------------------------ ##
15641 sed "s/^/$as_me: WARNING: /" >&2
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15652 ## ------------------------------------ ##
15653 ## Report this to bug-autoconf@gnu.org. ##
15654 ## ------------------------------------ ##
15657 sed "s/^/$as_me: WARNING: /" >&2
15660 echo "$as_me:$LINENO: checking for $ac_header" >&5
15661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 eval "$as_ac_Header=$ac_header_preproc"
15667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15672 cat >>confdefs.h
<<_ACEOF
15673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15678 for ac_header
in kerberosIV
/des.h
15680 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15682 echo "$as_me:$LINENO: checking for $ac_header" >&5
15683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15690 # Is the header compilable?
15691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15693 cat >conftest.
$ac_ext <<_ACEOF
15694 #line $LINENO "configure"
15697 cat confdefs.h
>>conftest.
$ac_ext
15698 cat >>conftest.
$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 $ac_includes_default
15701 #include <$ac_header>
15703 rm -f conftest.
$ac_objext
15704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15705 (eval $ac_compile) 2>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try
='test -s conftest.$ac_objext'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_header_compiler
=yes
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.
$ac_ext >&5
15720 ac_header_compiler
=no
15722 rm -f conftest.
$ac_objext conftest.
$ac_ext
15723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15724 echo "${ECHO_T}$ac_header_compiler" >&6
15726 # Is the header present?
15727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15729 cat >conftest.
$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15733 cat confdefs.h
>>conftest.
$ac_ext
15734 cat >>conftest.
$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736 #include <$ac_header>
15738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15739 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15741 grep -v '^ *+' conftest.er1
>conftest.err
15743 cat conftest.err
>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } >/dev
/null
; then
15746 if test -s conftest.err
; then
15747 ac_cpp_err
=$ac_c_preproc_warn_flag
15754 if test -z "$ac_cpp_err"; then
15755 ac_header_preproc
=yes
15757 echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.
$ac_ext >&5
15760 ac_header_preproc
=no
15762 rm -f conftest.err conftest.
$ac_ext
15763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15764 echo "${ECHO_T}$ac_header_preproc" >&6
15766 # So? What about this header?
15767 case $ac_header_compiler:$ac_header_preproc in
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775 ## ------------------------------------ ##
15776 ## Report this to bug-autoconf@gnu.org. ##
15777 ## ------------------------------------ ##
15780 sed "s/^/$as_me: WARNING: /" >&2
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15791 ## ------------------------------------ ##
15792 ## Report this to bug-autoconf@gnu.org. ##
15793 ## ------------------------------------ ##
15796 sed "s/^/$as_me: WARNING: /" >&2
15799 echo "$as_me:$LINENO: checking for $ac_header" >&5
15800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 eval "$as_ac_Header=$ac_header_preproc"
15806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15811 cat >>confdefs.h
<<_ACEOF
15812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15817 for ac_header
in kerberos
/des.h
15819 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15821 echo "$as_me:$LINENO: checking for $ac_header" >&5
15822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15829 # Is the header compilable?
15830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15832 cat >conftest.
$ac_ext <<_ACEOF
15833 #line $LINENO "configure"
15836 cat confdefs.h
>>conftest.
$ac_ext
15837 cat >>conftest.
$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 $ac_includes_default
15840 #include <$ac_header>
15842 rm -f conftest.
$ac_objext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15844 (eval $ac_compile) 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try
='test -s conftest.$ac_objext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 ac_header_compiler
=yes
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.
$ac_ext >&5
15859 ac_header_compiler
=no
15861 rm -f conftest.
$ac_objext conftest.
$ac_ext
15862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15863 echo "${ECHO_T}$ac_header_compiler" >&6
15865 # Is the header present?
15866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15868 cat >conftest.
$ac_ext <<_ACEOF
15869 #line $LINENO "configure"
15872 cat confdefs.h
>>conftest.
$ac_ext
15873 cat >>conftest.
$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15875 #include <$ac_header>
15877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15878 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15880 grep -v '^ *+' conftest.er1
>conftest.err
15882 cat conftest.err
>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } >/dev
/null
; then
15885 if test -s conftest.err
; then
15886 ac_cpp_err
=$ac_c_preproc_warn_flag
15893 if test -z "$ac_cpp_err"; then
15894 ac_header_preproc
=yes
15896 echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.
$ac_ext >&5
15899 ac_header_preproc
=no
15901 rm -f conftest.err conftest.
$ac_ext
15902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15903 echo "${ECHO_T}$ac_header_preproc" >&6
15905 # So? What about this header?
15906 case $ac_header_compiler:$ac_header_preproc in
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15914 ## ------------------------------------ ##
15915 ## Report this to bug-autoconf@gnu.org. ##
15916 ## ------------------------------------ ##
15919 sed "s/^/$as_me: WARNING: /" >&2
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15930 ## ------------------------------------ ##
15931 ## Report this to bug-autoconf@gnu.org. ##
15932 ## ------------------------------------ ##
15935 sed "s/^/$as_me: WARNING: /" >&2
15938 echo "$as_me:$LINENO: checking for $ac_header" >&5
15939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 eval "$as_ac_Header=$ac_header_preproc"
15945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15950 cat >>confdefs.h
<<_ACEOF
15951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15967 for ac_header
in krb.h
15969 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15971 echo "$as_me:$LINENO: checking for $ac_header" >&5
15972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15974 echo $ECHO_N "(cached) $ECHO_C" >&6
15976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15979 # Is the header compilable?
15980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15982 cat >conftest.
$ac_ext <<_ACEOF
15983 #line $LINENO "configure"
15986 cat confdefs.h
>>conftest.
$ac_ext
15987 cat >>conftest.
$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 $ac_includes_default
15990 #include <$ac_header>
15992 rm -f conftest.
$ac_objext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15994 (eval $ac_compile) 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
15998 { ac_try
='test -s conftest.$ac_objext'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_header_compiler
=yes
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.
$ac_ext >&5
16009 ac_header_compiler
=no
16011 rm -f conftest.
$ac_objext conftest.
$ac_ext
16012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16013 echo "${ECHO_T}$ac_header_compiler" >&6
16015 # Is the header present?
16016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16018 cat >conftest.
$ac_ext <<_ACEOF
16019 #line $LINENO "configure"
16022 cat confdefs.h
>>conftest.
$ac_ext
16023 cat >>conftest.
$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 #include <$ac_header>
16027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16028 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16030 grep -v '^ *+' conftest.er1
>conftest.err
16032 cat conftest.err
>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } >/dev
/null
; then
16035 if test -s conftest.err
; then
16036 ac_cpp_err
=$ac_c_preproc_warn_flag
16043 if test -z "$ac_cpp_err"; then
16044 ac_header_preproc
=yes
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.
$ac_ext >&5
16049 ac_header_preproc
=no
16051 rm -f conftest.err conftest.
$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053 echo "${ECHO_T}$ac_header_preproc" >&6
16055 # So? What about this header?
16056 case $ac_header_compiler:$ac_header_preproc in
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16064 ## ------------------------------------ ##
16065 ## Report this to bug-autoconf@gnu.org. ##
16066 ## ------------------------------------ ##
16069 sed "s/^/$as_me: WARNING: /" >&2
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16080 ## ------------------------------------ ##
16081 ## Report this to bug-autoconf@gnu.org. ##
16082 ## ------------------------------------ ##
16085 sed "s/^/$as_me: WARNING: /" >&2
16088 echo "$as_me:$LINENO: checking for $ac_header" >&5
16089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 eval "$as_ac_Header=$ac_header_preproc"
16095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16100 cat >>confdefs.h
<<_ACEOF
16101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16106 for ac_header
in kerberosIV
/krb.h
16108 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16110 echo "$as_me:$LINENO: checking for $ac_header" >&5
16111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16118 # Is the header compilable?
16119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16121 cat >conftest.
$ac_ext <<_ACEOF
16122 #line $LINENO "configure"
16125 cat confdefs.h
>>conftest.
$ac_ext
16126 cat >>conftest.
$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16128 $ac_includes_default
16129 #include <$ac_header>
16131 rm -f conftest.
$ac_objext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16133 (eval $ac_compile) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try
='test -s conftest.$ac_objext'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ac_header_compiler
=yes
16145 echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.
$ac_ext >&5
16148 ac_header_compiler
=no
16150 rm -f conftest.
$ac_objext conftest.
$ac_ext
16151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16152 echo "${ECHO_T}$ac_header_compiler" >&6
16154 # Is the header present?
16155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16157 cat >conftest.
$ac_ext <<_ACEOF
16158 #line $LINENO "configure"
16161 cat confdefs.h
>>conftest.
$ac_ext
16162 cat >>conftest.
$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16164 #include <$ac_header>
16166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16167 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16169 grep -v '^ *+' conftest.er1
>conftest.err
16171 cat conftest.err
>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } >/dev
/null
; then
16174 if test -s conftest.err
; then
16175 ac_cpp_err
=$ac_c_preproc_warn_flag
16182 if test -z "$ac_cpp_err"; then
16183 ac_header_preproc
=yes
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.
$ac_ext >&5
16188 ac_header_preproc
=no
16190 rm -f conftest.err conftest.
$ac_ext
16191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16192 echo "${ECHO_T}$ac_header_preproc" >&6
16194 # So? What about this header?
16195 case $ac_header_compiler:$ac_header_preproc in
16197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16203 ## ------------------------------------ ##
16204 ## Report this to bug-autoconf@gnu.org. ##
16205 ## ------------------------------------ ##
16208 sed "s/^/$as_me: WARNING: /" >&2
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219 ## ------------------------------------ ##
16220 ## Report this to bug-autoconf@gnu.org. ##
16221 ## ------------------------------------ ##
16224 sed "s/^/$as_me: WARNING: /" >&2
16227 echo "$as_me:$LINENO: checking for $ac_header" >&5
16228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 eval "$as_ac_Header=$ac_header_preproc"
16234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16239 cat >>confdefs.h
<<_ACEOF
16240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16245 for ac_header
in kerberos
/krb.h
16247 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16249 echo "$as_me:$LINENO: checking for $ac_header" >&5
16250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16257 # Is the header compilable?
16258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16260 cat >conftest.
$ac_ext <<_ACEOF
16261 #line $LINENO "configure"
16264 cat confdefs.h
>>conftest.
$ac_ext
16265 cat >>conftest.
$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 $ac_includes_default
16268 #include <$ac_header>
16270 rm -f conftest.
$ac_objext
16271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16272 (eval $ac_compile) 2>&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
16276 { ac_try
='test -s conftest.$ac_objext'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; }; then
16282 ac_header_compiler
=yes
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.
$ac_ext >&5
16287 ac_header_compiler
=no
16289 rm -f conftest.
$ac_objext conftest.
$ac_ext
16290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16291 echo "${ECHO_T}$ac_header_compiler" >&6
16293 # Is the header present?
16294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16296 cat >conftest.
$ac_ext <<_ACEOF
16297 #line $LINENO "configure"
16300 cat confdefs.h
>>conftest.
$ac_ext
16301 cat >>conftest.
$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16303 #include <$ac_header>
16305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16306 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16308 grep -v '^ *+' conftest.er1
>conftest.err
16310 cat conftest.err
>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } >/dev
/null
; then
16313 if test -s conftest.err
; then
16314 ac_cpp_err
=$ac_c_preproc_warn_flag
16321 if test -z "$ac_cpp_err"; then
16322 ac_header_preproc
=yes
16324 echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.
$ac_ext >&5
16327 ac_header_preproc
=no
16329 rm -f conftest.err conftest.
$ac_ext
16330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16331 echo "${ECHO_T}$ac_header_preproc" >&6
16333 # So? What about this header?
16334 case $ac_header_compiler:$ac_header_preproc in
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16342 ## ------------------------------------ ##
16343 ## Report this to bug-autoconf@gnu.org. ##
16344 ## ------------------------------------ ##
16347 sed "s/^/$as_me: WARNING: /" >&2
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16358 ## ------------------------------------ ##
16359 ## Report this to bug-autoconf@gnu.org. ##
16360 ## ------------------------------------ ##
16363 sed "s/^/$as_me: WARNING: /" >&2
16366 echo "$as_me:$LINENO: checking for $ac_header" >&5
16367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 eval "$as_ac_Header=$ac_header_preproc"
16373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16378 cat >>confdefs.h
<<_ACEOF
16379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16396 for ac_header
in com_err.h
16398 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16400 echo "$as_me:$LINENO: checking for $ac_header" >&5
16401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16408 # Is the header compilable?
16409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16411 cat >conftest.
$ac_ext <<_ACEOF
16412 #line $LINENO "configure"
16415 cat confdefs.h
>>conftest.
$ac_ext
16416 cat >>conftest.
$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 $ac_includes_default
16419 #include <$ac_header>
16421 rm -f conftest.
$ac_objext
16422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16423 (eval $ac_compile) 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try
='test -s conftest.$ac_objext'
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_header_compiler
=yes
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.
$ac_ext >&5
16438 ac_header_compiler
=no
16440 rm -f conftest.
$ac_objext conftest.
$ac_ext
16441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16442 echo "${ECHO_T}$ac_header_compiler" >&6
16444 # Is the header present?
16445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16447 cat >conftest.
$ac_ext <<_ACEOF
16448 #line $LINENO "configure"
16451 cat confdefs.h
>>conftest.
$ac_ext
16452 cat >>conftest.
$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16454 #include <$ac_header>
16456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16457 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16459 grep -v '^ *+' conftest.er1
>conftest.err
16461 cat conftest.err
>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } >/dev
/null
; then
16464 if test -s conftest.err
; then
16465 ac_cpp_err
=$ac_c_preproc_warn_flag
16472 if test -z "$ac_cpp_err"; then
16473 ac_header_preproc
=yes
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.
$ac_ext >&5
16478 ac_header_preproc
=no
16480 rm -f conftest.err conftest.
$ac_ext
16481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16482 echo "${ECHO_T}$ac_header_preproc" >&6
16484 # So? What about this header?
16485 case $ac_header_compiler:$ac_header_preproc in
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16493 ## ------------------------------------ ##
16494 ## Report this to bug-autoconf@gnu.org. ##
16495 ## ------------------------------------ ##
16498 sed "s/^/$as_me: WARNING: /" >&2
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16509 ## ------------------------------------ ##
16510 ## Report this to bug-autoconf@gnu.org. ##
16511 ## ------------------------------------ ##
16514 sed "s/^/$as_me: WARNING: /" >&2
16517 echo "$as_me:$LINENO: checking for $ac_header" >&5
16518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 eval "$as_ac_Header=$ac_header_preproc"
16524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16529 cat >>confdefs.h
<<_ACEOF
16530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16539 # Solaris requires -lintl if you want strerror (which calls dgettext)
16540 # to return localized messages.
16542 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16543 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16544 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 ac_check_lib_save_LIBS
=$LIBS
16548 LIBS
="-lintl $LIBS"
16549 cat >conftest.
$ac_ext <<_ACEOF
16550 #line $LINENO "configure"
16553 cat confdefs.h
>>conftest.
$ac_ext
16554 cat >>conftest.
$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16557 /* Override any gcc2 internal prototype to avoid an error. */
16561 /* We use char because int might match the return type of a gcc2
16562 builtin and then its argument prototype would still apply. */
16572 rm -f conftest.
$ac_objext conftest
$ac_exeext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try
='test -s conftest$ac_exeext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 ac_cv_lib_intl_dgettext
=yes
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.
$ac_ext >&5
16589 ac_cv_lib_intl_dgettext
=no
16591 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16592 LIBS
=$ac_check_lib_save_LIBS
16594 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16595 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16596 if test $ac_cv_lib_intl_dgettext = yes; then
16597 cat >>confdefs.h
<<_ACEOF
16598 #define HAVE_LIBINTL 1
16601 LIBS
="-lintl $LIBS"
16606 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16607 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16608 if test "${emacs_cv_localtime_cache+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 if test x
$ac_cv_func_tzset = xyes
; then
16612 if test "$cross_compiling" = yes; then
16613 # If we have tzset, assume the worst when cross-compiling.
16614 emacs_cv_localtime_cache
=yes
16616 cat >conftest.
$ac_ext <<_ACEOF
16617 #line $LINENO "configure"
16620 cat confdefs.h
>>conftest.
$ac_ext
16621 cat >>conftest.
$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16624 extern char **environ;
16628 for (to = from = environ; (*to = *from); from++)
16629 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16632 char TZ_GMT0[] = "TZ=GMT0";
16633 char TZ_PST8[] = "TZ=PST8";
16636 time_t now = time ((time_t *) 0);
16637 int hour_GMT0, hour_unset;
16638 if (putenv (TZ_GMT0) != 0)
16640 hour_GMT0 = localtime (&now)->tm_hour;
16642 hour_unset = localtime (&now)->tm_hour;
16643 if (putenv (TZ_PST8) != 0)
16645 if (localtime (&now)->tm_hour == hour_GMT0)
16648 if (localtime (&now)->tm_hour != hour_unset)
16653 rm -f conftest
$ac_exeext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16655 (eval $ac_link) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 emacs_cv_localtime_cache
=no
16666 echo "$as_me: program exited with status $ac_status" >&5
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.
$ac_ext >&5
16670 ( exit $ac_status )
16671 emacs_cv_localtime_cache
=yes
16673 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16676 # If we lack tzset, report that localtime does not cache TZ,
16677 # since we can't invalidate the cache if we don't have tzset.
16678 emacs_cv_localtime_cache
=no
16681 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16682 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16683 if test $emacs_cv_localtime_cache = yes; then
16685 cat >>confdefs.h
<<\_ACEOF
16686 #define LOCALTIME_CACHE 1
16691 if test "x$HAVE_TIMEVAL" = xyes
; then
16693 for ac_func
in gettimeofday
16695 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16696 echo "$as_me:$LINENO: checking for $ac_func" >&5
16697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16698 if eval "test \"\${$as_ac_var+set}\" = set"; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 cat >conftest.
$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16705 cat confdefs.h
>>conftest.
$ac_ext
16706 cat >>conftest.
$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 /* System header to define __stub macros and hopefully few prototypes,
16709 which can conflict with char $ac_func (); below.
16710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711 <limits.h> exists even on freestanding compilers. */
16713 # include <limits.h>
16715 # include <assert.h>
16717 /* Override any gcc2 internal prototype to avoid an error. */
16722 /* We use char because int might match the return type of a gcc2
16723 builtin and then its argument prototype would still apply. */
16725 /* The GNU C library defines this for functions which it implements
16726 to always fail with ENOSYS. Some functions are actually named
16727 something starting with __ and the normal name is an alias. */
16728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16731 char (*f) () = $ac_func;
16740 return f != $ac_func;
16745 rm -f conftest.
$ac_objext conftest
$ac_exeext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16747 (eval $ac_link) 2>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try
='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 eval "$as_ac_var=yes"
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.
$ac_ext >&5
16762 eval "$as_ac_var=no"
16764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16768 if test `eval echo '${'$as_ac_var'}'` = yes; then
16769 cat >>confdefs.h
<<_ACEOF
16770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16776 if test $ac_cv_func_gettimeofday = yes; then
16777 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16778 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16779 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 cat >conftest.
$ac_ext <<_ACEOF
16783 #line $LINENO "configure"
16786 cat confdefs.h
>>conftest.
$ac_ext
16787 cat >>conftest.
$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16790 #ifdef TIME_WITH_SYS_TIME
16791 #include <sys/time.h>
16794 #ifdef HAVE_SYS_TIME_H
16795 #include <sys/time.h>
16803 struct timeval time;
16804 gettimeofday (&time, 0);
16809 rm -f conftest.
$ac_objext
16810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16811 (eval $ac_compile) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try
='test -s conftest.$ac_objext'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 emacs_cv_gettimeofday_two_arguments
=yes
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.
$ac_ext >&5
16826 emacs_cv_gettimeofday_two_arguments
=no
16828 rm -f conftest.
$ac_objext conftest.
$ac_ext
16830 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16831 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16832 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16834 cat >>confdefs.h
<<\_ACEOF
16835 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16842 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16843 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16844 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16845 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 cat >conftest.
$ac_ext <<_ACEOF
16849 #line $LINENO "configure"
16852 cat confdefs.h
>>conftest.
$ac_ext
16853 cat >>conftest.
$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #include <sys/types.h>
16856 #include <$ac_cv_struct_tm>
16862 static struct tm ac_aggr;
16863 if (ac_aggr.tm_zone)
16869 rm -f conftest.
$ac_objext
16870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16871 (eval $ac_compile) 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try
='test -s conftest.$ac_objext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16881 ac_cv_member_struct_tm_tm_zone
=yes
16883 echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.
$ac_ext >&5
16886 cat >conftest.
$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16890 cat confdefs.h
>>conftest.
$ac_ext
16891 cat >>conftest.
$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 #include <sys/types.h>
16894 #include <$ac_cv_struct_tm>
16900 static struct tm ac_aggr;
16901 if (sizeof ac_aggr.tm_zone)
16907 rm -f conftest.
$ac_objext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16909 (eval $ac_compile) 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } &&
16913 { ac_try
='test -s conftest.$ac_objext'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_member_struct_tm_tm_zone
=yes
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.
$ac_ext >&5
16924 ac_cv_member_struct_tm_tm_zone
=no
16926 rm -f conftest.
$ac_objext conftest.
$ac_ext
16928 rm -f conftest.
$ac_objext conftest.
$ac_ext
16930 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16932 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16934 cat >>confdefs.h
<<_ACEOF
16935 #define HAVE_STRUCT_TM_TM_ZONE 1
16941 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16943 cat >>confdefs.h
<<\_ACEOF
16944 #define HAVE_TM_ZONE 1
16948 echo "$as_me:$LINENO: checking for tzname" >&5
16949 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16950 if test "${ac_cv_var_tzname+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 cat >conftest.
$ac_ext <<_ACEOF
16954 #line $LINENO "configure"
16957 cat confdefs.h
>>conftest.
$ac_ext
16958 cat >>conftest.
$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16961 #ifndef tzname /* For SGI. */
16962 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16973 rm -f conftest.
$ac_objext conftest
$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975 (eval $ac_link) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try
='test -s conftest$ac_exeext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_var_tzname
=yes
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.
$ac_ext >&5
16990 ac_cv_var_tzname
=no
16992 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16994 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16995 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16996 if test $ac_cv_var_tzname = yes; then
16998 cat >>confdefs.h
<<\_ACEOF
16999 #define HAVE_TZNAME 1
17006 if test "$ac_cv_func_gettimeofday" = yes; then
17007 echo "$as_me:$LINENO: checking for struct timezone" >&5
17008 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17009 if test "${emacs_cv_struct_timezone+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 cat >conftest.
$ac_ext <<_ACEOF
17013 #line $LINENO "configure"
17016 cat confdefs.h
>>conftest.
$ac_ext
17017 cat >>conftest.
$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 #include <sys/time.h>
17023 struct timezone tz;
17028 rm -f conftest.
$ac_objext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030 (eval $ac_compile) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try
='test -s conftest.$ac_objext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 if test "$cross_compiling" = yes; then
17041 emacs_cv_struct_timezone
=yes
17043 cat >conftest.
$ac_ext <<_ACEOF
17044 #line $LINENO "configure"
17047 cat confdefs.h
>>conftest.
$ac_ext
17048 cat >>conftest.
$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17051 #ifdef TIME_WITH_SYS_TIME
17052 #include <sys/time.h>
17055 #ifdef HAVE_SYS_TIME_H
17056 #include <sys/time.h>
17062 struct timeval time;
17063 struct timezone dummy;
17064 exit (gettimeofday (&time, &dummy));
17067 rm -f conftest
$ac_exeext
17068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17069 (eval $ac_link) 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 emacs_cv_struct_timezone
=yes
17080 echo "$as_me: program exited with status $ac_status" >&5
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.
$ac_ext >&5
17084 ( exit $ac_status )
17085 emacs_cv_struct_timezone
=no
17087 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.
$ac_ext >&5
17093 emacs_cv_struct_timezone
=no
17095 rm -f conftest.
$ac_objext conftest.
$ac_ext
17097 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17098 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17102 echo "$as_me:$LINENO: checking for socket" >&5
17103 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17104 if test "${ac_cv_func_socket+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 cat >conftest.
$ac_ext <<_ACEOF
17108 #line $LINENO "configure"
17111 cat confdefs.h
>>conftest.
$ac_ext
17112 cat >>conftest.
$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 /* System header to define __stub macros and hopefully few prototypes,
17115 which can conflict with char socket (); below.
17116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17117 <limits.h> exists even on freestanding compilers. */
17119 # include <limits.h>
17121 # include <assert.h>
17123 /* Override any gcc2 internal prototype to avoid an error. */
17128 /* We use char because int might match the return type of a gcc2
17129 builtin and then its argument prototype would still apply. */
17131 /* The GNU C library defines this for functions which it implements
17132 to always fail with ENOSYS. Some functions are actually named
17133 something starting with __ and the normal name is an alias. */
17134 #if defined (__stub_socket) || defined (__stub___socket)
17137 char (*f) () = socket;
17146 return f != socket;
17151 rm -f conftest.
$ac_objext conftest
$ac_exeext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17153 (eval $ac_link) 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
17157 { ac_try
='test -s conftest$ac_exeext'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; }; then
17163 ac_cv_func_socket
=yes
17165 echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.
$ac_ext >&5
17168 ac_cv_func_socket
=no
17170 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17172 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17173 echo "${ECHO_T}$ac_cv_func_socket" >&6
17174 if test $ac_cv_func_socket = yes; then
17180 if test $ok_so_far = yes; then
17181 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17182 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17183 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17184 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17188 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17190 # Is the header compilable?
17191 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17192 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17193 cat >conftest.
$ac_ext <<_ACEOF
17194 #line $LINENO "configure"
17197 cat confdefs.h
>>conftest.
$ac_ext
17198 cat >>conftest.
$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 $ac_includes_default
17201 #include <netinet/in.h>
17203 rm -f conftest.
$ac_objext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try
='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_header_compiler
=yes
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.
$ac_ext >&5
17220 ac_header_compiler
=no
17222 rm -f conftest.
$ac_objext conftest.
$ac_ext
17223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17224 echo "${ECHO_T}$ac_header_compiler" >&6
17226 # Is the header present?
17227 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17228 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17229 cat >conftest.
$ac_ext <<_ACEOF
17230 #line $LINENO "configure"
17233 cat confdefs.h
>>conftest.
$ac_ext
17234 cat >>conftest.
$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <netinet/in.h>
17238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17239 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17241 grep -v '^ *+' conftest.er1
>conftest.err
17243 cat conftest.err
>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } >/dev
/null
; then
17246 if test -s conftest.err
; then
17247 ac_cpp_err
=$ac_c_preproc_warn_flag
17254 if test -z "$ac_cpp_err"; then
17255 ac_header_preproc
=yes
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.
$ac_ext >&5
17260 ac_header_preproc
=no
17262 rm -f conftest.err conftest.
$ac_ext
17263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17264 echo "${ECHO_T}$ac_header_preproc" >&6
17266 # So? What about this header?
17267 case $ac_header_compiler:$ac_header_preproc in
17269 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17270 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17271 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17272 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17275 ## ------------------------------------ ##
17276 ## Report this to bug-autoconf@gnu.org. ##
17277 ## ------------------------------------ ##
17280 sed "s/^/$as_me: WARNING: /" >&2
17283 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17284 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17285 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17286 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17287 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17288 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17291 ## ------------------------------------ ##
17292 ## Report this to bug-autoconf@gnu.org. ##
17293 ## ------------------------------------ ##
17296 sed "s/^/$as_me: WARNING: /" >&2
17299 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17300 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17301 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 ac_cv_header_netinet_in_h
=$ac_header_preproc
17306 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17307 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17310 if test $ac_cv_header_netinet_in_h = yes; then
17318 if test $ok_so_far = yes; then
17319 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17320 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17321 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17322 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17323 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17326 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17328 # Is the header compilable?
17329 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17330 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17331 cat >conftest.
$ac_ext <<_ACEOF
17332 #line $LINENO "configure"
17335 cat confdefs.h
>>conftest.
$ac_ext
17336 cat >>conftest.
$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 $ac_includes_default
17339 #include <arpa/inet.h>
17341 rm -f conftest.
$ac_objext
17342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17343 (eval $ac_compile) 2>&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try
='test -s conftest.$ac_objext'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_header_compiler
=yes
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.
$ac_ext >&5
17358 ac_header_compiler
=no
17360 rm -f conftest.
$ac_objext conftest.
$ac_ext
17361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17362 echo "${ECHO_T}$ac_header_compiler" >&6
17364 # Is the header present?
17365 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17366 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17367 cat >conftest.
$ac_ext <<_ACEOF
17368 #line $LINENO "configure"
17371 cat confdefs.h
>>conftest.
$ac_ext
17372 cat >>conftest.
$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <arpa/inet.h>
17376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17377 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17379 grep -v '^ *+' conftest.er1
>conftest.err
17381 cat conftest.err
>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } >/dev
/null
; then
17384 if test -s conftest.err
; then
17385 ac_cpp_err
=$ac_c_preproc_warn_flag
17392 if test -z "$ac_cpp_err"; then
17393 ac_header_preproc
=yes
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.
$ac_ext >&5
17398 ac_header_preproc
=no
17400 rm -f conftest.err conftest.
$ac_ext
17401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17402 echo "${ECHO_T}$ac_header_preproc" >&6
17404 # So? What about this header?
17405 case $ac_header_compiler:$ac_header_preproc in
17407 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17408 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17410 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17413 ## ------------------------------------ ##
17414 ## Report this to bug-autoconf@gnu.org. ##
17415 ## ------------------------------------ ##
17418 sed "s/^/$as_me: WARNING: /" >&2
17421 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17422 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17423 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17424 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17426 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17429 ## ------------------------------------ ##
17430 ## Report this to bug-autoconf@gnu.org. ##
17431 ## ------------------------------------ ##
17434 sed "s/^/$as_me: WARNING: /" >&2
17437 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17438 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17439 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17444 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17445 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17448 if test $ac_cv_header_arpa_inet_h = yes; then
17456 if test $ok_so_far = yes; then
17458 cat >>confdefs.h
<<\_ACEOF
17459 #define HAVE_INET_SOCKETS 1
17464 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
17466 cat >>confdefs.h
<<\_ACEOF
17467 #define HAVE_AIX_SMT_EXP 1
17472 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17473 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17474 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
17475 echo "$as_me:$LINENO: result: yes" >&5
17476 echo "${ECHO_T}yes" >&6
17478 cat >>confdefs.h
<<\_ACEOF
17479 #define HAVE_DEV_PTMX 1
17483 echo "$as_me:$LINENO: result: no" >&5
17484 echo "${ECHO_T}no" >&6
17487 echo "$as_me:$LINENO: checking for pid_t" >&5
17488 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17489 if test "${ac_cv_type_pid_t+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.
$ac_ext <<_ACEOF
17493 #line $LINENO "configure"
17496 cat confdefs.h
>>conftest.
$ac_ext
17497 cat >>conftest.
$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 $ac_includes_default
17505 if (sizeof (pid_t))
17511 rm -f conftest.
$ac_objext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17513 (eval $ac_compile) 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try
='test -s conftest.$ac_objext'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
17523 ac_cv_type_pid_t
=yes
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.
$ac_ext >&5
17528 ac_cv_type_pid_t
=no
17530 rm -f conftest.
$ac_objext conftest.
$ac_ext
17532 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17533 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17534 if test $ac_cv_type_pid_t = yes; then
17538 cat >>confdefs.h
<<_ACEOF
17546 for ac_header
in unistd.h vfork.h
17548 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17550 echo "$as_me:$LINENO: checking for $ac_header" >&5
17551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17558 # Is the header compilable?
17559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17561 cat >conftest.
$ac_ext <<_ACEOF
17562 #line $LINENO "configure"
17565 cat confdefs.h
>>conftest.
$ac_ext
17566 cat >>conftest.
$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568 $ac_includes_default
17569 #include <$ac_header>
17571 rm -f conftest.
$ac_objext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17573 (eval $ac_compile) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try
='test -s conftest.$ac_objext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_header_compiler
=yes
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.
$ac_ext >&5
17588 ac_header_compiler
=no
17590 rm -f conftest.
$ac_objext conftest.
$ac_ext
17591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17592 echo "${ECHO_T}$ac_header_compiler" >&6
17594 # Is the header present?
17595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17597 cat >conftest.
$ac_ext <<_ACEOF
17598 #line $LINENO "configure"
17601 cat confdefs.h
>>conftest.
$ac_ext
17602 cat >>conftest.
$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 #include <$ac_header>
17606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17607 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17609 grep -v '^ *+' conftest.er1
>conftest.err
17611 cat conftest.err
>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } >/dev
/null
; then
17614 if test -s conftest.err
; then
17615 ac_cpp_err
=$ac_c_preproc_warn_flag
17622 if test -z "$ac_cpp_err"; then
17623 ac_header_preproc
=yes
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.
$ac_ext >&5
17628 ac_header_preproc
=no
17630 rm -f conftest.err conftest.
$ac_ext
17631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17632 echo "${ECHO_T}$ac_header_preproc" >&6
17634 # So? What about this header?
17635 case $ac_header_compiler:$ac_header_preproc in
17637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17643 ## ------------------------------------ ##
17644 ## Report this to bug-autoconf@gnu.org. ##
17645 ## ------------------------------------ ##
17648 sed "s/^/$as_me: WARNING: /" >&2
17651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17659 ## ------------------------------------ ##
17660 ## Report this to bug-autoconf@gnu.org. ##
17661 ## ------------------------------------ ##
17664 sed "s/^/$as_me: WARNING: /" >&2
17667 echo "$as_me:$LINENO: checking for $ac_header" >&5
17668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 eval "$as_ac_Header=$ac_header_preproc"
17674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17679 cat >>confdefs.h
<<_ACEOF
17680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17689 for ac_func
in fork vfork
17691 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17692 echo "$as_me:$LINENO: checking for $ac_func" >&5
17693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17694 if eval "test \"\${$as_ac_var+set}\" = set"; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17697 cat >conftest.
$ac_ext <<_ACEOF
17698 #line $LINENO "configure"
17701 cat confdefs.h
>>conftest.
$ac_ext
17702 cat >>conftest.
$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 /* System header to define __stub macros and hopefully few prototypes,
17705 which can conflict with char $ac_func (); below.
17706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17707 <limits.h> exists even on freestanding compilers. */
17709 # include <limits.h>
17711 # include <assert.h>
17713 /* Override any gcc2 internal prototype to avoid an error. */
17718 /* We use char because int might match the return type of a gcc2
17719 builtin and then its argument prototype would still apply. */
17721 /* The GNU C library defines this for functions which it implements
17722 to always fail with ENOSYS. Some functions are actually named
17723 something starting with __ and the normal name is an alias. */
17724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17727 char (*f) () = $ac_func;
17736 return f != $ac_func;
17741 rm -f conftest.
$ac_objext conftest
$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
17747 { ac_try
='test -s conftest$ac_exeext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 eval "$as_ac_var=yes"
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.
$ac_ext >&5
17758 eval "$as_ac_var=no"
17760 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17764 if test `eval echo '${'$as_ac_var'}'` = yes; then
17765 cat >>confdefs.h
<<_ACEOF
17766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17772 if test "x$ac_cv_func_fork" = xyes
; then
17773 echo "$as_me:$LINENO: checking for working fork" >&5
17774 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17775 if test "${ac_cv_func_fork_works+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 if test "$cross_compiling" = yes; then
17779 ac_cv_func_fork_works
=cross
17781 cat >conftest.
$ac_ext <<_ACEOF
17782 /* By Ruediger Kuhlmann. */
17783 #include <sys/types.h>
17785 # include <unistd.h>
17787 /* Some systems only have a dummy stub for fork() */
17795 rm -f conftest
$ac_exeext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_func_fork_works
=yes
17808 echo "$as_me: program exited with status $ac_status" >&5
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.
$ac_ext >&5
17812 ( exit $ac_status )
17813 ac_cv_func_fork_works
=no
17815 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17818 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17819 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17822 ac_cv_func_fork_works
=$ac_cv_func_fork
17824 if test "x$ac_cv_func_fork_works" = xcross
; then
17826 *-*-amigaos* |
*-*-msdosdjgpp*)
17827 # Override, as these systems have only a dummy fork() stub
17828 ac_cv_func_fork_works
=no
17831 ac_cv_func_fork_works
=yes
17834 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17835 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17837 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17838 if test "x$ac_cv_func_vfork" = xyes
; then
17839 echo "$as_me:$LINENO: checking for working vfork" >&5
17840 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17841 if test "${ac_cv_func_vfork_works+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 if test "$cross_compiling" = yes; then
17845 ac_cv_func_vfork_works
=cross
17847 cat >conftest.
$ac_ext <<_ACEOF
17848 #line $LINENO "configure"
17851 cat confdefs.h
>>conftest.
$ac_ext
17852 cat >>conftest.
$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 /* Thanks to Paul Eggert for this test. */
17856 #include <stdlib.h>
17857 #include <sys/types.h>
17858 #include <sys/stat.h>
17859 #include <sys/wait.h>
17861 # include <unistd.h>
17864 # include <vfork.h>
17866 /* On some sparc systems, changes by the child to local and incoming
17867 argument registers are propagated back to the parent. The compiler
17868 is told about this with #include <vfork.h>, but some compilers
17869 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17870 static variable whose address is put into a register that is
17871 clobbered by the vfork. */
17874 sparc_address_test (int arg)
17876 sparc_address_test (arg) int arg;
17879 static pid_t child;
17897 pid_t parent = getpid ();
17900 sparc_address_test (0);
17905 /* Here is another test for sparc vfork register problems. This
17906 test uses lots of local variables, at least as many local
17907 variables as main has allocated so far including compiler
17908 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17909 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17910 reuse the register of parent for one of the local variables,
17911 since it will think that parent can't possibly be used any more
17912 in this routine. Assigning to the local variable will thus
17913 munge parent in the parent process. */
17915 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17916 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17917 /* Convince the compiler that p..p7 are live; otherwise, it might
17918 use the same hardware register for all 8 local variables. */
17919 if (p != p1 || p != p2 || p != p3 || p != p4
17920 || p != p5 || p != p6 || p != p7)
17923 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17924 from child file descriptors. If the child closes a descriptor
17925 before it execs or exits, this munges the parent's descriptor
17926 as well. Test for this by closing stdout in the child. */
17927 _exit(close(fileno(stdout)) != 0);
17932 while (wait(&status) != child)
17935 /* Was there some problem with vforking? */
17938 /* Did the child fail? (This shouldn't happen.) */
17941 /* Did the vfork/compiler bug occur? */
17942 || parent != getpid()
17944 /* Did the file descriptor bug occur? */
17945 || fstat(fileno(stdout), &st) != 0
17950 rm -f conftest
$ac_exeext
17951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17952 (eval $ac_link) 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 ac_cv_func_vfork_works
=yes
17963 echo "$as_me: program exited with status $ac_status" >&5
17964 echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.
$ac_ext >&5
17967 ( exit $ac_status )
17968 ac_cv_func_vfork_works
=no
17970 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17973 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17974 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17977 if test "x$ac_cv_func_fork_works" = xcross
; then
17978 ac_cv_func_vfork_works
=ac_cv_func_vfork
17979 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17980 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17983 if test "x$ac_cv_func_vfork_works" = xyes
; then
17985 cat >>confdefs.h
<<\_ACEOF
17986 #define HAVE_WORKING_VFORK 1
17991 cat >>confdefs.h
<<\_ACEOF
17996 if test "x$ac_cv_func_fork_works" = xyes
; then
17998 cat >>confdefs.h
<<\_ACEOF
17999 #define HAVE_WORKING_FORK 1
18005 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18006 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18007 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 cat >conftest.
$ac_ext <<_ACEOF
18011 #line $LINENO "configure"
18014 cat confdefs.h
>>conftest.
$ac_ext
18015 cat >>conftest.
$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 #include <langinfo.h>
18021 char* cs = nl_langinfo(CODESET);
18026 rm -f conftest.
$ac_objext conftest
$ac_exeext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
18032 { ac_try
='test -s conftest$ac_exeext'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
18038 emacs_cv_langinfo_codeset
=yes
18040 echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.
$ac_ext >&5
18043 emacs_cv_langinfo_codeset
=no
18045 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18048 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18049 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18050 if test $emacs_cv_langinfo_codeset = yes; then
18052 cat >>confdefs.h
<<\_ACEOF
18053 #define HAVE_LANGINFO_CODESET 1
18058 echo "$as_me:$LINENO: checking for size_t" >&5
18059 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18060 if test "${ac_cv_type_size_t+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 cat >conftest.
$ac_ext <<_ACEOF
18064 #line $LINENO "configure"
18067 cat confdefs.h
>>conftest.
$ac_ext
18068 cat >>conftest.
$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18070 $ac_includes_default
18076 if (sizeof (size_t))
18082 rm -f conftest.
$ac_objext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18084 (eval $ac_compile) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try
='test -s conftest.$ac_objext'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_type_size_t
=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.
$ac_ext >&5
18099 ac_cv_type_size_t
=no
18101 rm -f conftest.
$ac_objext conftest.
$ac_ext
18103 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18104 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18105 if test $ac_cv_type_size_t = yes; then
18107 cat >>confdefs.h
<<_ACEOF
18108 #define HAVE_SIZE_T 1
18115 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18116 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18117 if test "${ac_cv_type_mbstate_t+set}" = set; then
18118 echo $ECHO_N "(cached) $ECHO_C" >&6
18120 cat >conftest.
$ac_ext <<_ACEOF
18121 #line $LINENO "configure"
18124 cat confdefs.h
>>conftest.
$ac_ext
18125 cat >>conftest.
$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 $ac_includes_default
18128 # include <wchar.h>
18132 mbstate_t x; return sizeof x;
18137 rm -f conftest.
$ac_objext
18138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18139 (eval $ac_compile) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try
='test -s conftest.$ac_objext'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 ac_cv_type_mbstate_t
=yes
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.
$ac_ext >&5
18154 ac_cv_type_mbstate_t
=no
18156 rm -f conftest.
$ac_objext conftest.
$ac_ext
18158 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18159 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18160 if test $ac_cv_type_mbstate_t = yes; then
18162 cat >>confdefs.h
<<\_ACEOF
18163 #define HAVE_MBSTATE_T 1
18168 cat >>confdefs.h
<<\_ACEOF
18169 #define mbstate_t int
18174 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18175 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18176 if test "${emacs_cv_c_restrict+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 cat >conftest.
$ac_ext <<_ACEOF
18180 #line $LINENO "configure"
18183 cat confdefs.h
>>conftest.
$ac_ext
18184 cat >>conftest.
$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186 void fred (int *restrict x);
18195 rm -f conftest.
$ac_objext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try
='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 emacs_cv_c_restrict
=yes
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.
$ac_ext >&5
18212 cat >conftest.
$ac_ext <<_ACEOF
18213 #line $LINENO "configure"
18216 cat confdefs.h
>>conftest.
$ac_ext
18217 cat >>conftest.
$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18219 void fred (int *__restrict x);
18228 rm -f conftest.
$ac_objext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230 (eval $ac_compile) 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try
='test -s conftest.$ac_objext'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 emacs_cv_c_restrict
=__restrict
18242 echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.
$ac_ext >&5
18245 emacs_cv_c_restrict
=no
18247 rm -f conftest.
$ac_objext conftest.
$ac_ext
18249 rm -f conftest.
$ac_objext conftest.
$ac_ext
18251 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18252 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18253 case "$emacs_cv_c_restrict" in
18254 yes) emacs_restrict
=restrict
;;
18255 no
) emacs_restrict
="";;
18256 *) emacs_restrict
="$emacs_cv_c_restrict";;
18258 if test "$emacs_restrict" != __restrict
; then
18260 cat >>confdefs.h
<<_ACEOF
18261 #define __restrict $emacs_restrict
18266 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18267 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18268 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 cat >conftest.
$ac_ext <<_ACEOF
18272 #line $LINENO "configure"
18275 cat confdefs.h
>>conftest.
$ac_ext
18276 cat >>conftest.
$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278 void fred (int x[__restrict]);
18287 rm -f conftest.
$ac_objext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18289 (eval $ac_compile) 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try
='test -s conftest.$ac_objext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 emacs_cv_c_restrict_arr
=yes
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.
$ac_ext >&5
18304 emacs_cv_c_restrict_arr
=no
18306 rm -f conftest.
$ac_objext conftest.
$ac_ext
18308 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18309 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18310 if test "$emacs_cv_c_restrict_arr" = yes; then
18312 cat >>confdefs.h
<<\_ACEOF
18313 #define __restrict_arr __restrict
18320 # Set up the CFLAGS for real compilation, so we can substitute it.
18321 CFLAGS
="$REAL_CFLAGS"
18322 CPPFLAGS
="$REAL_CPPFLAGS"
18324 #### Find out which version of Emacs this is.
18325 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18326 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18327 if test x
"${version}" = x
; then
18328 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18329 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18330 { (exit 1); exit 1; }; }
18333 ### Specify what sort of things we'll be editing into Makefile and config.h.
18334 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18370 cat >>confdefs.h
<<_ACEOF
18371 #define EMACS_CONFIGURATION "${canonical}"
18375 cat >>confdefs.h
<<_ACEOF
18376 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18380 cat >>confdefs.h
<<_ACEOF
18381 #define config_machfile "${machfile}"
18385 cat >>confdefs.h
<<_ACEOF
18386 #define config_opsysfile "${opsysfile}"
18390 cat >>confdefs.h
<<_ACEOF
18391 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18395 cat >>confdefs.h
<<_ACEOF
18396 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18400 cat >>confdefs.h
<<_ACEOF
18401 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18405 cat >>confdefs.h
<<_ACEOF
18406 #define UNEXEC_SRC ${UNEXEC_SRC}
18410 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18412 cat >>confdefs.h
<<\_ACEOF
18413 #define HAVE_X_WINDOWS 1
18417 if test "${USE_X_TOOLKIT}" != "none" ; then
18419 cat >>confdefs.h
<<\_ACEOF
18420 #define USE_X_TOOLKIT 1
18424 if test "${HAVE_X11}" = "yes" ; then
18426 cat >>confdefs.h
<<\_ACEOF
18431 if test "${HAVE_XFREE386}" = "yes" ; then
18433 cat >>confdefs.h
<<\_ACEOF
18434 #define HAVE_XFREE386 1
18438 if test "${HAVE_MENUS}" = "yes" ; then
18440 cat >>confdefs.h
<<\_ACEOF
18441 #define HAVE_MENUS 1
18445 if test "${GNU_MALLOC}" = "yes" ; then
18447 cat >>confdefs.h
<<\_ACEOF
18448 #define GNU_MALLOC 1
18452 if test "${REL_ALLOC}" = "yes" ; then
18454 cat >>confdefs.h
<<\_ACEOF
18455 #define REL_ALLOC 1
18464 #### Report on what we decided to do.
18465 #### Report GTK as a toolkit, even if it doesn't use Xt.
18466 #### It makes printing result more understandable as using GTK sets
18467 #### toolkit_scroll_bars to yes by default.
18468 if test "${HAVE_GTK}" = "yes"; then
18473 Configured for \`${canonical}'.
18475 Where should the build process find the source code? ${srcdir}
18476 What operating system and machine description files should Emacs use?
18477 \`${opsysfile}' and \`${machfile}'
18478 What compiler should emacs be built with? ${CC} ${CFLAGS}
18479 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18480 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18481 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18482 What window system should Emacs use? ${window_system}
18483 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18485 if test -n "${x_includes}"; then
18486 echo " Where do we find X Windows header files? ${x_includes}"
18488 echo " Where do we find X Windows header files? Standard dirs"
18490 if test -n "${x_libraries}"; then
18491 echo " Where do we find X Windows libraries? ${x_libraries}"
18493 echo " Where do we find X Windows libraries? Standard dirs"
18496 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18497 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18498 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18499 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18500 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18501 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18502 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18505 # Remove any trailing slashes in these variables.
18506 test "${prefix}" != NONE
&&
18507 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18508 test "${exec_prefix}" != NONE
&&
18509 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18511 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18512 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18513 ## from Makefile.c can correctly provide the arg `-traditional' to the
18516 cat >conftest.
$ac_ext <<_ACEOF
18517 #line $LINENO "configure"
18520 cat confdefs.h
>>conftest.
$ac_ext
18521 cat >>conftest.
$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18526 $EGREP "yes..yes" >/dev
/null
2>&1; then
18527 CPP_NEED_TRADITIONAL
=no
18529 CPP_NEED_TRADITIONAL
=yes
18534 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"
18535 ac_config_commands
="$ac_config_commands default"
18536 cat >confcache
<<\_ACEOF
18537 # This file is a shell script that caches the results of configure
18538 # tests run on this system so they can be shared between configure
18539 # scripts and configure runs, see configure's option --config-cache.
18540 # It is not useful on other systems. If it contains results you don't
18541 # want to keep, you may remove or edit it.
18543 # config.status only pays attention to the cache file if you give it
18544 # the --recheck option to rerun configure.
18546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18548 # following values.
18552 # The following way of writing the cache mishandles newlines in values,
18553 # but we know of no workaround that is simple, portable, and efficient.
18554 # So, don't put newlines in cache variables' values.
18555 # Ultrix sh set writes to stderr and can't be redirected directly,
18556 # and sets the high bit in the cache file unless we assign to the vars.
18559 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18561 # `set' does not quote correctly, so add quotes (double-quote
18562 # substitution turns \\\\ into \\, and sed turns \\ into \).
18565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18568 # `set' quotes correctly as required by POSIX, so do not add quotes.
18570 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18579 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18581 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18582 if test -w $cache_file; then
18583 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18584 cat confcache
>$cache_file
18586 echo "not updating unwritable cache $cache_file"
18591 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18592 # Let make expand exec_prefix.
18593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18597 # trailing colons and then remove the whole line if VPATH becomes empty
18598 # (actually we leave an empty line to preserve line numbers).
18599 if test "x$srcdir" = x.
; then
18600 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18601 s/:*\$(srcdir):*/:/;
18602 s/:*\${srcdir}:*/:/;
18604 s/^\([^=]*=[ ]*\):*/\1/;
18610 DEFS
=-DHAVE_CONFIG_H
18614 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18615 # 1. Remove the extension, and $U if already installed.
18616 ac_i
=`echo "$ac_i" |
18617 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18619 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18620 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18622 LIBOBJS
=$ac_libobjs
18624 LTLIBOBJS
=$ac_ltlibobjs
18628 : ${CONFIG_STATUS=./config.status}
18629 ac_clean_files_save
=$ac_clean_files
18630 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18631 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18632 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18633 cat >$CONFIG_STATUS <<_ACEOF
18635 # Generated by $as_me.
18636 # Run this file to recreate the current configuration.
18637 # Compiler output produced by configure, useful for debugging
18638 # configure, is in config.log if it exists.
18641 ac_cs_recheck=false
18643 SHELL=\${CONFIG_SHELL-$SHELL}
18646 cat >>$CONFIG_STATUS <<\_ACEOF
18647 ## --------------------- ##
18648 ## M4sh Initialization. ##
18649 ## --------------------- ##
18651 # Be Bourne compatible
18652 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18655 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18656 # is contrary to our usage. Disable this feature.
18657 alias -g '${1+"$@"}'='"$@"'
18658 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18662 # Support unset when possible.
18663 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
18670 # Work around bugs in pre-3.0 UWIN ksh.
18671 $as_unset ENV MAIL MAILPATH
18678 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18679 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18680 LC_TELEPHONE LC_TIME
18682 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18683 eval $as_var=C
; export $as_var
18689 # Required to use basename.
18690 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18696 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18697 as_basename
=basename
18703 # Name of the executable.
18704 as_me
=`$as_basename "$0" ||
18705 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18706 X"$0" : 'X\(//\)$' \| \
18707 X"$0" : 'X\(/\)$' \| \
18708 . : '\(.\)' 2>/dev/null ||
18710 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18711 /^X\/\(\/\/\)$/{ s//\1/; q; }
18712 /^X\/\(\/\).*/{ s//\1/; q; }
18716 # PATH needs CR, and LINENO needs CR and PATH.
18717 # Avoid depending upon Character Ranges.
18718 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18719 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18720 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18721 as_cr_digits
='0123456789'
18722 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18724 # The user is always right.
18725 if test "${PATH_SEPARATOR+set}" != set; then
18726 echo "#! /bin/sh" >conf$$.sh
18727 echo "exit 0" >>conf$$.sh
18729 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18738 as_lineno_1
=$LINENO
18739 as_lineno_2
=$LINENO
18740 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18741 test "x$as_lineno_1" != "x$as_lineno_2" &&
18742 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18743 # Find who we are. Look in the path if we contain no path at all
18746 *[\\/]* ) as_myself
=$0 ;;
18747 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18748 for as_dir
in $PATH
18751 test -z "$as_dir" && as_dir
=.
18752 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18757 # We did not find ourselves, most probably we were run as `sh COMMAND'
18758 # in which case we are not to be found in the path.
18759 if test "x$as_myself" = x
; then
18762 if test ! -f "$as_myself"; then
18763 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18764 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18765 { (exit 1); exit 1; }; }
18767 case $CONFIG_SHELL in
18769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18770 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18773 test -z "$as_dir" && as_dir
=.
18774 for as_base
in sh bash ksh sh5
; do
18777 if ("$as_dir/$as_base" -c '
18778 as_lineno_1=$LINENO
18779 as_lineno_2=$LINENO
18780 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18781 test "x$as_lineno_1" != "x$as_lineno_2" &&
18782 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18783 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18784 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18785 CONFIG_SHELL
=$as_dir/$as_base
18786 export CONFIG_SHELL
18787 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18795 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18796 # uniformly replaced by the line number. The first 'sed' inserts a
18797 # line-number line before each line; the second 'sed' does the real
18798 # work. The second script uses 'N' to pair each line-number line
18799 # with the numbered line, and appends trailing '-' during
18800 # substitution so that $LINENO is not a special case at line end.
18801 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18802 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18803 sed '=' <$as_myself |
18808 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18811 s,^['$as_cr_digits']*\n,,
18812 ' >$as_me.lineno
&&
18813 chmod +x
$as_me.lineno ||
18814 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18815 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18816 { (exit 1); exit 1; }; }
18818 # Don't try to exec as it changes $[0], causing all sort of problems
18819 # (the dirname of $[0] is not the place where we might find the
18820 # original and so on. Autoconf is especially sensible to this).
18822 # Exit status is that of the last command.
18827 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18828 *c
*,-n*) ECHO_N
= ECHO_C
='
18830 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18831 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18834 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18840 rm -f conf$$ conf$$.exe conf$$.
file
18842 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18843 # We could just check for DJGPP; but this test a) works b) is more generic
18844 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18845 if test -f conf$$.exe
; then
18846 # Don't use ln at all; we don't have any links
18851 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18856 rm -f conf$$ conf$$.exe conf$$.
file
18858 if mkdir
-p .
2>/dev
/null
; then
18864 as_executable_p
="test -f"
18866 # Sed expression to map a string onto a valid CPP name.
18867 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18869 # Sed expression to map a string onto a valid variable name.
18870 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18874 # We need space, tab and new line, in precisely that order.
18884 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18885 # report actual input values of CONFIG_FILES etc. instead of their
18886 # values after options handling. Logging --version etc. is OK.
18890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18891 ## Running $as_me. ##
18896 This file was extended by $as_me, which was
18897 generated by GNU Autoconf 2.57. Invocation command line was
18899 CONFIG_FILES = $CONFIG_FILES
18900 CONFIG_HEADERS = $CONFIG_HEADERS
18901 CONFIG_LINKS = $CONFIG_LINKS
18902 CONFIG_COMMANDS = $CONFIG_COMMANDS
18906 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18910 # Files that config.status was made for.
18911 if test -n "$ac_config_files"; then
18912 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18915 if test -n "$ac_config_headers"; then
18916 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18919 if test -n "$ac_config_links"; then
18920 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18923 if test -n "$ac_config_commands"; then
18924 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18927 cat >>$CONFIG_STATUS <<\_ACEOF
18930 \`$as_me' instantiates files from templates according to the
18931 current configuration.
18933 Usage: $0 [OPTIONS] [FILE]...
18935 -h, --help print this help, then exit
18936 -V, --version print version number, then exit
18937 -q, --quiet do not print progress messages
18938 -d, --debug don't remove temporary files
18939 --recheck update $as_me by reconfiguring in the same conditions
18940 --file=FILE[:TEMPLATE]
18941 instantiate the configuration file FILE
18942 --header=FILE[:TEMPLATE]
18943 instantiate the configuration header FILE
18945 Configuration files:
18948 Configuration headers:
18951 Configuration commands:
18954 Report bugs to <bug-autoconf@gnu.org>."
18957 cat >>$CONFIG_STATUS <<_ACEOF
18960 configured by $0, generated by GNU Autoconf 2.57,
18961 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18963 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18964 Free Software Foundation, Inc.
18965 This config.status script is free software; the Free Software Foundation
18966 gives unlimited permission to copy, distribute and modify it."
18971 cat >>$CONFIG_STATUS <<\_ACEOF
18972 # If no file are specified by the user, then we need to provide default
18973 # value. By we need to know if files were specified by the user.
18979 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18980 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18988 *) # This is not an option, so the user has probably given explicit
18991 ac_need_defaults
=false
;;
18995 # Handling of the options.
18997 cat >>$CONFIG_STATUS <<\_ACEOF
18998 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19000 --version |
--vers* |
-V )
19001 echo "$ac_cs_version"; exit 0 ;;
19003 # Conflict between --help and --header
19004 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19005 Try \`$0 --help' for more information." >&5
19006 echo "$as_me: error: ambiguous option: $1
19007 Try \`$0 --help' for more information." >&2;}
19008 { (exit 1); exit 1; }; };;
19009 --help |
--hel |
-h )
19010 echo "$ac_cs_usage"; exit 0 ;;
19011 --debug |
--d* |
-d )
19013 --file |
--fil |
--fi |
--f )
19015 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19016 ac_need_defaults
=false
;;
19017 --header |
--heade |
--head |
--hea )
19019 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19020 ac_need_defaults
=false
;;
19021 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19022 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19025 # This is an error.
19026 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19027 Try \`$0 --help' for more information." >&5
19028 echo "$as_me: error: unrecognized option: $1
19029 Try \`$0 --help' for more information." >&2;}
19030 { (exit 1); exit 1; }; } ;;
19032 *) ac_config_targets
="$ac_config_targets $1" ;;
19038 ac_configure_extra_args
=
19040 if $ac_cs_silent; then
19042 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19046 cat >>$CONFIG_STATUS <<_ACEOF
19047 if \$ac_cs_recheck; then
19048 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19049 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19054 cat >>$CONFIG_STATUS <<_ACEOF
19056 # INIT-COMMANDS section.
19059 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19065 cat >>$CONFIG_STATUS <<\_ACEOF
19066 for ac_config_target
in $ac_config_targets
19068 case "$ac_config_target" in
19069 # Handling of arguments.
19070 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19071 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19072 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
19073 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
19074 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
19075 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19076 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
19077 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
19078 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
19079 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
19080 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19081 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19084 { (exit 1); exit 1; }; };;
19088 # If the user did not use the arguments to specify the items to instantiate,
19089 # then the envvar interface is used. Set only those that are not.
19090 # We use the long form for the default assignment because of an extremely
19091 # bizarre bug on SunOS 4.1.3.
19092 if $ac_need_defaults; then
19093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19098 # Have a temporary directory for convenience. Make it in the build tree
19099 # simply because there is no reason to put it here, and in addition,
19100 # creating and moving files from /tmp can sometimes cause problems.
19101 # Create a temporary directory, and hook for its removal unless debugging.
19104 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19105 trap '{ (exit 1); exit 1; }' 1 2 13 15
19108 # Create a (secure) tmp directory for tmp files.
19111 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19112 test -n "$tmp" && test -d "$tmp"
19115 tmp
=.
/confstat$$
-$RANDOM
19116 (umask 077 && mkdir
$tmp)
19119 echo "$me: cannot create a temporary directory in ." >&2
19120 { (exit 1); exit 1; }
19125 cat >>$CONFIG_STATUS <<_ACEOF
19128 # CONFIG_FILES section.
19131 # No need to generate the scripts if there are no CONFIG_FILES.
19132 # This happens for instance when ./config.status config.h
19133 if test -n "\$CONFIG_FILES"; then
19134 # Protect against being on the right side of a sed subst in config.status.
19135 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19136 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19137 s,@SHELL@,$SHELL,;t t
19138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19144 s,@exec_prefix@,$exec_prefix,;t t
19145 s,@prefix@,$prefix,;t t
19146 s,@program_transform_name@,$program_transform_name,;t t
19147 s,@bindir@,$bindir,;t t
19148 s,@sbindir@,$sbindir,;t t
19149 s,@libexecdir@,$libexecdir,;t t
19150 s,@datadir@,$datadir,;t t
19151 s,@sysconfdir@,$sysconfdir,;t t
19152 s,@sharedstatedir@,$sharedstatedir,;t t
19153 s,@localstatedir@,$localstatedir,;t t
19154 s,@libdir@,$libdir,;t t
19155 s,@includedir@,$includedir,;t t
19156 s,@oldincludedir@,$oldincludedir,;t t
19157 s,@infodir@,$infodir,;t t
19158 s,@mandir@,$mandir,;t t
19159 s,@build_alias@,$build_alias,;t t
19160 s,@host_alias@,$host_alias,;t t
19161 s,@target_alias@,$target_alias,;t t
19162 s,@DEFS@,$DEFS,;t t
19163 s,@ECHO_C@,$ECHO_C,;t t
19164 s,@ECHO_N@,$ECHO_N,;t t
19165 s,@ECHO_T@,$ECHO_T,;t t
19166 s,@LIBS@,$LIBS,;t t
19167 s,@MAINT@,$MAINT,;t t
19168 s,@build@,$build,;t t
19169 s,@build_cpu@,$build_cpu,;t t
19170 s,@build_vendor@,$build_vendor,;t t
19171 s,@build_os@,$build_os,;t t
19172 s,@host@,$host,;t t
19173 s,@host_cpu@,$host_cpu,;t t
19174 s,@host_vendor@,$host_vendor,;t t
19175 s,@host_os@,$host_os,;t t
19177 s,@CFLAGS@,$CFLAGS,;t t
19178 s,@LDFLAGS@,$LDFLAGS,;t t
19179 s,@CPPFLAGS@,$CPPFLAGS,;t t
19180 s,@ac_ct_CC@,$ac_ct_CC,;t t
19181 s,@EXEEXT@,$EXEEXT,;t t
19182 s,@OBJEXT@,$OBJEXT,;t t
19183 s,@LN_S@,$LN_S,;t t
19185 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19186 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19187 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19188 s,@RANLIB@,$RANLIB,;t t
19189 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19190 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19191 s,@EGREP@,$EGREP,;t t
19192 s,@LIBSOUND@,$LIBSOUND,;t t
19193 s,@SET_MAKE@,$SET_MAKE,;t t
19194 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19195 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19196 s,@GTK_LIBS@,$GTK_LIBS,;t t
19197 s,@ALLOCA@,$ALLOCA,;t t
19198 s,@liblockfile@,$liblockfile,;t t
19199 s,@LIBOBJS@,$LIBOBJS,;t t
19200 s,@NEED_SETGID@,$NEED_SETGID,;t t
19201 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19202 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19203 s,@version@,$version,;t t
19204 s,@configuration@,$configuration,;t t
19205 s,@canonical@,$canonical,;t t
19206 s,@srcdir@,$srcdir,;t t
19207 s,@lispdir@,$lispdir,;t t
19208 s,@locallisppath@,$locallisppath,;t t
19209 s,@lisppath@,$lisppath,;t t
19210 s,@x_default_search_path@,$x_default_search_path,;t t
19211 s,@etcdir@,$etcdir,;t t
19212 s,@archlibdir@,$archlibdir,;t t
19213 s,@docdir@,$docdir,;t t
19214 s,@bitmapdir@,$bitmapdir,;t t
19215 s,@gamedir@,$gamedir,;t t
19216 s,@gameuser@,$gameuser,;t t
19217 s,@c_switch_system@,$c_switch_system,;t t
19218 s,@c_switch_machine@,$c_switch_machine,;t t
19219 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19220 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19221 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19222 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19223 s,@machfile@,$machfile,;t t
19224 s,@opsysfile@,$opsysfile,;t t
19225 s,@carbon_appdir@,$carbon_appdir,;t t
19226 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19231 cat >>$CONFIG_STATUS <<\_ACEOF
19232 # Split the substitutions into bite-sized pieces for seds with
19233 # small command number limits, like on Digital OSF/1 and HP-UX.
19234 ac_max_sed_lines
=48
19235 ac_sed_frag
=1 # Number of current file.
19236 ac_beg
=1 # First line for current file.
19237 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19240 while $ac_more_lines; do
19241 if test $ac_beg -gt 1; then
19242 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19244 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19246 if test ! -s $tmp/subs.frag
; then
19247 ac_more_lines
=false
19249 # The purpose of the label and of the branching condition is to
19250 # speed up the sed processing (if there are no `@' at all, there
19251 # is no need to browse any of the substitutions).
19252 # These are the two extra sed commands mentioned above.
19254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19255 if test -z "$ac_sed_cmds"; then
19256 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19258 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19260 ac_sed_frag
=`expr $ac_sed_frag + 1`
19262 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19265 if test -z "$ac_sed_cmds"; then
19268 fi # test -n "$CONFIG_FILES"
19271 cat >>$CONFIG_STATUS <<\_ACEOF
19272 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19275 - |
*:- |
*:-:* ) # input from stdin
19277 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19278 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19279 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19280 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19281 * ) ac_file_in
=$ac_file.
in ;;
19284 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19285 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19287 X"$ac_file" : 'X\(//\)[^/]' \| \
19288 X"$ac_file" : 'X\(//\)$' \| \
19289 X"$ac_file" : 'X\(/\)' \| \
19290 . : '\(.\)' 2>/dev/null ||
19292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19294 /^X\(\/\/\)$/{ s//\1/; q; }
19295 /^X\(\/\).*/{ s//\1/; q; }
19297 { if $as_mkdir_p; then
19302 while test ! -d "$as_dir"; do
19303 as_dirs
="$as_dir $as_dirs"
19304 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19306 X"$as_dir" : 'X\(//\)[^/]' \| \
19307 X"$as_dir" : 'X\(//\)$' \| \
19308 X"$as_dir" : 'X\(/\)' \| \
19309 . : '\(.\)' 2>/dev/null ||
19311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19313 /^X\(\/\/\)$/{ s//\1/; q; }
19314 /^X\(\/\).*/{ s//\1/; q; }
19317 test ! -n "$as_dirs" || mkdir
$as_dirs
19318 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19319 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19320 { (exit 1); exit 1; }; }; }
19324 if test "$ac_dir" != .
; then
19325 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19326 # A "../" for each directory in $ac_dir_suffix.
19327 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19329 ac_dir_suffix
= ac_top_builddir
=
19333 .
) # No --srcdir option. We are building in place.
19335 if test -z "$ac_top_builddir"; then
19338 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19340 [\\/]* | ?
:[\\/]* ) # Absolute path.
19341 ac_srcdir
=$srcdir$ac_dir_suffix;
19342 ac_top_srcdir
=$srcdir ;;
19343 *) # Relative path.
19344 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19345 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19347 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19349 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19350 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19351 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19352 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19356 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19357 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19360 if test x
"$ac_file" != x-
; then
19361 { echo "$as_me:$LINENO: creating $ac_file" >&5
19362 echo "$as_me: creating $ac_file" >&6;}
19365 # Let's still pretend it is `configure' which instantiates (i.e., don't
19366 # use $as_me), people would be surprised to read:
19367 # /* config.h. Generated by config.status. */
19368 if test x
"$ac_file" = x-
; then
19371 configure_input
="$ac_file. "
19373 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19374 sed 's,.*/,,'` by configure."
19376 # First look for the input files in the build tree, otherwise in the
19378 ac_file_inputs
=`IFS=:
19379 for f in $ac_file_in; do
19381 -) echo $tmp/stdin ;;
19383 # Absolute (can't be DOS-style, as IFS=:)
19384 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19385 echo "$as_me: error: cannot find input file: $f" >&2;}
19386 { (exit 1); exit 1; }; }
19389 if test -f "$f"; then
19392 elif test -f "$srcdir/$f"; then
19397 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19398 echo "$as_me: error: cannot find input file: $f" >&2;}
19399 { (exit 1); exit 1; }; }
19402 done` ||
{ (exit 1); exit 1; }
19404 cat >>$CONFIG_STATUS <<_ACEOF
19408 cat >>$CONFIG_STATUS <<\_ACEOF
19410 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19411 s
,@configure_input@
,$configure_input,;t t
19412 s
,@srcdir@
,$ac_srcdir,;t t
19413 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19414 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19415 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19416 s
,@builddir@
,$ac_builddir,;t t
19417 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19418 s
,@top_builddir@
,$ac_top_builddir,;t t
19419 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19420 s
,@INSTALL@
,$ac_INSTALL,;t t
19421 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19423 if test x"$ac_file" != x-; then
19424 mv $tmp/out $ac_file
19432 cat >>$CONFIG_STATUS <<\_ACEOF
19435 # CONFIG_HEADER section.
19438 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19439 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19441 # ac_d sets the value in "#define NAME VALUE" lines.
19442 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19443 ac_dB
='[ ].*$,\1#\2'
19446 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19447 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19448 ac_uB
='$,\1#\2define\3'
19452 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19455 - |
*:- |
*:-:* ) # input from stdin
19457 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19458 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19459 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19460 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19461 * ) ac_file_in
=$ac_file.
in ;;
19464 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19465 echo "$as_me: creating $ac_file" >&6;}
19467 # First look for the input files in the build tree, otherwise in the
19469 ac_file_inputs
=`IFS=:
19470 for f in $ac_file_in; do
19472 -) echo $tmp/stdin ;;
19474 # Absolute (can't be DOS-style, as IFS=:)
19475 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19476 echo "$as_me: error: cannot find input file: $f" >&2;}
19477 { (exit 1); exit 1; }; }
19480 if test -f "$f"; then
19483 elif test -f "$srcdir/$f"; then
19488 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19489 echo "$as_me: error: cannot find input file: $f" >&2;}
19490 { (exit 1); exit 1; }; }
19493 done` ||
{ (exit 1); exit 1; }
19494 # Remove the trailing spaces.
19495 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19499 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19500 # `conftest.undefs', that substitutes the proper values into
19501 # config.h.in to produce config.h. The first handles `#define'
19502 # templates, and the second `#undef' templates.
19503 # And first: Protect against being on the right side of a sed subst in
19504 # config.status. Protect against being in an unquoted here document
19505 # in config.status.
19506 rm -f conftest.defines conftest.undefs
19507 # Using a here document instead of a string reduces the quoting nightmare.
19508 # Putting comments in sed scripts is not portable.
19510 # `end' is used to avoid that the second main sed command (meant for
19511 # 0-ary CPP macros) applies to n-ary macro definitions.
19512 # See the Autoconf documentation for `clear'.
19513 cat >confdef2sed.
sed <<\_ACEOF
19518 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19520 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19523 # If some macros were called several times there might be several times
19524 # the same #defines, which is useless. Nevertheless, we may not want to
19525 # sort them, since we want the *last* AC-DEFINE to be honored.
19526 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19527 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19528 rm -f confdef2sed.sed
19530 # This sed command replaces #undef with comments. This is necessary, for
19531 # example, in the case of _POSIX_SOURCE, which is predefined and required
19532 # on some systems where configure will not decide to define it.
19533 cat >>conftest.undefs <<\_ACEOF
19534 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19537 # Break up conftest.defines because some shells have a limit on the size
19538 # of here documents, and old seds have small limits too (100 cmds).
19539 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19540 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19541 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19542 echo ' :' >>$CONFIG_STATUS
19543 rm -f conftest.tail
19544 while grep . conftest.defines >/dev/null
19546 # Write a limited-size here document to $tmp/defines.sed.
19547 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19548 # Speed up: don't consider the non `#define' lines.
19549 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19550 # Work around the forget-to-reset-the-flag bug.
19551 echo 't clr' >>$CONFIG_STATUS
19552 echo ': clr' >>$CONFIG_STATUS
19553 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19555 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19557 mv $tmp/out $tmp/in
19559 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19560 rm -f conftest.defines
19561 mv conftest.
tail conftest.defines
19563 rm -f conftest.defines
19564 echo ' fi # grep' >>$CONFIG_STATUS
19565 echo >>$CONFIG_STATUS
19567 # Break up conftest.undefs because some shells have a limit on the size
19568 # of here documents, and old seds have small limits too (100 cmds).
19569 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19570 rm -f conftest.
tail
19571 while grep . conftest.undefs
>/dev
/null
19573 # Write a limited-size here document to $tmp/undefs.sed.
19574 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19575 # Speed up: don't consider the non
`#undef'
19576 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19577 # Work around the forget-to-reset-the-flag bug.
19578 echo 't clr' >>$CONFIG_STATUS
19579 echo ': clr' >>$CONFIG_STATUS
19580 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19582 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19584 mv $tmp/out $tmp/in
19586 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19587 rm -f conftest.undefs
19588 mv conftest.tail conftest.undefs
19590 rm -f conftest.undefs
19592 cat >>$CONFIG_STATUS <<\_ACEOF
19593 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19594 # use $as_me), people would be surprised to read:
19595 # /* config.h. Generated by config.status. */
19596 if test x
"$ac_file" = x-
; then
19597 echo "/* Generated by configure. */" >$tmp/config.h
19599 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19601 cat $tmp/in >>$tmp/config.h
19603 if test x
"$ac_file" != x-
; then
19604 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19605 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19606 echo "$as_me: $ac_file is unchanged" >&6;}
19608 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19610 X"$ac_file" : 'X\(//\)[^/]' \| \
19611 X"$ac_file" : 'X\(//\)$' \| \
19612 X"$ac_file" : 'X\(/\)' \| \
19613 . : '\(.\)' 2>/dev/null ||
19615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19617 /^X\(\/\/\)$/{ s//\1/; q; }
19618 /^X\(\/\).*/{ s//\1/; q; }
19620 { if $as_mkdir_p; then
19625 while test ! -d "$as_dir"; do
19626 as_dirs
="$as_dir $as_dirs"
19627 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19629 X"$as_dir" : 'X\(//\)[^/]' \| \
19630 X"$as_dir" : 'X\(//\)$' \| \
19631 X"$as_dir" : 'X\(/\)' \| \
19632 . : '\(.\)' 2>/dev/null ||
19634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19636 /^X\(\/\/\)$/{ s//\1/; q; }
19637 /^X\(\/\).*/{ s//\1/; q; }
19640 test ! -n "$as_dirs" || mkdir
$as_dirs
19641 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19643 { (exit 1); exit 1; }; }; }
19646 mv $tmp/config.h
$ac_file
19650 rm -f $tmp/config.h
19654 cat >>$CONFIG_STATUS <<\_ACEOF
19657 # CONFIG_COMMANDS section.
19659 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19660 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19661 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19662 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19663 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19664 X"$ac_dest" : 'X\(//\)[^/]' \| \
19665 X"$ac_dest" : 'X\(//\)$' \| \
19666 X"$ac_dest" : 'X\(/\)' \| \
19667 . : '\(.\)' 2>/dev/null ||
19669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19671 /^X\(\/\/\)$/{ s//\1/; q; }
19672 /^X\(\/\).*/{ s//\1/; q; }
19676 if test "$ac_dir" != .
; then
19677 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19678 # A "../" for each directory in $ac_dir_suffix.
19679 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19681 ac_dir_suffix
= ac_top_builddir
=
19685 .
) # No --srcdir option. We are building in place.
19687 if test -z "$ac_top_builddir"; then
19690 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19692 [\\/]* | ?
:[\\/]* ) # Absolute path.
19693 ac_srcdir
=$srcdir$ac_dir_suffix;
19694 ac_top_srcdir
=$srcdir ;;
19695 *) # Relative path.
19696 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19697 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19699 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19701 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19702 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19703 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19704 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19707 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19708 echo "$as_me: executing $ac_dest commands" >&6;}
19712 ### Make the necessary directories, if they don't exist.
19713 for dir
in etc lisp
; do
19714 test -d ${dir} || mkdir
${dir}
19717 # Build src/Makefile from ${srcdir}/src/Makefile.c
19718 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19719 # This must be done after src/config.h is built, since we rely on that file.
19721 # Now get this: Some word that is part of the ${srcdir} directory name
19722 # or the ${configuration} value might, just might, happen to be an
19723 # identifier like `sun4' or `i386' or something, and be predefined by
19724 # the C preprocessor to some helpful value like 1, or maybe the empty
19725 # string. Needless to say consequent macro substitutions are less
19726 # than conducive to the makefile finding the correct directory.
19727 undefs
="`echo $top_srcdir $configuration $canonical |
19728 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19729 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19732 echo creating src
/epaths.h
19733 ${MAKE-make} epaths-force
19735 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19736 # `..' to `. .' unless invoked with -traditional
19738 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19739 CPPFLAGS
="$CPPFLAGS -traditional"
19742 echo creating lib-src
/Makefile
19744 rm -f junk.c junk1.c junk2.c
19745 sed -e '/start of cpp stuff/q' \
19746 < Makefile.c
> junk1.c
19747 sed -e '1,/start of cpp stuff/d'\
19748 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19749 < Makefile.c
> junk.c
19750 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19751 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19752 cat junk1.c junk2.c
> Makefile.new
19753 rm -f junk.c junk1.c junk2.c
19754 chmod 444 Makefile.new
19755 mv -f Makefile.new Makefile
19758 echo creating src
/Makefile
19760 rm -f junk.c junk1.c junk2.c
19761 sed -e '/start of cpp stuff/q' \
19762 < Makefile.c
> junk1.c
19763 sed -e '1,/start of cpp stuff/d'\
19764 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19765 < Makefile.c
> junk.c
19766 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19767 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19768 cat junk1.c junk2.c
> Makefile.new
19769 rm -f junk.c junk1.c junk2.c
19770 chmod 444 Makefile.new
19771 mv -f Makefile.new Makefile
19774 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19775 echo creating src
/.gdbinit
19776 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19779 # This is how we know whether to re-run configure in certain cases.
19780 touch src
/config.stamp
19787 cat >>$CONFIG_STATUS <<\_ACEOF
19789 { (exit 0); exit 0; }
19791 chmod +x
$CONFIG_STATUS
19792 ac_clean_files
=$ac_clean_files_save
19795 # configure is writing to config.log, and then calls config.status.
19796 # config.status does its own redirection, appending to config.log.
19797 # Unfortunately, on DOS this fails, as config.log is still kept open
19798 # by configure, so config.status won't be able to write to it; its
19799 # output is simply discarded. So we exec the FD to /dev/null,
19800 # effectively closing config.log, so it can be properly (re)opened and
19801 # appended to by config.status. When coming back to configure, we
19802 # need to make the FD available again.
19803 if test "$no_create" != yes; then
19805 ac_config_status_args
=
19806 test "$silent" = yes &&
19807 ac_config_status_args
="$ac_config_status_args --quiet"
19809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19812 # would make configure fail if this is the last instruction.
19813 $ac_cs_success ||
{ (exit 1); exit 1; }