2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/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 -z "`(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
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS XFT_CFLAGS XFT_LIBS FREETYPE_CFLAGS FREETYPE_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS HAVE_LIBOTF LIBOTF_CFLAGS LIBOTF_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS 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'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-font-backend compile code of font-backend support
860 --enable-asserts compile code with asserts enabled
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing
) to the casual installer
863 --enable-locallisppath=PATH
864 directories Emacs should search
for lisp files
865 specific to this site
866 --disable-largefile omit support
for large files
869 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
870 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
871 --without-gcc don
't use GCC to compile Emacs if GCC is found
872 --without-pop don't support POP
mail retrieval with movemail
873 --with-kerberos support Kerberos-authenticated POP
874 --with-kerberos5 support Kerberos version
5 authenticated POP
875 --with-hesiod support Hesiod to get the POP server
host
876 --without-sound don
't compile with sound support
877 --with-x-toolkit=KIT use an X toolkit
878 (KIT = yes/lucid/athena/motif/gtk/no)
879 --with-xpm use -lXpm for displaying XPM images
880 --with-jpeg use -ljpeg for displaying JPEG images
881 --with-tiff use -ltiff for displaying TIFF images
882 --with-gif use -lungif for displaying GIF images
883 --with-png use -lpng for displaying PNG images
884 --with-freetype use -lfreetype for local fonts support
885 --with-xft use -lXft for anti aliased fonts
886 --with-gtk use GTK (same as --with-x-toolkit=gtk)
887 --with-pkg-config-prog Path to pkg-config to use for finding GTK
888 --without-toolkit-scroll-bars
889 don't use Motif or Xaw3d scroll bars
890 --without-xim don
't use X11 XIM
891 --without-carbon don't use Carbon GUI on Mac OS X
892 --with-x use the X Window System
894 Some influential environment variables
:
895 CC C compiler
command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
898 nonstandard directory
<lib dir
>
899 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
900 headers
in a nonstandard directory
<include dir
>
903 Use these variables to override the choices made by
`configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix= ac_top_builddir=
925 .) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 # Do not use `cd foo
&& pwd` to compute absolute paths, because
941 # the directories may not exist.
943 .) ac_abs_builddir="$ac_dir";;
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1025 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1026 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1027 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1028 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1029 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1031 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1032 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1034 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1035 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1036 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1037 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1038 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1039 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1040 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_must_keep_next=false
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 -* ) ac_must_keep_next=true ;;
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close
' the trap.
1120 trap 'exit_status
=$?
1121 # Save into config.log some information that might help in debugging.
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1131 # The following way of writing the cache mishandles newlines in values,
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1154 for ac_var
in $ac_subst_vars
1156 eval ac_val
=$
`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -n "$ac_subst_files"; then
1168 for ac_var
in $ac_subst_files
1170 eval ac_val
=$
`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1176 if test -s confdefs.h
; then
1183 sed "/^$/d" confdefs.h |
sort
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1190 rm -f core
*.core
&&
1191 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's
/^
/|
/' "$ac_site_file" >&5
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1266 # Check that the precious variables saved in the cache have kept the same
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1279 ac_cache_corrupted=: ;;
1281 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1288 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1313 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1320 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1344 test "$program_prefix" != NONE &&
1345 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1346 # Use a double $ so make ignores it.
1347 test "$program_suffix" != NONE &&
1348 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1349 # Double any \ or $. echo might interpret backslashes.
1350 # By default was `s,x,x', remove it
if useless.
1351 cat <<\_ACEOF
>conftest.
sed
1352 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1354 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1358 lispdir
='${datadir}/emacs/${version}/lisp'
1359 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1360 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1361 lisppath
='${locallisppath}:${lispdir}'
1362 etcdir
='${datadir}/emacs/${version}/etc'
1363 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1364 docdir
='${datadir}/emacs/${version}/etc'
1365 gamedir
='${localstatedir}/games/emacs'
1370 # Check whether --with-gcc or --without-gcc was given.
1371 if test "${with_gcc+set}" = set; then
1376 # Check whether --with-pop or --without-pop was given.
1377 if test "${with_pop+set}" = set; then
1379 if test "$withval" = yes; then
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 cat >>confdefs.h
<<\_ACEOF
1388 #define MAIL_USE_POP 1
1394 # Check whether --with-kerberos or --without-kerberos was given.
1395 if test "${with_kerberos+set}" = set; then
1396 withval
="$with_kerberos"
1397 cat >>confdefs.h
<<\_ACEOF
1404 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1405 if test "${with_kerberos5+set}" = set; then
1406 withval
="$with_kerberos5"
1407 if test "${with_kerberos5+set}" = set; then
1408 if test "${with_kerberos+set}" != set; then
1410 cat >>confdefs.h
<<\_ACEOF
1417 cat >>confdefs.h
<<\_ACEOF
1423 # Check whether --with-hesiod or --without-hesiod was given.
1424 if test "${with_hesiod+set}" = set; then
1425 withval
="$with_hesiod"
1427 cat >>confdefs.h
<<\_ACEOF
1434 # Check whether --with-sound or --without-sound was given.
1435 if test "${with_sound+set}" = set; then
1436 withval
="$with_sound"
1441 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1442 if test "${with_x_toolkit+set}" = set; then
1443 withval
="$with_x_toolkit"
1444 case "${withval}" in
1445 y | ye |
yes ) val
=athena
;;
1447 l | lu | luc | luci | lucid
) val
=lucid
;;
1448 a |
at | ath | athe | athen | athena
) val
=athena
;;
1449 m | mo | mot | moti | motif
) val
=motif
;;
1450 g | gt | gtk
) val
=gtk
;;
1452 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1455 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1456 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1457 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1458 { (exit 1); exit 1; }; }
1465 # Check whether --with-xpm or --without-xpm was given.
1466 if test "${with_xpm+set}" = set; then
1471 # Check whether --with-jpeg or --without-jpeg was given.
1472 if test "${with_jpeg+set}" = set; then
1473 withval
="$with_jpeg"
1477 # Check whether --with-tiff or --without-tiff was given.
1478 if test "${with_tiff+set}" = set; then
1479 withval
="$with_tiff"
1483 # Check whether --with-gif or --without-gif was given.
1484 if test "${with_gif+set}" = set; then
1489 # Check whether --with-png or --without-png was given.
1490 if test "${with_png+set}" = set; then
1495 # Check whether --with-freetype or --without-freetype was given.
1496 if test "${with_freetype+set}" = set; then
1497 withval
="$with_freetype"
1501 # Check whether --with-xft or --without-xft was given.
1502 if test "${with_xft+set}" = set; then
1507 # Check whether --with-gtk or --without-gtk was given.
1508 if test "${with_gtk+set}" = set; then
1513 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1514 if test "${with_pkg_config_prog+set}" = set; then
1515 withval
="$with_pkg_config_prog"
1519 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1520 if test "${with_toolkit_scroll_bars+set}" = set; then
1521 withval
="$with_toolkit_scroll_bars"
1525 # Check whether --with-xim or --without-xim was given.
1526 if test "${with_xim+set}" = set; then
1531 # Check whether --with-carbon or --without-carbon was given.
1532 if test "${with_carbon+set}" = set; then
1533 withval
="$with_carbon"
1536 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1537 if test "${enable_carbon_app+set}" = set; then
1538 enableval
="$enable_carbon_app"
1539 carbon_appdir_x
=${enableval}
1542 # Check whether --enable-font-backend or --disable-font-backend was given.
1543 if test "${enable_font_backend+set}" = set; then
1544 enableval
="$enable_font_backend"
1545 USE_FONT_BACKEND
=$enableval
1550 # Check whether --enable-asserts or --disable-asserts was given.
1551 if test "${enable_asserts+set}" = set; then
1552 enableval
="$enable_asserts"
1553 USE_XASSERTS
=$enableval
1558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1559 if test "${enable_maintainer_mode+set}" = set; then
1560 enableval
="$enable_maintainer_mode"
1561 USE_MAINTAINER_MODE
=$enableval
1563 USE_MAINTAINER_MODE
=no
1565 if test $USE_MAINTAINER_MODE = yes; then
1572 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1573 if test "${enable_locallisppath+set}" = set; then
1574 enableval
="$enable_locallisppath"
1575 if test "${enableval}" = "no"; then
1577 elif test "${enableval}" != "yes"; then
1578 locallisppath
=${enableval}
1582 #### Make srcdir absolute, if it isn't already. It's important to
1583 #### avoid running the path through pwd unnecessarily, since pwd can
1584 #### give you automounter prefixes, which can go away. We do all this
1585 #### so Emacs can find its files when run uninstalled.
1586 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1591 ## We may be able to use the $PWD environment variable to make this
1592 ## absolute. But sometimes PWD is inaccurate.
1593 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1594 ## but that tested only for a well-formed and valid PWD,
1595 ## it did not object when PWD was well-formed and valid but just wrong.
1596 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1600 srcdir
="`(cd ${srcdir}; pwd)`"
1603 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1606 #### Check if the source directory already has a configured system in it.
1607 if test `pwd` != `(cd ${srcdir} && pwd)` \
1608 && test -f "${srcdir}/src/config.h" ; then
1609 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1610 as a build directory right now; it has been configured in its own
1611 right. To configure in another directory as well, you MUST
1612 use GNU make. If you do not have GNU make, then you must
1613 now do \`make distclean' in ${srcdir},
1614 and then run $0 again." >&5
1615 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1616 as a build directory right now; it has been configured in its own
1617 right. To configure in another directory as well, you MUST
1618 use GNU make. If you do not have GNU make, then you must
1619 now do \`make distclean' in ${srcdir},
1620 and then run $0 again." >&2;}
1623 #### Given the configuration name, set machfile and opsysfile to the
1624 #### names of the m/*.h and s/*.h files we should use.
1626 ### Canonicalize the configuration name.
1629 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1630 if test -f $ac_dir/install-sh
; then
1632 ac_install_sh
="$ac_aux_dir/install-sh -c"
1634 elif test -f $ac_dir/install.sh
; then
1636 ac_install_sh
="$ac_aux_dir/install.sh -c"
1638 elif test -f $ac_dir/shtool
; then
1640 ac_install_sh
="$ac_aux_dir/shtool install -c"
1644 if test -z "$ac_aux_dir"; then
1645 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647 { (exit 1); exit 1; }; }
1649 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1650 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1651 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1653 # Make sure we can run config.sub.
1654 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1655 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657 { (exit 1); exit 1; }; }
1659 echo "$as_me:$LINENO: checking build system type" >&5
1660 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661 if test "${ac_cv_build+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 ac_cv_build_alias
=$build_alias
1665 test -z "$ac_cv_build_alias" &&
1666 ac_cv_build_alias
=`$ac_config_guess`
1667 test -z "$ac_cv_build_alias" &&
1668 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670 { (exit 1); exit 1; }; }
1671 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678 echo "${ECHO_T}$ac_cv_build" >&6
1680 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 echo "$as_me:$LINENO: checking host system type" >&5
1686 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1687 if test "${ac_cv_host+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 ac_cv_host_alias
=$host_alias
1691 test -z "$ac_cv_host_alias" &&
1692 ac_cv_host_alias
=$ac_cv_build_alias
1693 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1694 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1695 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1696 { (exit 1); exit 1; }; }
1699 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1700 echo "${ECHO_T}$ac_cv_host" >&6
1702 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1708 configuration
=${host_alias-$host}
1712 ### If you add support for a new configuration, add code to this
1713 ### switch statement to recognize your configuration name and select
1714 ### the appropriate operating system and machine description files.
1716 ### You would hope that you could choose an m/*.h file pretty much
1717 ### based on the machine portion of the configuration name, and an s-
1718 ### file based on the operating system portion. However, it turns out
1719 ### that each m/*.h file is pretty manufacturer-specific - for
1720 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1721 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1722 ### machines. So we basically have to have a special case for each
1723 ### configuration name.
1725 ### As far as handling version numbers on operating systems is
1726 ### concerned, make sure things will fail in a fixable way. If
1727 ### /etc/MACHINES doesn't say anything about version numbers, be
1728 ### prepared to handle anything reasonably. If version numbers
1729 ### matter, be sure /etc/MACHINES says something about it.
1731 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1732 ### "System V Release 4"; he writes, "The old convention encouraged
1733 ### confusion between `system' and `release' levels'."
1735 machine
='' opsys
='' unported
=no
1736 case "${canonical}" in
1741 case "${canonical}" in
1742 alpha
*-*-freebsd*) machine
=alpha
;;
1743 i
[3456]86-*-freebsd*) machine
=intel386
;;
1744 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1751 if test -f /usr
/lib
/crti.o
; then
1753 cat >>confdefs.h
<<\_ACEOF
1759 case "${canonical}" in
1760 alpha
*-*-netbsd*) machine
=alpha
;;
1761 i
[3456]86-*-netbsd*) machine
=intel386
;;
1763 # This is somewhat bogus.
1764 machine
=hp9000s300
;;
1765 powerpc-apple-netbsd
*) machine
=macppc
;;
1766 mips-
*-netbsd*) machine
=pmax
;;
1767 mipsel-
*-netbsd*) machine
=pmax
;;
1768 mipseb-
*-netbsd*) machine
=pmax
;;
1769 ns32k-
*-netbsd*) machine
=ns32000
;;
1770 powerpc-
*-netbsd*) machine
=macppc
;;
1771 sparc
*-*-netbsd*) machine
=sparc
;;
1772 vax-
*-netbsd*) machine
=vax
;;
1773 arm-
*-netbsd*) machine
=arm
;;
1780 case "${canonical}" in
1781 alpha
*-*-openbsd*) machine
=alpha
;;
1782 i386-
*-openbsd*) machine
=intel386
;;
1783 m68k-
*-openbsd*) machine
=hp9000s300
;;
1784 mipsel-
*-openbsd*) machine
=pmax
;;
1785 ns32k-
*-openbsd*) machine
=ns32000
;;
1786 sparc-
*-openbsd*) machine
=sparc
;;
1787 vax-
*-openbsd*) machine
=vax
;;
1794 case "${canonical}" in
1795 i
[3456]86-*-lynxos*) machine
=intel386
;;
1796 powerpc-
*-lynxos*) machine
=powerpc
;;
1801 arm-acorn-riscix1.1
* )
1802 machine
=acorn opsys
=riscix1-1
1804 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1805 ## This name is riscix12 instead of riscix1.2
1806 ## to avoid a file name conflict on MSDOS.
1807 machine
=acorn opsys
=riscix12
1813 case "${canonical}" in
1814 i
[345]86-*-bsdi*) machine
=intel386
;;
1815 sparc-
*-bsdi*) machine
=sparc
;;
1816 powerpc-
*-bsdi*) machine
=macppc
;;
1818 case "${canonical}" in
1819 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1820 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1821 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1822 *-*-bsdi3* ) opsys
=bsdos3
;;
1823 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1828 ## Strictly speaking, we need the version of the alliant operating
1829 ## system to choose the right machine file, but currently the
1830 ## configuration name doesn't tell us enough to choose the right
1831 ## one; we need to give alliants their own operating system name to
1832 ## do this right. When someone cares, they can help us.
1834 machine
=alliant4 opsys
=bsd4-2
1837 machine
=alliant-2800 opsys
=bsd4-3
1840 ## Alpha (DEC) machines.
1842 machine
=alpha opsys
=osf1
1843 # This is needed to find X11R6.1 libraries for certain tests.
1844 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1845 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1846 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1847 # due to non-traditional preprocessing with the current compiler
1848 # defaults. OSF 4 can also have that compiler version, and there
1849 # seems always to have been a usable /usr/bin/cpp.
1850 NON_GNU_CPP
=/usr
/bin
/cpp
1851 case "${canonical}" in
1852 alpha
*-dec-osf[5-9]*)
1857 alpha
*-*-linux-gnu* )
1858 machine
=alpha opsys
=gnu-linux
1862 machine
=arm opsys
=gnu-linux
1867 machine
=altos opsys
=usg5-2
1872 machine
=amdahl opsys
=usg5-2-2
1875 ## Apollo, Domain/OS
1877 machine
=apollo opsys
=bsd4-3
1880 ## AT&T 3b2, 3b5, 3b15, 3b20
1882 machine
=att3b opsys
=usg5-2-2
1885 ## AT&T 3b1 - The Mighty Unix PC!
1887 machine
=7300 opsys
=usg5-2-2
1892 machine
=ibmrs6000 opsys
=aix3-2
1897 machine
=dpx2 opsys
=usg5-3
1902 machine
=sps7 opsys
=usg5-2
1905 ## CCI 5/32, 6/32 -- see "Tahoe".
1908 ## I don't know what configuration name to use for this; config.sub
1909 ## doesn't seem to know anything about it. Hey, Celerity users, get
1910 ## in touch with us!
1911 celerity-celerity-bsd
* )
1912 machine
=celerity opsys
=bsd4-2
1916 ## What operating systems does this chip run that Emacs has been
1920 ## We'll use the catch-all code at the bottom to guess the
1921 ## operating system.
1925 mips-compaq-nonstopux
* )
1926 machine
=nonstopux opsys
=nonstopux
1930 *-convex-bsd* |
*-convex-convexos* )
1931 machine
=convex opsys
=bsd4-3
1932 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1933 NON_GNU_CPP
="cc -E -P"
1937 i
[3456]86-cubix-sysv* )
1938 machine
=intel386 opsys
=usg5-3
1942 cydra
*-cydrome-sysv* )
1943 machine
=cydra5 opsys
=usg5-3
1946 ## Data General AViiON Machines
1947 ## DG changed naming conventions with the release of 5.4.4.10, they
1948 ## dropped the initial 5.4 but left the intervening R. Because of the
1949 ## R this shouldn't conflict with older versions of the OS (which I
1950 ## think were named like dgux4.*). In addition, DG new AViiONs series
1951 ## uses either Motorola M88k or Intel Pentium CPUs.
1952 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1953 machine
=aviion opsys
=dgux4
1955 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1956 ## This name is dgux5-4-3 instead of dgux5-4r3
1957 ## to avoid a file name conflict on MSDOS.
1958 machine
=aviion opsys
=dgux5-4-3
1960 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1961 machine
=aviion opsys
=dgux5-4r2
1964 machine
=aviion opsys
=dgux
1967 ## Data General AViiON Intel (x86) Machines
1968 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1969 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1970 i
[345]86-dg-dguxR4* )
1971 machine
=aviion-intel opsys
=dgux4
1975 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1976 machine
=pmax opsys
=bsd4-2
1978 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1979 machine
=pmax opsys
=bsd4-3
1982 machine
=pmax opsys
=ultrix4-3
1985 machine
=pmax opsys
=osf1
1987 mips-dec-mach_bsd4.3
* )
1988 machine
=pmax opsys
=mach-bsd4-3
1991 ## Motorola Delta machines
1992 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1993 machine
=delta opsys
=usg5-3
1994 if test -z "`type gnucc | grep 'not found'`"
1996 if test -s /etc
/167config
1997 then CC
="gnucc -m68040"
1998 else CC
="gnucc -m68881"
2001 if test -z "`type gcc | grep 'not found'`"
2007 m88k-motorola-sysv4
* )
2008 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2009 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2010 # I hope there are not other 4.0 versions for this machine
2011 # which really need usg5-4 instead.
2012 machine
=delta88k opsys
=usg5-4-2
2014 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2015 machine
=delta88k opsys
=usg5-3
2020 machine
=dual opsys
=usg5-2
2022 m68
*-dual-uniplus* )
2023 machine
=dual opsys
=unipl5-2
2028 machine
=elxsi opsys
=usg5-2
2033 machine
=ns16000 opsys
=umax
2036 ## The GEC 63 - apparently, this port isn't really finished yet.
2037 # I'm sure we finished off the last of the machines, though. -- fx
2039 ## Gould Power Node and NP1
2041 machine
=gould opsys
=bsd4-2
2044 machine
=gould opsys
=bsd4-3
2047 machine
=gould-np1 opsys
=bsd4-3
2050 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2051 ## as far as Emacs is concerned).
2053 # Build needs to be different on 7.0 and later releases
2054 case "`uname -r`" in
2055 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2056 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2058 NON_GNU_CPP
="/lib/cpp"
2060 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2062 machine
=nh3000 opsys
=cxux
2064 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2065 powerpc-harris-powerunix
)
2066 machine
=nh6000 opsys
=powerunix
2067 NON_GNU_CPP
="cc -Xo -E -P"
2069 ## SR2001/SR2201 running HI-UX/MPP
2070 hppa1.1
-hitachi-hiuxmpp* )
2071 machine
=sr2k opsys
=hiuxmpp
2073 hppa1.1
-hitachi-hiuxwe2* )
2074 machine
=sr2k opsys
=hiuxwe2
2077 xps
*-honeywell-sysv* )
2078 machine
=xps100 opsys
=usg5-2
2081 ## HP 9000 series 200 or 300
2083 machine
=hp9000s300 opsys
=bsd4-3
2085 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2091 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2092 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2093 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2094 *) machine
=hp9000s300 opsys
=hpux
;;
2098 ## HP 9000 series 700 and 800, running HP/UX
2100 machine
=hp800 opsys
=hpux
2103 machine
=hp800 opsys
=hpux8
2105 hppa
*-hp-hpux9shr* )
2106 machine
=hp800 opsys
=hpux9shr
2109 machine
=hp800 opsys
=hpux9
2111 hppa
*-hp-hpux10.2
* )
2112 machine
=hp800 opsys
=hpux10-20
2115 machine
=hp800 opsys
=hpux10
2117 hppa
*-hp-hpux1[1-9]* )
2118 machine
=hp800 opsys
=hpux11
2119 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2122 hppa
*-*-linux-gnu* )
2123 machine
=hp800 opsys
=gnu-linux
2126 ## HP 9000 series 700 and 800, running HP/UX
2128 ## Cross-compilation? Nah!
2129 case "`uname -r`" in
2130 ## Someone's system reports A.B8.05 for this.
2131 ## I wonder what other possibilities there are.
2132 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2133 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2134 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2135 *) machine
=hp800 opsys
=hpux10
;;
2139 machine
=hp800 opsys
=nextstep
2144 machine
=orion opsys
=bsd4-2
2146 clipper-orion-bsd
* )
2147 machine
=orion105 opsys
=bsd4-2
2151 i
[3456]86-ibm-aix1.1
* )
2152 machine
=ibmps2-aix opsys
=usg5-2-2
2154 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2155 machine
=ibmps2-aix opsys
=usg5-3
2158 machine
=ibm370aix opsys
=usg5-3
2161 machine
=ibms390 opsys
=gnu-linux
2163 s390x-
*-linux-gnu* )
2164 machine
=ibms390x opsys
=gnu-linux
2166 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2167 machine
=ibmrs6000 opsys
=aix3-1
2169 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2170 machine
=ibmrs6000 opsys
=aix3-2-5
2172 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2173 machine
=ibmrs6000 opsys
=aix4-1
2175 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2176 machine
=ibmrs6000 opsys
=aix4-2
2178 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2179 machine
=ibmrs6000 opsys
=aix4-2
2181 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2182 machine
=ibmrs6000 opsys
=aix4
2184 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2185 machine
=ibmrs6000 opsys
=aix4-1
2187 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2188 machine
=ibmrs6000 opsys
=aix3-2
2191 machine
=ibmrt opsys
=bsd4-3
2194 machine
=ibmrt opsys
=bsd4-2
2197 machine
=ibmrt opsys
=bsd4-3
2200 machine
=ibmrt opsys
=bsd4-2
2203 machine
=ibmrt opsys
=bsd4-3
2206 machine
=ibmrt opsys
=bsd4-3
2209 machine
=ibmrt-aix opsys
=usg5-2-2
2212 ## Integrated Solutions `Optimum V'
2214 machine
=isi-ov opsys
=bsd4-2
2217 machine
=isi-ov opsys
=bsd4-3
2220 ## Intel 386 machines where we do care about the manufacturer
2221 i
[3456]86-intsys-sysv* )
2222 machine
=is386 opsys
=usg5-2-2
2226 i
[3456]86-prime-sysv* )
2227 machine
=i386 opsys
=usg5-3
2230 ## Sequent Symmetry running Dynix
2231 i
[3456]86-sequent-bsd* )
2232 machine
=symmetry opsys
=bsd4-3
2235 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2236 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2237 machine
=sequent-ptx opsys
=ptx4
2238 NON_GNU_CPP
=/lib
/cpp
2241 ## Sequent Symmetry running DYNIX/ptx
2242 ## Use the old cpp rather than the newer ANSI one.
2243 i
[3456]86-sequent-ptx* )
2244 machine
=sequent-ptx opsys
=ptx
2245 NON_GNU_CPP
="/lib/cpp"
2248 ## ncr machine running svr4.3.
2249 i
[3456]86-ncr-sysv4.3
)
2250 machine
=ncr386 opsys
=usg5-4-3
2253 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2254 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2255 i
[3456]86-ncr-sysv* )
2256 machine
=ncr386 opsys
=usg5-4-2
2259 ## Intel Paragon OSF/1
2261 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2266 machine
=i860 opsys
=usg5-4
2267 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2268 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2271 ## Macintosh PowerPC
2272 powerpc
*-*-linux-gnu* )
2273 machine
=macppc opsys
=gnu-linux
2276 ## Masscomp machines
2277 m68
*-masscomp-rtu* )
2278 machine
=masscomp opsys
=rtu
2281 ## Megatest machines
2282 m68
*-megatest-bsd* )
2283 machine
=mega68 opsys
=bsd4-2
2286 ## Workstations sold by MIPS
2287 ## This is not necessarily all workstations using the MIPS processor -
2288 ## Irises are produced by SGI, and DECstations by DEC.
2290 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2291 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2292 ## it gives for choosing between the alternatives seems to be "Use
2293 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2294 ## the BSD world." I'll assume that these are instructions for
2295 ## handling two odd situations, and that every other situation
2296 ## should use mips.h and usg5-2-2, they being listed first.
2299 ## Fall through to the general code at the bottom to decide on the OS.
2301 mips-mips-riscos4
* )
2302 machine
=mips4 opsys
=bsd4-3
2303 NON_GNU_CC
="cc -systype bsd43"
2304 NON_GNU_CPP
="cc -systype bsd43 -E"
2306 mips-mips-riscos5
* )
2307 machine
=mips4 opsys
=riscos5
2308 NON_GNU_CC
="cc -systype bsd43"
2309 NON_GNU_CPP
="cc -systype bsd43 -E"
2312 machine
=mips opsys
=bsd4-3
2315 machine
=mips opsys
=usg5-2-2
2319 m68
*-next-* | m68k-
*-nextstep* )
2320 machine
=m68k opsys
=nextstep
2323 ## The complete machine from National Semiconductor
2325 machine
=ns32000 opsys
=usg5-2
2329 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2330 machine
=tower32 opsys
=usg5-2-2
2332 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2333 machine
=tower32v3 opsys
=usg5-3
2338 machine
=ews4800 opsys
=ux4800
2341 ## Nixdorf Targon 31
2342 m68
*-nixdorf-sysv* )
2343 machine
=targon31 opsys
=usg5-2-2
2348 machine
=nu opsys
=usg5-2
2353 machine
=plexus opsys
=usg5-2
2357 ## I don't really have any idea what sort of processor the Pyramid has,
2358 ## so I'm assuming it is its own architecture.
2359 pyramid-pyramid-bsd
* )
2360 machine
=pyramid opsys
=bsd4-2
2364 ns32k-sequent-bsd4.2
* )
2365 machine
=sequent opsys
=bsd4-2
2367 ns32k-sequent-bsd4.3
* )
2368 machine
=sequent opsys
=bsd4-3
2372 mips-siemens-sysv
* | mips-sni-sysv
*)
2373 machine
=mips-siemens opsys
=usg5-4
2374 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2375 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2378 ## Silicon Graphics machines
2379 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2381 machine
=irist opsys
=iris3-5
2383 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2384 machine
=irist opsys
=iris3-6
2388 machine
=iris4d opsys
=irix3-3
2391 machine
=iris4d opsys
=irix4-0
2394 machine
=iris4d opsys
=irix6-5
2395 # Without defining _LANGUAGE_C, things get masked out in the headers
2396 # so that, for instance, grepping for `free' in stdlib.h fails and
2397 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2398 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2399 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2402 machine
=iris4d opsys
=irix6-0
2403 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2404 # but presumably it does no harm.
2405 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2406 # -32 probably isn't necessary in later v.6s -- anyone know which?
2407 NON_GCC_TEST_OPTIONS
=-32
2409 mips-sgi-irix5.
[01]* )
2410 machine
=iris4d opsys
=irix5-0
2412 mips-sgi-irix5
* | mips-sgi-irix
* )
2413 machine
=iris4d opsys
=irix5-2
2418 machine
=news opsys
=bsd4-2
2421 machine
=news opsys
=bsd4-3
2423 m68
*-sony-newsos3* | m68
*-sony-news3*)
2424 machine
=news opsys
=bsd4-3
2426 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2427 machine
=news-risc opsys
=bsd4-3
2429 mips-sony-newsos6
* )
2430 machine
=news-r6 opsys
=newsos6
2433 machine
=news-risc opsys
=newsos5
2438 machine
=stride opsys
=usg5-2
2442 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2443 machine
=sparc opsys
=gnu-linux
2446 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2447 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2448 | rs6000-
*-solaris2*)
2449 case "${canonical}" in
2450 m68
*-sunos1* ) machine
=sun1
;;
2451 m68
*-sunos2* ) machine
=sun2
;;
2452 m68
* ) machine
=sun3
;;
2453 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2454 i
[3456]86-*-* ) machine
=intel386
;;
2455 powerpcle
* ) machine
=powerpcle
;;
2456 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2457 sparc
* ) machine
=sparc
;;
2460 case "${canonical}" in
2461 ## The Sun386 didn't get past 4.0.
2462 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2463 *-sunos4.0
* ) opsys
=sunos4-0
;;
2464 *-sunos4.1.
[3-9]*noshare
)
2465 ## This name is sunos413 instead of sunos4-1-3
2466 ## to avoid a file name conflict on MSDOS.
2468 NON_GNU_CPP
=/usr
/lib
/cpp
2469 NON_GCC_TEST_OPTIONS
=-Bstatic
2470 GCC_TEST_OPTIONS
=-static
2472 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2474 NON_GNU_CPP
=/usr
/lib
/cpp
2476 *-sunos4* |
*-sunos )
2478 NON_GCC_TEST_OPTIONS
=-Bstatic
2479 GCC_TEST_OPTIONS
=-static
2481 *-sunos5.3
* |
*-solaris2.3
* )
2483 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2485 *-sunos5.4
* |
*-solaris2.4
* )
2487 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2490 *-sunos5.5
* |
*-solaris2.5
* )
2492 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2495 *-sunos5.6
* |
*-solaris2.6
* )
2497 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2500 *-sunos5* |
*-solaris* )
2502 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2506 ## Watch out for a compiler that we know will not work.
2507 case "${canonical}" in
2508 *-solaris* |
*-sunos5* )
2509 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2510 ## /usr/ucb/cc doesn't work;
2511 ## we should find some other compiler that does work.
2519 machine
=sparc opsys
=nextstep
2523 m68
*-tadpole-sysv* )
2524 machine
=tad68k opsys
=usg5-3
2528 tahoe-tahoe-bsd4.2
* )
2529 machine
=tahoe opsys
=bsd4-2
2531 tahoe-tahoe-bsd4.3
* )
2532 machine
=tahoe opsys
=bsd4-3
2535 ## Tandem Integrity S2
2537 machine
=tandem-s2 opsys
=usg5-3
2541 m88k-tektronix-sysv3
* )
2542 machine
=tekxd88 opsys
=usg5-3
2545 ## Tektronix 16000 box (6130?)
2546 ns16k-tektronix-bsd
* )
2547 machine
=ns16000 opsys
=bsd4-2
2550 ## src/m/tek4300.h hints that this is a m68k machine.
2551 m68
*-tektronix-bsd* )
2552 machine
=tek4300 opsys
=bsd4-3
2556 ## We seem to have lost the machine-description file titan.h!
2558 machine
=titan opsys
=usg5-3
2561 ## Ustation E30 (SS5E)
2562 m68
*-unisys-uniplus* )
2563 machine
=ustation opsystem
=unipl5-2
2569 case "${canonical}" in
2570 *-bsd4.1
* ) opsys
=bsd4-1
;;
2571 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2572 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2573 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2574 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2575 *-vms* ) opsys
=vms
;;
2581 ns16k-whitechapel-
* )
2583 ## We don't know what sort of OS runs on these; we'll let the
2584 ## operating system guessing code below try.
2589 machine
=wicat opsys
=usg5-2
2594 machine
=ia64 opsys
=gnu-linux
2597 ## Intel 386 machines where we don't care about the manufacturer
2600 case "${canonical}" in
2601 *-cygwin ) opsys
=cygwin
;;
2602 *-darwin* ) opsys
=darwin
2603 CPP
="${CC-cc} -E -no-cpp-precomp"
2605 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2606 *-isc2.2
* ) opsys
=isc2-2
;;
2607 *-isc4.0
* ) opsys
=isc4-0
;;
2608 *-isc4.
* ) opsys
=isc4-1
2609 GCC_TEST_OPTIONS
=-posix
2610 NON_GCC_TEST_OPTIONS
=-Xp
2612 *-isc* ) opsys
=isc3-0
;;
2613 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2614 *-esix* ) opsys
=esix
;;
2615 *-xenix* ) opsys
=xenix
;;
2616 *-linux-gnu* ) opsys
=gnu-linux
;;
2617 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2618 *-sco3.2v5
* ) opsys
=sco5
2619 NON_GNU_CPP
=/lib
/cpp
2620 # Prevent -belf from being passed to $CPP.
2621 # /lib/cpp does not accept it.
2622 OVERRIDE_CPPFLAGS
=" "
2624 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2625 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2626 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2627 *-386bsd* ) opsys
=386bsd
;;
2628 *-nextstep* ) opsys
=nextstep
;;
2629 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2633 ## m68k Linux-based GNU system
2635 machine
=m68k opsys
=gnu-linux
2638 ## Mips Linux-based GNU system
2639 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2640 machine
=mips opsys
=gnu-linux
2644 sparc-fujitsu-sysv4
* )
2645 machine
=sparc opsys
=uxpds
2646 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2651 f301-fujitsu-uxpv4.1
)
2652 machine
=f301 opsys
=uxpv
2655 ## Darwin / Mac OS X
2656 powerpc-apple-darwin
* )
2657 machine
=powermac opsys
=darwin
2658 # Define CPP as follows to make autoconf work correctly.
2659 CPP
="${CC-cc} -E -no-cpp-precomp"
2660 # Use fink packages if available.
2661 if test -d /sw
/include
&& test -d /sw
/lib
; then
2662 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2663 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2664 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2668 ## AMD x86-64 Linux-based GNU system
2669 x86_64-
*-linux-gnu* )
2670 machine
=amdx86-64 opsys
=gnu-linux
2678 ### If the code above didn't choose an operating system, just choose
2679 ### an operating system based on the configuration name. You really
2680 ### only want to use this when you have no idea what the right
2681 ### operating system is; if you know what operating systems a machine
2682 ### runs, it's cleaner to make it explicit in the case statement
2684 if test x
"${opsys}" = x
; then
2685 case "${canonical}" in
2686 *-gnu* ) opsys
=gnu
;;
2687 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2688 *-bsd4.2
) opsys
=bsd4-2
;;
2689 *-bsd4.3
) opsys
=bsd4-3
;;
2690 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2691 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2692 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2693 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2694 *-sysv4.2uw
* ) opsys
=unixware
;;
2695 *-sysv5uw* ) opsys
=unixware
;;
2696 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2697 *-sysv4.1
* |
*-sysvr4.1
* )
2698 NON_GNU_CPP
=/usr
/lib
/cpp
2700 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2701 if [ x
$NON_GNU_CPP = x
]; then
2702 if [ -f /usr
/ccs
/lib
/cpp
]; then
2703 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2705 NON_GNU_CPP
=/lib
/cpp
2709 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2718 if test $unported = yes; then
2719 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2720 Check \`etc/MACHINES' for recognized configuration names." >&5
2721 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2722 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2723 { (exit 1); exit 1; }; }
2726 machfile
="m/${machine}.h"
2727 opsysfile
="s/${opsys}.h"
2730 #### Choose a compiler.
2731 test -n "$CC" && cc_specified
=yes
2733 # Save the value of CFLAGS that the user specified.
2734 SPECIFIED_CFLAGS
="$CFLAGS"
2737 "yes" ) CC
="gcc" GCC
=yes ;;
2738 "no" ) : ${CC=cc} ;;
2742 ac_cpp
='$CPP $CPPFLAGS'
2743 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC
="$CC" # Let the user override the test.
2757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir
=.
2762 for ac_exec_ext
in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test -n "$CC"; then
2775 echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2783 if test -z "$ac_cv_prog_CC"; then
2785 # Extract the first word of "gcc", so it can be a program name with args.
2786 set dummy gcc
; ac_word
=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$ac_ct_CC"; then
2793 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir
=.
2800 for ac_exec_ext
in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_ac_ct_CC
="gcc"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 echo "${ECHO_T}$ac_ct_CC" >&6
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC
="$CC" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CC"; then
2855 echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2863 if test -z "$ac_cv_prog_CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc
; ac_word
=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir
=.
2880 for ac_exec_ext
in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_ac_ct_CC
="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2894 echo "${ECHO_T}$ac_ct_CC" >&6
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2906 if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc
; ac_word
=$2
2909 echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC
="$CC" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926 ac_prog_rejected
=yes
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test $ac_prog_rejected = yes; then
2937 # We found a bogon in the path, so make sure we never use it.
2938 set dummy
$ac_cv_prog_CC
2940 if test $# != 0; then
2941 # We chose a different compiler from the bogus one.
2942 # However, it has the same basename, so the bogon will be chosen
2943 # first if we set CC to just the basename; use the full file name.
2945 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2951 if test -n "$CC"; then
2952 echo "$as_me:$LINENO: result: $CC" >&5
2953 echo "${ECHO_T}$CC" >&6
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC
="$CC" # Let the user override the test.
2974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir
=.
2979 for ac_exec_ext
in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test -n "$CC"; then
2992 echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6
2995 echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2999 test -n "$CC" && break
3002 if test -z "$CC"; then
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy
$ac_prog; ac_word
=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir
=.
3021 for ac_exec_ext
in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC
="$ac_prog"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035 echo "${ECHO_T}$ac_ct_CC" >&6
3037 echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3041 test -n "$ac_ct_CC" && break
3050 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3056 # Provide some information about the compiler.
3057 echo "$as_me:$LINENO:" \
3058 "checking for C compiler version" >&5
3059 ac_compiler
=`set X $ac_compile; echo $2`
3060 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3061 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3066 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3071 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 cat >conftest.
$ac_ext <<_ACEOF
3079 cat confdefs.h
>>conftest.
$ac_ext
3080 cat >>conftest.
$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3091 ac_clean_files_save
=$ac_clean_files
3092 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3096 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3098 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3100 (eval $ac_link_default) 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; then
3104 # Find the output, starting from the most likely. This scheme is
3105 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3108 # Be careful to initialize this variable, since it used to be cached.
3109 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3111 # b.out is created by i960 compilers.
3112 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3114 test -f "$ac_file" ||
continue
3116 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3119 # This is the source file.
3122 # We found the default executable, but exeext='' is most
3126 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 # FIXME: I believe we export ac_cv_exeext for Libtool,
3128 # but it would be cool to find out if it's true. Does anybody
3129 # maintain Libtool? --akim.
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.
$ac_ext >&5
3140 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: C compiler cannot create executables
3143 See \`config.log' for more details." >&2;}
3144 { (exit 77); exit 77; }; }
3147 ac_exeext
=$ac_cv_exeext
3148 echo "$as_me:$LINENO: result: $ac_file" >&5
3149 echo "${ECHO_T}$ac_file" >&6
3151 # Check the compiler produces executables we can run. If not, either
3152 # the compiler is broken, or we cross compile.
3153 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3154 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3155 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3156 # If not cross compiling, check that we can run a simple program.
3157 if test "$cross_compiling" != yes; then
3158 if { ac_try
='./$ac_file'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3166 if test "$cross_compiling" = maybe
; then
3169 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3170 If you meant to cross compile, use \`--host'.
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: cannot run C compiled programs.
3173 If you meant to cross compile, use \`--host'.
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3179 echo "$as_me:$LINENO: result: yes" >&5
3180 echo "${ECHO_T}yes" >&6
3182 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3183 ac_clean_files
=$ac_clean_files_save
3184 # Check the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3187 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3188 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3189 echo "${ECHO_T}$cross_compiling" >&6
3191 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3192 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3194 (eval $ac_link) 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; then
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3202 for ac_file
in conftest.exe conftest conftest.
*; do
3203 test -f "$ac_file" ||
continue
3205 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3206 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details." >&5
3215 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details." >&2;}
3217 { (exit 1); exit 1; }; }
3220 rm -f conftest
$ac_cv_exeext
3221 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3222 echo "${ECHO_T}$ac_cv_exeext" >&6
3224 rm -f conftest.
$ac_ext
3225 EXEEXT
=$ac_cv_exeext
3227 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3228 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3229 if test "${ac_cv_objext+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 cat >conftest.
$ac_ext <<_ACEOF
3235 cat confdefs.h
>>conftest.
$ac_ext
3236 cat >>conftest.
$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 rm -f conftest.o conftest.obj
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3255 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3256 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.
$ac_ext >&5
3264 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }
3271 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3273 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3274 echo "${ECHO_T}$ac_cv_objext" >&6
3275 OBJEXT
=$ac_cv_objext
3277 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3278 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3279 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 cat >conftest.
$ac_ext <<_ACEOF
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3300 rm -f conftest.
$ac_objext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>conftest.er1
3304 grep -v '^ *+' conftest.er1
>conftest.err
3306 cat conftest.err
>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try
='test -z "$ac_c_werror_flag"
3310 || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try
='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.
$ac_ext >&5
3329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3330 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3333 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3334 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3335 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3336 ac_test_CFLAGS
=${CFLAGS+set}
3337 ac_save_CFLAGS
=$CFLAGS
3339 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3340 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3341 if test "${ac_cv_prog_cc_g+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 cat >conftest.
$ac_ext <<_ACEOF
3347 cat confdefs.h
>>conftest.
$ac_ext
3348 cat >>conftest.
$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3359 rm -f conftest.
$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1
>conftest.err
3365 cat conftest.err
>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try
='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try
='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.
$ac_ext >&5
3388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3390 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3391 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3392 if test "$ac_test_CFLAGS" = set; then
3393 CFLAGS
=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395 if test "$GCC" = yes; then
3401 if test "$GCC" = yes; then
3407 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3408 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3409 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 ac_cv_prog_cc_stdc
=no
3414 cat >conftest.
$ac_ext <<_ACEOF
3417 cat confdefs.h
>>conftest.
$ac_ext
3418 cat >>conftest.
$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3422 #include <sys/types.h>
3423 #include <sys/stat.h>
3424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3425 struct buf { int x; };
3426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3427 static char *e (p, i)
3433 static char *f (char * (*g) (char **, int), char **p, ...)
3438 s = g (p, va_arg (v,int));
3443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3444 function prototypes and stuff, but not '\xHH' hex character constants.
3445 These don't provoke an error unfortunately, instead are silently treated
3446 as 'x'. The following induces an error, until -std1 is added to get
3447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3448 array size at least. It's necessary to write '\x00'==0 to get something
3449 that's true only with -std1. */
3450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3466 # Don't try gcc -ansi; that turns off useful extensions and
3467 # breaks some systems' header files.
3468 # AIX -qlanglvl=ansi
3469 # Ultrix and OSF/1 -std1
3470 # HP-UX 10.20 and later -Ae
3471 # HP-UX older versions -Aa -D_HPUX_SOURCE
3472 # SVR4 -Xc -D__EXTENSIONS__
3473 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3475 CC
="$ac_save_CC $ac_arg"
3476 rm -f conftest.
$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>conftest.er1
3480 grep -v '^ *+' conftest.er1
>conftest.err
3482 cat conftest.err
>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
3485 { ac_try
='test -z "$ac_c_werror_flag"
3486 || test ! -s conftest.err'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try
='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_prog_cc_stdc
=$ac_arg
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.
$ac_ext >&5
3505 rm -f conftest.err conftest.
$ac_objext
3507 rm -f conftest.
$ac_ext conftest.
$ac_objext
3512 case "x$ac_cv_prog_cc_stdc" in
3514 echo "$as_me:$LINENO: result: none needed" >&5
3515 echo "${ECHO_T}none needed" >&6 ;;
3517 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3518 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3519 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3522 # Some people use a C++ compiler to compile C. Since we use `exit',
3523 # in C++ we need to declare it. In case someone uses the same compiler
3524 # for both compiling C and C++ we need to have the C++ compiler decide
3525 # the declaration of exit, since it's the most demanding environment.
3526 cat >conftest.
$ac_ext <<_ACEOF
3531 rm -f conftest.
$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3535 grep -v '^ *+' conftest.er1
>conftest.err
3537 cat conftest.err
>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try
='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try
='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 for ac_declaration
in \
3555 'extern "C" void std::exit (int) throw (); using std::exit;' \
3556 'extern "C" void std::exit (int); using std::exit;' \
3557 'extern "C" void exit (int) throw ();' \
3558 'extern "C" void exit (int);' \
3561 cat >conftest.
$ac_ext <<_ACEOF
3564 cat confdefs.h
>>conftest.
$ac_ext
3565 cat >>conftest.
$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3577 rm -f conftest.
$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1
>conftest.err
3583 cat conftest.err
>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try
='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try
='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3607 cat >conftest.
$ac_ext <<_ACEOF
3610 cat confdefs.h
>>conftest.
$ac_ext
3611 cat >>conftest.
$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3622 rm -f conftest.
$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3626 grep -v '^ *+' conftest.er1
>conftest.err
3628 cat conftest.err
>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try
='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try
='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.
$ac_ext >&5
3650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3653 if test -n "$ac_declaration"; then
3654 echo '#ifdef __cplusplus' >>confdefs.h
3655 echo $ac_declaration >>confdefs.h
3656 echo '#endif' >>confdefs.h
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.
$ac_ext >&5
3664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3666 ac_cpp
='$CPP $CPPFLAGS'
3667 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3672 # On Suns, sometimes $CPP names a directory.
3673 if test -n "$CPP" && test -d "$CPP"; then
3677 #### Some systems specify a CPP to use unless we are using GCC.
3678 #### Now that we know whether we are using GCC, we can decide whether
3679 #### to use that one.
3680 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3685 #### Some systems specify a CC to use unless we are using GCC.
3686 #### Now that we know whether we are using GCC, we can decide whether
3687 #### to use that one.
3688 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3689 test x
$cc_specified != xyes
3694 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3696 CC
="$CC $GCC_TEST_OPTIONS"
3699 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3701 CC
="$CC $NON_GCC_TEST_OPTIONS"
3706 ac_cpp
='$CPP $CPPFLAGS'
3707 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3710 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3711 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3712 # On Suns, sometimes $CPP names a directory.
3713 if test -n "$CPP" && test -d "$CPP"; then
3716 if test -z "$CPP"; then
3717 if test "${ac_cv_prog_CPP+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 # Double quotes because CPP needs to be expanded
3721 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3724 for ac_c_preproc_warn_flag
in '' yes
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error" is here to catch this case.
3732 cat >conftest.
$ac_ext <<_ACEOF
3735 cat confdefs.h
>>conftest.
$ac_ext
3736 cat >>conftest.
$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3739 # include <limits.h>
3741 # include <assert.h>
3745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3748 grep -v '^ *+' conftest.er1
>conftest.err
3750 cat conftest.err
>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } >/dev
/null
; then
3753 if test -s conftest.err
; then
3754 ac_cpp_err
=$ac_c_preproc_warn_flag
3755 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3762 if test -z "$ac_cpp_err"; then
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.
$ac_ext >&5
3768 # Broken: fails on valid input.
3771 rm -f conftest.err conftest.
$ac_ext
3773 # OK, works on sane cases. Now check whether non-existent headers
3774 # can be detected and how.
3775 cat >conftest.
$ac_ext <<_ACEOF
3778 cat confdefs.h
>>conftest.
$ac_ext
3779 cat >>conftest.
$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 #include <ac_nonexistent.h>
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1
>conftest.err
3788 cat conftest.err
>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev
/null
; then
3791 if test -s conftest.err
; then
3792 ac_cpp_err
=$ac_c_preproc_warn_flag
3793 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3800 if test -z "$ac_cpp_err"; then
3801 # Broken: success on invalid input.
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.
$ac_ext >&5
3807 # Passes both tests.
3811 rm -f conftest.err conftest.
$ac_ext
3814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3815 rm -f conftest.err conftest.
$ac_ext
3816 if $ac_preproc_ok; then
3828 echo "$as_me:$LINENO: result: $CPP" >&5
3829 echo "${ECHO_T}$CPP" >&6
3831 for ac_c_preproc_warn_flag
in '' yes
3833 # Use a header file that comes with gcc, so configuring glibc
3834 # with a fresh cross-compiler works.
3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836 # <limits.h> exists even on freestanding compilers.
3837 # On the NeXT, cc -E runs the code through the compiler's parser,
3838 # not just through cpp. "Syntax error" is here to catch this case.
3839 cat >conftest.
$ac_ext <<_ACEOF
3842 cat confdefs.h
>>conftest.
$ac_ext
3843 cat >>conftest.
$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3846 # include <limits.h>
3848 # include <assert.h>
3852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3855 grep -v '^ *+' conftest.er1
>conftest.err
3857 cat conftest.err
>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } >/dev
/null
; then
3860 if test -s conftest.err
; then
3861 ac_cpp_err
=$ac_c_preproc_warn_flag
3862 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3869 if test -z "$ac_cpp_err"; then
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3875 # Broken: fails on valid input.
3878 rm -f conftest.err conftest.
$ac_ext
3880 # OK, works on sane cases. Now check whether non-existent headers
3881 # can be detected and how.
3882 cat >conftest.
$ac_ext <<_ACEOF
3885 cat confdefs.h
>>conftest.
$ac_ext
3886 cat >>conftest.
$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 #include <ac_nonexistent.h>
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3893 grep -v '^ *+' conftest.er1
>conftest.err
3895 cat conftest.err
>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev
/null
; then
3898 if test -s conftest.err
; then
3899 ac_cpp_err
=$ac_c_preproc_warn_flag
3900 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3907 if test -z "$ac_cpp_err"; then
3908 # Broken: success on invalid input.
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.
$ac_ext >&5
3914 # Passes both tests.
3918 rm -f conftest.err conftest.
$ac_ext
3921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3922 rm -f conftest.err conftest.
$ac_ext
3923 if $ac_preproc_ok; then
3926 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3927 See \`config.log' for more details." >&5
3928 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3934 ac_cpp
='$CPP $CPPFLAGS'
3935 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3940 echo "$as_me:$LINENO: checking for egrep" >&5
3941 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3942 if test "${ac_cv_prog_egrep+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3946 then ac_cv_prog_egrep
='grep -E'
3947 else ac_cv_prog_egrep
='egrep'
3950 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3951 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3952 EGREP
=$ac_cv_prog_egrep
3956 echo "$as_me:$LINENO: checking for AIX" >&5
3957 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3958 cat >conftest.
$ac_ext <<_ACEOF
3961 cat confdefs.h
>>conftest.
$ac_ext
3962 cat >>conftest.
$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 $EGREP "yes" >/dev
/null
2>&1; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6
3973 cat >>confdefs.h
<<\_ACEOF
3974 #define _ALL_SOURCE 1
3978 echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3985 cat >>confdefs.h
<<\_ACEOF
3986 #define _GNU_SOURCE 1
3991 ### Use -Wno-pointer-sign if the compiler supports it
3992 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3993 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3994 SAVE_CFLAGS
="$CFLAGS"
3995 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3996 cat >conftest.
$ac_ext <<_ACEOF
3999 cat confdefs.h
>>conftest.
$ac_ext
4000 cat >>conftest.
$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4011 rm -f conftest.
$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4015 grep -v '^ *+' conftest.er1
>conftest.err
4017 cat conftest.err
>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try
='test -z "$ac_c_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try
='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.
$ac_ext >&5
4040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4041 if test $has_option = yes; then
4042 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4044 echo "$as_me:$LINENO: result: $has_option" >&5
4045 echo "${ECHO_T}$has_option" >&6
4046 CFLAGS
="$SAVE_CFLAGS"
4050 #### Some other nice autoconf tests.
4052 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4055 if test "$LN_S" = "ln -s"; then
4056 echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4059 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4060 echo "${ECHO_T}no, using $LN_S" >&6
4064 ac_cpp
='$CPP $CPPFLAGS'
4065 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4068 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4069 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4070 # On Suns, sometimes $CPP names a directory.
4071 if test -n "$CPP" && test -d "$CPP"; then
4074 if test -z "$CPP"; then
4075 if test "${ac_cv_prog_CPP+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 # Double quotes because CPP needs to be expanded
4079 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4082 for ac_c_preproc_warn_flag
in '' yes
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
4090 cat >conftest.
$ac_ext <<_ACEOF
4093 cat confdefs.h
>>conftest.
$ac_ext
4094 cat >>conftest.
$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4097 # include <limits.h>
4099 # include <assert.h>
4103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1
>conftest.err
4108 cat conftest.err
>&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } >/dev
/null
; then
4111 if test -s conftest.err
; then
4112 ac_cpp_err
=$ac_c_preproc_warn_flag
4113 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4120 if test -z "$ac_cpp_err"; then
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.
$ac_ext >&5
4126 # Broken: fails on valid input.
4129 rm -f conftest.err conftest.
$ac_ext
4131 # OK, works on sane cases. Now check whether non-existent headers
4132 # can be detected and how.
4133 cat >conftest.
$ac_ext <<_ACEOF
4136 cat confdefs.h
>>conftest.
$ac_ext
4137 cat >>conftest.
$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4144 grep -v '^ *+' conftest.er1
>conftest.err
4146 cat conftest.err
>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } >/dev
/null
; then
4149 if test -s conftest.err
; then
4150 ac_cpp_err
=$ac_c_preproc_warn_flag
4151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4158 if test -z "$ac_cpp_err"; then
4159 # Broken: success on invalid input.
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.
$ac_ext >&5
4165 # Passes both tests.
4169 rm -f conftest.err conftest.
$ac_ext
4172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4173 rm -f conftest.err conftest.
$ac_ext
4174 if $ac_preproc_ok; then
4186 echo "$as_me:$LINENO: result: $CPP" >&5
4187 echo "${ECHO_T}$CPP" >&6
4189 for ac_c_preproc_warn_flag
in '' yes
4191 # Use a header file that comes with gcc, so configuring glibc
4192 # with a fresh cross-compiler works.
4193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4194 # <limits.h> exists even on freestanding compilers.
4195 # On the NeXT, cc -E runs the code through the compiler's parser,
4196 # not just through cpp. "Syntax error" is here to catch this case.
4197 cat >conftest.
$ac_ext <<_ACEOF
4200 cat confdefs.h
>>conftest.
$ac_ext
4201 cat >>conftest.
$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4204 # include <limits.h>
4206 # include <assert.h>
4210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4211 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4213 grep -v '^ *+' conftest.er1
>conftest.err
4215 cat conftest.err
>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } >/dev
/null
; then
4218 if test -s conftest.err
; then
4219 ac_cpp_err
=$ac_c_preproc_warn_flag
4220 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4227 if test -z "$ac_cpp_err"; then
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.
$ac_ext >&5
4233 # Broken: fails on valid input.
4236 rm -f conftest.err conftest.
$ac_ext
4238 # OK, works on sane cases. Now check whether non-existent headers
4239 # can be detected and how.
4240 cat >conftest.
$ac_ext <<_ACEOF
4243 cat confdefs.h
>>conftest.
$ac_ext
4244 cat >>conftest.
$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #include <ac_nonexistent.h>
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4251 grep -v '^ *+' conftest.er1
>conftest.err
4253 cat conftest.err
>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev
/null
; then
4256 if test -s conftest.err
; then
4257 ac_cpp_err
=$ac_c_preproc_warn_flag
4258 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4265 if test -z "$ac_cpp_err"; then
4266 # Broken: success on invalid input.
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.
$ac_ext >&5
4272 # Passes both tests.
4276 rm -f conftest.err conftest.
$ac_ext
4279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4280 rm -f conftest.err conftest.
$ac_ext
4281 if $ac_preproc_ok; then
4284 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4285 See \`config.log' for more details." >&5
4286 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4287 See \`config.log' for more details." >&2;}
4288 { (exit 1); exit 1; }; }
4292 ac_cpp
='$CPP $CPPFLAGS'
4293 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4297 # Find a good install program. We prefer a C program (faster),
4298 # so one script is as good as another. But avoid the broken or
4299 # incompatible versions:
4300 # SysV /etc/install, /usr/sbin/install
4301 # SunOS /usr/etc/install
4302 # IRIX /sbin/install
4304 # AmigaOS /C/install, which installs bootblocks on floppy discs
4305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4308 # OS/2's system install, which has a completely different semantic
4309 # ./install, which can be erroneously created by make from ./install.sh.
4310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4312 if test -z "$INSTALL"; then
4313 if test "${ac_cv_path_install+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir
=.
4321 # Account for people who put trailing slashes in PATH elements.
4323 .
/ | .
// |
/cC
/* | \
4324 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4325 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4328 # OSF1 and SCO ODT 3.0 have their own names for install.
4329 # Don't use installbsd from OSF since it installs stuff as root
4331 for ac_prog
in ginstall scoinst
install; do
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4334 if test $ac_prog = install &&
4335 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4336 # AIX install. It has an incompatible calling convention.
4338 elif test $ac_prog = install &&
4339 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4340 # program-specific install script used by HP pwplus--don't use.
4343 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4355 if test "${ac_cv_path_install+set}" = set; then
4356 INSTALL
=$ac_cv_path_install
4358 # As a last resort, use the slow shell script. We don't cache a
4359 # path for INSTALL within a source directory, because that will
4360 # break other packages using the cache if that directory is
4361 # removed, or if the path is relative.
4362 INSTALL
=$ac_install_sh
4365 echo "$as_me:$LINENO: result: $INSTALL" >&5
4366 echo "${ECHO_T}$INSTALL" >&6
4368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4369 # It thinks the first close brace ends the variable substitution.
4370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4374 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4376 if test "x$RANLIB" = x
; then
4377 if test -n "$ac_tool_prefix"; then
4378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4379 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4380 echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382 if test "${ac_cv_prog_RANLIB+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test -n "$RANLIB"; then
4386 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir
=.
4393 for ac_exec_ext
in '' $ac_executable_extensions; do
4394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 RANLIB
=$ac_cv_prog_RANLIB
4405 if test -n "$RANLIB"; then
4406 echo "$as_me:$LINENO: result: $RANLIB" >&5
4407 echo "${ECHO_T}$RANLIB" >&6
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4414 if test -z "$ac_cv_prog_RANLIB"; then
4415 ac_ct_RANLIB
=$RANLIB
4416 # Extract the first word of "ranlib", so it can be a program name with args.
4417 set dummy ranlib
; ac_word
=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$ac_ct_RANLIB"; then
4424 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir
=.
4431 for ac_exec_ext
in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4443 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4446 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4452 RANLIB
=$ac_ct_RANLIB
4454 RANLIB
="$ac_cv_prog_RANLIB"
4458 # Extract the first word of "install-info", so it can be a program name with args.
4459 set dummy install-info
; ac_word
=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 case $INSTALL_INFO in
4467 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir
=.
4475 for ac_exec_ext
in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4489 if test -n "$INSTALL_INFO"; then
4490 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4491 echo "${ECHO_T}$INSTALL_INFO" >&6
4493 echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 # Extract the first word of "install-info", so it can be a program name with args.
4498 set dummy install-info
; ac_word
=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 case $INSTALL_INFO in
4506 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 for as_dir
in /usr
/sbin
4513 test -z "$as_dir" && as_dir
=.
4514 for ac_exec_ext
in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4528 if test -n "$INSTALL_INFO"; then
4529 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4530 echo "${ECHO_T}$INSTALL_INFO" >&6
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4536 # Extract the first word of "install-info", so it can be a program name with args.
4537 set dummy install-info
; ac_word
=$2
4538 echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 case $INSTALL_INFO in
4545 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_exec_ext
in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4566 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4568 if test -n "$INSTALL_INFO"; then
4569 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4570 echo "${ECHO_T}$INSTALL_INFO" >&6
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4576 # Extract the first word of "gzip", so it can be a program name with args.
4577 set dummy
gzip; ac_word
=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir
=.
4593 for ac_exec_ext
in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4607 if test -n "$GZIP_PROG"; then
4608 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4609 echo "${ECHO_T}$GZIP_PROG" >&6
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4617 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4619 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4622 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4624 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4628 late_LDFLAGS
=$LDFLAGS
4629 if test "$GCC" = yes; then
4630 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4632 LDFLAGS
="$LDFLAGS -znocombreloc"
4635 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4636 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 rm -f conftest.
$ac_objext conftest
$ac_exeext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>conftest.er1
4644 grep -v '^ *+' conftest.er1
>conftest.err
4646 cat conftest.err
>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try
='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try
='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.
$ac_ext >&5
4668 LDFLAGS
=$late_LDFLAGS
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4672 rm -f conftest.err conftest.
$ac_objext \
4673 conftest
$ac_exeext conftest.
$ac_ext
4675 #### Extract some information from the operating system and machine files.
4677 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4678 - which libraries the lib-src programs will want, and
4679 - whether the GNU malloc routines are usable..." >&5
4680 echo "$as_me: checking the machine- and system-dependent files to find out
4681 - which libraries the lib-src programs will want, and
4682 - whether the GNU malloc routines are usable..." >&6;}
4684 ### First figure out CFLAGS (which we use for running the compiler here)
4685 ### and REAL_CFLAGS (which we use for real compilation).
4686 ### The two are the same except on a few systems, where they are made
4687 ### different to work around various lossages. For example,
4688 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4689 ### as implying static linking.
4691 ### If the CFLAGS env var is specified, we use that value
4692 ### instead of the default.
4694 ### It's not important that this name contain the PID; you can't run
4695 ### two configures in the same directory and have anything work
4697 tempcname
="conftest.c"
4700 #include "'${srcdir}'/src/'${opsysfile}'"
4701 #include "'${srcdir}'/src/'${machfile}'"
4702 #ifndef LIBS_MACHINE
4703 #define LIBS_MACHINE
4708 #ifndef C_SWITCH_SYSTEM
4709 #define C_SWITCH_SYSTEM
4711 #ifndef C_SWITCH_MACHINE
4712 #define C_SWITCH_MACHINE
4714 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4715 configure___ c_switch_system=C_SWITCH_SYSTEM
4716 configure___ c_switch_machine=C_SWITCH_MACHINE
4719 #define LIB_X11_LIB -lX11
4722 #ifndef LIBX11_MACHINE
4723 #define LIBX11_MACHINE
4726 #ifndef LIBX11_SYSTEM
4727 #define LIBX11_SYSTEM
4729 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4732 configure___ unexec=UNEXEC
4734 configure___ unexec=unexec.o
4737 #ifdef SYSTEM_MALLOC
4738 configure___ system_malloc=yes
4740 configure___ system_malloc=no
4743 #ifdef USE_MMAP_FOR_BUFFERS
4744 configure___ use_mmap_for_buffers=yes
4746 configure___ use_mmap_for_buffers=no
4749 #ifndef C_DEBUG_SWITCH
4750 #define C_DEBUG_SWITCH -g
4753 #ifndef C_OPTIMIZE_SWITCH
4755 #define C_OPTIMIZE_SWITCH -O2
4757 #define C_OPTIMIZE_SWITCH -O
4761 #ifndef C_WARNINGS_SWITCH
4762 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4765 #ifndef LD_SWITCH_MACHINE
4766 #define LD_SWITCH_MACHINE
4769 #ifndef LD_SWITCH_SYSTEM
4770 #define LD_SWITCH_SYSTEM
4773 #ifndef LD_SWITCH_X_SITE_AUX
4774 #define LD_SWITCH_X_SITE_AUX
4777 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4778 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4780 #ifdef THIS_IS_CONFIGURE
4782 /* Get the CFLAGS for tests in configure. */
4784 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4786 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4789 #else /* not THIS_IS_CONFIGURE */
4791 /* Get the CFLAGS for real compilation. */
4793 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4795 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4798 #endif /* not THIS_IS_CONFIGURE */
4801 # The value of CPP is a quoted variable reference, so we need to do this
4802 # to get its actual value...
4803 CPP
=`eval "echo $CPP"`
4804 eval `${CPP} -Isrc ${tempcname} \
4805 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4806 if test "x$SPECIFIED_CFLAGS" = x
; then
4807 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4808 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4810 REAL_CFLAGS
="$CFLAGS"
4814 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4816 ### Make sure subsequent tests use flags consistent with the build flags.
4818 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4819 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4821 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4826 # Check whether --enable-largefile or --disable-largefile was given.
4827 if test "${enable_largefile+set}" = set; then
4828 enableval
="$enable_largefile"
4831 if test "$enable_largefile" != no
; then
4833 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 ac_cv_sys_largefile_CC
=no
4839 if test "$GCC" != yes; then
4842 # IRIX 6.2 and later do not support large files by default,
4843 # so use the C compiler's -n32 option if that helps.
4844 cat >conftest.
$ac_ext <<_ACEOF
4847 cat confdefs.h
>>conftest.
$ac_ext
4848 cat >>conftest.
$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4867 rm -f conftest.
$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4871 grep -v '^ *+' conftest.er1
>conftest.err
4873 cat conftest.err
>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try
='test -z "$ac_c_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try
='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.
$ac_ext >&5
4895 rm -f conftest.err conftest.
$ac_objext
4897 rm -f conftest.
$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1
>conftest.err
4903 cat conftest.err
>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try
='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try
='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_cv_sys_largefile_CC
=' -n32'; break
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.
$ac_ext >&5
4925 rm -f conftest.err conftest.
$ac_objext
4929 rm -f conftest.
$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4933 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4934 if test "$ac_cv_sys_largefile_CC" != no
; then
4935 CC
=$CC$ac_cv_sys_largefile_CC
4938 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4939 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4940 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 ac_cv_sys_file_offset_bits
=no
4945 cat >conftest.
$ac_ext <<_ACEOF
4948 cat confdefs.h
>>conftest.
$ac_ext
4949 cat >>conftest.
$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 #include <sys/types.h>
4952 /* Check that off_t can represent 2**63 - 1 correctly.
4953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4954 since some C++ compilers masquerading as C compilers
4955 incorrectly reject 9223372036854775807. */
4956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4958 && LARGE_OFF_T % 2147483647 == 1)
4968 rm -f conftest.
$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1
>conftest.err
4974 cat conftest.err
>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try
='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try
='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.
$ac_ext >&5
4996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 cat >conftest.
$ac_ext <<_ACEOF
5000 cat confdefs.h
>>conftest.
$ac_ext
5001 cat >>conftest.
$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #define _FILE_OFFSET_BITS 64
5004 #include <sys/types.h>
5005 /* Check that off_t can represent 2**63 - 1 correctly.
5006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5007 since some C++ compilers masquerading as C compilers
5008 incorrectly reject 9223372036854775807. */
5009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5011 && LARGE_OFF_T % 2147483647 == 1)
5021 rm -f conftest.
$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5025 grep -v '^ *+' conftest.er1
>conftest.err
5027 cat conftest.err
>&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try
='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try
='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_sys_file_offset_bits
=64; break
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.
$ac_ext >&5
5049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5053 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5054 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5055 if test "$ac_cv_sys_file_offset_bits" != no
; then
5057 cat >>confdefs.h
<<_ACEOF
5058 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5063 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5064 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5065 if test "${ac_cv_sys_large_files+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 ac_cv_sys_large_files
=no
5070 cat >conftest.
$ac_ext <<_ACEOF
5073 cat confdefs.h
>>conftest.
$ac_ext
5074 cat >>conftest.
$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5093 rm -f conftest.
$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5097 grep -v '^ *+' conftest.er1
>conftest.err
5099 cat conftest.err
>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try
='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try
='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.
$ac_ext >&5
5121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5122 cat >conftest.
$ac_ext <<_ACEOF
5125 cat confdefs.h
>>conftest.
$ac_ext
5126 cat >>conftest.
$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #define _LARGE_FILES 1
5129 #include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132 since some C++ compilers masquerading as C compilers
5133 incorrectly reject 9223372036854775807. */
5134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136 && LARGE_OFF_T % 2147483647 == 1)
5146 rm -f conftest.
$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>conftest.er1
5150 grep -v '^ *+' conftest.er1
>conftest.err
5152 cat conftest.err
>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try
='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try
='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_sys_large_files
=1; break
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.
$ac_ext >&5
5174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5178 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5179 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5180 if test "$ac_cv_sys_large_files" != no
; then
5182 cat >>confdefs.h
<<_ACEOF
5183 #define _LARGE_FILES $ac_cv_sys_large_files
5191 if test "${with_sound}" != "no"; then
5192 # Sound support for GNU/Linux and the free BSDs.
5193 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5195 if test "${ac_cv_header_stdc+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 cat >conftest.
$ac_ext <<_ACEOF
5201 cat confdefs.h
>>conftest.
$ac_ext
5202 cat >>conftest.
$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5217 rm -f conftest.
$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>conftest.er1
5221 grep -v '^ *+' conftest.er1
>conftest.err
5223 cat conftest.err
>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try
='test -z "$ac_c_werror_flag"
5227 || test ! -s conftest.err'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; } &&
5233 { ac_try
='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_header_stdc
=yes
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.
$ac_ext >&5
5244 ac_cv_header_stdc
=no
5246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5248 if test $ac_cv_header_stdc = yes; then
5249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5250 cat >conftest.
$ac_ext <<_ACEOF
5253 cat confdefs.h
>>conftest.
$ac_ext
5254 cat >>conftest.
$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 $EGREP "memchr" >/dev
/null
2>&1; then
5263 ac_cv_header_stdc
=no
5269 if test $ac_cv_header_stdc = yes; then
5270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5271 cat >conftest.
$ac_ext <<_ACEOF
5274 cat confdefs.h
>>conftest.
$ac_ext
5275 cat >>conftest.
$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "free" >/dev
/null
2>&1; then
5284 ac_cv_header_stdc
=no
5290 if test $ac_cv_header_stdc = yes; then
5291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5292 if test "$cross_compiling" = yes; then
5295 cat >conftest.
$ac_ext <<_ACEOF
5298 cat confdefs.h
>>conftest.
$ac_ext
5299 cat >>conftest.
$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5325 rm -f conftest
$ac_exeext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5338 echo "$as_me: program exited with status $ac_status" >&5
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.
$ac_ext >&5
5343 ac_cv_header_stdc
=no
5345 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5351 if test $ac_cv_header_stdc = yes; then
5353 cat >>confdefs.h
<<\_ACEOF
5354 #define STDC_HEADERS 1
5359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5369 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5370 inttypes.h stdint.h unistd.h
5372 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 echo "$as_me:$LINENO: checking for $ac_header" >&5
5374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 cat confdefs.h
>>conftest.
$ac_ext
5382 cat >>conftest.
$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5386 #include <$ac_header>
5388 rm -f conftest.
$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1
>conftest.err
5394 cat conftest.err
>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try
='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try
='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 eval "$as_ac_Header=yes"
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.
$ac_ext >&5
5415 eval "$as_ac_Header=no"
5417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5422 cat >>confdefs.h
<<_ACEOF
5423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5434 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5436 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5438 echo "$as_me:$LINENO: checking for $ac_header" >&5
5439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5446 # Is the header compilable?
5447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5449 cat >conftest.
$ac_ext <<_ACEOF
5452 cat confdefs.h
>>conftest.
$ac_ext
5453 cat >>conftest.
$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 $ac_includes_default
5456 #include <$ac_header>
5458 rm -f conftest.
$ac_objext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460 (eval $ac_compile) 2>conftest.er1
5462 grep -v '^ *+' conftest.er1
>conftest.err
5464 cat conftest.err
>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try
='test -z "$ac_c_werror_flag"
5468 || test ! -s conftest.err'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; } &&
5474 { ac_try
='test -s conftest.$ac_objext'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5480 ac_header_compiler
=yes
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.
$ac_ext >&5
5485 ac_header_compiler
=no
5487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5489 echo "${ECHO_T}$ac_header_compiler" >&6
5491 # Is the header present?
5492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5494 cat >conftest.
$ac_ext <<_ACEOF
5497 cat confdefs.h
>>conftest.
$ac_ext
5498 cat >>conftest.
$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <$ac_header>
5502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5503 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5505 grep -v '^ *+' conftest.er1
>conftest.err
5507 cat conftest.err
>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } >/dev
/null
; then
5510 if test -s conftest.err
; then
5511 ac_cpp_err
=$ac_c_preproc_warn_flag
5512 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5519 if test -z "$ac_cpp_err"; then
5520 ac_header_preproc
=yes
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.
$ac_ext >&5
5525 ac_header_preproc
=no
5527 rm -f conftest.err conftest.
$ac_ext
5528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538 ac_header_preproc
=yes
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5555 ## ------------------------------------------ ##
5556 ## Report this to the AC_PACKAGE_NAME lists. ##
5557 ## ------------------------------------------ ##
5560 sed "s/^/$as_me: WARNING: /" >&2
5563 echo "$as_me:$LINENO: checking for $ac_header" >&5
5564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 eval "$as_ac_Header=\$ac_header_preproc"
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5575 cat >>confdefs.h
<<_ACEOF
5576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583 # Emulation library used on NetBSD.
5584 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5585 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5586 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 ac_check_lib_save_LIBS
=$LIBS
5590 LIBS
="-lossaudio $LIBS"
5591 cat >conftest.
$ac_ext <<_ACEOF
5594 cat confdefs.h
>>conftest.
$ac_ext
5595 cat >>conftest.
$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5613 rm -f conftest.
$ac_objext conftest
$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1
>conftest.err
5619 cat conftest.err
>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try
='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try
='test -s conftest$ac_exeext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_lib_ossaudio__oss_ioctl
=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.
$ac_ext >&5
5640 ac_cv_lib_ossaudio__oss_ioctl
=no
5642 rm -f conftest.err conftest.
$ac_objext \
5643 conftest
$ac_exeext conftest.
$ac_ext
5644 LIBS
=$ac_check_lib_save_LIBS
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5647 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5648 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5682 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5683 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5684 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5685 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5688 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5690 echo "$as_me:$LINENO: checking for $ac_header" >&5
5691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5698 # Is the header compilable?
5699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5701 cat >conftest.
$ac_ext <<_ACEOF
5704 cat confdefs.h
>>conftest.
$ac_ext
5705 cat >>conftest.
$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 $ac_includes_default
5708 #include <$ac_header>
5710 rm -f conftest.
$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5714 grep -v '^ *+' conftest.er1
>conftest.err
5716 cat conftest.err
>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try
='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try
='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_header_compiler
=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.
$ac_ext >&5
5737 ac_header_compiler
=no
5739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5741 echo "${ECHO_T}$ac_header_compiler" >&6
5743 # Is the header present?
5744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5746 cat >conftest.
$ac_ext <<_ACEOF
5749 cat confdefs.h
>>conftest.
$ac_ext
5750 cat >>conftest.
$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <$ac_header>
5754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5757 grep -v '^ *+' conftest.er1
>conftest.err
5759 cat conftest.err
>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } >/dev
/null
; then
5762 if test -s conftest.err
; then
5763 ac_cpp_err
=$ac_c_preproc_warn_flag
5764 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5771 if test -z "$ac_cpp_err"; then
5772 ac_header_preproc
=yes
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.
$ac_ext >&5
5777 ac_header_preproc
=no
5779 rm -f conftest.err conftest.
$ac_ext
5780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5781 echo "${ECHO_T}$ac_header_preproc" >&6
5783 # So? What about this header?
5784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5790 ac_header_preproc
=yes
5793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5807 ## ------------------------------------------ ##
5808 ## Report this to the AC_PACKAGE_NAME lists. ##
5809 ## ------------------------------------------ ##
5812 sed "s/^/$as_me: WARNING: /" >&2
5815 echo "$as_me:$LINENO: checking for $ac_header" >&5
5816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 eval "$as_ac_Header=\$ac_header_preproc"
5822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5827 cat >>confdefs.h
<<_ACEOF
5828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5836 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5837 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5838 cat >conftest.
$ac_ext <<_ACEOF
5841 cat confdefs.h
>>conftest.
$ac_ext
5842 cat >>conftest.
$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <sys/personality.h>
5848 personality (PER_LINUX32)
5853 rm -f conftest.
$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1
>conftest.err
5859 cat conftest.err
>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try
='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try
='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 emacs_cv_personality_linux32
=yes
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5880 emacs_cv_personality_linux32
=no
5882 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5883 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5884 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5886 if test $emacs_cv_personality_linux32 = yes; then
5888 cat >>confdefs.h
<<\_ACEOF
5889 #define HAVE_PERSONALITY_LINUX32 1
5895 for ac_header
in term.h
5897 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5898 echo "$as_me:$LINENO: checking for $ac_header" >&5
5899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 cat >conftest.
$ac_ext <<_ACEOF
5906 cat confdefs.h
>>conftest.
$ac_ext
5907 cat >>conftest.
$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 #include <$ac_header>
5911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5912 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5914 grep -v '^ *+' conftest.er1
>conftest.err
5916 cat conftest.err
>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } >/dev
/null
; then
5919 if test -s conftest.err
; then
5920 ac_cpp_err
=$ac_c_preproc_warn_flag
5921 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5928 if test -z "$ac_cpp_err"; then
5929 eval "$as_ac_Header=yes"
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.
$ac_ext >&5
5934 eval "$as_ac_Header=no"
5936 rm -f conftest.err conftest.
$ac_ext
5938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5941 cat >>confdefs.h
<<_ACEOF
5942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5949 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5950 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5951 if test "${ac_cv_header_stdc+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 cat >conftest.
$ac_ext <<_ACEOF
5957 cat confdefs.h
>>conftest.
$ac_ext
5958 cat >>conftest.
$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5973 rm -f conftest.
$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5977 grep -v '^ *+' conftest.er1
>conftest.err
5979 cat conftest.err
>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try
='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try
='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_header_stdc
=yes
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.
$ac_ext >&5
6000 ac_cv_header_stdc
=no
6002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6004 if test $ac_cv_header_stdc = yes; then
6005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6006 cat >conftest.
$ac_ext <<_ACEOF
6009 cat confdefs.h
>>conftest.
$ac_ext
6010 cat >>conftest.
$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 $EGREP "memchr" >/dev
/null
2>&1; then
6019 ac_cv_header_stdc
=no
6025 if test $ac_cv_header_stdc = yes; then
6026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6027 cat >conftest.
$ac_ext <<_ACEOF
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "free" >/dev
/null
2>&1; then
6040 ac_cv_header_stdc
=no
6046 if test $ac_cv_header_stdc = yes; then
6047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6048 if test "$cross_compiling" = yes; then
6051 cat >conftest.
$ac_ext <<_ACEOF
6054 cat confdefs.h
>>conftest.
$ac_ext
6055 cat >>conftest.
$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6058 #if ((' ' & 0x0FF) == 0x020)
6059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6062 # define ISLOWER(c) \
6063 (('a' <= (c) && (c) <= 'i') \
6064 || ('j' <= (c) && (c) <= 'r') \
6065 || ('s' <= (c) && (c) <= 'z'))
6066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6074 for (i = 0; i < 256; i++)
6075 if (XOR (islower (i), ISLOWER (i))
6076 || toupper (i) != TOUPPER (i))
6081 rm -f conftest
$ac_exeext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6083 (eval $ac_link) 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6094 echo "$as_me: program exited with status $ac_status" >&5
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.
$ac_ext >&5
6099 ac_cv_header_stdc
=no
6101 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6106 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6107 if test $ac_cv_header_stdc = yes; then
6109 cat >>confdefs.h
<<\_ACEOF
6110 #define STDC_HEADERS 1
6115 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6116 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6117 if test "${ac_cv_header_time+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 cat >conftest.
$ac_ext <<_ACEOF
6123 cat confdefs.h
>>conftest.
$ac_ext
6124 cat >>conftest.
$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 #include <sys/time.h>
6133 if ((struct tm *) 0)
6139 rm -f conftest.
$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6143 grep -v '^ *+' conftest.er1
>conftest.err
6145 cat conftest.err
>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try
='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try
='test -s conftest.$ac_objext'
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_header_time
=yes
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.
$ac_ext >&5
6166 ac_cv_header_time
=no
6168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6171 echo "${ECHO_T}$ac_cv_header_time" >&6
6172 if test $ac_cv_header_time = yes; then
6174 cat >>confdefs.h
<<\_ACEOF
6175 #define TIME_WITH_SYS_TIME 1
6180 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6181 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6182 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6196 char *p = (char *) sys_siglist;
6203 rm -f conftest.
$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1
>conftest.err
6209 cat conftest.err
>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try
='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_have_decl_sys_siglist
=yes
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6230 ac_cv_have_decl_sys_siglist
=no
6232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6234 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6235 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6236 if test $ac_cv_have_decl_sys_siglist = yes; then
6238 cat >>confdefs.h
<<_ACEOF
6239 #define HAVE_DECL_SYS_SIGLIST 1
6244 cat >>confdefs.h
<<_ACEOF
6245 #define HAVE_DECL_SYS_SIGLIST 0
6252 if test $ac_cv_have_decl_sys_siglist != yes; then
6253 # For Tru64, at least:
6254 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6255 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6256 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 cat >conftest.
$ac_ext <<_ACEOF
6262 cat confdefs.h
>>conftest.
$ac_ext
6263 cat >>conftest.
$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6269 #ifndef __sys_siglist
6270 char *p = (char *) __sys_siglist;
6277 rm -f conftest.
$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try
='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try
='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_have_decl___sys_siglist
=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6304 ac_cv_have_decl___sys_siglist
=no
6306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6308 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6309 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6310 if test $ac_cv_have_decl___sys_siglist = yes; then
6312 cat >>confdefs.h
<<_ACEOF
6313 #define HAVE_DECL___SYS_SIGLIST 1
6318 cat >>confdefs.h
<<_ACEOF
6319 #define HAVE_DECL___SYS_SIGLIST 0
6326 if test $ac_cv_have_decl___sys_siglist = yes; then
6328 cat >>confdefs.h
<<\_ACEOF
6329 #define sys_siglist __sys_siglist
6334 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6335 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6336 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 cat >conftest.
$ac_ext <<_ACEOF
6342 cat confdefs.h
>>conftest.
$ac_ext
6343 cat >>conftest.
$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 #include <sys/types.h>
6346 #include <sys/wait.h>
6348 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6351 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6359 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6364 rm -f conftest.
$ac_objext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366 (eval $ac_compile) 2>conftest.er1
6368 grep -v '^ *+' conftest.er1
>conftest.err
6370 cat conftest.err
>&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try
='test -z "$ac_c_werror_flag"
6374 || test ! -s conftest.err'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; } &&
6380 { ac_try
='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_header_sys_wait_h
=yes
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.
$ac_ext >&5
6391 ac_cv_header_sys_wait_h
=no
6393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6396 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6397 if test $ac_cv_header_sys_wait_h = yes; then
6399 cat >>confdefs.h
<<\_ACEOF
6400 #define HAVE_SYS_WAIT_H 1
6406 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6407 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6408 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 cat >conftest.
$ac_ext <<_ACEOF
6414 cat confdefs.h
>>conftest.
$ac_ext
6415 cat >>conftest.
$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #ifdef TIME_WITH_SYS_TIME
6418 #include <sys/time.h>
6421 #ifdef HAVE_SYS_TIME_H
6422 #include <sys/time.h>
6433 static struct utimbuf x; x.actime = x.modtime;
6438 rm -f conftest.
$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>conftest.er1
6442 grep -v '^ *+' conftest.er1
>conftest.err
6444 cat conftest.err
>&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try
='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try
='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 emacs_cv_struct_utimbuf
=yes
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.
$ac_ext >&5
6465 emacs_cv_struct_utimbuf
=no
6467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6469 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6470 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6471 if test $emacs_cv_struct_utimbuf = yes; then
6473 cat >>confdefs.h
<<\_ACEOF
6474 #define HAVE_STRUCT_UTIMBUF 1
6479 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6480 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6481 if test "${ac_cv_type_signal+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 cat >conftest.
$ac_ext <<_ACEOF
6487 cat confdefs.h
>>conftest.
$ac_ext
6488 cat >>conftest.
$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <sys/types.h>
6496 extern "C" void (*signal (int, void (*)(int)))(int);
6498 void (*signal ()) ();
6509 rm -f conftest.
$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>conftest.er1
6513 grep -v '^ *+' conftest.er1
>conftest.err
6515 cat conftest.err
>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try
='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try
='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_type_signal
=void
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.
$ac_ext >&5
6536 ac_cv_type_signal
=int
6538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6540 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6541 echo "${ECHO_T}$ac_cv_type_signal" >&6
6543 cat >>confdefs.h
<<_ACEOF
6544 #define RETSIGTYPE $ac_cv_type_signal
6549 echo "$as_me:$LINENO: checking for speed_t" >&5
6550 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6551 if test "${emacs_cv_speed_t+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 cat >conftest.
$ac_ext <<_ACEOF
6557 cat confdefs.h
>>conftest.
$ac_ext
6558 cat >>conftest.
$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <termios.h>
6569 rm -f conftest.
$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>conftest.er1
6573 grep -v '^ *+' conftest.er1
>conftest.err
6575 cat conftest.err
>&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try
='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try
='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 emacs_cv_speed_t
=yes
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.
$ac_ext >&5
6598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6600 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6601 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6602 if test $emacs_cv_speed_t = yes; then
6604 cat >>confdefs.h
<<\_ACEOF
6605 #define HAVE_SPEED_T 1
6610 echo "$as_me:$LINENO: checking for struct timeval" >&5
6611 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6612 if test "${emacs_cv_struct_timeval+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 cat >conftest.
$ac_ext <<_ACEOF
6618 cat confdefs.h
>>conftest.
$ac_ext
6619 cat >>conftest.
$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #ifdef TIME_WITH_SYS_TIME
6622 #include <sys/time.h>
6625 #ifdef HAVE_SYS_TIME_H
6626 #include <sys/time.h>
6634 static struct timeval x; x.tv_sec = x.tv_usec;
6639 rm -f conftest.
$ac_objext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6641 (eval $ac_compile) 2>conftest.er1
6643 grep -v '^ *+' conftest.er1
>conftest.err
6645 cat conftest.err
>&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try
='test -z "$ac_c_werror_flag"
6649 || test ! -s conftest.err'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try
='test -s conftest.$ac_objext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 emacs_cv_struct_timeval
=yes
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.
$ac_ext >&5
6666 emacs_cv_struct_timeval
=no
6668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6670 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6671 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6672 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6673 if test $emacs_cv_struct_timeval = yes; then
6675 cat >>confdefs.h
<<\_ACEOF
6676 #define HAVE_TIMEVAL 1
6681 echo "$as_me:$LINENO: checking for struct exception" >&5
6682 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6683 if test "${emacs_cv_struct_exception+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6696 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6701 rm -f conftest.
$ac_objext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6703 (eval $ac_compile) 2>conftest.er1
6705 grep -v '^ *+' conftest.er1
>conftest.err
6707 cat conftest.err
>&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try
='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try
='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 emacs_cv_struct_exception
=yes
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.
$ac_ext >&5
6728 emacs_cv_struct_exception
=no
6730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6732 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6733 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6734 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6735 if test $emacs_cv_struct_exception != yes; then
6737 cat >>confdefs.h
<<\_ACEOF
6738 #define NO_MATHERR 1
6744 for ac_header
in sys
/socket.h
6746 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6756 # Is the header compilable?
6757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6759 cat >conftest.
$ac_ext <<_ACEOF
6762 cat confdefs.h
>>conftest.
$ac_ext
6763 cat >>conftest.
$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 $ac_includes_default
6766 #include <$ac_header>
6768 rm -f conftest.
$ac_objext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6770 (eval $ac_compile) 2>conftest.er1
6772 grep -v '^ *+' conftest.er1
>conftest.err
6774 cat conftest.err
>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try
='test -z "$ac_c_werror_flag"
6778 || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try
='test -s conftest.$ac_objext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_header_compiler
=yes
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.
$ac_ext >&5
6795 ac_header_compiler
=no
6797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6799 echo "${ECHO_T}$ac_header_compiler" >&6
6801 # Is the header present?
6802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6804 cat >conftest.
$ac_ext <<_ACEOF
6807 cat confdefs.h
>>conftest.
$ac_ext
6808 cat >>conftest.
$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #include <$ac_header>
6812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6815 grep -v '^ *+' conftest.er1
>conftest.err
6817 cat conftest.err
>&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } >/dev
/null
; then
6820 if test -s conftest.err
; then
6821 ac_cpp_err
=$ac_c_preproc_warn_flag
6822 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6829 if test -z "$ac_cpp_err"; then
6830 ac_header_preproc
=yes
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.
$ac_ext >&5
6835 ac_header_preproc
=no
6837 rm -f conftest.err conftest.
$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6839 echo "${ECHO_T}$ac_header_preproc" >&6
6841 # So? What about this header?
6842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6848 ac_header_preproc
=yes
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6865 ## ------------------------------------------ ##
6866 ## Report this to the AC_PACKAGE_NAME lists. ##
6867 ## ------------------------------------------ ##
6870 sed "s/^/$as_me: WARNING: /" >&2
6873 echo "$as_me:$LINENO: checking for $ac_header" >&5
6874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 eval "$as_ac_Header=\$ac_header_preproc"
6880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6885 cat >>confdefs.h
<<_ACEOF
6886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6894 for ac_header
in net
/if.h
6896 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6897 echo "$as_me:$LINENO: checking for $ac_header" >&5
6898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 cat >conftest.
$ac_ext <<_ACEOF
6905 cat confdefs.h
>>conftest.
$ac_ext
6906 cat >>conftest.
$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6909 #if HAVE_SYS_SOCKET_H
6910 #include <sys/socket.h>
6913 #include <$ac_header>
6915 rm -f conftest.
$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>conftest.er1
6919 grep -v '^ *+' conftest.er1
>conftest.err
6921 cat conftest.err
>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try
='test -z "$ac_c_werror_flag"
6925 || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try
='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 eval "$as_ac_Header=yes"
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.
$ac_ext >&5
6942 eval "$as_ac_Header=no"
6944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6949 cat >>confdefs.h
<<_ACEOF
6950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6958 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6959 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6960 if test "${ac_cv_struct_tm+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 cat >conftest.
$ac_ext <<_ACEOF
6966 cat confdefs.h
>>conftest.
$ac_ext
6967 cat >>conftest.
$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 #include <sys/types.h>
6975 struct tm *tp; tp->tm_sec;
6980 rm -f conftest.
$ac_objext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6982 (eval $ac_compile) 2>conftest.er1
6984 grep -v '^ *+' conftest.er1
>conftest.err
6986 cat conftest.err
>&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } &&
6989 { ac_try
='test -z "$ac_c_werror_flag"
6990 || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try
='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_struct_tm
=time.h
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.
$ac_ext >&5
7007 ac_cv_struct_tm
=sys
/time.h
7009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7011 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7012 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7013 if test $ac_cv_struct_tm = sys
/time.h
; then
7015 cat >>confdefs.h
<<\_ACEOF
7016 #define TM_IN_SYS_TIME 1
7021 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7022 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7023 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 cat >conftest.
$ac_ext <<_ACEOF
7029 cat confdefs.h
>>conftest.
$ac_ext
7030 cat >>conftest.
$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <sys/types.h>
7033 #include <$ac_cv_struct_tm>
7039 static struct tm ac_aggr;
7040 if (ac_aggr.tm_zone)
7046 rm -f conftest.
$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>conftest.er1
7050 grep -v '^ *+' conftest.er1
>conftest.err
7052 cat conftest.err
>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try
='test -z "$ac_c_werror_flag"
7056 || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try
='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_member_struct_tm_tm_zone
=yes
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.
$ac_ext >&5
7073 cat >conftest.
$ac_ext <<_ACEOF
7076 cat confdefs.h
>>conftest.
$ac_ext
7077 cat >>conftest.
$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 #include <sys/types.h>
7080 #include <$ac_cv_struct_tm>
7086 static struct tm ac_aggr;
7087 if (sizeof ac_aggr.tm_zone)
7093 rm -f conftest.
$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>conftest.er1
7097 grep -v '^ *+' conftest.er1
>conftest.err
7099 cat conftest.err
>&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try
='test -z "$ac_c_werror_flag"
7103 || test ! -s conftest.err'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; } &&
7109 { ac_try
='test -s conftest.$ac_objext'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 ac_cv_member_struct_tm_tm_zone
=yes
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.
$ac_ext >&5
7120 ac_cv_member_struct_tm_tm_zone
=no
7122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7127 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7128 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7130 cat >>confdefs.h
<<_ACEOF
7131 #define HAVE_STRUCT_TM_TM_ZONE 1
7137 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7139 cat >>confdefs.h
<<\_ACEOF
7140 #define HAVE_TM_ZONE 1
7144 echo "$as_me:$LINENO: checking for tzname" >&5
7145 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7146 if test "${ac_cv_var_tzname+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 cat >conftest.
$ac_ext <<_ACEOF
7152 cat confdefs.h
>>conftest.
$ac_ext
7153 cat >>conftest.
$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7156 #ifndef tzname /* For SGI. */
7157 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7168 rm -f conftest.
$ac_objext conftest
$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7172 grep -v '^ *+' conftest.er1
>conftest.err
7174 cat conftest.err
>&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try
='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try
='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 ac_cv_var_tzname
=yes
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.
$ac_ext >&5
7197 rm -f conftest.err conftest.
$ac_objext \
7198 conftest
$ac_exeext conftest.
$ac_ext
7200 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7201 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7202 if test $ac_cv_var_tzname = yes; then
7204 cat >>confdefs.h
<<\_ACEOF
7205 #define HAVE_TZNAME 1
7211 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7212 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7213 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 cat >conftest.
$ac_ext <<_ACEOF
7219 cat confdefs.h
>>conftest.
$ac_ext
7220 cat >>conftest.
$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7227 static struct tm ac_aggr;
7228 if (ac_aggr.tm_gmtoff)
7234 rm -f conftest.
$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236 (eval $ac_compile) 2>conftest.er1
7238 grep -v '^ *+' conftest.er1
>conftest.err
7240 cat conftest.err
>&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try
='test -z "$ac_c_werror_flag"
7244 || test ! -s conftest.err'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try
='test -s conftest.$ac_objext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7256 ac_cv_member_struct_tm_tm_gmtoff
=yes
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.
$ac_ext >&5
7261 cat >conftest.
$ac_ext <<_ACEOF
7264 cat confdefs.h
>>conftest.
$ac_ext
7265 cat >>conftest.
$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7272 static struct tm ac_aggr;
7273 if (sizeof ac_aggr.tm_gmtoff)
7279 rm -f conftest.
$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7283 grep -v '^ *+' conftest.er1
>conftest.err
7285 cat conftest.err
>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try
='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try
='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_member_struct_tm_tm_gmtoff
=yes
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.
$ac_ext >&5
7306 ac_cv_member_struct_tm_tm_gmtoff
=no
7308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7313 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7314 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7316 cat >>confdefs.h
<<\_ACEOF
7317 #define HAVE_TM_GMTOFF 1
7322 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7323 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7324 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 cat >conftest.
$ac_ext <<_ACEOF
7330 cat confdefs.h
>>conftest.
$ac_ext
7331 cat >>conftest.
$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7334 #if HAVE_SYS_SOCKET_H
7335 #include <sys/socket.h>
7344 static struct ifreq ac_aggr;
7345 if (ac_aggr.ifr_flags)
7351 rm -f conftest.
$ac_objext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7353 (eval $ac_compile) 2>conftest.er1
7355 grep -v '^ *+' conftest.er1
>conftest.err
7357 cat conftest.err
>&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
7360 { ac_try
='test -z "$ac_c_werror_flag"
7361 || test ! -s conftest.err'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; } &&
7367 { ac_try
='test -s conftest.$ac_objext'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 ac_cv_member_struct_ifreq_ifr_flags
=yes
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.
$ac_ext >&5
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7385 #if HAVE_SYS_SOCKET_H
7386 #include <sys/socket.h>
7395 static struct ifreq ac_aggr;
7396 if (sizeof ac_aggr.ifr_flags)
7402 rm -f conftest.
$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>conftest.er1
7406 grep -v '^ *+' conftest.er1
>conftest.err
7408 cat conftest.err
>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try
='test -z "$ac_c_werror_flag"
7412 || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try
='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_member_struct_ifreq_ifr_flags
=yes
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.
$ac_ext >&5
7429 ac_cv_member_struct_ifreq_ifr_flags
=no
7431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7437 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7439 cat >>confdefs.h
<<_ACEOF
7440 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7445 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7446 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7447 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 cat >conftest.
$ac_ext <<_ACEOF
7453 cat confdefs.h
>>conftest.
$ac_ext
7454 cat >>conftest.
$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7457 #if HAVE_SYS_SOCKET_H
7458 #include <sys/socket.h>
7467 static struct ifreq ac_aggr;
7468 if (ac_aggr.ifr_hwaddr)
7474 rm -f conftest.
$ac_objext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476 (eval $ac_compile) 2>conftest.er1
7478 grep -v '^ *+' conftest.er1
>conftest.err
7480 cat conftest.err
>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try
='test -z "$ac_c_werror_flag"
7484 || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try
='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.
$ac_ext >&5
7501 cat >conftest.
$ac_ext <<_ACEOF
7504 cat confdefs.h
>>conftest.
$ac_ext
7505 cat >>conftest.
$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7508 #if HAVE_SYS_SOCKET_H
7509 #include <sys/socket.h>
7518 static struct ifreq ac_aggr;
7519 if (sizeof ac_aggr.ifr_hwaddr)
7525 rm -f conftest.
$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527 (eval $ac_compile) 2>conftest.er1
7529 grep -v '^ *+' conftest.er1
>conftest.err
7531 cat conftest.err
>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try
='test -z "$ac_c_werror_flag"
7535 || test ! -s conftest.err'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; } &&
7541 { ac_try
='test -s conftest.$ac_objext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.
$ac_ext >&5
7552 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7554 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7558 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7559 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7560 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7562 cat >>confdefs.h
<<_ACEOF
7563 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7568 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7569 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7570 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 cat >conftest.
$ac_ext <<_ACEOF
7576 cat confdefs.h
>>conftest.
$ac_ext
7577 cat >>conftest.
$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 $ac_includes_default
7580 #if HAVE_SYS_SOCKET_H
7581 #include <sys/socket.h>
7590 static struct ifreq ac_aggr;
7591 if (ac_aggr.ifr_netmask)
7597 rm -f conftest.
$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>conftest.er1
7601 grep -v '^ *+' conftest.er1
>conftest.err
7603 cat conftest.err
>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } &&
7606 { ac_try
='test -z "$ac_c_werror_flag"
7607 || test ! -s conftest.err'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; } &&
7613 { ac_try
='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.
$ac_ext >&5
7624 cat >conftest.
$ac_ext <<_ACEOF
7627 cat confdefs.h
>>conftest.
$ac_ext
7628 cat >>conftest.
$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 #if HAVE_SYS_SOCKET_H
7632 #include <sys/socket.h>
7641 static struct ifreq ac_aggr;
7642 if (sizeof ac_aggr.ifr_netmask)
7648 rm -f conftest.
$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7652 grep -v '^ *+' conftest.er1
>conftest.err
7654 cat conftest.err
>&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try
='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try
='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.
$ac_ext >&5
7675 ac_cv_member_struct_ifreq_ifr_netmask
=no
7677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7681 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7682 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7683 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7685 cat >>confdefs.h
<<_ACEOF
7686 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7691 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7692 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7693 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 cat >conftest.
$ac_ext <<_ACEOF
7699 cat confdefs.h
>>conftest.
$ac_ext
7700 cat >>conftest.
$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7703 #if HAVE_SYS_SOCKET_H
7704 #include <sys/socket.h>
7713 static struct ifreq ac_aggr;
7714 if (ac_aggr.ifr_broadaddr)
7720 rm -f conftest.
$ac_objext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7722 (eval $ac_compile) 2>conftest.er1
7724 grep -v '^ *+' conftest.er1
>conftest.err
7726 cat conftest.err
>&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try
='test -z "$ac_c_werror_flag"
7730 || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try
='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.
$ac_ext >&5
7747 cat >conftest.
$ac_ext <<_ACEOF
7750 cat confdefs.h
>>conftest.
$ac_ext
7751 cat >>conftest.
$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 $ac_includes_default
7754 #if HAVE_SYS_SOCKET_H
7755 #include <sys/socket.h>
7764 static struct ifreq ac_aggr;
7765 if (sizeof ac_aggr.ifr_broadaddr)
7771 rm -f conftest.
$ac_objext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7773 (eval $ac_compile) 2>conftest.er1
7775 grep -v '^ *+' conftest.er1
>conftest.err
7777 cat conftest.err
>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try
='test -z "$ac_c_werror_flag"
7781 || test ! -s conftest.err'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; } &&
7787 { ac_try
='test -s conftest.$ac_objext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.
$ac_ext >&5
7798 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7802 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7804 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7805 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7806 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7808 cat >>confdefs.h
<<_ACEOF
7809 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7814 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7815 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7816 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 cat >conftest.
$ac_ext <<_ACEOF
7822 cat confdefs.h
>>conftest.
$ac_ext
7823 cat >>conftest.
$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 $ac_includes_default
7826 #if HAVE_SYS_SOCKET_H
7827 #include <sys/socket.h>
7836 static struct ifreq ac_aggr;
7837 if (ac_aggr.ifr_addr)
7843 rm -f conftest.
$ac_objext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7845 (eval $ac_compile) 2>conftest.er1
7847 grep -v '^ *+' conftest.er1
>conftest.err
7849 cat conftest.err
>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try
='test -z "$ac_c_werror_flag"
7853 || test ! -s conftest.err'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; } &&
7859 { ac_try
='test -s conftest.$ac_objext'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 ac_cv_member_struct_ifreq_ifr_addr
=yes
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.
$ac_ext >&5
7870 cat >conftest.
$ac_ext <<_ACEOF
7873 cat confdefs.h
>>conftest.
$ac_ext
7874 cat >>conftest.
$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 $ac_includes_default
7877 #if HAVE_SYS_SOCKET_H
7878 #include <sys/socket.h>
7887 static struct ifreq ac_aggr;
7888 if (sizeof ac_aggr.ifr_addr)
7894 rm -f conftest.
$ac_objext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7896 (eval $ac_compile) 2>conftest.er1
7898 grep -v '^ *+' conftest.er1
>conftest.err
7900 cat conftest.err
>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try
='test -z "$ac_c_werror_flag"
7904 || test ! -s conftest.err'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try
='test -s conftest.$ac_objext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_cv_member_struct_ifreq_ifr_addr
=yes
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.
$ac_ext >&5
7921 ac_cv_member_struct_ifreq_ifr_addr
=no
7923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7927 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7928 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7929 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7931 cat >>confdefs.h
<<_ACEOF
7932 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7940 echo "$as_me:$LINENO: checking for function prototypes" >&5
7941 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7942 if test "$ac_cv_prog_cc_stdc" != no
; then
7943 echo "$as_me:$LINENO: result: yes" >&5
7944 echo "${ECHO_T}yes" >&6
7946 cat >>confdefs.h
<<\_ACEOF
7947 #define PROTOTYPES 1
7951 cat >>confdefs.h
<<\_ACEOF
7952 #define __PROTOTYPES 1
7956 echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6
7960 echo "$as_me:$LINENO: checking for working volatile" >&5
7961 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7962 if test "${ac_cv_c_volatile+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 cat >conftest.
$ac_ext <<_ACEOF
7968 cat confdefs.h
>>conftest.
$ac_ext
7969 cat >>conftest.
$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7982 rm -f conftest.
$ac_objext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7984 (eval $ac_compile) 2>conftest.er1
7986 grep -v '^ *+' conftest.er1
>conftest.err
7988 cat conftest.err
>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try
='test -z "$ac_c_werror_flag"
7992 || test ! -s conftest.err'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try
='test -s conftest.$ac_objext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_c_volatile
=yes
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.
$ac_ext >&5
8011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8013 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8014 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8015 if test $ac_cv_c_volatile = no
; then
8017 cat >>confdefs.h
<<\_ACEOF
8023 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8024 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8025 if test "${ac_cv_c_const+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 cat >conftest.
$ac_ext <<_ACEOF
8031 cat confdefs.h
>>conftest.
$ac_ext
8032 cat >>conftest.
$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8038 /* FIXME: Include the comments suggested by Paul. */
8040 /* Ultrix mips cc rejects this. */
8041 typedef int charset[2];
8043 /* SunOS 4.1.1 cc rejects this. */
8044 char const *const *ccp;
8046 /* NEC SVR4.0.2 mips cc rejects this. */
8047 struct point {int x, y;};
8048 static struct point const zero = {0,0};
8049 /* AIX XL C 1.02.0.0 rejects this.
8050 It does not let you subtract one const X* pointer from another in
8051 an arm of an if-expression whose if-part is not a constant
8053 const char *g = "string";
8054 ccp = &g + (g ? g-g : 0);
8055 /* HPUX 7.0 cc rejects these. */
8058 ccp = (char const *const *) p;
8059 { /* SCO 3.2v4 cc rejects this. */
8061 char const *s = 0 ? (char *) 0 : (char const *) 0;
8065 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8067 const int *foo = &x[0];
8070 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8071 typedef const int *iptr;
8075 { /* AIX XL C 1.02.0.0 rejects this saying
8076 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8077 struct s { int j; const int *ap[3]; };
8078 struct s *b; b->j = 5;
8080 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8089 rm -f conftest.
$ac_objext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091 (eval $ac_compile) 2>conftest.er1
8093 grep -v '^ *+' conftest.er1
>conftest.err
8095 cat conftest.err
>&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try
='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try
='test -s conftest.$ac_objext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.
$ac_ext >&5
8118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8121 echo "${ECHO_T}$ac_cv_c_const" >&6
8122 if test $ac_cv_c_const = no
; then
8124 cat >>confdefs.h
<<\_ACEOF
8130 echo "$as_me:$LINENO: checking for void * support" >&5
8131 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8132 if test "${emacs_cv_void_star+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 cat >conftest.
$ac_ext <<_ACEOF
8138 cat confdefs.h
>>conftest.
$ac_ext
8139 cat >>conftest.
$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8150 rm -f conftest.
$ac_objext
8151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8152 (eval $ac_compile) 2>conftest.er1
8154 grep -v '^ *+' conftest.er1
>conftest.err
8156 cat conftest.err
>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8159 { ac_try
='test -z "$ac_c_werror_flag"
8160 || test ! -s conftest.err'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; } &&
8166 { ac_try
='test -s conftest.$ac_objext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 emacs_cv_void_star
=yes
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.
$ac_ext >&5
8177 emacs_cv_void_star
=no
8179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8181 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8182 echo "${ECHO_T}$emacs_cv_void_star" >&6
8183 if test $emacs_cv_void_star = yes; then
8184 cat >>confdefs.h
<<\_ACEOF
8185 #define POINTER_TYPE void
8189 cat >>confdefs.h
<<\_ACEOF
8190 #define POINTER_TYPE char
8199 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8200 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8201 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8202 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 cat >conftest.
make <<\_ACEOF
8207 @
echo 'ac_maketemp="$(MAKE)"'
8209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8210 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8211 if test -n "$ac_maketemp"; then
8212 eval ac_cv_prog_make_
${ac_make}_set
=yes
8214 eval ac_cv_prog_make_
${ac_make}_set
=no
8218 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8219 echo "$as_me:$LINENO: result: yes" >&5
8220 echo "${ECHO_T}yes" >&6
8223 echo "$as_me:$LINENO: result: no" >&5
8224 echo "${ECHO_T}no" >&6
8225 SET_MAKE
="MAKE=${MAKE-make}"
8229 echo "$as_me:$LINENO: checking for long file names" >&5
8230 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8231 if test "${ac_cv_sys_long_file_names+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 ac_cv_sys_long_file_names
=yes
8235 # Test for long file names in all the places we know might matter:
8236 # . the current directory, where building will happen
8237 # $prefix/lib where we will be installing things
8238 # $exec_prefix/lib likewise
8239 # eval it to expand exec_prefix.
8240 # $TMPDIR if set, where it might want to write temporary files
8241 # if $TMPDIR is not set:
8242 # /tmp where it might want to write temporary files
8245 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8248 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8250 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8251 test -d $ac_dir ||
continue
8252 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8253 ac_xdir
=$ac_dir/cf$$
8254 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8255 ac_tf1
=$ac_xdir/conftest9012345
8256 ac_tf2
=$ac_xdir/conftest9012346
8257 (echo 1 >$ac_tf1) 2>/dev
/null
8258 (echo 2 >$ac_tf2) 2>/dev
/null
8259 ac_val
=`cat $ac_tf1 2>/dev/null`
8260 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8261 ac_cv_sys_long_file_names
=no
8262 rm -rf $ac_xdir 2>/dev
/null
8265 rm -rf $ac_xdir 2>/dev
/null
8268 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8269 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8270 if test $ac_cv_sys_long_file_names = yes; then
8272 cat >>confdefs.h
<<\_ACEOF
8273 #define HAVE_LONG_FILE_NAMES 1
8279 #### Choose a window system.
8281 echo "$as_me:$LINENO: checking for X" >&5
8282 echo $ECHO_N "checking for X... $ECHO_C" >&6
8285 # Check whether --with-x or --without-x was given.
8286 if test "${with_x+set}" = set; then
8290 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8291 if test "x$with_x" = xno
; then
8292 # The user explicitly disabled X.
8295 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8296 # Both variables are already set.
8299 if test "${ac_cv_have_x+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 # One or both of the vars are not set, and there is no cached value.
8303 ac_x_includes
=no ac_x_libraries
=no
8305 if mkdir conftest.dir
; then
8307 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8308 cat >Imakefile
<<'_ACEOF'
8310 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8312 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8313 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8314 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8315 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8316 for ac_extension
in a so sl
; do
8317 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8318 test -f $ac_im_libdir/libX11.
$ac_extension; then
8319 ac_im_usrlibdir
=$ac_im_libdir; break
8322 # Screen out bogus values from the imake configuration. They are
8323 # bogus both because they are the default anyway, and because
8324 # using them would break gcc on systems where it needs fixed includes.
8325 case $ac_im_incroot in
8327 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8329 case $ac_im_usrlibdir in
8331 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8338 # Standard set of common directories for X headers.
8339 # Check X11 before X11Rn because it is often a symlink to the current release.
8351 /usr/local/X11/include
8352 /usr/local/X11R6/include
8353 /usr/local/X11R5/include
8354 /usr/local/X11R4/include
8356 /usr/local/include/X11
8357 /usr/local/include/X11R6
8358 /usr/local/include/X11R5
8359 /usr/local/include/X11R4
8363 /usr/XFree86/include/X11
8367 /usr/unsupported/include
8369 /usr/local/x11r5/include
8370 /usr/lpp/Xamples/include
8372 /usr/openwin/include
8373 /usr/openwin/share/include'
8375 if test "$ac_x_includes" = no
; then
8376 # Guess where to find include files, by looking for Intrinsic.h.
8377 # First, try using that file with no special directory specified.
8378 cat >conftest.
$ac_ext <<_ACEOF
8381 cat confdefs.h
>>conftest.
$ac_ext
8382 cat >>conftest.
$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 #include <X11/Intrinsic.h>
8386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8387 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8389 grep -v '^ *+' conftest.er1
>conftest.err
8391 cat conftest.err
>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } >/dev
/null
; then
8394 if test -s conftest.err
; then
8395 ac_cpp_err
=$ac_c_preproc_warn_flag
8396 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8403 if test -z "$ac_cpp_err"; then
8404 # We can compile using X headers with no special include directory.
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.
$ac_ext >&5
8410 for ac_dir
in $ac_x_header_dirs; do
8411 if test -r "$ac_dir/X11/Intrinsic.h"; then
8412 ac_x_includes
=$ac_dir
8417 rm -f conftest.err conftest.
$ac_ext
8418 fi # $ac_x_includes = no
8420 if test "$ac_x_libraries" = no
; then
8421 # Check for the libraries.
8422 # See if we find them without any special options.
8423 # Don't add to $LIBS permanently.
8426 cat >conftest.
$ac_ext <<_ACEOF
8429 cat confdefs.h
>>conftest.
$ac_ext
8430 cat >>conftest.
$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 #include <X11/Intrinsic.h>
8441 rm -f conftest.
$ac_objext conftest
$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1
>conftest.err
8447 cat conftest.err
>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try
='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try
='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8464 # We can link X programs with no special library path.
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.
$ac_ext >&5
8471 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8473 # Don't even attempt the hair of trying to link an X program!
8474 for ac_extension
in a so sl
; do
8475 if test -r $ac_dir/libXt.
$ac_extension; then
8476 ac_x_libraries
=$ac_dir
8482 rm -f conftest.err conftest.
$ac_objext \
8483 conftest
$ac_exeext conftest.
$ac_ext
8484 fi # $ac_x_libraries = no
8486 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8487 # Didn't find X anywhere. Cache the known absence of X.
8488 ac_cv_have_x
="have_x=no"
8490 # Record where we found X for the cache.
8491 ac_cv_have_x
="have_x=yes \
8492 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8497 eval "$ac_cv_have_x"
8500 if test "$have_x" != yes; then
8501 echo "$as_me:$LINENO: result: $have_x" >&5
8502 echo "${ECHO_T}$have_x" >&6
8505 # If each of the values was on the command line, it overrides each guess.
8506 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8507 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8508 # Update the cache value to reflect the command line values.
8509 ac_cv_have_x
="have_x=yes \
8510 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8511 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8512 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8515 if test "$no_x" = yes; then
8521 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8522 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8523 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8524 x_default_search_path
=""
8525 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8527 ${x_library}/X11/%L/%T/%N%C%S:\
8528 ${x_library}/X11/%l/%T/%N%C%S:\
8529 ${x_library}/X11/%T/%N%C%S:\
8530 ${x_library}/X11/%L/%T/%N%S:\
8531 ${x_library}/X11/%l/%T/%N%S:\
8532 ${x_library}/X11/%T/%N%S"
8533 if test x
"${x_default_search_path}" = x
; then
8534 x_default_search_path
=${x_search_path}
8536 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8540 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8541 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8544 if test x
"${x_includes}" = x
; then
8545 bitmapdir
=/usr
/include
/X11
/bitmaps
8547 # accumulate include directories that have X11 bitmap subdirectories
8549 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8550 if test -d "${bmd}/X11/bitmaps"; then
8551 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8553 if test -d "${bmd}/bitmaps"; then
8554 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8557 if test ${bmd_acc} != "dummyval"; then
8558 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8563 if test "${with_carbon}" != no
; then
8564 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8565 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8566 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8567 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8571 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8573 # Is the header compilable?
8574 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8575 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8576 cat >conftest.
$ac_ext <<_ACEOF
8579 cat confdefs.h
>>conftest.
$ac_ext
8580 cat >>conftest.
$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 #include <Carbon/Carbon.h>
8585 rm -f conftest.
$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8589 grep -v '^ *+' conftest.er1
>conftest.err
8591 cat conftest.err
>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try
='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try
='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_header_compiler
=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.
$ac_ext >&5
8612 ac_header_compiler
=no
8614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616 echo "${ECHO_T}$ac_header_compiler" >&6
8618 # Is the header present?
8619 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8620 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8621 cat >conftest.
$ac_ext <<_ACEOF
8624 cat confdefs.h
>>conftest.
$ac_ext
8625 cat >>conftest.
$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 #include <Carbon/Carbon.h>
8629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8630 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8632 grep -v '^ *+' conftest.er1
>conftest.err
8634 cat conftest.err
>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } >/dev
/null
; then
8637 if test -s conftest.err
; then
8638 ac_cpp_err
=$ac_c_preproc_warn_flag
8639 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8646 if test -z "$ac_cpp_err"; then
8647 ac_header_preproc
=yes
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.
$ac_ext >&5
8652 ac_header_preproc
=no
8654 rm -f conftest.err conftest.
$ac_ext
8655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8656 echo "${ECHO_T}$ac_header_preproc" >&6
8658 # So? What about this header?
8659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8661 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8662 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8664 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8665 ac_header_preproc
=yes
8668 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8669 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8671 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8673 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8675 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8677 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8679 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8682 ## ------------------------------------------ ##
8683 ## Report this to the AC_PACKAGE_NAME lists. ##
8684 ## ------------------------------------------ ##
8687 sed "s/^/$as_me: WARNING: /" >&2
8690 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8691 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8692 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8697 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8698 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8701 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8707 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8708 if test "${with_carbon+set}" != set \
8709 && test "${carbon_appdir_x+set}" != set; then
8713 if test "${HAVE_CARBON}" = yes; then
8717 case "${window_system}" in
8721 case "${with_x_toolkit}" in
8722 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8723 motif
) USE_X_TOOLKIT
=MOTIF
;;
8725 USE_X_TOOLKIT
=none
;;
8726 no
) USE_X_TOOLKIT
=none
;;
8727 * ) USE_X_TOOLKIT
=maybe
;;
8737 ### If we're using X11, we should use the X menu package.
8740 yes ) HAVE_MENUS
=yes ;;
8743 if test "${opsys}" = "hpux9"; then
8744 case "${x_libraries}" in
8746 opsysfile
="s/hpux9-x11r4.h"
8751 if test "${opsys}" = "hpux9shr"; then
8752 case "${x_libraries}" in
8754 opsysfile
="s/hpux9shxr4.h"
8759 ### Compute the unexec source name from the object name.
8760 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8762 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8763 # Assume not, until told otherwise.
8766 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8767 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8768 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 cat >conftest.
$ac_ext <<_ACEOF
8774 cat confdefs.h
>>conftest.
$ac_ext
8775 cat >>conftest.
$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8779 #define malloc_get_state innocuous_malloc_get_state
8781 /* System header to define __stub macros and hopefully few prototypes,
8782 which can conflict with char malloc_get_state (); below.
8783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8784 <limits.h> exists even on freestanding compilers. */
8787 # include <limits.h>
8789 # include <assert.h>
8792 #undef malloc_get_state
8794 /* Override any gcc2 internal prototype to avoid an error. */
8799 /* We use char because int might match the return type of a gcc2
8800 builtin and then its argument prototype would still apply. */
8801 char malloc_get_state ();
8802 /* The GNU C library defines this for functions which it implements
8803 to always fail with ENOSYS. Some functions are actually named
8804 something starting with __ and the normal name is an alias. */
8805 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8808 char (*f) () = malloc_get_state;
8817 return f != malloc_get_state;
8822 rm -f conftest.
$ac_objext conftest
$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1
>conftest.err
8828 cat conftest.err
>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try
='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try
='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_func_malloc_get_state
=yes
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.
$ac_ext >&5
8849 ac_cv_func_malloc_get_state
=no
8851 rm -f conftest.err conftest.
$ac_objext \
8852 conftest
$ac_exeext conftest.
$ac_ext
8854 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8855 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8856 if test $ac_cv_func_malloc_get_state = yes; then
8862 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8863 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8864 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 cat >conftest.
$ac_ext <<_ACEOF
8870 cat confdefs.h
>>conftest.
$ac_ext
8871 cat >>conftest.
$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8875 #define malloc_set_state innocuous_malloc_set_state
8877 /* System header to define __stub macros and hopefully few prototypes,
8878 which can conflict with char malloc_set_state (); below.
8879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8880 <limits.h> exists even on freestanding compilers. */
8883 # include <limits.h>
8885 # include <assert.h>
8888 #undef malloc_set_state
8890 /* Override any gcc2 internal prototype to avoid an error. */
8895 /* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8897 char malloc_set_state ();
8898 /* The GNU C library defines this for functions which it implements
8899 to always fail with ENOSYS. Some functions are actually named
8900 something starting with __ and the normal name is an alias. */
8901 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8904 char (*f) () = malloc_set_state;
8913 return f != malloc_set_state;
8918 rm -f conftest.
$ac_objext conftest
$ac_exeext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>conftest.er1
8922 grep -v '^ *+' conftest.er1
>conftest.err
8924 cat conftest.err
>&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try
='test -z "$ac_c_werror_flag"
8928 || test ! -s conftest.err'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try
='test -s conftest$ac_exeext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_cv_func_malloc_set_state
=yes
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.
$ac_ext >&5
8945 ac_cv_func_malloc_set_state
=no
8947 rm -f conftest.err conftest.
$ac_objext \
8948 conftest
$ac_exeext conftest.
$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8951 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8952 if test $ac_cv_func_malloc_set_state = yes; then
8958 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8959 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8960 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 cat >conftest.
$ac_ext <<_ACEOF
8966 cat confdefs.h
>>conftest.
$ac_ext
8967 cat >>conftest.
$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 extern void (* __after_morecore_hook)();
8973 __after_morecore_hook = 0
8978 rm -f conftest.
$ac_objext conftest
$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>conftest.er1
8982 grep -v '^ *+' conftest.er1
>conftest.err
8984 cat conftest.err
>&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try
='test -z "$ac_c_werror_flag"
8988 || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try
='test -s conftest$ac_exeext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 emacs_cv_var___after_morecore_hook
=yes
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.
$ac_ext >&5
9005 emacs_cv_var___after_morecore_hook
=no
9007 rm -f conftest.err conftest.
$ac_objext \
9008 conftest
$ac_exeext conftest.
$ac_ext
9010 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9011 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9012 if test $emacs_cv_var___after_morecore_hook = no
; then
9015 if test "${system_malloc}" = "yes"; then
9018 (The GNU allocators don't work with this system configuration.)"
9020 if test "$doug_lea_malloc" = "yes" ; then
9021 if test "$GNU_MALLOC" = yes ; then
9023 (Using Doug Lea's new malloc from the GNU C Library.)"
9026 cat >>confdefs.h
<<\_ACEOF
9027 #define DOUG_LEA_MALLOC 1
9032 if test x
"${REL_ALLOC}" = x
; then
9033 REL_ALLOC
=${GNU_MALLOC}
9039 for ac_header
in stdlib.h unistd.h
9041 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043 echo "$as_me:$LINENO: checking for $ac_header" >&5
9044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9051 # Is the header compilable?
9052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9054 cat >conftest.
$ac_ext <<_ACEOF
9057 cat confdefs.h
>>conftest.
$ac_ext
9058 cat >>conftest.
$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 #include <$ac_header>
9063 rm -f conftest.
$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>conftest.er1
9067 grep -v '^ *+' conftest.er1
>conftest.err
9069 cat conftest.err
>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try
='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try
='test -s conftest.$ac_objext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_header_compiler
=yes
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.
$ac_ext >&5
9090 ac_header_compiler
=no
9092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6
9096 # Is the header present?
9097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9099 cat >conftest.
$ac_ext <<_ACEOF
9102 cat confdefs.h
>>conftest.
$ac_ext
9103 cat >>conftest.
$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 #include <$ac_header>
9107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9108 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9110 grep -v '^ *+' conftest.er1
>conftest.err
9112 cat conftest.err
>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } >/dev
/null
; then
9115 if test -s conftest.err
; then
9116 ac_cpp_err
=$ac_c_preproc_warn_flag
9117 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9124 if test -z "$ac_cpp_err"; then
9125 ac_header_preproc
=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.
$ac_ext >&5
9130 ac_header_preproc
=no
9132 rm -f conftest.err conftest.
$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9134 echo "${ECHO_T}$ac_header_preproc" >&6
9136 # So? What about this header?
9137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9143 ac_header_preproc
=yes
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9160 ## ------------------------------------------ ##
9161 ## Report this to the AC_PACKAGE_NAME lists. ##
9162 ## ------------------------------------------ ##
9165 sed "s/^/$as_me: WARNING: /" >&2
9168 echo "$as_me:$LINENO: checking for $ac_header" >&5
9169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 eval "$as_ac_Header=\$ac_header_preproc"
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h
<<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9189 for ac_func
in getpagesize
9191 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9192 echo "$as_me:$LINENO: checking for $ac_func" >&5
9193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_var+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 cat >conftest.
$ac_ext <<_ACEOF
9200 cat confdefs.h
>>conftest.
$ac_ext
9201 cat >>conftest.
$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9205 #define $ac_func innocuous_$ac_func
9207 /* System header to define __stub macros and hopefully few prototypes,
9208 which can conflict with char $ac_func (); below.
9209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9210 <limits.h> exists even on freestanding compilers. */
9213 # include <limits.h>
9215 # include <assert.h>
9220 /* Override any gcc2 internal prototype to avoid an error. */
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9228 /* The GNU C library defines this for functions which it implements
9229 to always fail with ENOSYS. Some functions are actually named
9230 something starting with __ and the normal name is an alias. */
9231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9234 char (*f) () = $ac_func;
9243 return f != $ac_func;
9248 rm -f conftest.
$ac_objext conftest
$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9252 grep -v '^ *+' conftest.er1
>conftest.err
9254 cat conftest.err
>&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try
='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try
='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 eval "$as_ac_var=yes"
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.
$ac_ext >&5
9275 eval "$as_ac_var=no"
9277 rm -f conftest.err conftest.
$ac_objext \
9278 conftest
$ac_exeext conftest.
$ac_ext
9280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9282 if test `eval echo '${'$as_ac_var'}'` = yes; then
9283 cat >>confdefs.h
<<_ACEOF
9284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9290 echo "$as_me:$LINENO: checking for working mmap" >&5
9291 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9292 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 if test "$cross_compiling" = yes; then
9296 ac_cv_func_mmap_fixed_mapped
=no
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9305 /* malloc might have been renamed as rpl_malloc. */
9308 /* Thanks to Mike Haertel and Jim Avera for this test.
9309 Here is a matrix of mmap possibilities:
9310 mmap private not fixed
9311 mmap private fixed at somewhere currently unmapped
9312 mmap private fixed at somewhere already mapped
9313 mmap shared not fixed
9314 mmap shared fixed at somewhere currently unmapped
9315 mmap shared fixed at somewhere already mapped
9316 For private mappings, we should verify that changes cannot be read()
9317 back from the file, nor mmap's back from the file at a different
9318 address. (There have been systems where private was not correctly
9319 implemented like the infamous i386 svr4.0, and systems where the
9320 VM page cache was not coherent with the file system buffer cache
9321 like early versions of FreeBSD and possibly contemporary NetBSD.)
9322 For shared mappings, we should conversely verify that changes get
9323 propagated back to all the places they're supposed to be.
9325 Grep wants private fixed already mapped.
9326 The main things grep needs to know about mmap are:
9327 * does it exist and is it safe to write into the mmap'd area
9328 * how to use it (BSD variants) */
9331 #include <sys/mman.h>
9333 #if !STDC_HEADERS && !HAVE_STDLIB_H
9337 /* This mess was copied from the GNU getpagesize.h. */
9338 #if !HAVE_GETPAGESIZE
9339 /* Assume that all systems that can run configure have sys/param.h. */
9340 # if !HAVE_SYS_PARAM_H
9341 # define HAVE_SYS_PARAM_H 1
9344 # ifdef _SC_PAGESIZE
9345 # define getpagesize() sysconf(_SC_PAGESIZE)
9346 # else /* no _SC_PAGESIZE */
9347 # if HAVE_SYS_PARAM_H
9348 # include <sys/param.h>
9349 # ifdef EXEC_PAGESIZE
9350 # define getpagesize() EXEC_PAGESIZE
9351 # else /* no EXEC_PAGESIZE */
9353 # define getpagesize() NBPG * CLSIZE
9356 # endif /* no CLSIZE */
9357 # else /* no NBPG */
9359 # define getpagesize() NBPC
9360 # else /* no NBPC */
9362 # define getpagesize() PAGESIZE
9363 # endif /* PAGESIZE */
9364 # endif /* no NBPC */
9365 # endif /* no NBPG */
9366 # endif /* no EXEC_PAGESIZE */
9367 # else /* no HAVE_SYS_PARAM_H */
9368 # define getpagesize() 8192 /* punt totally */
9369 # endif /* no HAVE_SYS_PARAM_H */
9370 # endif /* no _SC_PAGESIZE */
9372 #endif /* no HAVE_GETPAGESIZE */
9377 char *data, *data2, *data3;
9381 pagesize = getpagesize ();
9383 /* First, make a file with some known garbage in it. */
9384 data = (char *) malloc (pagesize);
9387 for (i = 0; i < pagesize; ++i)
9388 *(data + i) = rand ();
9390 fd = creat ("conftest.mmap", 0600);
9393 if (write (fd, data, pagesize) != pagesize)
9397 /* Next, try to mmap the file at a fixed address which already has
9398 something else allocated at it. If we can, also make sure that
9399 we see the same garbage. */
9400 fd = open ("conftest.mmap", O_RDWR);
9403 data2 = (char *) malloc (2 * pagesize);
9406 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9407 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9408 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9410 for (i = 0; i < pagesize; ++i)
9411 if (*(data + i) != *(data2 + i))
9414 /* Finally, make sure that changes to the mapped area do not
9415 percolate back to the file as seen by read(). (This is a bug on
9416 some variants of i386 svr4.0.) */
9417 for (i = 0; i < pagesize; ++i)
9418 *(data2 + i) = *(data2 + i) + 1;
9419 data3 = (char *) malloc (pagesize);
9422 if (read (fd, data3, pagesize) != pagesize)
9424 for (i = 0; i < pagesize; ++i)
9425 if (*(data + i) != *(data3 + i))
9431 rm -f conftest
$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_cv_func_mmap_fixed_mapped
=yes
9444 echo "$as_me: program exited with status $ac_status" >&5
9445 echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.
$ac_ext >&5
9449 ac_cv_func_mmap_fixed_mapped
=no
9451 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9455 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9456 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9458 cat >>confdefs.h
<<\_ACEOF
9465 if test $use_mmap_for_buffers = yes; then
9469 LIBS
="$libsrc_libs $LIBS"
9472 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9473 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9474 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 ac_check_lib_save_LIBS
=$LIBS
9479 cat >conftest.
$ac_ext <<_ACEOF
9482 cat confdefs.h
>>conftest.
$ac_ext
9483 cat >>conftest.
$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9486 /* Override any gcc2 internal prototype to avoid an error. */
9490 /* We use char because int might match the return type of a gcc2
9491 builtin and then its argument prototype would still apply. */
9501 rm -f conftest.
$ac_objext conftest
$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>conftest.er1
9505 grep -v '^ *+' conftest.er1
>conftest.err
9507 cat conftest.err
>&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try
='test -z "$ac_c_werror_flag"
9511 || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try
='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_cv_lib_dnet_dnet_ntoa
=yes
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.
$ac_ext >&5
9528 ac_cv_lib_dnet_dnet_ntoa
=no
9530 rm -f conftest.err conftest.
$ac_objext \
9531 conftest
$ac_exeext conftest.
$ac_ext
9532 LIBS
=$ac_check_lib_save_LIBS
9534 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9535 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9536 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9537 cat >>confdefs.h
<<_ACEOF
9538 #define HAVE_LIBDNET 1
9546 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9547 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9548 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 ac_check_lib_save_LIBS
=$LIBS
9553 cat >conftest.
$ac_ext <<_ACEOF
9556 cat confdefs.h
>>conftest.
$ac_ext
9557 cat >>conftest.
$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9569 rm -f conftest.
$ac_objext conftest
$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>conftest.er1
9573 grep -v '^ *+' conftest.er1
>conftest.err
9575 cat conftest.err
>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try
='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try
='test -s conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 ac_cv_lib_Xbsd_main
=yes
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.
$ac_ext >&5
9596 ac_cv_lib_Xbsd_main
=no
9598 rm -f conftest.err conftest.
$ac_objext \
9599 conftest
$ac_exeext conftest.
$ac_ext
9600 LIBS
=$ac_check_lib_save_LIBS
9602 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9603 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9604 if test $ac_cv_lib_Xbsd_main = yes; then
9605 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9610 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9611 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9612 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 ac_check_lib_save_LIBS
=$LIBS
9616 LIBS
="-lpthreads $LIBS"
9617 cat >conftest.
$ac_ext <<_ACEOF
9620 cat confdefs.h
>>conftest.
$ac_ext
9621 cat >>conftest.
$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9624 /* Override any gcc2 internal prototype to avoid an error. */
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9639 rm -f conftest.
$ac_objext conftest
$ac_exeext
9640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9641 (eval $ac_link) 2>conftest.er1
9643 grep -v '^ *+' conftest.er1
>conftest.err
9645 cat conftest.err
>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try
='test -z "$ac_c_werror_flag"
9649 || test ! -s conftest.err'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try
='test -s conftest$ac_exeext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 ac_cv_lib_pthreads_cma_open
=yes
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.
$ac_ext >&5
9666 ac_cv_lib_pthreads_cma_open
=no
9668 rm -f conftest.err conftest.
$ac_objext \
9669 conftest
$ac_exeext conftest.
$ac_ext
9670 LIBS
=$ac_check_lib_save_LIBS
9672 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9673 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9674 if test $ac_cv_lib_pthreads_cma_open = yes; then
9675 cat >>confdefs.h
<<_ACEOF
9676 #define HAVE_LIBPTHREADS 1
9679 LIBS
="-lpthreads $LIBS"
9684 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9685 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9686 if test -d /usr
/X386
/include
; then
9688 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9692 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9693 echo "${ECHO_T}$HAVE_XFREE386" >&6
9698 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9699 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9700 if test "${gdb_cv_bigtoc+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9706 *) gdb_cv_bigtoc
=-bbigtoc ;;
9709 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9710 cat >conftest.
$ac_ext <<_ACEOF
9713 cat confdefs.h
>>conftest.
$ac_ext
9714 cat >>conftest.
$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9725 rm -f conftest.
$ac_objext conftest
$ac_exeext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>conftest.er1
9729 grep -v '^ *+' conftest.er1
>conftest.err
9731 cat conftest.err
>&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try
='test -z "$ac_c_werror_flag"
9735 || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try
='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.
$ac_ext >&5
9754 rm -f conftest.err conftest.
$ac_objext \
9755 conftest
$ac_exeext conftest.
$ac_ext
9758 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9759 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9763 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9764 # used for the tests that follow. We set them back to REAL_CFLAGS and
9765 # REAL_CPPFLAGS later on.
9767 REAL_CPPFLAGS
="$CPPFLAGS"
9769 if test "${HAVE_X11}" = "yes"; then
9770 DEFS
="$C_SWITCH_X_SITE $DEFS"
9771 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9773 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9774 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9776 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9777 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9778 # but it's more convenient here to set LD_RUN_PATH
9779 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9780 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9781 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9785 if test "${opsys}" = "gnu-linux"; then
9786 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9787 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9788 cat >conftest.
$ac_ext <<_ACEOF
9791 cat confdefs.h
>>conftest.
$ac_ext
9792 cat >>conftest.
$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9798 XOpenDisplay ("foo");
9803 rm -f conftest.
$ac_objext conftest
$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9807 grep -v '^ *+' conftest.er1
>conftest.err
9809 cat conftest.err
>&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try
='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try
='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 xlinux_first_failure
=no
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.
$ac_ext >&5
9830 xlinux_first_failure
=yes
9832 rm -f conftest.err conftest.
$ac_objext \
9833 conftest
$ac_exeext conftest.
$ac_ext
9834 if test "${xlinux_first_failure}" = "yes"; then
9835 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9836 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9837 OLD_CPPFLAGS
="$CPPFLAGS"
9839 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9840 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9841 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9842 LIBS
="$LIBS -b i486-linuxaout"
9843 cat >conftest.
$ac_ext <<_ACEOF
9846 cat confdefs.h
>>conftest.
$ac_ext
9847 cat >>conftest.
$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9853 XOpenDisplay ("foo");
9858 rm -f conftest.
$ac_objext conftest
$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1
>conftest.err
9864 cat conftest.err
>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try
='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try
='test -s conftest$ac_exeext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 xlinux_second_failure
=no
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.
$ac_ext >&5
9885 xlinux_second_failure
=yes
9887 rm -f conftest.err conftest.
$ac_objext \
9888 conftest
$ac_exeext conftest.
$ac_ext
9889 if test "${xlinux_second_failure}" = "yes"; then
9890 # If we get the same failure with -b, there is no use adding -b.
9891 # So take it out. This plays safe.
9892 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9893 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9894 CPPFLAGS
="$OLD_CPPFLAGS"
9896 echo "$as_me:$LINENO: result: no" >&5
9897 echo "${ECHO_T}no" >&6
9899 echo "$as_me:$LINENO: result: yes" >&5
9900 echo "${ECHO_T}yes" >&6
9903 echo "$as_me:$LINENO: result: no" >&5
9904 echo "${ECHO_T}no" >&6
9908 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9909 # header files included from there.
9910 echo "$as_me:$LINENO: checking for Xkb" >&5
9911 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9912 cat >conftest.
$ac_ext <<_ACEOF
9915 cat confdefs.h
>>conftest.
$ac_ext
9916 cat >>conftest.
$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 #include <X11/Xlib.h>
9919 #include <X11/XKBlib.h>
9923 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9928 rm -f conftest.
$ac_objext conftest
$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930 (eval $ac_link) 2>conftest.er1
9932 grep -v '^ *+' conftest.er1
>conftest.err
9934 cat conftest.err
>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try
='test -z "$ac_c_werror_flag"
9938 || test ! -s conftest.err'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; } &&
9944 { ac_try
='test -s conftest$ac_exeext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.
$ac_ext >&5
9957 rm -f conftest.err conftest.
$ac_objext \
9958 conftest
$ac_exeext conftest.
$ac_ext
9959 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9960 echo "${ECHO_T}$emacs_xkb" >&6
9961 if test $emacs_xkb = yes; then
9963 cat >>confdefs.h
<<\_ACEOF
9964 #define HAVE_XKBGETKEYBOARD 1
9973 for ac_func
in XrmSetDatabase XScreenResourceString \
9974 XScreenNumberOfScreen XSetWMProtocols
9976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9977 echo "$as_me:$LINENO: checking for $ac_func" >&5
9978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9979 if eval "test \"\${$as_ac_var+set}\" = set"; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 cat >conftest.
$ac_ext <<_ACEOF
9985 cat confdefs.h
>>conftest.
$ac_ext
9986 cat >>conftest.
$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9990 #define $ac_func innocuous_$ac_func
9992 /* System header to define __stub macros and hopefully few prototypes,
9993 which can conflict with char $ac_func (); below.
9994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995 <limits.h> exists even on freestanding compilers. */
9998 # include <limits.h>
10000 # include <assert.h>
10005 /* Override any gcc2 internal prototype to avoid an error. */
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10019 char (*f) () = $ac_func;
10028 return f != $ac_func;
10033 rm -f conftest.
$ac_objext conftest
$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035 (eval $ac_link) 2>conftest.er1
10037 grep -v '^ *+' conftest.er1
>conftest.err
10039 cat conftest.err
>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try
='test -z "$ac_c_werror_flag"
10043 || test ! -s conftest.err'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; } &&
10049 { ac_try
='test -s conftest$ac_exeext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 eval "$as_ac_var=yes"
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.
$ac_ext >&5
10060 eval "$as_ac_var=no"
10062 rm -f conftest.err conftest.
$ac_objext \
10063 conftest
$ac_exeext conftest.
$ac_ext
10065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10067 if test `eval echo '${'$as_ac_var'}'` = yes; then
10068 cat >>confdefs.h
<<_ACEOF
10069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10077 if test "${window_system}" = "x11"; then
10078 echo "$as_me:$LINENO: checking X11 version 6" >&5
10079 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10080 if test "${emacs_cv_x11_version_6+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 cat >conftest.
$ac_ext <<_ACEOF
10086 cat confdefs.h
>>conftest.
$ac_ext
10087 cat >>conftest.
$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 #include <X11/Xlib.h>
10093 #if XlibSpecificationRelease < 6
10101 rm -f conftest.
$ac_objext conftest
$ac_exeext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>conftest.er1
10105 grep -v '^ *+' conftest.er1
>conftest.err
10107 cat conftest.err
>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try
='test -z "$ac_c_werror_flag"
10111 || test ! -s conftest.err'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try
='test -s conftest$ac_exeext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 emacs_cv_x11_version_6
=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.
$ac_ext >&5
10128 emacs_cv_x11_version_6
=no
10130 rm -f conftest.err conftest.
$ac_objext \
10131 conftest
$ac_exeext conftest.
$ac_ext
10134 if test $emacs_cv_x11_version_6 = yes; then
10135 echo "$as_me:$LINENO: result: 6 or newer" >&5
10136 echo "${ECHO_T}6 or newer" >&6
10138 cat >>confdefs.h
<<\_ACEOF
10139 #define HAVE_X11R6 1
10143 echo "$as_me:$LINENO: result: before 6" >&5
10144 echo "${ECHO_T}before 6" >&6
10148 if test "${window_system}" = "x11"; then
10149 echo "$as_me:$LINENO: checking X11 version 5" >&5
10150 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10151 if test "${emacs_cv_x11_version_5+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 cat >conftest.
$ac_ext <<_ACEOF
10157 cat confdefs.h
>>conftest.
$ac_ext
10158 cat >>conftest.
$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 #include <X11/Xlib.h>
10164 #if XlibSpecificationRelease < 5
10172 rm -f conftest.
$ac_objext conftest
$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>conftest.er1
10176 grep -v '^ *+' conftest.er1
>conftest.err
10178 cat conftest.err
>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try
='test -z "$ac_c_werror_flag"
10182 || test ! -s conftest.err'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try
='test -s conftest$ac_exeext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 emacs_cv_x11_version_5
=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.
$ac_ext >&5
10199 emacs_cv_x11_version_5
=no
10201 rm -f conftest.err conftest.
$ac_objext \
10202 conftest
$ac_exeext conftest.
$ac_ext
10205 if test $emacs_cv_x11_version_5 = yes; then
10206 echo "$as_me:$LINENO: result: 5 or newer" >&5
10207 echo "${ECHO_T}5 or newer" >&6
10210 cat >>confdefs.h
<<\_ACEOF
10211 #define HAVE_X11R5 1
10216 echo "$as_me:$LINENO: result: before 5" >&5
10217 echo "${ECHO_T}before 5" >&6
10224 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10225 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10226 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10227 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10228 { (exit 1); exit 1; }; };
10232 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10234 if test "X${with_pkg_config_prog}" != X
; then
10235 PKG_CONFIG
="${with_pkg_config_prog}"
10240 if test -z "$PKG_CONFIG"; then
10241 # Extract the first word of "pkg-config", so it can be a program name with args.
10242 set dummy pkg-config
; ac_word
=$2
10243 echo "$as_me:$LINENO: checking for $ac_word" >&5
10244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10245 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 case $PKG_CONFIG in
10250 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10254 for as_dir
in $PATH
10257 test -z "$as_dir" && as_dir
=.
10258 for ac_exec_ext
in '' $ac_executable_extensions; do
10259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10271 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10273 if test -n "$PKG_CONFIG"; then
10274 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10275 echo "${ECHO_T}$PKG_CONFIG" >&6
10277 echo "$as_me:$LINENO: result: no" >&5
10278 echo "${ECHO_T}no" >&6
10283 if test "$PKG_CONFIG" = "no" ; then
10284 echo "*** The pkg-config script could not be found. Make sure it is"
10285 echo "*** in your path, or give the full path to pkg-config with"
10286 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10287 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10289 PKG_CONFIG_MIN_VERSION
=0.9.0
10290 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10291 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10292 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10294 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10295 echo "$as_me:$LINENO: result: yes" >&5
10296 echo "${ECHO_T}yes" >&6
10299 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10300 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10301 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10302 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10303 echo "${ECHO_T}$GTK_CFLAGS" >&6
10305 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10306 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10307 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10308 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10309 echo "${ECHO_T}$GTK_LIBS" >&6
10313 ## If we have a custom action on failure, don't print errors, but
10314 ## do set a variable so people can do so.
10315 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10316 echo $GTK_PKG_ERRORS
10322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10327 if test $succeeded = yes; then
10330 { { 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
10331 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;}
10332 { (exit 1); exit 1; }; }
10337 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10338 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10339 LIBS
="$GTK_LIBS $LIBS"
10342 cat >>confdefs.h
<<\_ACEOF
10348 if test "$with_toolkit_scroll_bars" != no
; then
10349 with_toolkit_scroll_bars
=yes
10352 HAVE_GTK_MULTIDISPLAY
=no
10354 for ac_func
in gdk_display_open
10356 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10357 echo "$as_me:$LINENO: checking for $ac_func" >&5
10358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10359 if eval "test \"\${$as_ac_var+set}\" = set"; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 cat >conftest.
$ac_ext <<_ACEOF
10365 cat confdefs.h
>>conftest.
$ac_ext
10366 cat >>conftest.
$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10370 #define $ac_func innocuous_$ac_func
10372 /* System header to define __stub macros and hopefully few prototypes,
10373 which can conflict with char $ac_func (); below.
10374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10375 <limits.h> exists even on freestanding compilers. */
10378 # include <limits.h>
10380 # include <assert.h>
10385 /* Override any gcc2 internal prototype to avoid an error. */
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10393 /* The GNU C library defines this for functions which it implements
10394 to always fail with ENOSYS. Some functions are actually named
10395 something starting with __ and the normal name is an alias. */
10396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10399 char (*f) () = $ac_func;
10408 return f != $ac_func;
10413 rm -f conftest.
$ac_objext conftest
$ac_exeext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10415 (eval $ac_link) 2>conftest.er1
10417 grep -v '^ *+' conftest.er1
>conftest.err
10419 cat conftest.err
>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } &&
10422 { ac_try
='test -z "$ac_c_werror_flag"
10423 || test ! -s conftest.err'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; } &&
10429 { ac_try
='test -s conftest$ac_exeext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 eval "$as_ac_var=yes"
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.
$ac_ext >&5
10440 eval "$as_ac_var=no"
10442 rm -f conftest.err conftest.
$ac_objext \
10443 conftest
$ac_exeext conftest.
$ac_ext
10445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10447 if test `eval echo '${'$as_ac_var'}'` = yes; then
10448 cat >>confdefs.h
<<_ACEOF
10449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10451 HAVE_GTK_MULTIDISPLAY
=yes
10455 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10457 cat >>confdefs.h
<<\_ACEOF
10458 #define HAVE_GTK_MULTIDISPLAY 1
10462 HAVE_GTK_FILE_SELECTION
=no
10464 for ac_func
in gtk_file_selection_new
10466 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10467 echo "$as_me:$LINENO: checking for $ac_func" >&5
10468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_var+set}\" = set"; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 cat >conftest.
$ac_ext <<_ACEOF
10475 cat confdefs.h
>>conftest.
$ac_ext
10476 cat >>conftest.
$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10480 #define $ac_func innocuous_$ac_func
10482 /* System header to define __stub macros and hopefully few prototypes,
10483 which can conflict with char $ac_func (); below.
10484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10485 <limits.h> exists even on freestanding compilers. */
10488 # include <limits.h>
10490 # include <assert.h>
10495 /* Override any gcc2 internal prototype to avoid an error. */
10500 /* We use char because int might match the return type of a gcc2
10501 builtin and then its argument prototype would still apply. */
10503 /* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10509 char (*f) () = $ac_func;
10518 return f != $ac_func;
10523 rm -f conftest.
$ac_objext conftest
$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>conftest.er1
10527 grep -v '^ *+' conftest.er1
>conftest.err
10529 cat conftest.err
>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try
='test -z "$ac_c_werror_flag"
10533 || test ! -s conftest.err'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 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 eval "$as_ac_var=yes"
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10550 eval "$as_ac_var=no"
10552 rm -f conftest.err conftest.
$ac_objext \
10553 conftest
$ac_exeext conftest.
$ac_ext
10555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10557 if test `eval echo '${'$as_ac_var'}'` = yes; then
10558 cat >>confdefs.h
<<_ACEOF
10559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10561 HAVE_GTK_FILE_SELECTION
=yes
10566 HAVE_GTK_FILE_CHOOSER
=no
10568 for ac_func
in gtk_file_chooser_dialog_new
10570 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10571 echo "$as_me:$LINENO: checking for $ac_func" >&5
10572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10573 if eval "test \"\${$as_ac_var+set}\" = set"; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 cat >conftest.
$ac_ext <<_ACEOF
10579 cat confdefs.h
>>conftest.
$ac_ext
10580 cat >>conftest.
$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10584 #define $ac_func innocuous_$ac_func
10586 /* System header to define __stub macros and hopefully few prototypes,
10587 which can conflict with char $ac_func (); below.
10588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10589 <limits.h> exists even on freestanding compilers. */
10592 # include <limits.h>
10594 # include <assert.h>
10599 /* Override any gcc2 internal prototype to avoid an error. */
10604 /* We use char because int might match the return type of a gcc2
10605 builtin and then its argument prototype would still apply. */
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10613 char (*f) () = $ac_func;
10622 return f != $ac_func;
10627 rm -f conftest.
$ac_objext conftest
$ac_exeext
10628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629 (eval $ac_link) 2>conftest.er1
10631 grep -v '^ *+' conftest.er1
>conftest.err
10633 cat conftest.err
>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try
='test -z "$ac_c_werror_flag"
10637 || test ! -s conftest.err'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; } &&
10643 { ac_try
='test -s conftest$ac_exeext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 eval "$as_ac_var=yes"
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.
$ac_ext >&5
10654 eval "$as_ac_var=no"
10656 rm -f conftest.err conftest.
$ac_objext \
10657 conftest
$ac_exeext conftest.
$ac_ext
10659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10661 if test `eval echo '${'$as_ac_var'}'` = yes; then
10662 cat >>confdefs.h
<<_ACEOF
10663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10665 HAVE_GTK_FILE_CHOOSER
=yes
10670 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10671 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10673 cat >>confdefs.h
<<\_ACEOF
10674 #define HAVE_GTK_FILE_BOTH 1
10679 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10680 HAVE_GTK_AND_PTHREAD
=no
10682 for ac_header
in pthread.h
10684 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686 echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10694 # Is the header compilable?
10695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10697 cat >conftest.
$ac_ext <<_ACEOF
10700 cat confdefs.h
>>conftest.
$ac_ext
10701 cat >>conftest.
$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 #include <$ac_header>
10706 rm -f conftest.
$ac_objext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10708 (eval $ac_compile) 2>conftest.er1
10710 grep -v '^ *+' conftest.er1
>conftest.err
10712 cat conftest.err
>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try
='test -z "$ac_c_werror_flag"
10716 || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try
='test -s conftest.$ac_objext'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10728 ac_header_compiler
=yes
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.
$ac_ext >&5
10733 ac_header_compiler
=no
10735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10737 echo "${ECHO_T}$ac_header_compiler" >&6
10739 # Is the header present?
10740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10742 cat >conftest.
$ac_ext <<_ACEOF
10745 cat confdefs.h
>>conftest.
$ac_ext
10746 cat >>conftest.
$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 #include <$ac_header>
10750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10751 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10753 grep -v '^ *+' conftest.er1
>conftest.err
10755 cat conftest.err
>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev
/null
; then
10758 if test -s conftest.err
; then
10759 ac_cpp_err
=$ac_c_preproc_warn_flag
10760 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10767 if test -z "$ac_cpp_err"; then
10768 ac_header_preproc
=yes
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.
$ac_ext >&5
10773 ac_header_preproc
=no
10775 rm -f conftest.err conftest.
$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10777 echo "${ECHO_T}$ac_header_preproc" >&6
10779 # So? What about this header?
10780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10786 ac_header_preproc
=yes
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10803 ## ------------------------------------------ ##
10804 ## Report this to the AC_PACKAGE_NAME lists. ##
10805 ## ------------------------------------------ ##
10808 sed "s/^/$as_me: WARNING: /" >&2
10811 echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 eval "$as_ac_Header=\$ac_header_preproc"
10818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10823 cat >>confdefs.h
<<_ACEOF
10824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10831 if test "$ac_cv_header_pthread_h"; then
10832 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10833 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10834 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 ac_check_lib_save_LIBS
=$LIBS
10838 LIBS
="-lpthread $LIBS"
10839 cat >conftest.
$ac_ext <<_ACEOF
10842 cat confdefs.h
>>conftest.
$ac_ext
10843 cat >>conftest.
$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 /* Override any gcc2 internal prototype to avoid an error. */
10850 /* We use char because int might match the return type of a gcc2
10851 builtin and then its argument prototype would still apply. */
10852 char pthread_self ();
10861 rm -f conftest.
$ac_objext conftest
$ac_exeext
10862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10863 (eval $ac_link) 2>conftest.er1
10865 grep -v '^ *+' conftest.er1
>conftest.err
10867 cat conftest.err
>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try
='test -z "$ac_c_werror_flag"
10871 || test ! -s conftest.err'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try
='test -s conftest$ac_exeext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_lib_pthread_pthread_self
=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.
$ac_ext >&5
10888 ac_cv_lib_pthread_pthread_self
=no
10890 rm -f conftest.err conftest.
$ac_objext \
10891 conftest
$ac_exeext conftest.
$ac_ext
10892 LIBS
=$ac_check_lib_save_LIBS
10894 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10895 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10896 if test $ac_cv_lib_pthread_pthread_self = yes; then
10897 HAVE_GTK_AND_PTHREAD
=yes
10901 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10902 GTK_LIBS
="$GTK_LIBS -lpthread"
10904 cat >>confdefs.h
<<\_ACEOF
10905 #define HAVE_GTK_AND_PTHREAD 1
10912 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10913 if test x
"${HAVE_X11R5}" = xyes
; then
10914 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10915 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10916 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 cat >conftest.
$ac_ext <<_ACEOF
10922 cat confdefs.h
>>conftest.
$ac_ext
10923 cat >>conftest.
$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10926 #include <X11/Intrinsic.h>
10927 #include <X11/Xaw/Simple.h>
10936 rm -f conftest.
$ac_objext conftest
$ac_exeext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938 (eval $ac_link) 2>conftest.er1
10940 grep -v '^ *+' conftest.er1
>conftest.err
10942 cat conftest.err
>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try
='test -z "$ac_c_werror_flag"
10946 || test ! -s conftest.err'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try
='test -s conftest$ac_exeext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 emacs_cv_x11_version_5_with_xaw
=yes
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.
$ac_ext >&5
10963 emacs_cv_x11_version_5_with_xaw
=no
10965 rm -f conftest.err conftest.
$ac_objext \
10966 conftest
$ac_exeext conftest.
$ac_ext
10969 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10970 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10971 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10972 USE_X_TOOLKIT
=LUCID
10974 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10975 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10983 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10987 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10988 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 cat >conftest.
$ac_ext <<_ACEOF
10994 cat confdefs.h
>>conftest.
$ac_ext
10995 cat >>conftest.
$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <X11/Intrinsic.h>
11001 #if XtSpecificationRelease < 6
11009 rm -f conftest.
$ac_objext conftest
$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>conftest.er1
11013 grep -v '^ *+' conftest.er1
>conftest.err
11015 cat conftest.err
>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try
='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try
='test -s conftest$ac_exeext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 emacs_cv_x11_toolkit_version_6
=yes
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.
$ac_ext >&5
11036 emacs_cv_x11_toolkit_version_6
=no
11038 rm -f conftest.err conftest.
$ac_objext \
11039 conftest
$ac_exeext conftest.
$ac_ext
11042 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11043 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11044 echo "$as_me:$LINENO: result: 6 or newer" >&5
11045 echo "${ECHO_T}6 or newer" >&6
11047 cat >>confdefs.h
<<\_ACEOF
11048 #define HAVE_X11XTR6 1
11052 echo "$as_me:$LINENO: result: before 6" >&5
11053 echo "${ECHO_T}before 6" >&6
11057 if test x
$HAVE_X11XTR6 = xyes
; then
11058 LIBS
="-lXt -lSM -lICE $LIBS"
11063 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11064 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11065 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 ac_check_lib_save_LIBS
=$LIBS
11070 cat >conftest.
$ac_ext <<_ACEOF
11073 cat confdefs.h
>>conftest.
$ac_ext
11074 cat >>conftest.
$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11077 /* Override any gcc2 internal prototype to avoid an error. */
11081 /* We use char because int might match the return type of a gcc2
11082 builtin and then its argument prototype would still apply. */
11083 char XmuConvertStandardSelection ();
11087 XmuConvertStandardSelection ();
11092 rm -f conftest.
$ac_objext conftest
$ac_exeext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094 (eval $ac_link) 2>conftest.er1
11096 grep -v '^ *+' conftest.er1
>conftest.err
11098 cat conftest.err
>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try
='test -z "$ac_c_werror_flag"
11102 || test ! -s conftest.err'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; } &&
11108 { ac_try
='test -s conftest$ac_exeext'
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.
$ac_ext >&5
11119 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11121 rm -f conftest.err conftest.
$ac_objext \
11122 conftest
$ac_exeext conftest.
$ac_ext
11123 LIBS
=$ac_check_lib_save_LIBS
11125 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11126 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11127 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11128 cat >>confdefs.h
<<_ACEOF
11129 #define HAVE_LIBXMU 1
11136 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11139 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11140 if test "${HAVE_X11}" = "yes"; then
11141 if test "${USE_X_TOOLKIT}" != "none"; then
11143 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11144 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11145 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 ac_check_lib_save_LIBS
=$LIBS
11149 LIBS
="-lXext $LIBS"
11150 cat >conftest.
$ac_ext <<_ACEOF
11153 cat confdefs.h
>>conftest.
$ac_ext
11154 cat >>conftest.
$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11157 /* Override any gcc2 internal prototype to avoid an error. */
11161 /* We use char because int might match the return type of a gcc2
11162 builtin and then its argument prototype would still apply. */
11163 char XShapeQueryExtension ();
11167 XShapeQueryExtension ();
11172 rm -f conftest.
$ac_objext conftest
$ac_exeext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11174 (eval $ac_link) 2>conftest.er1
11176 grep -v '^ *+' conftest.er1
>conftest.err
11178 cat conftest.err
>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try
='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try
='test -s conftest$ac_exeext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.
$ac_ext >&5
11199 ac_cv_lib_Xext_XShapeQueryExtension
=no
11201 rm -f conftest.err conftest.
$ac_objext \
11202 conftest
$ac_exeext conftest.
$ac_ext
11203 LIBS
=$ac_check_lib_save_LIBS
11205 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11206 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11207 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11208 cat >>confdefs.h
<<_ACEOF
11209 #define HAVE_LIBXEXT 1
11212 LIBS
="-lXext $LIBS"
11219 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11220 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11221 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11222 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 cat >conftest.
$ac_ext <<_ACEOF
11228 cat confdefs.h
>>conftest.
$ac_ext
11229 cat >>conftest.
$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11235 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11238 Motif version prior to 2.1.
11244 rm -f conftest.
$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246 (eval $ac_compile) 2>conftest.er1
11248 grep -v '^ *+' conftest.er1
>conftest.err
11250 cat conftest.err
>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try
='test -z "$ac_c_werror_flag"
11254 || test ! -s conftest.err'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try
='test -s conftest.$ac_objext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 emacs_cv_motif_version_2_1
=yes
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.
$ac_ext >&5
11271 emacs_cv_motif_version_2_1
=no
11273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11275 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11276 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11277 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11278 if test $emacs_cv_motif_version_2_1 = yes; then
11281 cat >>confdefs.h
<<\_ACEOF
11282 #define HAVE_MOTIF_2_1 1
11285 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11286 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11287 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 ac_check_lib_save_LIBS
=$LIBS
11292 cat >conftest.
$ac_ext <<_ACEOF
11295 cat confdefs.h
>>conftest.
$ac_ext
11296 cat >>conftest.
$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11299 /* Override any gcc2 internal prototype to avoid an error. */
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305 char XpCreateContext ();
11309 XpCreateContext ();
11314 rm -f conftest.
$ac_objext conftest
$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>conftest.er1
11318 grep -v '^ *+' conftest.er1
>conftest.err
11320 cat conftest.err
>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try
='test -z "$ac_c_werror_flag"
11324 || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try
='test -s conftest$ac_exeext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_cv_lib_Xp_XpCreateContext
=yes
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.
$ac_ext >&5
11341 ac_cv_lib_Xp_XpCreateContext
=no
11343 rm -f conftest.err conftest.
$ac_objext \
11344 conftest
$ac_exeext conftest.
$ac_ext
11345 LIBS
=$ac_check_lib_save_LIBS
11347 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11348 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11349 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11353 if test ${HAVE_LIBXP} = yes; then
11355 cat >>confdefs.h
<<\_ACEOF
11356 #define HAVE_LIBXP 1
11361 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11362 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11363 if test "${emacs_cv_lesstif+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 # We put this in CFLAGS temporarily to precede other -I options
11367 # that might be in CFLAGS temporarily.
11368 # We put this in CPPFLAGS where it precedes the other -I options.
11369 OLD_CPPFLAGS
=$CPPFLAGS
11371 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11372 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11373 cat >conftest.
$ac_ext <<_ACEOF
11376 cat confdefs.h
>>conftest.
$ac_ext
11377 cat >>conftest.
$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11388 rm -f conftest.
$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11392 grep -v '^ *+' conftest.er1
>conftest.err
11394 cat conftest.err
>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try
='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try
='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 emacs_cv_lesstif
=yes
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.
$ac_ext >&5
11415 emacs_cv_lesstif
=no
11417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11419 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11420 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11421 if test $emacs_cv_lesstif = yes; then
11422 # Make sure this -I option remains in CPPFLAGS after it is set
11423 # back to REAL_CPPFLAGS.
11424 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11425 # have those other -I options anyway. Ultimately, having this
11426 # directory ultimately in CPPFLAGS will be enough.
11427 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11428 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11431 CPPFLAGS
=$OLD_CPPFLAGS
11436 ### Is -lXaw3d available?
11438 if test "${HAVE_X11}" = "yes"; then
11439 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11440 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11441 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11442 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 cat >conftest.
$ac_ext <<_ACEOF
11448 cat confdefs.h
>>conftest.
$ac_ext
11449 cat >>conftest.
$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 #include <X11/Xaw3d/Scrollbar.h>
11453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11454 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11456 grep -v '^ *+' conftest.er1
>conftest.err
11458 cat conftest.err
>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } >/dev
/null
; then
11461 if test -s conftest.err
; then
11462 ac_cpp_err
=$ac_c_preproc_warn_flag
11463 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11470 if test -z "$ac_cpp_err"; then
11471 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.
$ac_ext >&5
11476 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11478 rm -f conftest.err conftest.
$ac_ext
11480 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11481 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11482 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11483 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11484 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11485 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 ac_check_lib_save_LIBS
=$LIBS
11489 LIBS
="-lXaw3d $LIBS"
11490 cat >conftest.
$ac_ext <<_ACEOF
11493 cat confdefs.h
>>conftest.
$ac_ext
11494 cat >>conftest.
$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11497 /* Override any gcc2 internal prototype to avoid an error. */
11501 /* We use char because int might match the return type of a gcc2
11502 builtin and then its argument prototype would still apply. */
11503 char XawScrollbarSetThumb ();
11507 XawScrollbarSetThumb ();
11512 rm -f conftest.
$ac_objext conftest
$ac_exeext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>conftest.er1
11516 grep -v '^ *+' conftest.er1
>conftest.err
11518 cat conftest.err
>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try
='test -z "$ac_c_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try
='test -s conftest$ac_exeext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.
$ac_ext >&5
11539 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11541 rm -f conftest.err conftest.
$ac_objext \
11542 conftest
$ac_exeext conftest.
$ac_ext
11543 LIBS
=$ac_check_lib_save_LIBS
11545 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11546 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11547 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11554 if test "${HAVE_XAW3D}" = "yes"; then
11556 cat >>confdefs.h
<<\_ACEOF
11557 #define HAVE_XAW3D 1
11566 USE_TOOLKIT_SCROLL_BARS
=no
11567 if test "${with_toolkit_scroll_bars}" != "no"; then
11568 if test "${USE_X_TOOLKIT}" != "none"; then
11569 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11570 cat >>confdefs.h
<<\_ACEOF
11571 #define USE_TOOLKIT_SCROLL_BARS 1
11575 USE_TOOLKIT_SCROLL_BARS
=yes
11576 elif test "${HAVE_XAW3D}" = "yes"; then
11577 cat >>confdefs.h
<<\_ACEOF
11578 #define USE_TOOLKIT_SCROLL_BARS 1
11581 USE_TOOLKIT_SCROLL_BARS
=yes
11583 elif test "${HAVE_GTK}" = "yes"; then
11584 cat >>confdefs.h
<<\_ACEOF
11585 #define USE_TOOLKIT_SCROLL_BARS 1
11588 USE_TOOLKIT_SCROLL_BARS
=yes
11589 elif test "${HAVE_CARBON}" = "yes"; then
11590 cat >>confdefs.h
<<\_ACEOF
11591 #define USE_TOOLKIT_SCROLL_BARS 1
11594 USE_TOOLKIT_SCROLL_BARS
=yes
11598 cat >conftest.
$ac_ext <<_ACEOF
11601 cat confdefs.h
>>conftest.
$ac_ext
11602 cat >>conftest.
$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11605 #include <X11/Xlib.h>
11606 #include <X11/Xresource.h>
11615 rm -f conftest.
$ac_objext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617 (eval $ac_compile) 2>conftest.er1
11619 grep -v '^ *+' conftest.er1
>conftest.err
11621 cat conftest.err
>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try
='test -z "$ac_c_werror_flag"
11625 || test ! -s conftest.err'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try
='test -s conftest.$ac_objext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11639 cat >>confdefs.h
<<\_ACEOF
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.
$ac_ext >&5
11649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11652 if test "${with_xim}" != "no"; then
11654 cat >>confdefs.h
<<\_ACEOF
11661 if test "${HAVE_XIM}" != "no"; then
11662 late_CFLAGS
=$CFLAGS
11663 if test "$GCC" = yes; then
11664 CFLAGS
="$CFLAGS --pedantic-errors"
11666 cat >conftest.
$ac_ext <<_ACEOF
11669 cat confdefs.h
>>conftest.
$ac_ext
11670 cat >>conftest.
$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11673 #include <X11/Xlib.h>
11674 #include <X11/Xresource.h>
11683 XPointer *client_data;
11685 /* If we're not using GCC, it's probably not XFree86, and this is
11686 probably right, but we can't use something like --pedantic-errors. */
11687 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11688 char*, XIMProc, XPointer*);
11690 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11696 rm -f conftest.
$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>conftest.er1
11700 grep -v '^ *+' conftest.er1
>conftest.err
11702 cat conftest.err
>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try
='test -z "$ac_c_werror_flag"
11706 || test ! -s conftest.err'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; } &&
11712 { ac_try
='test -s conftest.$ac_objext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 emacs_cv_arg6_star
=yes
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.
$ac_ext >&5
11724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11726 if test "$emacs_cv_arg6_star" = yes; then
11727 cat >>confdefs.h
<<\_ACEOF
11728 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11732 cat >>confdefs.h
<<\_ACEOF
11733 #define XRegisterIMInstantiateCallback_arg6 XPointer
11737 CFLAGS
=$late_CFLAGS
11740 ### For font-backend
11741 if test "${USE_FONT_BACKEND}" = "yes"; then
11744 cat >>confdefs.h
<<\_ACEOF
11745 #define USE_FONT_BACKEND 1
11749 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11751 if test "${HAVE_X11}" = "yes"; then
11752 if test "x${with_freetype}" = "xno"; then
11755 if test "x${with_xft}" != "xno"; then
11757 if test "X${with_pkg_config_prog}" != X
; then
11758 PKG_CONFIG
="${with_pkg_config_prog}"
11764 if test -z "$PKG_CONFIG"; then
11765 # Extract the first word of "pkg-config", so it can be a program name with args.
11766 set dummy pkg-config
; ac_word
=$2
11767 echo "$as_me:$LINENO: checking for $ac_word" >&5
11768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11769 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 case $PKG_CONFIG in
11774 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11778 for as_dir
in $PATH
11781 test -z "$as_dir" && as_dir
=.
11782 for ac_exec_ext
in '' $ac_executable_extensions; do
11783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11795 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11797 if test -n "$PKG_CONFIG"; then
11798 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11799 echo "${ECHO_T}$PKG_CONFIG" >&6
11801 echo "$as_me:$LINENO: result: no" >&5
11802 echo "${ECHO_T}no" >&6
11807 if test "$PKG_CONFIG" = "no" ; then
11808 echo "*** The pkg-config script could not be found. Make sure it is"
11809 echo "*** in your path, or give the full path to pkg-config with"
11810 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11811 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11813 PKG_CONFIG_MIN_VERSION
=0.9.0
11814 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11815 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11816 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11818 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11819 echo "$as_me:$LINENO: result: yes" >&5
11820 echo "${ECHO_T}yes" >&6
11823 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11824 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11825 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11826 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11827 echo "${ECHO_T}$XFT_CFLAGS" >&6
11829 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11830 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11831 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11832 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11833 echo "${ECHO_T}$XFT_LIBS" >&6
11837 ## If we have a custom action on failure, don't print errors, but
11838 ## do set a variable so people can do so.
11839 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11846 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11847 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11851 if test $succeeded = yes; then
11857 if test "$HAVE_XFT" != no
; then
11858 OLD_CPPFLAGS
="$CPPFLAGS"
11859 OLD_CFLAGS
="$CFLAGS"
11861 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11862 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11863 LIBS
="$XFT_LIBS $LIBS"
11864 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11865 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11866 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11867 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11871 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
11873 # Is the header compilable?
11874 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11875 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
11876 cat >conftest.
$ac_ext <<_ACEOF
11879 cat confdefs.h
>>conftest.
$ac_ext
11880 cat >>conftest.
$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 #include <X11/Xft/Xft.h>
11885 rm -f conftest.
$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>conftest.er1
11889 grep -v '^ *+' conftest.er1
>conftest.err
11891 cat conftest.err
>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try
='test -z "$ac_c_werror_flag"
11895 || test ! -s conftest.err'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try
='test -s conftest.$ac_objext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 ac_header_compiler
=yes
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.
$ac_ext >&5
11912 ac_header_compiler
=no
11914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11916 echo "${ECHO_T}$ac_header_compiler" >&6
11918 # Is the header present?
11919 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11920 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
11921 cat >conftest.
$ac_ext <<_ACEOF
11924 cat confdefs.h
>>conftest.
$ac_ext
11925 cat >>conftest.
$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 #include <X11/Xft/Xft.h>
11929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11932 grep -v '^ *+' conftest.er1
>conftest.err
11934 cat conftest.err
>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } >/dev
/null
; then
11937 if test -s conftest.err
; then
11938 ac_cpp_err
=$ac_c_preproc_warn_flag
11939 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11946 if test -z "$ac_cpp_err"; then
11947 ac_header_preproc
=yes
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.
$ac_ext >&5
11952 ac_header_preproc
=no
11954 rm -f conftest.err conftest.
$ac_ext
11955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11956 echo "${ECHO_T}$ac_header_preproc" >&6
11958 # So? What about this header?
11959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11961 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11962 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11964 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11965 ac_header_preproc
=yes
11968 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11969 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11971 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11973 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11975 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11977 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11979 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11982 ## ------------------------------------------ ##
11983 ## Report this to the AC_PACKAGE_NAME lists. ##
11984 ## ------------------------------------------ ##
11987 sed "s/^/$as_me: WARNING: /" >&2
11990 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11991 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11992 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11997 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11998 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12001 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12002 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12003 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12004 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 ac_check_lib_save_LIBS
=$LIBS
12008 LIBS
="-lXft $XFT_LIBS $LIBS"
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12016 /* Override any gcc2 internal prototype to avoid an error. */
12020 /* We use char because int might match the return type of a gcc2
12021 builtin and then its argument prototype would still apply. */
12022 char XftFontOpen ();
12031 rm -f conftest.
$ac_objext conftest
$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>conftest.er1
12035 grep -v '^ *+' conftest.er1
>conftest.err
12037 cat conftest.err
>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try
='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try
='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_cv_lib_Xft_XftFontOpen
=yes
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.
$ac_ext >&5
12058 ac_cv_lib_Xft_XftFontOpen
=no
12060 rm -f conftest.err conftest.
$ac_objext \
12061 conftest
$ac_exeext conftest.
$ac_ext
12062 LIBS
=$ac_check_lib_save_LIBS
12064 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12065 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12066 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12074 if test "${HAVE_XFT}" = "yes"; then
12076 cat >>confdefs.h
<<\_ACEOF
12081 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12083 CFLAGS
="$OLD_CPPFLAGS"
12084 CFLAGS
="$OLD_CFLAGS"
12092 ### Use -lfreetype if available, unless `--with-freetype=no'.
12093 if test "${HAVE_XFT}" = "yes"; then
12095 elif test "x${with_freetype}" != "xno"; then
12096 if test "X${with_pkg_config_prog}" != X
; then
12097 PKG_CONFIG
="${with_pkg_config_prog}"
12103 if test -z "$PKG_CONFIG"; then
12104 # Extract the first word of "pkg-config", so it can be a program name with args.
12105 set dummy pkg-config
; ac_word
=$2
12106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12108 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 case $PKG_CONFIG in
12113 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12117 for as_dir
in $PATH
12120 test -z "$as_dir" && as_dir
=.
12121 for ac_exec_ext
in '' $ac_executable_extensions; do
12122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12134 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12136 if test -n "$PKG_CONFIG"; then
12137 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12138 echo "${ECHO_T}$PKG_CONFIG" >&6
12140 echo "$as_me:$LINENO: result: no" >&5
12141 echo "${ECHO_T}no" >&6
12146 if test "$PKG_CONFIG" = "no" ; then
12147 echo "*** The pkg-config script could not be found. Make sure it is"
12148 echo "*** in your path, or give the full path to pkg-config with"
12149 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12150 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12152 PKG_CONFIG_MIN_VERSION
=0.9.0
12153 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12154 echo "$as_me:$LINENO: checking for freetype2" >&5
12155 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12157 if $PKG_CONFIG --exists "freetype2" ; then
12158 echo "$as_me:$LINENO: result: yes" >&5
12159 echo "${ECHO_T}yes" >&6
12162 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12163 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12164 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"`
12165 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12166 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12168 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12169 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12170 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"`
12171 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12172 echo "${ECHO_T}$FREETYPE_LIBS" >&6
12176 ## If we have a custom action on failure, don't print errors, but
12177 ## do set a variable so people can do so.
12178 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12185 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12186 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12190 if test $succeeded = yes; then
12196 if test "${HAVE_FREETYPE}" = "yes"; then
12200 if test -z "$PKG_CONFIG"; then
12201 # Extract the first word of "pkg-config", so it can be a program name with args.
12202 set dummy pkg-config
; ac_word
=$2
12203 echo "$as_me:$LINENO: checking for $ac_word" >&5
12204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12205 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 case $PKG_CONFIG in
12210 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12214 for as_dir
in $PATH
12217 test -z "$as_dir" && as_dir
=.
12218 for ac_exec_ext
in '' $ac_executable_extensions; do
12219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12231 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12233 if test -n "$PKG_CONFIG"; then
12234 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12235 echo "${ECHO_T}$PKG_CONFIG" >&6
12237 echo "$as_me:$LINENO: result: no" >&5
12238 echo "${ECHO_T}no" >&6
12243 if test "$PKG_CONFIG" = "no" ; then
12244 echo "*** The pkg-config script could not be found. Make sure it is"
12245 echo "*** in your path, or give the full path to pkg-config with"
12246 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12247 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12249 PKG_CONFIG_MIN_VERSION
=0.9.0
12250 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12251 echo "$as_me:$LINENO: checking for fontconfig" >&5
12252 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12254 if $PKG_CONFIG --exists "fontconfig" ; then
12255 echo "$as_me:$LINENO: result: yes" >&5
12256 echo "${ECHO_T}yes" >&6
12259 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12260 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12261 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
12262 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12263 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12265 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12266 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12267 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
12268 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12269 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12271 FONTCONFIG_CFLAGS
=""
12273 ## If we have a custom action on failure, don't print errors, but
12274 ## do set a variable so people can do so.
12275 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12287 if test $succeeded = yes; then
12293 if test "${HAVE_FC}" = "no"; then
12298 if test "${HAVE_FREETYPE}" = "yes"; then
12300 cat >>confdefs.h
<<\_ACEOF
12301 #define HAVE_FREETYPE 1
12304 # Extract the first word of "libotf-config", so it can be a program name with args.
12305 set dummy libotf-config
; ac_word
=$2
12306 echo "$as_me:$LINENO: checking for $ac_word" >&5
12307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12308 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 if test -n "$HAVE_LIBOTF"; then
12312 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
12314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12315 for as_dir
in $PATH
12318 test -z "$as_dir" && as_dir
=.
12319 for ac_exec_ext
in '' $ac_executable_extensions; do
12320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321 ac_cv_prog_HAVE_LIBOTF
="yes"
12322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
12331 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
12332 if test -n "$HAVE_LIBOTF"; then
12333 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12334 echo "${ECHO_T}$HAVE_LIBOTF" >&6
12336 echo "$as_me:$LINENO: result: no" >&5
12337 echo "${ECHO_T}no" >&6
12340 if test "${HAVE_LIBOTF}" = "yes"; then
12342 cat >>confdefs.h
<<\_ACEOF
12343 #define HAVE_LIBOTF 1
12346 LIBOTF_CFLAGS
=`libotf-config --cflags`
12347 LIBOTF_LIBS
=`libotf-config --libs`
12359 ### Use -lXpm if available, unless `--with-xpm=no'.
12361 if test "${HAVE_X11}" = "yes"; then
12362 if test "${with_xpm}" != "no"; then
12363 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12364 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12365 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12366 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12370 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12372 # Is the header compilable?
12373 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12374 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
12375 cat >conftest.
$ac_ext <<_ACEOF
12378 cat confdefs.h
>>conftest.
$ac_ext
12379 cat >>conftest.
$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 $ac_includes_default
12382 #include <X11/xpm.h>
12384 rm -f conftest.
$ac_objext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12386 (eval $ac_compile) 2>conftest.er1
12388 grep -v '^ *+' conftest.er1
>conftest.err
12390 cat conftest.err
>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try
='test -z "$ac_c_werror_flag"
12394 || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try
='test -s conftest.$ac_objext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_header_compiler
=yes
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.
$ac_ext >&5
12411 ac_header_compiler
=no
12413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12415 echo "${ECHO_T}$ac_header_compiler" >&6
12417 # Is the header present?
12418 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12419 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12420 cat >conftest.
$ac_ext <<_ACEOF
12423 cat confdefs.h
>>conftest.
$ac_ext
12424 cat >>conftest.
$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 #include <X11/xpm.h>
12428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12429 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12431 grep -v '^ *+' conftest.er1
>conftest.err
12433 cat conftest.err
>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } >/dev
/null
; then
12436 if test -s conftest.err
; then
12437 ac_cpp_err
=$ac_c_preproc_warn_flag
12438 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12445 if test -z "$ac_cpp_err"; then
12446 ac_header_preproc
=yes
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.
$ac_ext >&5
12451 ac_header_preproc
=no
12453 rm -f conftest.err conftest.
$ac_ext
12454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12455 echo "${ECHO_T}$ac_header_preproc" >&6
12457 # So? What about this header?
12458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12460 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12461 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12463 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12464 ac_header_preproc
=yes
12467 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12468 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12470 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12471 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12472 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12474 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12476 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12478 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12481 ## ------------------------------------------ ##
12482 ## Report this to the AC_PACKAGE_NAME lists. ##
12483 ## ------------------------------------------ ##
12486 sed "s/^/$as_me: WARNING: /" >&2
12489 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12490 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12491 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12496 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12497 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12500 if test $ac_cv_header_X11_xpm_h = yes; then
12501 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12502 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12503 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 ac_check_lib_save_LIBS
=$LIBS
12507 LIBS
="-lXpm -lX11 $LIBS"
12508 cat >conftest.
$ac_ext <<_ACEOF
12511 cat confdefs.h
>>conftest.
$ac_ext
12512 cat >>conftest.
$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12515 /* Override any gcc2 internal prototype to avoid an error. */
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12521 char XpmReadFileToPixmap ();
12525 XpmReadFileToPixmap ();
12530 rm -f conftest.
$ac_objext conftest
$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>conftest.er1
12534 grep -v '^ *+' conftest.er1
>conftest.err
12536 cat conftest.err
>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try
='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try
='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.
$ac_ext >&5
12557 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12559 rm -f conftest.err conftest.
$ac_objext \
12560 conftest
$ac_exeext conftest.
$ac_ext
12561 LIBS
=$ac_check_lib_save_LIBS
12563 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12564 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12565 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12572 if test "${HAVE_XPM}" = "yes"; then
12573 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12574 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12575 cat >conftest.
$ac_ext <<_ACEOF
12578 cat confdefs.h
>>conftest.
$ac_ext
12579 cat >>conftest.
$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 #include "X11/xpm.h"
12582 #ifndef XpmReturnAllocPixels
12583 no_return_alloc_pixels
12587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12588 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12596 if test "${HAVE_XPM}" = "yes"; then
12597 echo "$as_me:$LINENO: result: yes" >&5
12598 echo "${ECHO_T}yes" >&6
12600 echo "$as_me:$LINENO: result: no" >&5
12601 echo "${ECHO_T}no" >&6
12606 if test "${HAVE_XPM}" = "yes"; then
12608 cat >>confdefs.h
<<\_ACEOF
12615 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12617 if test "${HAVE_X11}" = "yes"; then
12618 if test "${with_jpeg}" != "no"; then
12619 if test "${ac_cv_header_jerror_h+set}" = set; then
12620 echo "$as_me:$LINENO: checking for jerror.h" >&5
12621 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12622 if test "${ac_cv_header_jerror_h+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12626 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12628 # Is the header compilable?
12629 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12630 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12631 cat >conftest.
$ac_ext <<_ACEOF
12634 cat confdefs.h
>>conftest.
$ac_ext
12635 cat >>conftest.
$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 $ac_includes_default
12638 #include <jerror.h>
12640 rm -f conftest.
$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>conftest.er1
12644 grep -v '^ *+' conftest.er1
>conftest.err
12646 cat conftest.err
>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try
='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try
='test -s conftest.$ac_objext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_header_compiler
=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.
$ac_ext >&5
12667 ac_header_compiler
=no
12669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12671 echo "${ECHO_T}$ac_header_compiler" >&6
12673 # Is the header present?
12674 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12675 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12676 cat >conftest.
$ac_ext <<_ACEOF
12679 cat confdefs.h
>>conftest.
$ac_ext
12680 cat >>conftest.
$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 #include <jerror.h>
12684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12685 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12687 grep -v '^ *+' conftest.er1
>conftest.err
12689 cat conftest.err
>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } >/dev
/null
; then
12692 if test -s conftest.err
; then
12693 ac_cpp_err
=$ac_c_preproc_warn_flag
12694 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12701 if test -z "$ac_cpp_err"; then
12702 ac_header_preproc
=yes
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.
$ac_ext >&5
12707 ac_header_preproc
=no
12709 rm -f conftest.err conftest.
$ac_ext
12710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12711 echo "${ECHO_T}$ac_header_preproc" >&6
12713 # So? What about this header?
12714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12716 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12717 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12718 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12719 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12720 ac_header_preproc
=yes
12723 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12724 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12726 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12728 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12729 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12730 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12732 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12733 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12734 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12737 ## ------------------------------------------ ##
12738 ## Report this to the AC_PACKAGE_NAME lists. ##
12739 ## ------------------------------------------ ##
12742 sed "s/^/$as_me: WARNING: /" >&2
12745 echo "$as_me:$LINENO: checking for jerror.h" >&5
12746 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12747 if test "${ac_cv_header_jerror_h+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_cv_header_jerror_h
=$ac_header_preproc
12752 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12753 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12756 if test $ac_cv_header_jerror_h = yes; then
12757 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12758 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12759 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 ac_check_lib_save_LIBS
=$LIBS
12763 LIBS
="-ljpeg $LIBS"
12764 cat >conftest.
$ac_ext <<_ACEOF
12767 cat confdefs.h
>>conftest.
$ac_ext
12768 cat >>conftest.
$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12771 /* Override any gcc2 internal prototype to avoid an error. */
12775 /* We use char because int might match the return type of a gcc2
12776 builtin and then its argument prototype would still apply. */
12777 char jpeg_destroy_compress ();
12781 jpeg_destroy_compress ();
12786 rm -f conftest.
$ac_objext conftest
$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>conftest.er1
12790 grep -v '^ *+' conftest.er1
>conftest.err
12792 cat conftest.err
>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try
='test -z "$ac_c_werror_flag"
12796 || test ! -s conftest.err'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try
='test -s conftest$ac_exeext'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.
$ac_ext >&5
12813 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12815 rm -f conftest.err conftest.
$ac_objext \
12816 conftest
$ac_exeext conftest.
$ac_ext
12817 LIBS
=$ac_check_lib_save_LIBS
12819 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12820 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12821 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12831 if test "${HAVE_JPEG}" = "yes"; then
12832 cat >>confdefs.h
<<\_ACEOF
12833 #define HAVE_JPEG 1
12836 cat >conftest.
$ac_ext <<_ACEOF
12839 cat confdefs.h
>>conftest.
$ac_ext
12840 cat >>conftest.
$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 #include <jpeglib.h>
12843 version=JPEG_LIB_VERSION
12846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12847 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12848 cat >>confdefs.h
<<\_ACEOF
12849 #define HAVE_JPEG 1
12853 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12854 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12862 ### Use -lpng if available, unless `--with-png=no'.
12864 if test "${HAVE_X11}" = "yes"; then
12865 if test "${with_png}" != "no"; then
12866 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12867 # in /usr/include/libpng.
12870 for ac_header
in png.h libpng
/png.h
12872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12874 echo "$as_me:$LINENO: checking for $ac_header" >&5
12875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882 # Is the header compilable?
12883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12885 cat >conftest.
$ac_ext <<_ACEOF
12888 cat confdefs.h
>>conftest.
$ac_ext
12889 cat >>conftest.
$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 $ac_includes_default
12892 #include <$ac_header>
12894 rm -f conftest.
$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>conftest.er1
12898 grep -v '^ *+' conftest.er1
>conftest.err
12900 cat conftest.err
>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try
='test -z "$ac_c_werror_flag"
12904 || test ! -s conftest.err'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try
='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_header_compiler
=yes
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.
$ac_ext >&5
12921 ac_header_compiler
=no
12923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925 echo "${ECHO_T}$ac_header_compiler" >&6
12927 # Is the header present?
12928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12930 cat >conftest.
$ac_ext <<_ACEOF
12933 cat confdefs.h
>>conftest.
$ac_ext
12934 cat >>conftest.
$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <$ac_header>
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
12948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12955 if test -z "$ac_cpp_err"; then
12956 ac_header_preproc
=yes
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.
$ac_ext >&5
12961 ac_header_preproc
=no
12963 rm -f conftest.err conftest.
$ac_ext
12964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965 echo "${ECHO_T}$ac_header_preproc" >&6
12967 # So? What about this header?
12968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12974 ac_header_preproc
=yes
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12991 ## ------------------------------------------ ##
12992 ## Report this to the AC_PACKAGE_NAME lists. ##
12993 ## ------------------------------------------ ##
12996 sed "s/^/$as_me: WARNING: /" >&2
12999 echo "$as_me:$LINENO: checking for $ac_header" >&5
13000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 eval "$as_ac_Header=\$ac_header_preproc"
13006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13011 cat >>confdefs.h
<<_ACEOF
13012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13019 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13020 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13021 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
13022 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 ac_check_lib_save_LIBS
=$LIBS
13026 LIBS
="-lpng -lz -lm $LIBS"
13027 cat >conftest.
$ac_ext <<_ACEOF
13030 cat confdefs.h
>>conftest.
$ac_ext
13031 cat >>conftest.
$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13034 /* Override any gcc2 internal prototype to avoid an error. */
13038 /* We use char because int might match the return type of a gcc2
13039 builtin and then its argument prototype would still apply. */
13040 char png_get_channels ();
13044 png_get_channels ();
13049 rm -f conftest.
$ac_objext conftest
$ac_exeext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>conftest.er1
13053 grep -v '^ *+' conftest.er1
>conftest.err
13055 cat conftest.err
>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try
='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try
='test -s conftest$ac_exeext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_lib_png_png_get_channels
=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.
$ac_ext >&5
13076 ac_cv_lib_png_png_get_channels
=no
13078 rm -f conftest.err conftest.
$ac_objext \
13079 conftest
$ac_exeext conftest.
$ac_ext
13080 LIBS
=$ac_check_lib_save_LIBS
13082 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13083 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
13084 if test $ac_cv_lib_png_png_get_channels = yes; then
13091 if test "${HAVE_PNG}" = "yes"; then
13093 cat >>confdefs.h
<<\_ACEOF
13100 ### Use -ltiff if available, unless `--with-tiff=no'.
13102 if test "${HAVE_X11}" = "yes"; then
13103 if test "${with_tiff}" != "no"; then
13104 if test "${ac_cv_header_tiffio_h+set}" = set; then
13105 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13106 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13107 if test "${ac_cv_header_tiffio_h+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13111 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13113 # Is the header compilable?
13114 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13115 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
13116 cat >conftest.
$ac_ext <<_ACEOF
13119 cat confdefs.h
>>conftest.
$ac_ext
13120 cat >>conftest.
$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13123 #include <tiffio.h>
13125 rm -f conftest.
$ac_objext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127 (eval $ac_compile) 2>conftest.er1
13129 grep -v '^ *+' conftest.er1
>conftest.err
13131 cat conftest.err
>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try
='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try
='test -s conftest.$ac_objext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_header_compiler
=yes
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.
$ac_ext >&5
13152 ac_header_compiler
=no
13154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13156 echo "${ECHO_T}$ac_header_compiler" >&6
13158 # Is the header present?
13159 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13160 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
13161 cat >conftest.
$ac_ext <<_ACEOF
13164 cat confdefs.h
>>conftest.
$ac_ext
13165 cat >>conftest.
$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 #include <tiffio.h>
13169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13172 grep -v '^ *+' conftest.er1
>conftest.err
13174 cat conftest.err
>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } >/dev
/null
; then
13177 if test -s conftest.err
; then
13178 ac_cpp_err
=$ac_c_preproc_warn_flag
13179 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13186 if test -z "$ac_cpp_err"; then
13187 ac_header_preproc
=yes
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.
$ac_ext >&5
13192 ac_header_preproc
=no
13194 rm -f conftest.err conftest.
$ac_ext
13195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13196 echo "${ECHO_T}$ac_header_preproc" >&6
13198 # So? What about this header?
13199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13202 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13204 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13205 ac_header_preproc
=yes
13208 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13209 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13211 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13213 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13214 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13215 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13217 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13219 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13222 ## ------------------------------------------ ##
13223 ## Report this to the AC_PACKAGE_NAME lists. ##
13224 ## ------------------------------------------ ##
13227 sed "s/^/$as_me: WARNING: /" >&2
13230 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13231 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13232 if test "${ac_cv_header_tiffio_h+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 ac_cv_header_tiffio_h
=$ac_header_preproc
13237 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13238 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13241 if test $ac_cv_header_tiffio_h = yes; then
13243 # At least one tiff package requires the jpeg library.
13244 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13245 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13246 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
13247 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 ac_check_lib_save_LIBS
=$LIBS
13251 LIBS
="-ltiff $tifflibs $LIBS"
13252 cat >conftest.
$ac_ext <<_ACEOF
13255 cat confdefs.h
>>conftest.
$ac_ext
13256 cat >>conftest.
$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13259 /* Override any gcc2 internal prototype to avoid an error. */
13263 /* We use char because int might match the return type of a gcc2
13264 builtin and then its argument prototype would still apply. */
13265 char TIFFGetVersion ();
13274 rm -f conftest.
$ac_objext conftest
$ac_exeext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276 (eval $ac_link) 2>conftest.er1
13278 grep -v '^ *+' conftest.er1
>conftest.err
13280 cat conftest.err
>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try
='test -z "$ac_c_werror_flag"
13284 || test ! -s conftest.err'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try
='test -s conftest$ac_exeext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_lib_tiff_TIFFGetVersion
=yes
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.
$ac_ext >&5
13301 ac_cv_lib_tiff_TIFFGetVersion
=no
13303 rm -f conftest.err conftest.
$ac_objext \
13304 conftest
$ac_exeext conftest.
$ac_ext
13305 LIBS
=$ac_check_lib_save_LIBS
13307 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13308 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
13309 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13318 if test "${HAVE_TIFF}" = "yes"; then
13320 cat >>confdefs.h
<<\_ACEOF
13321 #define HAVE_TIFF 1
13327 ### Use -lgif if available, unless `--with-gif=no'.
13329 if test "${HAVE_X11}" = "yes"; then
13330 if test "${with_gif}" != "no"; then
13331 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13332 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13333 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13334 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13338 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13340 # Is the header compilable?
13341 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13342 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
13343 cat >conftest.
$ac_ext <<_ACEOF
13346 cat confdefs.h
>>conftest.
$ac_ext
13347 cat >>conftest.
$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13350 #include <gif_lib.h>
13352 rm -f conftest.
$ac_objext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13354 (eval $ac_compile) 2>conftest.er1
13356 grep -v '^ *+' conftest.er1
>conftest.err
13358 cat conftest.err
>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try
='test -z "$ac_c_werror_flag"
13362 || test ! -s conftest.err'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try
='test -s conftest.$ac_objext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 ac_header_compiler
=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.
$ac_ext >&5
13379 ac_header_compiler
=no
13381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13383 echo "${ECHO_T}$ac_header_compiler" >&6
13385 # Is the header present?
13386 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13387 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13388 cat >conftest.
$ac_ext <<_ACEOF
13391 cat confdefs.h
>>conftest.
$ac_ext
13392 cat >>conftest.
$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13394 #include <gif_lib.h>
13396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13397 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13399 grep -v '^ *+' conftest.er1
>conftest.err
13401 cat conftest.err
>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } >/dev
/null
; then
13404 if test -s conftest.err
; then
13405 ac_cpp_err
=$ac_c_preproc_warn_flag
13406 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13413 if test -z "$ac_cpp_err"; then
13414 ac_header_preproc
=yes
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.
$ac_ext >&5
13419 ac_header_preproc
=no
13421 rm -f conftest.err conftest.
$ac_ext
13422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13423 echo "${ECHO_T}$ac_header_preproc" >&6
13425 # So? What about this header?
13426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13428 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13429 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13430 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13431 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13432 ac_header_preproc
=yes
13435 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13436 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13438 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13440 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13442 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13444 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13446 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13449 ## ------------------------------------------ ##
13450 ## Report this to the AC_PACKAGE_NAME lists. ##
13451 ## ------------------------------------------ ##
13454 sed "s/^/$as_me: WARNING: /" >&2
13457 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13458 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13459 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 ac_cv_header_gif_lib_h
=$ac_header_preproc
13464 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13465 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13468 if test $ac_cv_header_gif_lib_h = yes; then
13469 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13470 # Earlier versions can crash Emacs.
13471 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13472 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13473 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 ac_check_lib_save_LIBS
=$LIBS
13477 LIBS
="-lungif $LIBS"
13478 cat >conftest.
$ac_ext <<_ACEOF
13481 cat confdefs.h
>>conftest.
$ac_ext
13482 cat >>conftest.
$ac_ext <<_ACEOF
13483 /* end confdefs.h. */
13485 /* Override any gcc2 internal prototype to avoid an error. */
13489 /* We use char because int might match the return type of a gcc2
13490 builtin and then its argument prototype would still apply. */
13491 char EGifPutExtensionLast ();
13495 EGifPutExtensionLast ();
13500 rm -f conftest.
$ac_objext conftest
$ac_exeext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13502 (eval $ac_link) 2>conftest.er1
13504 grep -v '^ *+' conftest.er1
>conftest.err
13506 cat conftest.err
>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
13509 { ac_try
='test -z "$ac_c_werror_flag"
13510 || test ! -s conftest.err'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try
='test -s conftest$ac_exeext'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.
$ac_ext >&5
13527 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13529 rm -f conftest.err conftest.
$ac_objext \
13530 conftest
$ac_exeext conftest.
$ac_ext
13531 LIBS
=$ac_check_lib_save_LIBS
13533 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13534 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13535 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13544 if test "${HAVE_GIF}" = "yes"; then
13546 cat >>confdefs.h
<<\_ACEOF
13553 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13554 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13555 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13556 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13560 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13562 # Is the header compilable?
13563 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13564 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13565 cat >conftest.
$ac_ext <<_ACEOF
13568 cat confdefs.h
>>conftest.
$ac_ext
13569 cat >>conftest.
$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 $ac_includes_default
13572 #include <malloc/malloc.h>
13574 rm -f conftest.
$ac_objext
13575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>conftest.er1
13578 grep -v '^ *+' conftest.er1
>conftest.err
13580 cat conftest.err
>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try
='test -z "$ac_c_werror_flag"
13584 || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try
='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_header_compiler
=yes
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.
$ac_ext >&5
13601 ac_header_compiler
=no
13603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13605 echo "${ECHO_T}$ac_header_compiler" >&6
13607 # Is the header present?
13608 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13609 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13610 cat >conftest.
$ac_ext <<_ACEOF
13613 cat confdefs.h
>>conftest.
$ac_ext
13614 cat >>conftest.
$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include <malloc/malloc.h>
13618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13619 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13621 grep -v '^ *+' conftest.er1
>conftest.err
13623 cat conftest.err
>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } >/dev
/null
; then
13626 if test -s conftest.err
; then
13627 ac_cpp_err
=$ac_c_preproc_warn_flag
13628 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13635 if test -z "$ac_cpp_err"; then
13636 ac_header_preproc
=yes
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.
$ac_ext >&5
13641 ac_header_preproc
=no
13643 rm -f conftest.err conftest.
$ac_ext
13644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13645 echo "${ECHO_T}$ac_header_preproc" >&6
13647 # So? What about this header?
13648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13650 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13651 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13653 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13654 ac_header_preproc
=yes
13657 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13658 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13660 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13662 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13664 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13666 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13668 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13671 ## ------------------------------------------ ##
13672 ## Report this to the AC_PACKAGE_NAME lists. ##
13673 ## ------------------------------------------ ##
13676 sed "s/^/$as_me: WARNING: /" >&2
13679 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13680 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13681 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13686 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13687 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13690 if test $ac_cv_header_malloc_malloc_h = yes; then
13692 cat >>confdefs.h
<<\_ACEOF
13693 #define HAVE_MALLOC_MALLOC_H 1
13700 ### Use Mac OS X Carbon API to implement GUI.
13701 if test "${HAVE_CARBON}" = "yes"; then
13703 cat >>confdefs.h
<<\_ACEOF
13704 #define HAVE_CARBON 1
13707 ## Specify the install directory
13709 if test "${carbon_appdir_x}" != ""; then
13710 case ${carbon_appdir_x} in
13711 y | ye |
yes) carbon_appdir
=/Applications
;;
13712 * ) carbon_appdir
=${carbon_appdir_x} ;;
13715 # We also have mouse menus.
13718 tmp_CFLAGS
="$CFLAGS"
13719 CFLAGS
="$CFLAGS -framework Carbon"
13720 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13721 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13722 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 cat >conftest.
$ac_ext <<_ACEOF
13728 cat confdefs.h
>>conftest.
$ac_ext
13729 cat >>conftest.
$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13731 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13733 #define CancelMenuTracking innocuous_CancelMenuTracking
13735 /* System header to define __stub macros and hopefully few prototypes,
13736 which can conflict with char CancelMenuTracking (); below.
13737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13738 <limits.h> exists even on freestanding compilers. */
13741 # include <limits.h>
13743 # include <assert.h>
13746 #undef CancelMenuTracking
13748 /* Override any gcc2 internal prototype to avoid an error. */
13753 /* We use char because int might match the return type of a gcc2
13754 builtin and then its argument prototype would still apply. */
13755 char CancelMenuTracking ();
13756 /* The GNU C library defines this for functions which it implements
13757 to always fail with ENOSYS. Some functions are actually named
13758 something starting with __ and the normal name is an alias. */
13759 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13762 char (*f) () = CancelMenuTracking;
13771 return f != CancelMenuTracking;
13776 rm -f conftest.
$ac_objext conftest
$ac_exeext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778 (eval $ac_link) 2>conftest.er1
13780 grep -v '^ *+' conftest.er1
>conftest.err
13782 cat conftest.err
>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try
='test -z "$ac_c_werror_flag"
13786 || test ! -s conftest.err'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try
='test -s conftest$ac_exeext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_func_CancelMenuTracking
=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.
$ac_ext >&5
13803 ac_cv_func_CancelMenuTracking
=no
13805 rm -f conftest.err conftest.
$ac_objext \
13806 conftest
$ac_exeext conftest.
$ac_ext
13808 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13809 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13810 if test $ac_cv_func_CancelMenuTracking = yes; then
13816 if test "$have_cmt" = yes; then
13818 cat >>confdefs.h
<<\_ACEOF
13819 #define HAVE_CANCELMENUTRACKING 1
13823 CFLAGS
="$tmp_CFLAGS"
13826 ### Use session management (-lSM -lICE) if available
13828 if test "${HAVE_X11}" = "yes"; then
13829 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13830 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13831 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13832 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13836 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13838 # Is the header compilable?
13839 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13840 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13841 cat >conftest.
$ac_ext <<_ACEOF
13844 cat confdefs.h
>>conftest.
$ac_ext
13845 cat >>conftest.
$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 $ac_includes_default
13848 #include <X11/SM/SMlib.h>
13850 rm -f conftest.
$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>conftest.er1
13854 grep -v '^ *+' conftest.er1
>conftest.err
13856 cat conftest.err
>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try
='test -z "$ac_c_werror_flag"
13860 || test ! -s conftest.err'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; } &&
13866 { ac_try
='test -s conftest.$ac_objext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_header_compiler
=yes
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.
$ac_ext >&5
13877 ac_header_compiler
=no
13879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13881 echo "${ECHO_T}$ac_header_compiler" >&6
13883 # Is the header present?
13884 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13885 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13886 cat >conftest.
$ac_ext <<_ACEOF
13889 cat confdefs.h
>>conftest.
$ac_ext
13890 cat >>conftest.
$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 #include <X11/SM/SMlib.h>
13894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13897 grep -v '^ *+' conftest.er1
>conftest.err
13899 cat conftest.err
>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } >/dev
/null
; then
13902 if test -s conftest.err
; then
13903 ac_cpp_err
=$ac_c_preproc_warn_flag
13904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13911 if test -z "$ac_cpp_err"; then
13912 ac_header_preproc
=yes
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.
$ac_ext >&5
13917 ac_header_preproc
=no
13919 rm -f conftest.err conftest.
$ac_ext
13920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13921 echo "${ECHO_T}$ac_header_preproc" >&6
13923 # So? What about this header?
13924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13927 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13928 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13929 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13930 ac_header_preproc
=yes
13933 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13934 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13936 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13938 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13940 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13941 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13942 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13944 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13947 ## ------------------------------------------ ##
13948 ## Report this to the AC_PACKAGE_NAME lists. ##
13949 ## ------------------------------------------ ##
13952 sed "s/^/$as_me: WARNING: /" >&2
13955 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13956 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13957 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13962 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13963 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13966 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13967 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13968 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13969 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 ac_check_lib_save_LIBS
=$LIBS
13973 LIBS
="-lSM -lICE $LIBS"
13974 cat >conftest.
$ac_ext <<_ACEOF
13977 cat confdefs.h
>>conftest.
$ac_ext
13978 cat >>conftest.
$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13981 /* Override any gcc2 internal prototype to avoid an error. */
13985 /* We use char because int might match the return type of a gcc2
13986 builtin and then its argument prototype would still apply. */
13987 char SmcOpenConnection ();
13991 SmcOpenConnection ();
13996 rm -f conftest.
$ac_objext conftest
$ac_exeext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13998 (eval $ac_link) 2>conftest.er1
14000 grep -v '^ *+' conftest.er1
>conftest.err
14002 cat conftest.err
>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try
='test -z "$ac_c_werror_flag"
14006 || test ! -s conftest.err'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; } &&
14012 { ac_try
='test -s conftest$ac_exeext'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_lib_SM_SmcOpenConnection
=yes
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.
$ac_ext >&5
14023 ac_cv_lib_SM_SmcOpenConnection
=no
14025 rm -f conftest.err conftest.
$ac_objext \
14026 conftest
$ac_exeext conftest.
$ac_ext
14027 LIBS
=$ac_check_lib_save_LIBS
14029 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14030 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
14031 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14039 if test "${HAVE_X_SM}" = "yes"; then
14041 cat >>confdefs.h
<<\_ACEOF
14042 #define HAVE_X_SM 1
14047 *) LIBS
="-lSM -lICE $LIBS" ;;
14052 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14053 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14054 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
14055 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 cat >conftest.
$ac_ext <<_ACEOF
14061 cat confdefs.h
>>conftest.
$ac_ext
14062 cat >>conftest.
$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14073 rm -f conftest.
$ac_objext conftest
$ac_exeext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075 (eval $ac_link) 2>conftest.er1
14077 grep -v '^ *+' conftest.er1
>conftest.err
14079 cat conftest.err
>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try
='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try
='test -s conftest$ac_exeext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 emacs_cv_netdb_declares_h_errno
=yes
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.
$ac_ext >&5
14100 emacs_cv_netdb_declares_h_errno
=no
14102 rm -f conftest.err conftest.
$ac_objext \
14103 conftest
$ac_exeext conftest.
$ac_ext
14105 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14106 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
14107 if test $emacs_cv_netdb_declares_h_errno = yes; then
14109 cat >>confdefs.h
<<\_ACEOF
14110 #define HAVE_H_ERRNO 1
14115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14116 # for constant arguments. Useless!
14117 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14118 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14119 if test "${ac_cv_working_alloca_h+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 cat >conftest.
$ac_ext <<_ACEOF
14125 cat confdefs.h
>>conftest.
$ac_ext
14126 cat >>conftest.
$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 #include <alloca.h>
14132 char *p = (char *) alloca (2 * sizeof (int));
14137 rm -f conftest.
$ac_objext conftest
$ac_exeext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139 (eval $ac_link) 2>conftest.er1
14141 grep -v '^ *+' conftest.er1
>conftest.err
14143 cat conftest.err
>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try
='test -z "$ac_c_werror_flag"
14147 || test ! -s conftest.err'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try
='test -s conftest$ac_exeext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_working_alloca_h
=yes
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.
$ac_ext >&5
14164 ac_cv_working_alloca_h
=no
14166 rm -f conftest.err conftest.
$ac_objext \
14167 conftest
$ac_exeext conftest.
$ac_ext
14169 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14170 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14171 if test $ac_cv_working_alloca_h = yes; then
14173 cat >>confdefs.h
<<\_ACEOF
14174 #define HAVE_ALLOCA_H 1
14179 echo "$as_me:$LINENO: checking for alloca" >&5
14180 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14181 if test "${ac_cv_func_alloca_works+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 cat >conftest.
$ac_ext <<_ACEOF
14187 cat confdefs.h
>>conftest.
$ac_ext
14188 cat >>conftest.
$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14191 # define alloca __builtin_alloca
14194 # include <malloc.h>
14195 # define alloca _alloca
14198 # include <alloca.h>
14203 # ifndef alloca /* predefined by HP cc +Olibcalls */
14214 char *p = (char *) alloca (1);
14219 rm -f conftest.
$ac_objext conftest
$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>conftest.er1
14223 grep -v '^ *+' conftest.er1
>conftest.err
14225 cat conftest.err
>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try
='test -z "$ac_c_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try
='test -s conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_func_alloca_works
=yes
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.
$ac_ext >&5
14246 ac_cv_func_alloca_works
=no
14248 rm -f conftest.err conftest.
$ac_objext \
14249 conftest
$ac_exeext conftest.
$ac_ext
14251 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14252 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14254 if test $ac_cv_func_alloca_works = yes; then
14256 cat >>confdefs.h
<<\_ACEOF
14257 #define HAVE_ALLOCA 1
14261 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14262 # that cause trouble. Some versions do not even contain alloca or
14263 # contain a buggy version. If you still want to use their alloca,
14264 # use ar to extract alloca.o from them instead of compiling alloca.c.
14266 ALLOCA
=alloca.
$ac_objext
14268 cat >>confdefs.h
<<\_ACEOF
14273 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14274 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14275 if test "${ac_cv_os_cray+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 cat >conftest.
$ac_ext <<_ACEOF
14281 cat confdefs.h
>>conftest.
$ac_ext
14282 cat >>conftest.
$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 #if defined(CRAY) && ! defined(CRAY2)
14291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14292 $EGREP "webecray" >/dev
/null
2>&1; then
14300 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14301 echo "${ECHO_T}$ac_cv_os_cray" >&6
14302 if test $ac_cv_os_cray = yes; then
14303 for ac_func
in _getb67 GETB67 getb67
; do
14304 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14305 echo "$as_me:$LINENO: checking for $ac_func" >&5
14306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14307 if eval "test \"\${$as_ac_var+set}\" = set"; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 cat >conftest.
$ac_ext <<_ACEOF
14313 cat confdefs.h
>>conftest.
$ac_ext
14314 cat >>conftest.
$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14318 #define $ac_func innocuous_$ac_func
14320 /* System header to define __stub macros and hopefully few prototypes,
14321 which can conflict with char $ac_func (); below.
14322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14323 <limits.h> exists even on freestanding compilers. */
14326 # include <limits.h>
14328 # include <assert.h>
14333 /* Override any gcc2 internal prototype to avoid an error. */
14338 /* We use char because int might match the return type of a gcc2
14339 builtin and then its argument prototype would still apply. */
14341 /* The GNU C library defines this for functions which it implements
14342 to always fail with ENOSYS. Some functions are actually named
14343 something starting with __ and the normal name is an alias. */
14344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14347 char (*f) () = $ac_func;
14356 return f != $ac_func;
14361 rm -f conftest.
$ac_objext conftest
$ac_exeext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363 (eval $ac_link) 2>conftest.er1
14365 grep -v '^ *+' conftest.er1
>conftest.err
14367 cat conftest.err
>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try
='test -z "$ac_c_werror_flag"
14371 || test ! -s conftest.err'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try
='test -s conftest$ac_exeext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383 eval "$as_ac_var=yes"
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.
$ac_ext >&5
14388 eval "$as_ac_var=no"
14390 rm -f conftest.err conftest.
$ac_objext \
14391 conftest
$ac_exeext conftest.
$ac_ext
14393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14395 if test `eval echo '${'$as_ac_var'}'` = yes; then
14397 cat >>confdefs.h
<<_ACEOF
14398 #define CRAY_STACKSEG_END $ac_func
14407 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14408 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14409 if test "${ac_cv_c_stack_direction+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 if test "$cross_compiling" = yes; then
14413 ac_cv_c_stack_direction
=0
14415 cat >conftest.
$ac_ext <<_ACEOF
14418 cat confdefs.h
>>conftest.
$ac_ext
14419 cat >>conftest.
$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14422 find_stack_direction ()
14424 static char *addr = 0;
14429 return find_stack_direction ();
14432 return (&dummy > addr) ? 1 : -1;
14438 exit (find_stack_direction () < 0);
14441 rm -f conftest
$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443 (eval $ac_link) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14452 ac_cv_c_stack_direction
=1
14454 echo "$as_me: program exited with status $ac_status" >&5
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.
$ac_ext >&5
14458 ( exit $ac_status )
14459 ac_cv_c_stack_direction
=-1
14461 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14464 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14465 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14467 cat >>confdefs.h
<<_ACEOF
14468 #define STACK_DIRECTION $ac_cv_c_stack_direction
14475 # fmod, logb, and frexp are found in -lm on most systems.
14476 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14478 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14479 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
14480 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 ac_check_lib_save_LIBS
=$LIBS
14485 cat >conftest.
$ac_ext <<_ACEOF
14488 cat confdefs.h
>>conftest.
$ac_ext
14489 cat >>conftest.
$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14492 /* Override any gcc2 internal prototype to avoid an error. */
14496 /* We use char because int might match the return type of a gcc2
14497 builtin and then its argument prototype would still apply. */
14507 rm -f conftest.
$ac_objext conftest
$ac_exeext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>conftest.er1
14511 grep -v '^ *+' conftest.er1
>conftest.err
14513 cat conftest.err
>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try
='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try
='test -s conftest$ac_exeext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_cv_lib_m_sqrt
=yes
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.
$ac_ext >&5
14534 ac_cv_lib_m_sqrt
=no
14536 rm -f conftest.err conftest.
$ac_objext \
14537 conftest
$ac_exeext conftest.
$ac_ext
14538 LIBS
=$ac_check_lib_save_LIBS
14540 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14541 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14542 if test $ac_cv_lib_m_sqrt = yes; then
14543 cat >>confdefs.h
<<_ACEOF
14544 #define HAVE_LIBM 1
14552 # Check for mail-locking functions in a "mail" library. Probably this should
14553 # have the same check as for liblockfile below.
14555 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14556 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14557 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 ac_check_lib_save_LIBS
=$LIBS
14561 LIBS
="-lmail $LIBS"
14562 cat >conftest.
$ac_ext <<_ACEOF
14565 cat confdefs.h
>>conftest.
$ac_ext
14566 cat >>conftest.
$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14569 /* Override any gcc2 internal prototype to avoid an error. */
14573 /* We use char because int might match the return type of a gcc2
14574 builtin and then its argument prototype would still apply. */
14584 rm -f conftest.
$ac_objext conftest
$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586 (eval $ac_link) 2>conftest.er1
14588 grep -v '^ *+' conftest.er1
>conftest.err
14590 cat conftest.err
>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
14593 { ac_try
='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try
='test -s conftest$ac_exeext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_cv_lib_mail_maillock
=yes
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.
$ac_ext >&5
14611 ac_cv_lib_mail_maillock
=no
14613 rm -f conftest.err conftest.
$ac_objext \
14614 conftest
$ac_exeext conftest.
$ac_ext
14615 LIBS
=$ac_check_lib_save_LIBS
14617 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14618 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14619 if test $ac_cv_lib_mail_maillock = yes; then
14620 cat >>confdefs.h
<<_ACEOF
14621 #define HAVE_LIBMAIL 1
14624 LIBS
="-lmail $LIBS"
14629 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14630 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14631 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 ac_check_lib_save_LIBS
=$LIBS
14635 LIBS
="-llockfile $LIBS"
14636 cat >conftest.
$ac_ext <<_ACEOF
14639 cat confdefs.h
>>conftest.
$ac_ext
14640 cat >>conftest.
$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14643 /* Override any gcc2 internal prototype to avoid an error. */
14647 /* We use char because int might match the return type of a gcc2
14648 builtin and then its argument prototype would still apply. */
14658 rm -f conftest.
$ac_objext conftest
$ac_exeext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14660 (eval $ac_link) 2>conftest.er1
14662 grep -v '^ *+' conftest.er1
>conftest.err
14664 cat conftest.err
>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
14667 { ac_try
='test -z "$ac_c_werror_flag"
14668 || test ! -s conftest.err'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; } &&
14674 { ac_try
='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_cv_lib_lockfile_maillock
=yes
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.
$ac_ext >&5
14685 ac_cv_lib_lockfile_maillock
=no
14687 rm -f conftest.err conftest.
$ac_objext \
14688 conftest
$ac_exeext conftest.
$ac_ext
14689 LIBS
=$ac_check_lib_save_LIBS
14691 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14692 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14693 if test $ac_cv_lib_lockfile_maillock = yes; then
14694 cat >>confdefs.h
<<_ACEOF
14695 #define HAVE_LIBLOCKFILE 1
14698 LIBS
="-llockfile $LIBS"
14702 # If we have the shared liblockfile, assume we must use it for mail
14703 # locking (e.g. Debian). If we couldn't link against liblockfile
14704 # (no liblockfile.a installed), ensure that we don't need to.
14705 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14706 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14707 set dummy liblockfile.so
; ac_word
=$2
14708 echo "$as_me:$LINENO: checking for $ac_word" >&5
14709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14710 if test "${ac_cv_prog_liblockfile+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 if test -n "$liblockfile"; then
14714 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14717 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14718 for as_dir
in $as_dummy
14721 test -z "$as_dir" && as_dir
=.
14722 for ac_exec_ext
in '' $ac_executable_extensions; do
14723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 ac_cv_prog_liblockfile
="yes"
14725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14731 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14734 liblockfile
=$ac_cv_prog_liblockfile
14735 if test -n "$liblockfile"; then
14736 echo "$as_me:$LINENO: result: $liblockfile" >&5
14737 echo "${ECHO_T}$liblockfile" >&6
14739 echo "$as_me:$LINENO: result: no" >&5
14740 echo "${ECHO_T}no" >&6
14743 if test $ac_cv_prog_liblockfile = yes; then
14744 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14745 This probably means that movemail could lose mail.
14746 There may be a \`development' package to install containing liblockfile." >&5
14747 echo "$as_me: error: Shared liblockfile found but can't link against it.
14748 This probably means that movemail could lose mail.
14749 There may be a \`development' package to install containing liblockfile." >&2;}
14750 { (exit 1); exit 1; }; }
14755 for ac_func
in touchlock
14757 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14758 echo "$as_me:$LINENO: checking for $ac_func" >&5
14759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14760 if eval "test \"\${$as_ac_var+set}\" = set"; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 cat >conftest.
$ac_ext <<_ACEOF
14766 cat confdefs.h
>>conftest.
$ac_ext
14767 cat >>conftest.
$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14771 #define $ac_func innocuous_$ac_func
14773 /* System header to define __stub macros and hopefully few prototypes,
14774 which can conflict with char $ac_func (); below.
14775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14776 <limits.h> exists even on freestanding compilers. */
14779 # include <limits.h>
14781 # include <assert.h>
14786 /* Override any gcc2 internal prototype to avoid an error. */
14791 /* We use char because int might match the return type of a gcc2
14792 builtin and then its argument prototype would still apply. */
14794 /* The GNU C library defines this for functions which it implements
14795 to always fail with ENOSYS. Some functions are actually named
14796 something starting with __ and the normal name is an alias. */
14797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14800 char (*f) () = $ac_func;
14809 return f != $ac_func;
14814 rm -f conftest.
$ac_objext conftest
$ac_exeext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14816 (eval $ac_link) 2>conftest.er1
14818 grep -v '^ *+' conftest.er1
>conftest.err
14820 cat conftest.err
>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try
='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try
='test -s conftest$ac_exeext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 eval "$as_ac_var=yes"
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.
$ac_ext >&5
14841 eval "$as_ac_var=no"
14843 rm -f conftest.err conftest.
$ac_objext \
14844 conftest
$ac_exeext conftest.
$ac_ext
14846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14848 if test `eval echo '${'$as_ac_var'}'` = yes; then
14849 cat >>confdefs.h
<<_ACEOF
14850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14857 for ac_header
in maillock.h
14859 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14861 echo "$as_me:$LINENO: checking for $ac_header" >&5
14862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14869 # Is the header compilable?
14870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14872 cat >conftest.
$ac_ext <<_ACEOF
14875 cat confdefs.h
>>conftest.
$ac_ext
14876 cat >>conftest.
$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 $ac_includes_default
14879 #include <$ac_header>
14881 rm -f conftest.
$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14885 grep -v '^ *+' conftest.er1
>conftest.err
14887 cat conftest.err
>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try
='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try
='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_header_compiler
=yes
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.
$ac_ext >&5
14908 ac_header_compiler
=no
14910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14912 echo "${ECHO_T}$ac_header_compiler" >&6
14914 # Is the header present?
14915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14917 cat >conftest.
$ac_ext <<_ACEOF
14920 cat confdefs.h
>>conftest.
$ac_ext
14921 cat >>conftest.
$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 #include <$ac_header>
14925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14926 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14928 grep -v '^ *+' conftest.er1
>conftest.err
14930 cat conftest.err
>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev
/null
; then
14933 if test -s conftest.err
; then
14934 ac_cpp_err
=$ac_c_preproc_warn_flag
14935 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14942 if test -z "$ac_cpp_err"; then
14943 ac_header_preproc
=yes
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.
$ac_ext >&5
14948 ac_header_preproc
=no
14950 rm -f conftest.err conftest.
$ac_ext
14951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14952 echo "${ECHO_T}$ac_header_preproc" >&6
14954 # So? What about this header?
14955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14961 ac_header_preproc
=yes
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14978 ## ------------------------------------------ ##
14979 ## Report this to the AC_PACKAGE_NAME lists. ##
14980 ## ------------------------------------------ ##
14983 sed "s/^/$as_me: WARNING: /" >&2
14986 echo "$as_me:$LINENO: checking for $ac_header" >&5
14987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 eval "$as_ac_Header=\$ac_header_preproc"
14993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14998 cat >>confdefs.h
<<_ACEOF
14999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075 for ac_func
in gethostname getdomainname dup2 \
15076 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
15077 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15078 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
15079 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15080 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15081 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15082 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
15083 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15085 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15086 echo "$as_me:$LINENO: checking for $ac_func" >&5
15087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15088 if eval "test \"\${$as_ac_var+set}\" = set"; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 cat >conftest.
$ac_ext <<_ACEOF
15094 cat confdefs.h
>>conftest.
$ac_ext
15095 cat >>conftest.
$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15099 #define $ac_func innocuous_$ac_func
15101 /* System header to define __stub macros and hopefully few prototypes,
15102 which can conflict with char $ac_func (); below.
15103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15104 <limits.h> exists even on freestanding compilers. */
15107 # include <limits.h>
15109 # include <assert.h>
15114 /* Override any gcc2 internal prototype to avoid an error. */
15119 /* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15122 /* The GNU C library defines this for functions which it implements
15123 to always fail with ENOSYS. Some functions are actually named
15124 something starting with __ and the normal name is an alias. */
15125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15128 char (*f) () = $ac_func;
15137 return f != $ac_func;
15142 rm -f conftest.
$ac_objext conftest
$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>conftest.er1
15146 grep -v '^ *+' conftest.er1
>conftest.err
15148 cat conftest.err
>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try
='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try
='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 eval "$as_ac_var=yes"
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.
$ac_ext >&5
15169 eval "$as_ac_var=no"
15171 rm -f conftest.err conftest.
$ac_objext \
15172 conftest
$ac_exeext conftest.
$ac_ext
15174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15176 if test `eval echo '${'$as_ac_var'}'` = yes; then
15177 cat >>confdefs.h
<<_ACEOF
15178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15186 for ac_header
in sys
/un.h
15188 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15190 echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15198 # Is the header compilable?
15199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15201 cat >conftest.
$ac_ext <<_ACEOF
15204 cat confdefs.h
>>conftest.
$ac_ext
15205 cat >>conftest.
$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 $ac_includes_default
15208 #include <$ac_header>
15210 rm -f conftest.
$ac_objext
15211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212 (eval $ac_compile) 2>conftest.er1
15214 grep -v '^ *+' conftest.er1
>conftest.err
15216 cat conftest.err
>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try
='test -z "$ac_c_werror_flag"
15220 || test ! -s conftest.err'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try
='test -s conftest.$ac_objext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_header_compiler
=yes
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.
$ac_ext >&5
15237 ac_header_compiler
=no
15239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15241 echo "${ECHO_T}$ac_header_compiler" >&6
15243 # Is the header present?
15244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15246 cat >conftest.
$ac_ext <<_ACEOF
15249 cat confdefs.h
>>conftest.
$ac_ext
15250 cat >>conftest.
$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <$ac_header>
15254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15255 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15257 grep -v '^ *+' conftest.er1
>conftest.err
15259 cat conftest.err
>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } >/dev
/null
; then
15262 if test -s conftest.err
; then
15263 ac_cpp_err
=$ac_c_preproc_warn_flag
15264 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15271 if test -z "$ac_cpp_err"; then
15272 ac_header_preproc
=yes
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.
$ac_ext >&5
15277 ac_header_preproc
=no
15279 rm -f conftest.err conftest.
$ac_ext
15280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15281 echo "${ECHO_T}$ac_header_preproc" >&6
15283 # So? What about this header?
15284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15290 ac_header_preproc
=yes
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15307 ## ------------------------------------------ ##
15308 ## Report this to the AC_PACKAGE_NAME lists. ##
15309 ## ------------------------------------------ ##
15312 sed "s/^/$as_me: WARNING: /" >&2
15315 echo "$as_me:$LINENO: checking for $ac_header" >&5
15316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 eval "$as_ac_Header=\$ac_header_preproc"
15322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15327 cat >>confdefs.h
<<_ACEOF
15328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15339 for ac_header
in stdlib.h sys
/time.h unistd.h
15341 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15343 echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15351 # Is the header compilable?
15352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15354 cat >conftest.
$ac_ext <<_ACEOF
15357 cat confdefs.h
>>conftest.
$ac_ext
15358 cat >>conftest.
$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 $ac_includes_default
15361 #include <$ac_header>
15363 rm -f conftest.
$ac_objext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15365 (eval $ac_compile) 2>conftest.er1
15367 grep -v '^ *+' conftest.er1
>conftest.err
15369 cat conftest.err
>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try
='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try
='test -s conftest.$ac_objext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_header_compiler
=yes
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.
$ac_ext >&5
15390 ac_header_compiler
=no
15392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15394 echo "${ECHO_T}$ac_header_compiler" >&6
15396 # Is the header present?
15397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15399 cat >conftest.
$ac_ext <<_ACEOF
15402 cat confdefs.h
>>conftest.
$ac_ext
15403 cat >>conftest.
$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 #include <$ac_header>
15407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15408 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15410 grep -v '^ *+' conftest.er1
>conftest.err
15412 cat conftest.err
>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } >/dev
/null
; then
15415 if test -s conftest.err
; then
15416 ac_cpp_err
=$ac_c_preproc_warn_flag
15417 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15424 if test -z "$ac_cpp_err"; then
15425 ac_header_preproc
=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.
$ac_ext >&5
15430 ac_header_preproc
=no
15432 rm -f conftest.err conftest.
$ac_ext
15433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15434 echo "${ECHO_T}$ac_header_preproc" >&6
15436 # So? What about this header?
15437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15443 ac_header_preproc
=yes
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15460 ## ------------------------------------------ ##
15461 ## Report this to the AC_PACKAGE_NAME lists. ##
15462 ## ------------------------------------------ ##
15465 sed "s/^/$as_me: WARNING: /" >&2
15468 echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 eval "$as_ac_Header=\$ac_header_preproc"
15475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15480 cat >>confdefs.h
<<_ACEOF
15481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15489 for ac_func
in alarm
15491 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15494 if eval "test \"\${$as_ac_var+set}\" = set"; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 cat >conftest.
$ac_ext <<_ACEOF
15500 cat confdefs.h
>>conftest.
$ac_ext
15501 cat >>conftest.
$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505 #define $ac_func innocuous_$ac_func
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15513 # include <limits.h>
15515 # include <assert.h>
15520 /* Override any gcc2 internal prototype to avoid an error. */
15525 /* We use char because int might match the return type of a gcc2
15526 builtin and then its argument prototype would still apply. */
15528 /* The GNU C library defines this for functions which it implements
15529 to always fail with ENOSYS. Some functions are actually named
15530 something starting with __ and the normal name is an alias. */
15531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15534 char (*f) () = $ac_func;
15543 return f != $ac_func;
15548 rm -f conftest.
$ac_objext conftest
$ac_exeext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550 (eval $ac_link) 2>conftest.er1
15552 grep -v '^ *+' conftest.er1
>conftest.err
15554 cat conftest.err
>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try
='test -z "$ac_c_werror_flag"
15558 || test ! -s conftest.err'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try
='test -s conftest$ac_exeext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 eval "$as_ac_var=yes"
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.
$ac_ext >&5
15575 eval "$as_ac_var=no"
15577 rm -f conftest.err conftest.
$ac_objext \
15578 conftest
$ac_exeext conftest.
$ac_ext
15580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15582 if test `eval echo '${'$as_ac_var'}'` = yes; then
15583 cat >>confdefs.h
<<_ACEOF
15584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15590 echo "$as_me:$LINENO: checking for working mktime" >&5
15591 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15592 if test "${ac_cv_func_working_mktime+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 if test "$cross_compiling" = yes; then
15596 ac_cv_func_working_mktime
=no
15598 cat >conftest.
$ac_ext <<_ACEOF
15601 cat confdefs.h
>>conftest.
$ac_ext
15602 cat >>conftest.
$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 /* Test program from Paul Eggert and Tony Leneis. */
15605 #if TIME_WITH_SYS_TIME
15606 # include <sys/time.h>
15609 # if HAVE_SYS_TIME_H
15610 # include <sys/time.h>
15617 # include <stdlib.h>
15621 # include <unistd.h>
15625 # define alarm(X) /* empty */
15628 /* Work around redefinition to rpl_putenv by other config tests. */
15631 static time_t time_t_max;
15632 static time_t time_t_min;
15634 /* Values we'll use to set the TZ environment variable. */
15635 static char *tz_strings[] = {
15636 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15637 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15639 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15641 /* Fail if mktime fails to convert a date in the spring-forward gap.
15642 Based on a problem report from Andreas Jaeger. */
15644 spring_forward_gap ()
15646 /* glibc (up to about 1998-10-07) failed this test. */
15649 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15650 instead of "TZ=America/Vancouver" in order to detect the bug even
15651 on systems that don't support the Olson extension, or don't have the
15652 full zoneinfo tables installed. */
15653 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15662 if (mktime (&tm) == (time_t)-1)
15671 if ((lt = localtime (&now)) && mktime (lt) != now)
15679 mktime_test1 (now);
15680 mktime_test1 ((time_t) (time_t_max - now));
15681 mktime_test1 ((time_t) (time_t_min + now));
15687 /* Based on code from Ariel Faigon. */
15697 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15707 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15708 now = mktime (&tm);
15709 if (now != (time_t) -1)
15711 struct tm *lt = localtime (&now);
15713 && lt->tm_year == tm.tm_year
15714 && lt->tm_mon == tm.tm_mon
15715 && lt->tm_mday == tm.tm_mday
15716 && lt->tm_hour == tm.tm_hour
15717 && lt->tm_min == tm.tm_min
15718 && lt->tm_sec == tm.tm_sec
15719 && lt->tm_yday == tm.tm_yday
15720 && lt->tm_wday == tm.tm_wday
15721 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15722 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15733 /* This test makes some buggy mktime implementations loop.
15734 Give up after 60 seconds; a mktime slower than that
15735 isn't worth using anyway. */
15738 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15741 if ((time_t) -1 < 0)
15742 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15744 delta = time_t_max / 997; /* a suitable prime number */
15745 for (i = 0; i < N_STRINGS; i++)
15748 putenv (tz_strings[i]);
15750 for (t = 0; t <= time_t_max - delta; t += delta)
15752 mktime_test ((time_t) 1);
15753 mktime_test ((time_t) (60 * 60));
15754 mktime_test ((time_t) (60 * 60 * 24));
15756 for (j = 1; 0 < j; j *= 2)
15758 bigtime_test (j - 1);
15761 spring_forward_gap ();
15765 rm -f conftest
$ac_exeext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15767 (eval $ac_link) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_func_working_mktime
=yes
15778 echo "$as_me: program exited with status $ac_status" >&5
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.
$ac_ext >&5
15782 ( exit $ac_status )
15783 ac_cv_func_working_mktime
=no
15785 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15788 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15789 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15790 if test $ac_cv_func_working_mktime = no
; then
15792 "mktime.$ac_objext" | \
15793 *" mktime.$ac_objext" | \
15794 "mktime.$ac_objext "* | \
15795 *" mktime.$ac_objext "* ) ;;
15796 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15801 if test "$ac_cv_func_working_mktime" = no
; then
15803 cat >>confdefs.h
<<\_ACEOF
15804 #define BROKEN_MKTIME 1
15809 ac_have_func
=no
# yes means we've found a way to get the load average.
15811 # Make sure getloadavg.c is where it belongs, at configure-time.
15812 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15813 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15814 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15815 { (exit 1); exit 1; }; }
15819 # Check for getloadavg, but be sure not to touch the cache variable.
15820 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15821 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15822 if test "${ac_cv_func_getloadavg+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 cat >conftest.
$ac_ext <<_ACEOF
15828 cat confdefs.h
>>conftest.
$ac_ext
15829 cat >>conftest.
$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15833 #define getloadavg innocuous_getloadavg
15835 /* System header to define __stub macros and hopefully few prototypes,
15836 which can conflict with char getloadavg (); below.
15837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15838 <limits.h> exists even on freestanding compilers. */
15841 # include <limits.h>
15843 # include <assert.h>
15848 /* Override any gcc2 internal prototype to avoid an error. */
15853 /* We use char because int might match the return type of a gcc2
15854 builtin and then its argument prototype would still apply. */
15855 char getloadavg ();
15856 /* The GNU C library defines this for functions which it implements
15857 to always fail with ENOSYS. Some functions are actually named
15858 something starting with __ and the normal name is an alias. */
15859 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15862 char (*f) () = getloadavg;
15871 return f != getloadavg;
15876 rm -f conftest.
$ac_objext conftest
$ac_exeext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15878 (eval $ac_link) 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); } &&
15885 { ac_try
='test -z "$ac_c_werror_flag"
15886 || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try
='test -s conftest$ac_exeext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 ac_cv_func_getloadavg
=yes
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.
$ac_ext >&5
15903 ac_cv_func_getloadavg
=no
15905 rm -f conftest.err conftest.
$ac_objext \
15906 conftest
$ac_exeext conftest.
$ac_ext
15908 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15909 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15910 if test $ac_cv_func_getloadavg = yes; then
15915 ) && ac_have_func
=yes
15917 # On HPUX9, an unprivileged user can get load averages through this function.
15919 for ac_func
in pstat_getdynamic
15921 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15922 echo "$as_me:$LINENO: checking for $ac_func" >&5
15923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15924 if eval "test \"\${$as_ac_var+set}\" = set"; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 cat >conftest.
$ac_ext <<_ACEOF
15930 cat confdefs.h
>>conftest.
$ac_ext
15931 cat >>conftest.
$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15935 #define $ac_func innocuous_$ac_func
15937 /* System header to define __stub macros and hopefully few prototypes,
15938 which can conflict with char $ac_func (); below.
15939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940 <limits.h> exists even on freestanding compilers. */
15943 # include <limits.h>
15945 # include <assert.h>
15950 /* Override any gcc2 internal prototype to avoid an error. */
15955 /* We use char because int might match the return type of a gcc2
15956 builtin and then its argument prototype would still apply. */
15958 /* The GNU C library defines this for functions which it implements
15959 to always fail with ENOSYS. Some functions are actually named
15960 something starting with __ and the normal name is an alias. */
15961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15964 char (*f) () = $ac_func;
15973 return f != $ac_func;
15978 rm -f conftest.
$ac_objext conftest
$ac_exeext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980 (eval $ac_link) 2>conftest.er1
15982 grep -v '^ *+' conftest.er1
>conftest.err
15984 cat conftest.err
>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try
='test -z "$ac_c_werror_flag"
15988 || test ! -s conftest.err'
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try
='test -s conftest$ac_exeext'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 eval "$as_ac_var=yes"
16002 echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.
$ac_ext >&5
16005 eval "$as_ac_var=no"
16007 rm -f conftest.err conftest.
$ac_objext \
16008 conftest
$ac_exeext conftest.
$ac_ext
16010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16012 if test `eval echo '${'$as_ac_var'}'` = yes; then
16013 cat >>confdefs.h
<<_ACEOF
16014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16021 # Solaris has libkstat which does not require root.
16023 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16024 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16025 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 ac_check_lib_save_LIBS
=$LIBS
16029 LIBS
="-lkstat $LIBS"
16030 cat >conftest.
$ac_ext <<_ACEOF
16033 cat confdefs.h
>>conftest.
$ac_ext
16034 cat >>conftest.
$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16037 /* Override any gcc2 internal prototype to avoid an error. */
16041 /* We use char because int might match the return type of a gcc2
16042 builtin and then its argument prototype would still apply. */
16043 char kstat_open ();
16052 rm -f conftest.
$ac_objext conftest
$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054 (eval $ac_link) 2>conftest.er1
16056 grep -v '^ *+' conftest.er1
>conftest.err
16058 cat conftest.err
>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } &&
16061 { ac_try
='test -z "$ac_c_werror_flag"
16062 || test ! -s conftest.err'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try
='test -s conftest$ac_exeext'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 ac_cv_lib_kstat_kstat_open
=yes
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.
$ac_ext >&5
16079 ac_cv_lib_kstat_kstat_open
=no
16081 rm -f conftest.err conftest.
$ac_objext \
16082 conftest
$ac_exeext conftest.
$ac_ext
16083 LIBS
=$ac_check_lib_save_LIBS
16085 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16086 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16087 if test $ac_cv_lib_kstat_kstat_open = yes; then
16088 cat >>confdefs.h
<<_ACEOF
16089 #define HAVE_LIBKSTAT 1
16092 LIBS
="-lkstat $LIBS"
16096 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
16098 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16099 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16100 # to get the right answer into the cache.
16101 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16102 if test $ac_have_func = no
; then
16103 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16104 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16105 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 ac_check_lib_save_LIBS
=$LIBS
16110 cat >conftest.
$ac_ext <<_ACEOF
16113 cat confdefs.h
>>conftest.
$ac_ext
16114 cat >>conftest.
$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16117 /* Override any gcc2 internal prototype to avoid an error. */
16121 /* We use char because int might match the return type of a gcc2
16122 builtin and then its argument prototype would still apply. */
16132 rm -f conftest.
$ac_objext conftest
$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134 (eval $ac_link) 2>conftest.er1
16136 grep -v '^ *+' conftest.er1
>conftest.err
16138 cat conftest.err
>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try
='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try
='test -s conftest$ac_exeext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_lib_elf_elf_begin
=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.
$ac_ext >&5
16159 ac_cv_lib_elf_elf_begin
=no
16161 rm -f conftest.err conftest.
$ac_objext \
16162 conftest
$ac_exeext conftest.
$ac_ext
16163 LIBS
=$ac_check_lib_save_LIBS
16165 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16166 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16167 if test $ac_cv_lib_elf_elf_begin = yes; then
16172 if test $ac_have_func = no
; then
16173 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16174 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16175 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 ac_check_lib_save_LIBS
=$LIBS
16180 cat >conftest.
$ac_ext <<_ACEOF
16183 cat confdefs.h
>>conftest.
$ac_ext
16184 cat >>conftest.
$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16187 /* Override any gcc2 internal prototype to avoid an error. */
16191 /* We use char because int might match the return type of a gcc2
16192 builtin and then its argument prototype would still apply. */
16202 rm -f conftest.
$ac_objext conftest
$ac_exeext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16204 (eval $ac_link) 2>conftest.er1
16206 grep -v '^ *+' conftest.er1
>conftest.err
16208 cat conftest.err
>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try
='test -z "$ac_c_werror_flag"
16212 || test ! -s conftest.err'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try
='test -s conftest$ac_exeext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_cv_lib_kvm_kvm_open
=yes
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.
$ac_ext >&5
16229 ac_cv_lib_kvm_kvm_open
=no
16231 rm -f conftest.err conftest.
$ac_objext \
16232 conftest
$ac_exeext conftest.
$ac_ext
16233 LIBS
=$ac_check_lib_save_LIBS
16235 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16236 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16237 if test $ac_cv_lib_kvm_kvm_open = yes; then
16241 # Check for the 4.4BSD definition of getloadavg.
16242 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16243 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16244 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 ac_check_lib_save_LIBS
=$LIBS
16248 LIBS
="-lutil $LIBS"
16249 cat >conftest.
$ac_ext <<_ACEOF
16252 cat confdefs.h
>>conftest.
$ac_ext
16253 cat >>conftest.
$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16256 /* Override any gcc2 internal prototype to avoid an error. */
16260 /* We use char because int might match the return type of a gcc2
16261 builtin and then its argument prototype would still apply. */
16262 char getloadavg ();
16271 rm -f conftest.
$ac_objext conftest
$ac_exeext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273 (eval $ac_link) 2>conftest.er1
16275 grep -v '^ *+' conftest.er1
>conftest.err
16277 cat conftest.err
>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try
='test -z "$ac_c_werror_flag"
16281 || test ! -s conftest.err'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try
='test -s conftest$ac_exeext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_cv_lib_util_getloadavg
=yes
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.
$ac_ext >&5
16298 ac_cv_lib_util_getloadavg
=no
16300 rm -f conftest.err conftest.
$ac_objext \
16301 conftest
$ac_exeext conftest.
$ac_ext
16302 LIBS
=$ac_check_lib_save_LIBS
16304 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16305 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16306 if test $ac_cv_lib_util_getloadavg = yes; then
16307 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
16312 if test $ac_have_func = no
; then
16313 # There is a commonly available library for RS/6000 AIX.
16314 # Since it is not a standard part of AIX, it might be installed locally.
16315 ac_getloadavg_LIBS
=$LIBS
16316 LIBS
="-L/usr/local/lib $LIBS"
16317 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16318 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16319 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 ac_check_lib_save_LIBS
=$LIBS
16323 LIBS
="-lgetloadavg $LIBS"
16324 cat >conftest.
$ac_ext <<_ACEOF
16327 cat confdefs.h
>>conftest.
$ac_ext
16328 cat >>conftest.
$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16331 /* Override any gcc2 internal prototype to avoid an error. */
16335 /* We use char because int might match the return type of a gcc2
16336 builtin and then its argument prototype would still apply. */
16337 char getloadavg ();
16346 rm -f conftest.
$ac_objext conftest
$ac_exeext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348 (eval $ac_link) 2>conftest.er1
16350 grep -v '^ *+' conftest.er1
>conftest.err
16352 cat conftest.err
>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try
='test -z "$ac_c_werror_flag"
16356 || test ! -s conftest.err'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try
='test -s conftest$ac_exeext'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_cv_lib_getloadavg_getloadavg
=yes
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.
$ac_ext >&5
16373 ac_cv_lib_getloadavg_getloadavg
=no
16375 rm -f conftest.err conftest.
$ac_objext \
16376 conftest
$ac_exeext conftest.
$ac_ext
16377 LIBS
=$ac_check_lib_save_LIBS
16379 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16380 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16381 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16382 LIBS
="-lgetloadavg $LIBS"
16384 LIBS
=$ac_getloadavg_LIBS
16389 # Make sure it is really in the library, if we think we found it,
16390 # otherwise set up the replacement function.
16392 for ac_func
in getloadavg
16394 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16395 echo "$as_me:$LINENO: checking for $ac_func" >&5
16396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16397 if eval "test \"\${$as_ac_var+set}\" = set"; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 cat >conftest.
$ac_ext <<_ACEOF
16403 cat confdefs.h
>>conftest.
$ac_ext
16404 cat >>conftest.
$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16408 #define $ac_func innocuous_$ac_func
16410 /* System header to define __stub macros and hopefully few prototypes,
16411 which can conflict with char $ac_func (); below.
16412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16413 <limits.h> exists even on freestanding compilers. */
16416 # include <limits.h>
16418 # include <assert.h>
16423 /* Override any gcc2 internal prototype to avoid an error. */
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16431 /* The GNU C library defines this for functions which it implements
16432 to always fail with ENOSYS. Some functions are actually named
16433 something starting with __ and the normal name is an alias. */
16434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16437 char (*f) () = $ac_func;
16446 return f != $ac_func;
16451 rm -f conftest.
$ac_objext conftest
$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>conftest.er1
16455 grep -v '^ *+' conftest.er1
>conftest.err
16457 cat conftest.err
>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try
='test -z "$ac_c_werror_flag"
16461 || test ! -s conftest.err'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try
='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 eval "$as_ac_var=yes"
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.
$ac_ext >&5
16478 eval "$as_ac_var=no"
16480 rm -f conftest.err conftest.
$ac_objext \
16481 conftest
$ac_exeext conftest.
$ac_ext
16483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16485 if test `eval echo '${'$as_ac_var'}'` = yes; then
16486 cat >>confdefs.h
<<_ACEOF
16487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492 "getloadavg.$ac_objext" | \
16493 *" getloadavg.$ac_objext" | \
16494 "getloadavg.$ac_objext "* | \
16495 *" getloadavg.$ac_objext "* ) ;;
16496 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
16500 cat >>confdefs.h
<<\_ACEOF
16501 #define C_GETLOADAVG 1
16504 # Figure out what our getloadavg.c needs.
16506 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16507 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16508 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16509 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16513 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16515 # Is the header compilable?
16516 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16517 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16518 cat >conftest.
$ac_ext <<_ACEOF
16521 cat confdefs.h
>>conftest.
$ac_ext
16522 cat >>conftest.
$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 $ac_includes_default
16525 #include <sys/dg_sys_info.h>
16527 rm -f conftest.
$ac_objext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16529 (eval $ac_compile) 2>conftest.er1
16531 grep -v '^ *+' conftest.er1
>conftest.err
16533 cat conftest.err
>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try
='test -z "$ac_c_werror_flag"
16537 || test ! -s conftest.err'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try
='test -s conftest.$ac_objext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_header_compiler
=yes
16551 echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.
$ac_ext >&5
16554 ac_header_compiler
=no
16556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558 echo "${ECHO_T}$ac_header_compiler" >&6
16560 # Is the header present?
16561 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16562 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16563 cat >conftest.
$ac_ext <<_ACEOF
16566 cat confdefs.h
>>conftest.
$ac_ext
16567 cat >>conftest.
$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <sys/dg_sys_info.h>
16571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16572 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16574 grep -v '^ *+' conftest.er1
>conftest.err
16576 cat conftest.err
>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } >/dev
/null
; then
16579 if test -s conftest.err
; then
16580 ac_cpp_err
=$ac_c_preproc_warn_flag
16581 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16588 if test -z "$ac_cpp_err"; then
16589 ac_header_preproc
=yes
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.
$ac_ext >&5
16594 ac_header_preproc
=no
16596 rm -f conftest.err conftest.
$ac_ext
16597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16598 echo "${ECHO_T}$ac_header_preproc" >&6
16600 # So? What about this header?
16601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16603 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16604 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16606 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16607 ac_header_preproc
=yes
16610 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16611 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16613 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16615 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16616 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16617 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16619 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16621 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16624 ## ------------------------------------------ ##
16625 ## Report this to the AC_PACKAGE_NAME lists. ##
16626 ## ------------------------------------------ ##
16629 sed "s/^/$as_me: WARNING: /" >&2
16632 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16633 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16634 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16639 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16640 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16643 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16646 cat >>confdefs.h
<<\_ACEOF
16651 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16652 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16653 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 ac_check_lib_save_LIBS
=$LIBS
16658 cat >conftest.
$ac_ext <<_ACEOF
16661 cat confdefs.h
>>conftest.
$ac_ext
16662 cat >>conftest.
$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16665 /* Override any gcc2 internal prototype to avoid an error. */
16669 /* We use char because int might match the return type of a gcc2
16670 builtin and then its argument prototype would still apply. */
16671 char dg_sys_info ();
16680 rm -f conftest.
$ac_objext conftest
$ac_exeext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16682 (eval $ac_link) 2>conftest.er1
16684 grep -v '^ *+' conftest.er1
>conftest.err
16686 cat conftest.err
>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try
='test -z "$ac_c_werror_flag"
16690 || test ! -s conftest.err'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; } &&
16696 { ac_try
='test -s conftest$ac_exeext'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_lib_dgc_dg_sys_info
=yes
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.
$ac_ext >&5
16707 ac_cv_lib_dgc_dg_sys_info
=no
16709 rm -f conftest.err conftest.
$ac_objext \
16710 conftest
$ac_exeext conftest.
$ac_ext
16711 LIBS
=$ac_check_lib_save_LIBS
16713 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16714 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16715 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16716 cat >>confdefs.h
<<_ACEOF
16717 #define HAVE_LIBDGC 1
16728 if test "${ac_cv_header_locale_h+set}" = set; then
16729 echo "$as_me:$LINENO: checking for locale.h" >&5
16730 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16731 if test "${ac_cv_header_locale_h+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16735 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16737 # Is the header compilable?
16738 echo "$as_me:$LINENO: checking locale.h usability" >&5
16739 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16740 cat >conftest.
$ac_ext <<_ACEOF
16743 cat confdefs.h
>>conftest.
$ac_ext
16744 cat >>conftest.
$ac_ext <<_ACEOF
16745 /* end confdefs.h. */
16746 $ac_includes_default
16747 #include <locale.h>
16749 rm -f conftest.
$ac_objext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16751 (eval $ac_compile) 2>conftest.er1
16753 grep -v '^ *+' conftest.er1
>conftest.err
16755 cat conftest.err
>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try
='test -z "$ac_c_werror_flag"
16759 || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try
='test -s conftest.$ac_objext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_header_compiler
=yes
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.
$ac_ext >&5
16776 ac_header_compiler
=no
16778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16780 echo "${ECHO_T}$ac_header_compiler" >&6
16782 # Is the header present?
16783 echo "$as_me:$LINENO: checking locale.h presence" >&5
16784 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16785 cat >conftest.
$ac_ext <<_ACEOF
16788 cat confdefs.h
>>conftest.
$ac_ext
16789 cat >>conftest.
$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16791 #include <locale.h>
16793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16794 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16796 grep -v '^ *+' conftest.er1
>conftest.err
16798 cat conftest.err
>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } >/dev
/null
; then
16801 if test -s conftest.err
; then
16802 ac_cpp_err
=$ac_c_preproc_warn_flag
16803 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16810 if test -z "$ac_cpp_err"; then
16811 ac_header_preproc
=yes
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.
$ac_ext >&5
16816 ac_header_preproc
=no
16818 rm -f conftest.err conftest.
$ac_ext
16819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16820 echo "${ECHO_T}$ac_header_preproc" >&6
16822 # So? What about this header?
16823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16825 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16826 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16828 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16829 ac_header_preproc
=yes
16832 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16833 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16834 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16835 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16836 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16837 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16838 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16839 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16840 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16841 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16843 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16846 ## ------------------------------------------ ##
16847 ## Report this to the AC_PACKAGE_NAME lists. ##
16848 ## ------------------------------------------ ##
16851 sed "s/^/$as_me: WARNING: /" >&2
16854 echo "$as_me:$LINENO: checking for locale.h" >&5
16855 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16856 if test "${ac_cv_header_locale_h+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 ac_cv_header_locale_h
=$ac_header_preproc
16861 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16862 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16868 for ac_func
in setlocale
16870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16871 echo "$as_me:$LINENO: checking for $ac_func" >&5
16872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16873 if eval "test \"\${$as_ac_var+set}\" = set"; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16876 cat >conftest.
$ac_ext <<_ACEOF
16879 cat confdefs.h
>>conftest.
$ac_ext
16880 cat >>conftest.
$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16884 #define $ac_func innocuous_$ac_func
16886 /* System header to define __stub macros and hopefully few prototypes,
16887 which can conflict with char $ac_func (); below.
16888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16889 <limits.h> exists even on freestanding compilers. */
16892 # include <limits.h>
16894 # include <assert.h>
16899 /* Override any gcc2 internal prototype to avoid an error. */
16904 /* We use char because int might match the return type of a gcc2
16905 builtin and then its argument prototype would still apply. */
16907 /* The GNU C library defines this for functions which it implements
16908 to always fail with ENOSYS. Some functions are actually named
16909 something starting with __ and the normal name is an alias. */
16910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16913 char (*f) () = $ac_func;
16922 return f != $ac_func;
16927 rm -f conftest.
$ac_objext conftest
$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>conftest.er1
16931 grep -v '^ *+' conftest.er1
>conftest.err
16933 cat conftest.err
>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try
='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try
='test -s conftest$ac_exeext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 eval "$as_ac_var=yes"
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.
$ac_ext >&5
16954 eval "$as_ac_var=no"
16956 rm -f conftest.err conftest.
$ac_objext \
16957 conftest
$ac_exeext conftest.
$ac_ext
16959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16961 if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h
<<_ACEOF
16963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16970 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16971 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16972 # Irix 4.0.5F has the header but not the library.
16973 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16976 cat >>confdefs.h
<<\_ACEOF
16982 if test $ac_have_func = no
; then
16983 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16984 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16985 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16986 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16990 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16992 # Is the header compilable?
16993 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16994 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16995 cat >conftest.
$ac_ext <<_ACEOF
16998 cat confdefs.h
>>conftest.
$ac_ext
16999 cat >>conftest.
$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 $ac_includes_default
17002 #include <inq_stats/cpustats.h>
17004 rm -f conftest.
$ac_objext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006 (eval $ac_compile) 2>conftest.er1
17008 grep -v '^ *+' conftest.er1
>conftest.err
17010 cat conftest.err
>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try
='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try
='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_header_compiler
=yes
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.
$ac_ext >&5
17031 ac_header_compiler
=no
17033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17035 echo "${ECHO_T}$ac_header_compiler" >&6
17037 # Is the header present?
17038 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17039 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17040 cat >conftest.
$ac_ext <<_ACEOF
17043 cat confdefs.h
>>conftest.
$ac_ext
17044 cat >>conftest.
$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 #include <inq_stats/cpustats.h>
17048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17049 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17051 grep -v '^ *+' conftest.er1
>conftest.err
17053 cat conftest.err
>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } >/dev
/null
; then
17056 if test -s conftest.err
; then
17057 ac_cpp_err
=$ac_c_preproc_warn_flag
17058 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17065 if test -z "$ac_cpp_err"; then
17066 ac_header_preproc
=yes
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.
$ac_ext >&5
17071 ac_header_preproc
=no
17073 rm -f conftest.err conftest.
$ac_ext
17074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17075 echo "${ECHO_T}$ac_header_preproc" >&6
17077 # So? What about this header?
17078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17080 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17081 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17083 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17084 ac_header_preproc
=yes
17087 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17088 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17090 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17092 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17094 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17096 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17098 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17101 ## ------------------------------------------ ##
17102 ## Report this to the AC_PACKAGE_NAME lists. ##
17103 ## ------------------------------------------ ##
17106 sed "s/^/$as_me: WARNING: /" >&2
17109 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17110 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
17116 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17117 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17120 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17123 cat >>confdefs.h
<<\_ACEOF
17128 cat >>confdefs.h
<<\_ACEOF
17137 if test $ac_have_func = no
; then
17138 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17139 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17140 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17141 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17145 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17147 # Is the header compilable?
17148 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17149 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17150 cat >conftest.
$ac_ext <<_ACEOF
17153 cat confdefs.h
>>conftest.
$ac_ext
17154 cat >>conftest.
$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 $ac_includes_default
17157 #include <sys/cpustats.h>
17159 rm -f conftest.
$ac_objext
17160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17161 (eval $ac_compile) 2>conftest.er1
17163 grep -v '^ *+' conftest.er1
>conftest.err
17165 cat conftest.err
>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try
='test -z "$ac_c_werror_flag"
17169 || test ! -s conftest.err'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try
='test -s conftest.$ac_objext'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_header_compiler
=yes
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.
$ac_ext >&5
17186 ac_header_compiler
=no
17188 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17190 echo "${ECHO_T}$ac_header_compiler" >&6
17192 # Is the header present?
17193 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17194 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17195 cat >conftest.
$ac_ext <<_ACEOF
17198 cat confdefs.h
>>conftest.
$ac_ext
17199 cat >>conftest.
$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 #include <sys/cpustats.h>
17203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17204 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17206 grep -v '^ *+' conftest.er1
>conftest.err
17208 cat conftest.err
>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } >/dev
/null
; then
17211 if test -s conftest.err
; then
17212 ac_cpp_err
=$ac_c_preproc_warn_flag
17213 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17220 if test -z "$ac_cpp_err"; then
17221 ac_header_preproc
=yes
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.
$ac_ext >&5
17226 ac_header_preproc
=no
17228 rm -f conftest.err conftest.
$ac_ext
17229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17230 echo "${ECHO_T}$ac_header_preproc" >&6
17232 # So? What about this header?
17233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17235 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17236 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17238 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17239 ac_header_preproc
=yes
17242 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17243 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17244 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17245 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17246 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17247 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17249 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17251 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17253 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17256 ## ------------------------------------------ ##
17257 ## Report this to the AC_PACKAGE_NAME lists. ##
17258 ## ------------------------------------------ ##
17261 sed "s/^/$as_me: WARNING: /" >&2
17264 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17265 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17266 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
17271 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17272 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17275 if test $ac_cv_header_sys_cpustats_h = yes; then
17276 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
17285 if test $ac_have_func = no
; then
17287 for ac_header
in mach
/mach.h
17289 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17291 echo "$as_me:$LINENO: checking for $ac_header" >&5
17292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17299 # Is the header compilable?
17300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17302 cat >conftest.
$ac_ext <<_ACEOF
17305 cat confdefs.h
>>conftest.
$ac_ext
17306 cat >>conftest.
$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17308 $ac_includes_default
17309 #include <$ac_header>
17311 rm -f conftest.
$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>conftest.er1
17315 grep -v '^ *+' conftest.er1
>conftest.err
17317 cat conftest.err
>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try
='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try
='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_header_compiler
=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.
$ac_ext >&5
17338 ac_header_compiler
=no
17340 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17342 echo "${ECHO_T}$ac_header_compiler" >&6
17344 # Is the header present?
17345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17347 cat >conftest.
$ac_ext <<_ACEOF
17350 cat confdefs.h
>>conftest.
$ac_ext
17351 cat >>conftest.
$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 #include <$ac_header>
17355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17356 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17358 grep -v '^ *+' conftest.er1
>conftest.err
17360 cat conftest.err
>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } >/dev
/null
; then
17363 if test -s conftest.err
; then
17364 ac_cpp_err
=$ac_c_preproc_warn_flag
17365 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17372 if test -z "$ac_cpp_err"; then
17373 ac_header_preproc
=yes
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.
$ac_ext >&5
17378 ac_header_preproc
=no
17380 rm -f conftest.err conftest.
$ac_ext
17381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17382 echo "${ECHO_T}$ac_header_preproc" >&6
17384 # So? What about this header?
17385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17391 ac_header_preproc
=yes
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17408 ## ------------------------------------------ ##
17409 ## Report this to the AC_PACKAGE_NAME lists. ##
17410 ## ------------------------------------------ ##
17413 sed "s/^/$as_me: WARNING: /" >&2
17416 echo "$as_me:$LINENO: checking for $ac_header" >&5
17417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 eval "$as_ac_Header=\$ac_header_preproc"
17423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17428 cat >>confdefs.h
<<_ACEOF
17429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17439 for ac_header
in nlist.h
17441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17443 echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17451 # Is the header compilable?
17452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17454 cat >conftest.
$ac_ext <<_ACEOF
17457 cat confdefs.h
>>conftest.
$ac_ext
17458 cat >>conftest.
$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 $ac_includes_default
17461 #include <$ac_header>
17463 rm -f conftest.
$ac_objext
17464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17465 (eval $ac_compile) 2>conftest.er1
17467 grep -v '^ *+' conftest.er1
>conftest.err
17469 cat conftest.err
>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try
='test -z "$ac_c_werror_flag"
17473 || test ! -s conftest.err'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try
='test -s conftest.$ac_objext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_header_compiler
=yes
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.
$ac_ext >&5
17490 ac_header_compiler
=no
17492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17494 echo "${ECHO_T}$ac_header_compiler" >&6
17496 # Is the header present?
17497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17499 cat >conftest.
$ac_ext <<_ACEOF
17502 cat confdefs.h
>>conftest.
$ac_ext
17503 cat >>conftest.
$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 #include <$ac_header>
17507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17508 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17510 grep -v '^ *+' conftest.er1
>conftest.err
17512 cat conftest.err
>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } >/dev
/null
; then
17515 if test -s conftest.err
; then
17516 ac_cpp_err
=$ac_c_preproc_warn_flag
17517 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17524 if test -z "$ac_cpp_err"; then
17525 ac_header_preproc
=yes
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.
$ac_ext >&5
17530 ac_header_preproc
=no
17532 rm -f conftest.err conftest.
$ac_ext
17533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17534 echo "${ECHO_T}$ac_header_preproc" >&6
17536 # So? What about this header?
17537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17543 ac_header_preproc
=yes
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17560 ## ------------------------------------------ ##
17561 ## Report this to the AC_PACKAGE_NAME lists. ##
17562 ## ------------------------------------------ ##
17565 sed "s/^/$as_me: WARNING: /" >&2
17568 echo "$as_me:$LINENO: checking for $ac_header" >&5
17569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 eval "$as_ac_Header=\$ac_header_preproc"
17575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17580 cat >>confdefs.h
<<_ACEOF
17581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17583 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17584 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17585 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 cat >conftest.
$ac_ext <<_ACEOF
17591 cat confdefs.h
>>conftest.
$ac_ext
17592 cat >>conftest.
$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17599 static struct nlist ac_aggr;
17600 if (ac_aggr.n_un.n_name)
17606 rm -f conftest.
$ac_objext
17607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17608 (eval $ac_compile) 2>conftest.er1
17610 grep -v '^ *+' conftest.er1
>conftest.err
17612 cat conftest.err
>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } &&
17615 { ac_try
='test -z "$ac_c_werror_flag"
17616 || test ! -s conftest.err'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; } &&
17622 { ac_try
='test -s conftest.$ac_objext'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 ac_cv_member_struct_nlist_n_un_n_name
=yes
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.
$ac_ext >&5
17633 cat >conftest.
$ac_ext <<_ACEOF
17636 cat confdefs.h
>>conftest.
$ac_ext
17637 cat >>conftest.
$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17644 static struct nlist ac_aggr;
17645 if (sizeof ac_aggr.n_un.n_name)
17651 rm -f conftest.
$ac_objext
17652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17653 (eval $ac_compile) 2>conftest.er1
17655 grep -v '^ *+' conftest.er1
>conftest.err
17657 cat conftest.err
>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try
='test -z "$ac_c_werror_flag"
17661 || test ! -s conftest.err'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try
='test -s conftest.$ac_objext'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; }; then
17673 ac_cv_member_struct_nlist_n_un_n_name
=yes
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.
$ac_ext >&5
17678 ac_cv_member_struct_nlist_n_un_n_name
=no
17680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17684 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17685 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17686 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17688 cat >>confdefs.h
<<_ACEOF
17689 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17693 cat >>confdefs.h
<<\_ACEOF
17694 #define NLIST_NAME_UNION 1
17708 # Some definitions of getloadavg require that the program be installed setgid.
17709 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17710 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17711 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 cat >conftest.
$ac_ext <<_ACEOF
17717 cat confdefs.h
>>conftest.
$ac_ext
17718 cat >>conftest.
$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17721 #ifdef LDAV_PRIVILEGED
17722 Yowza Am I SETGID yet
17725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17726 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17727 ac_cv_func_getloadavg_setgid
=yes
17729 ac_cv_func_getloadavg_setgid
=no
17734 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17735 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17736 if test $ac_cv_func_getloadavg_setgid = yes; then
17739 cat >>confdefs.h
<<\_ACEOF
17740 #define GETLOADAVG_PRIVILEGED 1
17747 if test $ac_cv_func_getloadavg_setgid = yes; then
17748 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17749 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17750 if test "${ac_cv_group_kmem+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17754 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17755 # If we got an error (system does not support symlinks), try without -L.
17756 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17757 ac_cv_group_kmem
=`echo $ac_ls_output \
17758 | sed -ne 's/[ ][ ]*/ /g;
17759 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17763 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17764 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17765 KMEM_GROUP
=$ac_cv_group_kmem
17767 if test "x$ac_save_LIBS" = x
; then
17768 GETLOADAVG_LIBS
=$LIBS
17770 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17776 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17777 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17778 if test "${ac_cv_sys_largefile_source+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17782 ac_cv_sys_largefile_source
=no
17783 cat >conftest.
$ac_ext <<_ACEOF
17786 cat confdefs.h
>>conftest.
$ac_ext
17787 cat >>conftest.
$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17798 rm -f conftest.
$ac_objext
17799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800 (eval $ac_compile) 2>conftest.er1
17802 grep -v '^ *+' conftest.er1
>conftest.err
17804 cat conftest.err
>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try
='test -z "$ac_c_werror_flag"
17808 || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try
='test -s conftest.$ac_objext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.
$ac_ext >&5
17826 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17827 cat >conftest.
$ac_ext <<_ACEOF
17830 cat confdefs.h
>>conftest.
$ac_ext
17831 cat >>conftest.
$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 #define _LARGEFILE_SOURCE 1
17843 rm -f conftest.
$ac_objext
17844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>conftest.er1
17847 grep -v '^ *+' conftest.er1
>conftest.err
17849 cat conftest.err
>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try
='test -z "$ac_c_werror_flag"
17853 || test ! -s conftest.err'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try
='test -s conftest.$ac_objext'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_sys_largefile_source
=1; break
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.
$ac_ext >&5
17871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17875 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17876 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17877 if test "$ac_cv_sys_largefile_source" != no
; then
17879 cat >>confdefs.h
<<_ACEOF
17880 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17886 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17887 # in glibc 2.1.3, but that breaks too many other things.
17888 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17889 echo "$as_me:$LINENO: checking for fseeko" >&5
17890 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17891 if test "${ac_cv_func_fseeko+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 cat >conftest.
$ac_ext <<_ACEOF
17897 cat confdefs.h
>>conftest.
$ac_ext
17898 cat >>conftest.
$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17904 return fseeko && fseeko (stdin, 0, 0);
17909 rm -f conftest.
$ac_objext conftest
$ac_exeext
17910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17911 (eval $ac_link) 2>conftest.er1
17913 grep -v '^ *+' conftest.er1
>conftest.err
17915 cat conftest.err
>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
17918 { ac_try
='test -z "$ac_c_werror_flag"
17919 || test ! -s conftest.err'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try
='test -s conftest$ac_exeext'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 ac_cv_func_fseeko
=yes
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.
$ac_ext >&5
17936 ac_cv_func_fseeko
=no
17938 rm -f conftest.err conftest.
$ac_objext \
17939 conftest
$ac_exeext conftest.
$ac_ext
17941 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17942 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17943 if test $ac_cv_func_fseeko = yes; then
17945 cat >>confdefs.h
<<\_ACEOF
17946 #define HAVE_FSEEKO 1
17952 # Configure getopt.
17953 # getopt.m4 serial 10
17955 # The getopt module assume you want GNU getopt, with getopt_long etc,
17956 # rather than vanilla POSIX getopt. This means your your code should
17957 # always include <getopt.h> for the getopt prototypes.
17969 # Prerequisites of lib/getopt*.
17976 for ac_header
in getopt.h
17978 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17980 echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17988 # Is the header compilable?
17989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17991 cat >conftest.
$ac_ext <<_ACEOF
17994 cat confdefs.h
>>conftest.
$ac_ext
17995 cat >>conftest.
$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
17998 #include <$ac_header>
18000 rm -f conftest.
$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18004 grep -v '^ *+' conftest.er1
>conftest.err
18006 cat conftest.err
>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try
='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try
='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_header_compiler
=yes
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.
$ac_ext >&5
18027 ac_header_compiler
=no
18029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18031 echo "${ECHO_T}$ac_header_compiler" >&6
18033 # Is the header present?
18034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18036 cat >conftest.
$ac_ext <<_ACEOF
18039 cat confdefs.h
>>conftest.
$ac_ext
18040 cat >>conftest.
$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 #include <$ac_header>
18044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18045 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18047 grep -v '^ *+' conftest.er1
>conftest.err
18049 cat conftest.err
>&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } >/dev
/null
; then
18052 if test -s conftest.err
; then
18053 ac_cpp_err
=$ac_c_preproc_warn_flag
18054 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18061 if test -z "$ac_cpp_err"; then
18062 ac_header_preproc
=yes
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.
$ac_ext >&5
18067 ac_header_preproc
=no
18069 rm -f conftest.err conftest.
$ac_ext
18070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18071 echo "${ECHO_T}$ac_header_preproc" >&6
18073 # So? What about this header?
18074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18080 ac_header_preproc
=yes
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18097 ## ------------------------------------------ ##
18098 ## Report this to the AC_PACKAGE_NAME lists. ##
18099 ## ------------------------------------------ ##
18102 sed "s/^/$as_me: WARNING: /" >&2
18105 echo "$as_me:$LINENO: checking for $ac_header" >&5
18106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 eval "$as_ac_Header=\$ac_header_preproc"
18112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18117 cat >>confdefs.h
<<_ACEOF
18118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18127 if test -z "$GETOPT_H"; then
18129 for ac_func
in getopt_long_only
18131 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18132 echo "$as_me:$LINENO: checking for $ac_func" >&5
18133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18134 if eval "test \"\${$as_ac_var+set}\" = set"; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 cat >conftest.
$ac_ext <<_ACEOF
18140 cat confdefs.h
>>conftest.
$ac_ext
18141 cat >>conftest.
$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145 #define $ac_func innocuous_$ac_func
18147 /* System header to define __stub macros and hopefully few prototypes,
18148 which can conflict with char $ac_func (); below.
18149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 <limits.h> exists even on freestanding compilers. */
18153 # include <limits.h>
18155 # include <assert.h>
18160 /* Override any gcc2 internal prototype to avoid an error. */
18165 /* We use char because int might match the return type of a gcc2
18166 builtin and then its argument prototype would still apply. */
18168 /* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18174 char (*f) () = $ac_func;
18183 return f != $ac_func;
18188 rm -f conftest.
$ac_objext conftest
$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18192 grep -v '^ *+' conftest.er1
>conftest.err
18194 cat conftest.err
>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try
='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try
='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 eval "$as_ac_var=yes"
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.
$ac_ext >&5
18215 eval "$as_ac_var=no"
18217 rm -f conftest.err conftest.
$ac_objext \
18218 conftest
$ac_exeext conftest.
$ac_ext
18220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18222 if test `eval echo '${'$as_ac_var'}'` = yes; then
18223 cat >>confdefs.h
<<_ACEOF
18224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18234 if test -z "$GETOPT_H"; then
18235 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18236 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
18237 if test "${ac_cv_have_decl_optreset+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 cat >conftest.
$ac_ext <<_ACEOF
18243 cat confdefs.h
>>conftest.
$ac_ext
18244 cat >>conftest.
$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 #include <getopt.h>
18252 char *p = (char *) optreset;
18259 rm -f conftest.
$ac_objext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261 (eval $ac_compile) 2>conftest.er1
18263 grep -v '^ *+' conftest.er1
>conftest.err
18265 cat conftest.err
>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try
='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try
='test -s conftest.$ac_objext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_have_decl_optreset
=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.
$ac_ext >&5
18286 ac_cv_have_decl_optreset
=no
18288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18290 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18291 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
18292 if test $ac_cv_have_decl_optreset = yes; then
18298 if test -z "$GETOPT_H"; then
18299 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18300 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
18301 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 if test "$cross_compiling" = yes; then
18305 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18306 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
18307 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 cat >conftest.
$ac_ext <<_ACEOF
18313 cat confdefs.h
>>conftest.
$ac_ext
18314 cat >>conftest.
$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <getopt.h>
18321 #ifndef getopt_clip
18322 char *p = (char *) getopt_clip;
18329 rm -f conftest.
$ac_objext
18330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>conftest.er1
18333 grep -v '^ *+' conftest.er1
>conftest.err
18335 cat conftest.err
>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try
='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try
='test -s conftest.$ac_objext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 ac_cv_have_decl_getopt_clip
=yes
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.
$ac_ext >&5
18356 ac_cv_have_decl_getopt_clip
=no
18358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18361 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
18362 if test $ac_cv_have_decl_getopt_clip = yes; then
18363 gl_cv_func_gnu_getopt
=no
18365 gl_cv_func_gnu_getopt
=yes
18369 cat >conftest.
$ac_ext <<_ACEOF
18372 cat confdefs.h
>>conftest.
$ac_ext
18373 cat >>conftest.
$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 #include <getopt.h>
18381 myargv[0] = "conftest";
18384 return getopt (2, myargv, "+a") != '?';
18390 rm -f conftest
$ac_exeext
18391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18392 (eval $ac_link) 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 gl_cv_func_gnu_getopt
=yes
18403 echo "$as_me: program exited with status $ac_status" >&5
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.
$ac_ext >&5
18407 ( exit $ac_status )
18408 gl_cv_func_gnu_getopt
=no
18410 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18413 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18414 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
18415 if test "$gl_cv_func_gnu_getopt" = "no"; then
18422 if test -n "$GETOPT_H"; then
18427 cat >>confdefs.h
<<\_ACEOF
18428 #define __GETOPT_PREFIX rpl_
18434 GETOPTOBJS
='getopt.o getopt1.o'
18441 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18442 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
18443 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 # Use it with a single arg.
18447 cat >conftest.
$ac_ext <<_ACEOF
18450 cat confdefs.h
>>conftest.
$ac_ext
18451 cat >>conftest.
$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 $ac_includes_default
18462 rm -f conftest.
$ac_objext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464 (eval $ac_compile) 2>conftest.er1
18466 grep -v '^ *+' conftest.er1
>conftest.err
18468 cat conftest.err
>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try
='test -z "$ac_c_werror_flag"
18472 || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try
='test -s conftest.$ac_objext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_func_getpgrp_void
=no
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.
$ac_ext >&5
18489 ac_cv_func_getpgrp_void
=yes
18491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18494 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18495 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18496 if test $ac_cv_func_getpgrp_void = yes; then
18498 cat >>confdefs.h
<<\_ACEOF
18499 #define GETPGRP_VOID 1
18506 for ac_func
in strftime
18508 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18509 echo "$as_me:$LINENO: checking for $ac_func" >&5
18510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18511 if eval "test \"\${$as_ac_var+set}\" = set"; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 cat >conftest.
$ac_ext <<_ACEOF
18517 cat confdefs.h
>>conftest.
$ac_ext
18518 cat >>conftest.
$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522 #define $ac_func innocuous_$ac_func
18524 /* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18530 # include <limits.h>
18532 # include <assert.h>
18537 /* Override any gcc2 internal prototype to avoid an error. */
18542 /* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18545 /* The GNU C library defines this for functions which it implements
18546 to always fail with ENOSYS. Some functions are actually named
18547 something starting with __ and the normal name is an alias. */
18548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18551 char (*f) () = $ac_func;
18560 return f != $ac_func;
18565 rm -f conftest.
$ac_objext conftest
$ac_exeext
18566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567 (eval $ac_link) 2>conftest.er1
18569 grep -v '^ *+' conftest.er1
>conftest.err
18571 cat conftest.err
>&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try
='test -z "$ac_c_werror_flag"
18575 || test ! -s conftest.err'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try
='test -s conftest$ac_exeext'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.
$ac_ext >&5
18592 eval "$as_ac_var=no"
18594 rm -f conftest.err conftest.
$ac_objext \
18595 conftest
$ac_exeext conftest.
$ac_ext
18597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18599 if test `eval echo '${'$as_ac_var'}'` = yes; then
18600 cat >>confdefs.h
<<_ACEOF
18601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605 # strftime is in -lintl on SCO UNIX.
18606 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18607 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18608 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 ac_check_lib_save_LIBS
=$LIBS
18612 LIBS
="-lintl $LIBS"
18613 cat >conftest.
$ac_ext <<_ACEOF
18616 cat confdefs.h
>>conftest.
$ac_ext
18617 cat >>conftest.
$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18620 /* Override any gcc2 internal prototype to avoid an error. */
18624 /* We use char because int might match the return type of a gcc2
18625 builtin and then its argument prototype would still apply. */
18635 rm -f conftest.
$ac_objext conftest
$ac_exeext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18637 (eval $ac_link) 2>conftest.er1
18639 grep -v '^ *+' conftest.er1
>conftest.err
18641 cat conftest.err
>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try
='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try
='test -s conftest$ac_exeext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 ac_cv_lib_intl_strftime
=yes
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.
$ac_ext >&5
18662 ac_cv_lib_intl_strftime
=no
18664 rm -f conftest.err conftest.
$ac_objext \
18665 conftest
$ac_exeext conftest.
$ac_ext
18666 LIBS
=$ac_check_lib_save_LIBS
18668 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18669 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18670 if test $ac_cv_lib_intl_strftime = yes; then
18671 cat >>confdefs.h
<<\_ACEOF
18672 #define HAVE_STRFTIME 1
18675 LIBS
="-lintl $LIBS"
18684 for ac_func
in grantpt
18686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18687 echo "$as_me:$LINENO: checking for $ac_func" >&5
18688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18689 if eval "test \"\${$as_ac_var+set}\" = set"; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 cat >conftest.
$ac_ext <<_ACEOF
18695 cat confdefs.h
>>conftest.
$ac_ext
18696 cat >>conftest.
$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define $ac_func innocuous_$ac_func
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char $ac_func (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18708 # include <limits.h>
18710 # include <assert.h>
18715 /* Override any gcc2 internal prototype to avoid an error. */
18720 /* We use char because int might match the return type of a gcc2
18721 builtin and then its argument prototype would still apply. */
18723 /* The GNU C library defines this for functions which it implements
18724 to always fail with ENOSYS. Some functions are actually named
18725 something starting with __ and the normal name is an alias. */
18726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18729 char (*f) () = $ac_func;
18738 return f != $ac_func;
18743 rm -f conftest.
$ac_objext conftest
$ac_exeext
18744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18745 (eval $ac_link) 2>conftest.er1
18747 grep -v '^ *+' conftest.er1
>conftest.err
18749 cat conftest.err
>&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try
='test -z "$ac_c_werror_flag"
18753 || test ! -s conftest.err'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try
='test -s conftest$ac_exeext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 eval "$as_ac_var=yes"
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.
$ac_ext >&5
18770 eval "$as_ac_var=no"
18772 rm -f conftest.err conftest.
$ac_objext \
18773 conftest
$ac_exeext conftest.
$ac_ext
18775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18777 if test `eval echo '${'$as_ac_var'}'` = yes; then
18778 cat >>confdefs.h
<<_ACEOF
18779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18786 # PTY-related GNU extensions.
18788 for ac_func
in getpt
18790 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18791 echo "$as_me:$LINENO: checking for $ac_func" >&5
18792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18793 if eval "test \"\${$as_ac_var+set}\" = set"; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 cat >conftest.
$ac_ext <<_ACEOF
18799 cat confdefs.h
>>conftest.
$ac_ext
18800 cat >>conftest.
$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18804 #define $ac_func innocuous_$ac_func
18806 /* System header to define __stub macros and hopefully few prototypes,
18807 which can conflict with char $ac_func (); below.
18808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809 <limits.h> exists even on freestanding compilers. */
18812 # include <limits.h>
18814 # include <assert.h>
18819 /* Override any gcc2 internal prototype to avoid an error. */
18824 /* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18827 /* The GNU C library defines this for functions which it implements
18828 to always fail with ENOSYS. Some functions are actually named
18829 something starting with __ and the normal name is an alias. */
18830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18833 char (*f) () = $ac_func;
18842 return f != $ac_func;
18847 rm -f conftest.
$ac_objext conftest
$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849 (eval $ac_link) 2>conftest.er1
18851 grep -v '^ *+' conftest.er1
>conftest.err
18853 cat conftest.err
>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try
='test -z "$ac_c_werror_flag"
18857 || test ! -s conftest.err'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try
='test -s conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 eval "$as_ac_var=yes"
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.
$ac_ext >&5
18874 eval "$as_ac_var=no"
18876 rm -f conftest.err conftest.
$ac_objext \
18877 conftest
$ac_exeext conftest.
$ac_ext
18879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18881 if test `eval echo '${'$as_ac_var'}'` = yes; then
18882 cat >>confdefs.h
<<_ACEOF
18883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18890 # Check this now, so that we will NOT find the above functions in ncurses.
18891 # That is because we have not set up to link ncurses in lib-src.
18892 # It's better to believe a function is not available
18893 # than to expect to find it in ncurses.
18895 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18896 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18897 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 ac_check_lib_save_LIBS
=$LIBS
18901 LIBS
="-lncurses $LIBS"
18902 cat >conftest.
$ac_ext <<_ACEOF
18905 cat confdefs.h
>>conftest.
$ac_ext
18906 cat >>conftest.
$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18909 /* Override any gcc2 internal prototype to avoid an error. */
18913 /* We use char because int might match the return type of a gcc2
18914 builtin and then its argument prototype would still apply. */
18924 rm -f conftest.
$ac_objext conftest
$ac_exeext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18926 (eval $ac_link) 2>conftest.er1
18928 grep -v '^ *+' conftest.er1
>conftest.err
18930 cat conftest.err
>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try
='test -z "$ac_c_werror_flag"
18934 || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try
='test -s conftest$ac_exeext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 ac_cv_lib_ncurses_tparm
=yes
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.
$ac_ext >&5
18951 ac_cv_lib_ncurses_tparm
=no
18953 rm -f conftest.err conftest.
$ac_objext \
18954 conftest
$ac_exeext conftest.
$ac_ext
18955 LIBS
=$ac_check_lib_save_LIBS
18957 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18958 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18959 if test $ac_cv_lib_ncurses_tparm = yes; then
18960 cat >>confdefs.h
<<_ACEOF
18961 #define HAVE_LIBNCURSES 1
18964 LIBS
="-lncurses $LIBS"
18969 # Do we need the Hesiod library to provide the support routines?
18970 if test "$with_hesiod" = yes ; then
18971 # Don't set $LIBS here -- see comments above.
18973 echo "$as_me:$LINENO: checking for res_send" >&5
18974 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18975 if test "${ac_cv_func_res_send+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 cat >conftest.
$ac_ext <<_ACEOF
18981 cat confdefs.h
>>conftest.
$ac_ext
18982 cat >>conftest.
$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18986 #define res_send innocuous_res_send
18988 /* System header to define __stub macros and hopefully few prototypes,
18989 which can conflict with char res_send (); below.
18990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18991 <limits.h> exists even on freestanding compilers. */
18994 # include <limits.h>
18996 # include <assert.h>
19001 /* Override any gcc2 internal prototype to avoid an error. */
19006 /* We use char because int might match the return type of a gcc2
19007 builtin and then its argument prototype would still apply. */
19009 /* The GNU C library defines this for functions which it implements
19010 to always fail with ENOSYS. Some functions are actually named
19011 something starting with __ and the normal name is an alias. */
19012 #if defined (__stub_res_send) || defined (__stub___res_send)
19015 char (*f) () = res_send;
19024 return f != res_send;
19029 rm -f conftest.
$ac_objext conftest
$ac_exeext
19030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19031 (eval $ac_link) 2>conftest.er1
19033 grep -v '^ *+' conftest.er1
>conftest.err
19035 cat conftest.err
>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
19038 { ac_try
='test -z "$ac_c_werror_flag"
19039 || test ! -s conftest.err'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try
='test -s conftest$ac_exeext'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_cv_func_res_send
=yes
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.
$ac_ext >&5
19056 ac_cv_func_res_send
=no
19058 rm -f conftest.err conftest.
$ac_objext \
19059 conftest
$ac_exeext conftest.
$ac_ext
19061 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19062 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19063 if test $ac_cv_func_res_send = yes; then
19066 echo "$as_me:$LINENO: checking for __res_send" >&5
19067 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
19068 if test "${ac_cv_func___res_send+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 cat >conftest.
$ac_ext <<_ACEOF
19074 cat confdefs.h
>>conftest.
$ac_ext
19075 cat >>conftest.
$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19079 #define __res_send innocuous___res_send
19081 /* System header to define __stub macros and hopefully few prototypes,
19082 which can conflict with char __res_send (); below.
19083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19084 <limits.h> exists even on freestanding compilers. */
19087 # include <limits.h>
19089 # include <assert.h>
19094 /* Override any gcc2 internal prototype to avoid an error. */
19099 /* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19101 char __res_send ();
19102 /* The GNU C library defines this for functions which it implements
19103 to always fail with ENOSYS. Some functions are actually named
19104 something starting with __ and the normal name is an alias. */
19105 #if defined (__stub___res_send) || defined (__stub_____res_send)
19108 char (*f) () = __res_send;
19117 return f != __res_send;
19122 rm -f conftest.
$ac_objext conftest
$ac_exeext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124 (eval $ac_link) 2>conftest.er1
19126 grep -v '^ *+' conftest.er1
>conftest.err
19128 cat conftest.err
>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try
='test -z "$ac_c_werror_flag"
19132 || test ! -s conftest.err'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try
='test -s conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 ac_cv_func___res_send
=yes
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.
$ac_ext >&5
19149 ac_cv_func___res_send
=no
19151 rm -f conftest.err conftest.
$ac_objext \
19152 conftest
$ac_exeext conftest.
$ac_ext
19154 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19155 echo "${ECHO_T}$ac_cv_func___res_send" >&6
19156 if test $ac_cv_func___res_send = yes; then
19159 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19160 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19161 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 ac_check_lib_save_LIBS
=$LIBS
19165 LIBS
="-lresolv $LIBS"
19166 cat >conftest.
$ac_ext <<_ACEOF
19169 cat confdefs.h
>>conftest.
$ac_ext
19170 cat >>conftest.
$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 /* Override any gcc2 internal prototype to avoid an error. */
19177 /* We use char because int might match the return type of a gcc2
19178 builtin and then its argument prototype would still apply. */
19188 rm -f conftest.
$ac_objext conftest
$ac_exeext
19189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190 (eval $ac_link) 2>conftest.er1
19192 grep -v '^ *+' conftest.er1
>conftest.err
19194 cat conftest.err
>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try
='test -z "$ac_c_werror_flag"
19198 || test ! -s conftest.err'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try
='test -s conftest$ac_exeext'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_cv_lib_resolv_res_send
=yes
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.
$ac_ext >&5
19215 ac_cv_lib_resolv_res_send
=no
19217 rm -f conftest.err conftest.
$ac_objext \
19218 conftest
$ac_exeext conftest.
$ac_ext
19219 LIBS
=$ac_check_lib_save_LIBS
19221 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19222 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19223 if test $ac_cv_lib_resolv_res_send = yes; then
19226 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19227 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
19228 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 ac_check_lib_save_LIBS
=$LIBS
19232 LIBS
="-lresolv $LIBS"
19233 cat >conftest.
$ac_ext <<_ACEOF
19236 cat confdefs.h
>>conftest.
$ac_ext
19237 cat >>conftest.
$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19240 /* Override any gcc2 internal prototype to avoid an error. */
19244 /* We use char because int might match the return type of a gcc2
19245 builtin and then its argument prototype would still apply. */
19246 char __res_send ();
19255 rm -f conftest.
$ac_objext conftest
$ac_exeext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257 (eval $ac_link) 2>conftest.er1
19259 grep -v '^ *+' conftest.er1
>conftest.err
19261 cat conftest.err
>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try
='test -z "$ac_c_werror_flag"
19265 || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try
='test -s conftest$ac_exeext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_lib_resolv___res_send
=yes
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.
$ac_ext >&5
19282 ac_cv_lib_resolv___res_send
=no
19284 rm -f conftest.err conftest.
$ac_objext \
19285 conftest
$ac_exeext conftest.
$ac_ext
19286 LIBS
=$ac_check_lib_save_LIBS
19288 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19289 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
19290 if test $ac_cv_lib_resolv___res_send = yes; then
19300 if test "$resolv" = yes ; then
19303 cat >>confdefs.h
<<\_ACEOF
19304 #define HAVE_LIBRESOLV 1
19310 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19311 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
19312 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 cat >conftest.
$ac_ext <<_ACEOF
19318 cat confdefs.h
>>conftest.
$ac_ext
19319 cat >>conftest.
$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323 #define hes_getmailhost innocuous_hes_getmailhost
19325 /* System header to define __stub macros and hopefully few prototypes,
19326 which can conflict with char hes_getmailhost (); below.
19327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328 <limits.h> exists even on freestanding compilers. */
19331 # include <limits.h>
19333 # include <assert.h>
19336 #undef hes_getmailhost
19338 /* Override any gcc2 internal prototype to avoid an error. */
19343 /* We use char because int might match the return type of a gcc2
19344 builtin and then its argument prototype would still apply. */
19345 char hes_getmailhost ();
19346 /* The GNU C library defines this for functions which it implements
19347 to always fail with ENOSYS. Some functions are actually named
19348 something starting with __ and the normal name is an alias. */
19349 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
19352 char (*f) () = hes_getmailhost;
19361 return f != hes_getmailhost;
19366 rm -f conftest.
$ac_objext conftest
$ac_exeext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19368 (eval $ac_link) 2>conftest.er1
19370 grep -v '^ *+' conftest.er1
>conftest.err
19372 cat conftest.err
>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try
='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try
='test -s conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_func_hes_getmailhost
=yes
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.
$ac_ext >&5
19393 ac_cv_func_hes_getmailhost
=no
19395 rm -f conftest.err conftest.
$ac_objext \
19396 conftest
$ac_exeext conftest.
$ac_ext
19398 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19399 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
19400 if test $ac_cv_func_hes_getmailhost = yes; then
19403 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19404 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
19405 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 ac_check_lib_save_LIBS
=$LIBS
19409 LIBS
="-lhesiod $RESOLVLIB $LIBS"
19410 cat >conftest.
$ac_ext <<_ACEOF
19413 cat confdefs.h
>>conftest.
$ac_ext
19414 cat >>conftest.
$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 /* Override any gcc2 internal prototype to avoid an error. */
19421 /* We use char because int might match the return type of a gcc2
19422 builtin and then its argument prototype would still apply. */
19423 char hes_getmailhost ();
19427 hes_getmailhost ();
19432 rm -f conftest.
$ac_objext conftest
$ac_exeext
19433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19434 (eval $ac_link) 2>conftest.er1
19436 grep -v '^ *+' conftest.er1
>conftest.err
19438 cat conftest.err
>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try
='test -z "$ac_c_werror_flag"
19442 || test ! -s conftest.err'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try
='test -s conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_cv_lib_hesiod_hes_getmailhost
=yes
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.
$ac_ext >&5
19459 ac_cv_lib_hesiod_hes_getmailhost
=no
19461 rm -f conftest.err conftest.
$ac_objext \
19462 conftest
$ac_exeext conftest.
$ac_ext
19463 LIBS
=$ac_check_lib_save_LIBS
19465 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19466 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
19467 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19469 cat >>confdefs.h
<<\_ACEOF
19470 #define HAVE_LIBHESIOD 1
19481 # These tell us which Kerberos-related libraries to use.
19482 if test "${with_kerberos+set}" = set; then
19484 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19485 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19486 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 ac_check_lib_save_LIBS
=$LIBS
19490 LIBS
="-lcom_err $LIBS"
19491 cat >conftest.
$ac_ext <<_ACEOF
19494 cat confdefs.h
>>conftest.
$ac_ext
19495 cat >>conftest.
$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19498 /* Override any gcc2 internal prototype to avoid an error. */
19502 /* We use char because int might match the return type of a gcc2
19503 builtin and then its argument prototype would still apply. */
19513 rm -f conftest.
$ac_objext conftest
$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515 (eval $ac_link) 2>conftest.er1
19517 grep -v '^ *+' conftest.er1
>conftest.err
19519 cat conftest.err
>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try
='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try
='test -s conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_lib_com_err_com_err
=yes
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.
$ac_ext >&5
19540 ac_cv_lib_com_err_com_err
=no
19542 rm -f conftest.err conftest.
$ac_objext \
19543 conftest
$ac_exeext conftest.
$ac_ext
19544 LIBS
=$ac_check_lib_save_LIBS
19546 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19547 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19548 if test $ac_cv_lib_com_err_com_err = yes; then
19549 cat >>confdefs.h
<<_ACEOF
19550 #define HAVE_LIBCOM_ERR 1
19553 LIBS
="-lcom_err $LIBS"
19558 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19559 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19560 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 ac_check_lib_save_LIBS
=$LIBS
19564 LIBS
="-lk5crypto $LIBS"
19565 cat >conftest.
$ac_ext <<_ACEOF
19568 cat confdefs.h
>>conftest.
$ac_ext
19569 cat >>conftest.
$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19572 /* Override any gcc2 internal prototype to avoid an error. */
19576 /* We use char because int might match the return type of a gcc2
19577 builtin and then its argument prototype would still apply. */
19578 char mit_des_cbc_encrypt ();
19582 mit_des_cbc_encrypt ();
19587 rm -f conftest.
$ac_objext conftest
$ac_exeext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19589 (eval $ac_link) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1
>conftest.err
19593 cat conftest.err
>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try
='test -z "$ac_c_werror_flag"
19597 || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try
='test -s conftest$ac_exeext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.
$ac_ext >&5
19614 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19616 rm -f conftest.err conftest.
$ac_objext \
19617 conftest
$ac_exeext conftest.
$ac_ext
19618 LIBS
=$ac_check_lib_save_LIBS
19620 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19621 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19622 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19623 cat >>confdefs.h
<<_ACEOF
19624 #define HAVE_LIBK5CRYPTO 1
19627 LIBS
="-lk5crypto $LIBS"
19632 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19633 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19634 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 ac_check_lib_save_LIBS
=$LIBS
19638 LIBS
="-lcrypto $LIBS"
19639 cat >conftest.
$ac_ext <<_ACEOF
19642 cat confdefs.h
>>conftest.
$ac_ext
19643 cat >>conftest.
$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19646 /* Override any gcc2 internal prototype to avoid an error. */
19650 /* We use char because int might match the return type of a gcc2
19651 builtin and then its argument prototype would still apply. */
19652 char mit_des_cbc_encrypt ();
19656 mit_des_cbc_encrypt ();
19661 rm -f conftest.
$ac_objext conftest
$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>conftest.er1
19665 grep -v '^ *+' conftest.er1
>conftest.err
19667 cat conftest.err
>&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try
='test -z "$ac_c_werror_flag"
19671 || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try
='test -s conftest$ac_exeext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.
$ac_ext >&5
19688 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19690 rm -f conftest.err conftest.
$ac_objext \
19691 conftest
$ac_exeext conftest.
$ac_ext
19692 LIBS
=$ac_check_lib_save_LIBS
19694 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19695 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19696 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19697 cat >>confdefs.h
<<_ACEOF
19698 #define HAVE_LIBCRYPTO 1
19701 LIBS
="-lcrypto $LIBS"
19706 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19707 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19708 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 ac_check_lib_save_LIBS
=$LIBS
19712 LIBS
="-lkrb5 $LIBS"
19713 cat >conftest.
$ac_ext <<_ACEOF
19716 cat confdefs.h
>>conftest.
$ac_ext
19717 cat >>conftest.
$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19720 /* Override any gcc2 internal prototype to avoid an error. */
19724 /* We use char because int might match the return type of a gcc2
19725 builtin and then its argument prototype would still apply. */
19726 char krb5_init_context ();
19730 krb5_init_context ();
19735 rm -f conftest.
$ac_objext conftest
$ac_exeext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19737 (eval $ac_link) 2>conftest.er1
19739 grep -v '^ *+' conftest.er1
>conftest.err
19741 cat conftest.err
>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try
='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try
='test -s conftest$ac_exeext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_lib_krb5_krb5_init_context
=yes
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.
$ac_ext >&5
19762 ac_cv_lib_krb5_krb5_init_context
=no
19764 rm -f conftest.err conftest.
$ac_objext \
19765 conftest
$ac_exeext conftest.
$ac_ext
19766 LIBS
=$ac_check_lib_save_LIBS
19768 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19769 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19770 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19771 cat >>confdefs.h
<<_ACEOF
19772 #define HAVE_LIBKRB5 1
19775 LIBS
="-lkrb5 $LIBS"
19779 if test "${with_kerberos5+set}" != set; then
19781 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19782 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19783 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 ac_check_lib_save_LIBS
=$LIBS
19787 LIBS
="-ldes425 $LIBS"
19788 cat >conftest.
$ac_ext <<_ACEOF
19791 cat confdefs.h
>>conftest.
$ac_ext
19792 cat >>conftest.
$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19795 /* Override any gcc2 internal prototype to avoid an error. */
19799 /* We use char because int might match the return type of a gcc2
19800 builtin and then its argument prototype would still apply. */
19801 char des_cbc_encrypt ();
19805 des_cbc_encrypt ();
19810 rm -f conftest.
$ac_objext conftest
$ac_exeext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>conftest.er1
19814 grep -v '^ *+' conftest.er1
>conftest.err
19816 cat conftest.err
>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try
='test -z "$ac_c_werror_flag"
19820 || test ! -s conftest.err'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try
='test -s conftest$ac_exeext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_lib_des425_des_cbc_encrypt
=yes
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.
$ac_ext >&5
19837 ac_cv_lib_des425_des_cbc_encrypt
=no
19839 rm -f conftest.err conftest.
$ac_objext \
19840 conftest
$ac_exeext conftest.
$ac_ext
19841 LIBS
=$ac_check_lib_save_LIBS
19843 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19844 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19845 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19846 cat >>confdefs.h
<<_ACEOF
19847 #define HAVE_LIBDES425 1
19850 LIBS
="-ldes425 $LIBS"
19854 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19855 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19856 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 ac_check_lib_save_LIBS
=$LIBS
19861 cat >conftest.
$ac_ext <<_ACEOF
19864 cat confdefs.h
>>conftest.
$ac_ext
19865 cat >>conftest.
$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19868 /* Override any gcc2 internal prototype to avoid an error. */
19872 /* We use char because int might match the return type of a gcc2
19873 builtin and then its argument prototype would still apply. */
19874 char des_cbc_encrypt ();
19878 des_cbc_encrypt ();
19883 rm -f conftest.
$ac_objext conftest
$ac_exeext
19884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19885 (eval $ac_link) 2>conftest.er1
19887 grep -v '^ *+' conftest.er1
>conftest.err
19889 cat conftest.err
>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try
='test -z "$ac_c_werror_flag"
19893 || test ! -s conftest.err'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try
='test -s conftest$ac_exeext'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19905 ac_cv_lib_des_des_cbc_encrypt
=yes
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.
$ac_ext >&5
19910 ac_cv_lib_des_des_cbc_encrypt
=no
19912 rm -f conftest.err conftest.
$ac_objext \
19913 conftest
$ac_exeext conftest.
$ac_ext
19914 LIBS
=$ac_check_lib_save_LIBS
19916 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19917 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19918 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19919 cat >>confdefs.h
<<_ACEOF
19920 #define HAVE_LIBDES 1
19930 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19931 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19932 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 ac_check_lib_save_LIBS
=$LIBS
19936 LIBS
="-lkrb4 $LIBS"
19937 cat >conftest.
$ac_ext <<_ACEOF
19940 cat confdefs.h
>>conftest.
$ac_ext
19941 cat >>conftest.
$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19944 /* Override any gcc2 internal prototype to avoid an error. */
19948 /* We use char because int might match the return type of a gcc2
19949 builtin and then its argument prototype would still apply. */
19950 char krb_get_cred ();
19959 rm -f conftest.
$ac_objext conftest
$ac_exeext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961 (eval $ac_link) 2>conftest.er1
19963 grep -v '^ *+' conftest.er1
>conftest.err
19965 cat conftest.err
>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } &&
19968 { ac_try
='test -z "$ac_c_werror_flag"
19969 || test ! -s conftest.err'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; } &&
19975 { ac_try
='test -s conftest$ac_exeext'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; }; then
19981 ac_cv_lib_krb4_krb_get_cred
=yes
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.
$ac_ext >&5
19986 ac_cv_lib_krb4_krb_get_cred
=no
19988 rm -f conftest.err conftest.
$ac_objext \
19989 conftest
$ac_exeext conftest.
$ac_ext
19990 LIBS
=$ac_check_lib_save_LIBS
19992 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19993 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19994 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19995 cat >>confdefs.h
<<_ACEOF
19996 #define HAVE_LIBKRB4 1
19999 LIBS
="-lkrb4 $LIBS"
20003 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20004 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
20005 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 ac_check_lib_save_LIBS
=$LIBS
20010 cat >conftest.
$ac_ext <<_ACEOF
20013 cat confdefs.h
>>conftest.
$ac_ext
20014 cat >>conftest.
$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20017 /* Override any gcc2 internal prototype to avoid an error. */
20021 /* We use char because int might match the return type of a gcc2
20022 builtin and then its argument prototype would still apply. */
20023 char krb_get_cred ();
20032 rm -f conftest.
$ac_objext conftest
$ac_exeext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20034 (eval $ac_link) 2>conftest.er1
20036 grep -v '^ *+' conftest.er1
>conftest.err
20038 cat conftest.err
>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try
='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try
='test -s conftest$ac_exeext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_lib_krb_krb_get_cred
=yes
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.
$ac_ext >&5
20059 ac_cv_lib_krb_krb_get_cred
=no
20061 rm -f conftest.err conftest.
$ac_objext \
20062 conftest
$ac_exeext conftest.
$ac_ext
20063 LIBS
=$ac_check_lib_save_LIBS
20065 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20066 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
20067 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20068 cat >>confdefs.h
<<_ACEOF
20069 #define HAVE_LIBKRB 1
20080 if test "${with_kerberos5+set}" = set; then
20082 for ac_header
in krb5.h
20084 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20086 echo "$as_me:$LINENO: checking for $ac_header" >&5
20087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20094 # Is the header compilable?
20095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20097 cat >conftest.
$ac_ext <<_ACEOF
20100 cat confdefs.h
>>conftest.
$ac_ext
20101 cat >>conftest.
$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 $ac_includes_default
20104 #include <$ac_header>
20106 rm -f conftest.
$ac_objext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>conftest.er1
20110 grep -v '^ *+' conftest.er1
>conftest.err
20112 cat conftest.err
>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } &&
20115 { ac_try
='test -z "$ac_c_werror_flag"
20116 || test ! -s conftest.err'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try
='test -s conftest.$ac_objext'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_header_compiler
=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.
$ac_ext >&5
20133 ac_header_compiler
=no
20135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20137 echo "${ECHO_T}$ac_header_compiler" >&6
20139 # Is the header present?
20140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20142 cat >conftest.
$ac_ext <<_ACEOF
20145 cat confdefs.h
>>conftest.
$ac_ext
20146 cat >>conftest.
$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <$ac_header>
20150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20153 grep -v '^ *+' conftest.er1
>conftest.err
20155 cat conftest.err
>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } >/dev
/null
; then
20158 if test -s conftest.err
; then
20159 ac_cpp_err
=$ac_c_preproc_warn_flag
20160 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20167 if test -z "$ac_cpp_err"; then
20168 ac_header_preproc
=yes
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.
$ac_ext >&5
20173 ac_header_preproc
=no
20175 rm -f conftest.err conftest.
$ac_ext
20176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20177 echo "${ECHO_T}$ac_header_preproc" >&6
20179 # So? What about this header?
20180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20186 ac_header_preproc
=yes
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20203 ## ------------------------------------------ ##
20204 ## Report this to the AC_PACKAGE_NAME lists. ##
20205 ## ------------------------------------------ ##
20208 sed "s/^/$as_me: WARNING: /" >&2
20211 echo "$as_me:$LINENO: checking for $ac_header" >&5
20212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 eval "$as_ac_Header=\$ac_header_preproc"
20218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20223 cat >>confdefs.h
<<_ACEOF
20224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20233 for ac_header
in des.h
20235 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20237 echo "$as_me:$LINENO: checking for $ac_header" >&5
20238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20245 # Is the header compilable?
20246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20248 cat >conftest.
$ac_ext <<_ACEOF
20251 cat confdefs.h
>>conftest.
$ac_ext
20252 cat >>conftest.
$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 $ac_includes_default
20255 #include <$ac_header>
20257 rm -f conftest.
$ac_objext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259 (eval $ac_compile) 2>conftest.er1
20261 grep -v '^ *+' conftest.er1
>conftest.err
20263 cat conftest.err
>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try
='test -z "$ac_c_werror_flag"
20267 || test ! -s conftest.err'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try
='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_header_compiler
=yes
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.
$ac_ext >&5
20284 ac_header_compiler
=no
20286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20288 echo "${ECHO_T}$ac_header_compiler" >&6
20290 # Is the header present?
20291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20293 cat >conftest.
$ac_ext <<_ACEOF
20296 cat confdefs.h
>>conftest.
$ac_ext
20297 cat >>conftest.
$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20299 #include <$ac_header>
20301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20302 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20304 grep -v '^ *+' conftest.er1
>conftest.err
20306 cat conftest.err
>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } >/dev
/null
; then
20309 if test -s conftest.err
; then
20310 ac_cpp_err
=$ac_c_preproc_warn_flag
20311 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20318 if test -z "$ac_cpp_err"; then
20319 ac_header_preproc
=yes
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.
$ac_ext >&5
20324 ac_header_preproc
=no
20326 rm -f conftest.err conftest.
$ac_ext
20327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20328 echo "${ECHO_T}$ac_header_preproc" >&6
20330 # So? What about this header?
20331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20337 ac_header_preproc
=yes
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20354 ## ------------------------------------------ ##
20355 ## Report this to the AC_PACKAGE_NAME lists. ##
20356 ## ------------------------------------------ ##
20359 sed "s/^/$as_me: WARNING: /" >&2
20362 echo "$as_me:$LINENO: checking for $ac_header" >&5
20363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 eval "$as_ac_Header=\$ac_header_preproc"
20369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20374 cat >>confdefs.h
<<_ACEOF
20375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20380 for ac_header
in kerberosIV
/des.h
20382 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20384 echo "$as_me:$LINENO: checking for $ac_header" >&5
20385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20392 # Is the header compilable?
20393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20395 cat >conftest.
$ac_ext <<_ACEOF
20398 cat confdefs.h
>>conftest.
$ac_ext
20399 cat >>conftest.
$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 $ac_includes_default
20402 #include <$ac_header>
20404 rm -f conftest.
$ac_objext
20405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20406 (eval $ac_compile) 2>conftest.er1
20408 grep -v '^ *+' conftest.er1
>conftest.err
20410 cat conftest.err
>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
20413 { ac_try
='test -z "$ac_c_werror_flag"
20414 || test ! -s conftest.err'
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try
='test -s conftest.$ac_objext'
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_header_compiler
=yes
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.
$ac_ext >&5
20431 ac_header_compiler
=no
20433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20435 echo "${ECHO_T}$ac_header_compiler" >&6
20437 # Is the header present?
20438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20440 cat >conftest.
$ac_ext <<_ACEOF
20443 cat confdefs.h
>>conftest.
$ac_ext
20444 cat >>conftest.
$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <$ac_header>
20448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20449 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20451 grep -v '^ *+' conftest.er1
>conftest.err
20453 cat conftest.err
>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } >/dev
/null
; then
20456 if test -s conftest.err
; then
20457 ac_cpp_err
=$ac_c_preproc_warn_flag
20458 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20465 if test -z "$ac_cpp_err"; then
20466 ac_header_preproc
=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.
$ac_ext >&5
20471 ac_header_preproc
=no
20473 rm -f conftest.err conftest.
$ac_ext
20474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20475 echo "${ECHO_T}$ac_header_preproc" >&6
20477 # So? What about this header?
20478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20484 ac_header_preproc
=yes
20487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20501 ## ------------------------------------------ ##
20502 ## Report this to the AC_PACKAGE_NAME lists. ##
20503 ## ------------------------------------------ ##
20506 sed "s/^/$as_me: WARNING: /" >&2
20509 echo "$as_me:$LINENO: checking for $ac_header" >&5
20510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 eval "$as_ac_Header=\$ac_header_preproc"
20516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20521 cat >>confdefs.h
<<_ACEOF
20522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20527 for ac_header
in kerberos
/des.h
20529 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20531 echo "$as_me:$LINENO: checking for $ac_header" >&5
20532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20539 # Is the header compilable?
20540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20542 cat >conftest.
$ac_ext <<_ACEOF
20545 cat confdefs.h
>>conftest.
$ac_ext
20546 cat >>conftest.
$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20548 $ac_includes_default
20549 #include <$ac_header>
20551 rm -f conftest.
$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553 (eval $ac_compile) 2>conftest.er1
20555 grep -v '^ *+' conftest.er1
>conftest.err
20557 cat conftest.err
>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try
='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try
='test -s conftest.$ac_objext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_header_compiler
=yes
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.
$ac_ext >&5
20578 ac_header_compiler
=no
20580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20582 echo "${ECHO_T}$ac_header_compiler" >&6
20584 # Is the header present?
20585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20587 cat >conftest.
$ac_ext <<_ACEOF
20590 cat confdefs.h
>>conftest.
$ac_ext
20591 cat >>conftest.
$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <$ac_header>
20595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20596 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20598 grep -v '^ *+' conftest.er1
>conftest.err
20600 cat conftest.err
>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } >/dev
/null
; then
20603 if test -s conftest.err
; then
20604 ac_cpp_err
=$ac_c_preproc_warn_flag
20605 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20612 if test -z "$ac_cpp_err"; then
20613 ac_header_preproc
=yes
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.
$ac_ext >&5
20618 ac_header_preproc
=no
20620 rm -f conftest.err conftest.
$ac_ext
20621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20622 echo "${ECHO_T}$ac_header_preproc" >&6
20624 # So? What about this header?
20625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20631 ac_header_preproc
=yes
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20648 ## ------------------------------------------ ##
20649 ## Report this to the AC_PACKAGE_NAME lists. ##
20650 ## ------------------------------------------ ##
20653 sed "s/^/$as_me: WARNING: /" >&2
20656 echo "$as_me:$LINENO: checking for $ac_header" >&5
20657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20661 eval "$as_ac_Header=\$ac_header_preproc"
20663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20668 cat >>confdefs.h
<<_ACEOF
20669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20685 for ac_header
in krb.h
20687 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20689 echo "$as_me:$LINENO: checking for $ac_header" >&5
20690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20697 # Is the header compilable?
20698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20700 cat >conftest.
$ac_ext <<_ACEOF
20703 cat confdefs.h
>>conftest.
$ac_ext
20704 cat >>conftest.
$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 $ac_includes_default
20707 #include <$ac_header>
20709 rm -f conftest.
$ac_objext
20710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20711 (eval $ac_compile) 2>conftest.er1
20713 grep -v '^ *+' conftest.er1
>conftest.err
20715 cat conftest.err
>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } &&
20718 { ac_try
='test -z "$ac_c_werror_flag"
20719 || test ! -s conftest.err'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; } &&
20725 { ac_try
='test -s conftest.$ac_objext'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 ac_header_compiler
=yes
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.
$ac_ext >&5
20736 ac_header_compiler
=no
20738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20740 echo "${ECHO_T}$ac_header_compiler" >&6
20742 # Is the header present?
20743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20745 cat >conftest.
$ac_ext <<_ACEOF
20748 cat confdefs.h
>>conftest.
$ac_ext
20749 cat >>conftest.
$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 #include <$ac_header>
20753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20756 grep -v '^ *+' conftest.er1
>conftest.err
20758 cat conftest.err
>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev
/null
; then
20761 if test -s conftest.err
; then
20762 ac_cpp_err
=$ac_c_preproc_warn_flag
20763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20770 if test -z "$ac_cpp_err"; then
20771 ac_header_preproc
=yes
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.
$ac_ext >&5
20776 ac_header_preproc
=no
20778 rm -f conftest.err conftest.
$ac_ext
20779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20780 echo "${ECHO_T}$ac_header_preproc" >&6
20782 # So? What about this header?
20783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20789 ac_header_preproc
=yes
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20806 ## ------------------------------------------ ##
20807 ## Report this to the AC_PACKAGE_NAME lists. ##
20808 ## ------------------------------------------ ##
20811 sed "s/^/$as_me: WARNING: /" >&2
20814 echo "$as_me:$LINENO: checking for $ac_header" >&5
20815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 eval "$as_ac_Header=\$ac_header_preproc"
20821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20826 cat >>confdefs.h
<<_ACEOF
20827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20832 for ac_header
in kerberosIV
/krb.h
20834 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20836 echo "$as_me:$LINENO: checking for $ac_header" >&5
20837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20844 # Is the header compilable?
20845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20847 cat >conftest.
$ac_ext <<_ACEOF
20850 cat confdefs.h
>>conftest.
$ac_ext
20851 cat >>conftest.
$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 $ac_includes_default
20854 #include <$ac_header>
20856 rm -f conftest.
$ac_objext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858 (eval $ac_compile) 2>conftest.er1
20860 grep -v '^ *+' conftest.er1
>conftest.err
20862 cat conftest.err
>&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try
='test -z "$ac_c_werror_flag"
20866 || test ! -s conftest.err'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try
='test -s conftest.$ac_objext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 ac_header_compiler
=yes
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.
$ac_ext >&5
20883 ac_header_compiler
=no
20885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6
20889 # Is the header present?
20890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20892 cat >conftest.
$ac_ext <<_ACEOF
20895 cat confdefs.h
>>conftest.
$ac_ext
20896 cat >>conftest.
$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <$ac_header>
20900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20903 grep -v '^ *+' conftest.er1
>conftest.err
20905 cat conftest.err
>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } >/dev
/null
; then
20908 if test -s conftest.err
; then
20909 ac_cpp_err
=$ac_c_preproc_warn_flag
20910 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20917 if test -z "$ac_cpp_err"; then
20918 ac_header_preproc
=yes
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.
$ac_ext >&5
20923 ac_header_preproc
=no
20925 rm -f conftest.err conftest.
$ac_ext
20926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20927 echo "${ECHO_T}$ac_header_preproc" >&6
20929 # So? What about this header?
20930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20936 ac_header_preproc
=yes
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20953 ## ------------------------------------------ ##
20954 ## Report this to the AC_PACKAGE_NAME lists. ##
20955 ## ------------------------------------------ ##
20958 sed "s/^/$as_me: WARNING: /" >&2
20961 echo "$as_me:$LINENO: checking for $ac_header" >&5
20962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20966 eval "$as_ac_Header=\$ac_header_preproc"
20968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20973 cat >>confdefs.h
<<_ACEOF
20974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979 for ac_header
in kerberos
/krb.h
20981 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20983 echo "$as_me:$LINENO: checking for $ac_header" >&5
20984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20991 # Is the header compilable?
20992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20994 cat >conftest.
$ac_ext <<_ACEOF
20997 cat confdefs.h
>>conftest.
$ac_ext
20998 cat >>conftest.
$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 $ac_includes_default
21001 #include <$ac_header>
21003 rm -f conftest.
$ac_objext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005 (eval $ac_compile) 2>conftest.er1
21007 grep -v '^ *+' conftest.er1
>conftest.err
21009 cat conftest.err
>&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } &&
21012 { ac_try
='test -z "$ac_c_werror_flag"
21013 || test ! -s conftest.err'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try
='test -s conftest.$ac_objext'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_header_compiler
=yes
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.
$ac_ext >&5
21030 ac_header_compiler
=no
21032 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21034 echo "${ECHO_T}$ac_header_compiler" >&6
21036 # Is the header present?
21037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21039 cat >conftest.
$ac_ext <<_ACEOF
21042 cat confdefs.h
>>conftest.
$ac_ext
21043 cat >>conftest.
$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 #include <$ac_header>
21047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21048 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21050 grep -v '^ *+' conftest.er1
>conftest.err
21052 cat conftest.err
>&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } >/dev
/null
; then
21055 if test -s conftest.err
; then
21056 ac_cpp_err
=$ac_c_preproc_warn_flag
21057 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21064 if test -z "$ac_cpp_err"; then
21065 ac_header_preproc
=yes
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.
$ac_ext >&5
21070 ac_header_preproc
=no
21072 rm -f conftest.err conftest.
$ac_ext
21073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21074 echo "${ECHO_T}$ac_header_preproc" >&6
21076 # So? What about this header?
21077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21083 ac_header_preproc
=yes
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21100 ## ------------------------------------------ ##
21101 ## Report this to the AC_PACKAGE_NAME lists. ##
21102 ## ------------------------------------------ ##
21105 sed "s/^/$as_me: WARNING: /" >&2
21108 echo "$as_me:$LINENO: checking for $ac_header" >&5
21109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 eval "$as_ac_Header=\$ac_header_preproc"
21115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21120 cat >>confdefs.h
<<_ACEOF
21121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21138 for ac_header
in com_err.h
21140 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21142 echo "$as_me:$LINENO: checking for $ac_header" >&5
21143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21150 # Is the header compilable?
21151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21153 cat >conftest.
$ac_ext <<_ACEOF
21156 cat confdefs.h
>>conftest.
$ac_ext
21157 cat >>conftest.
$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21159 $ac_includes_default
21160 #include <$ac_header>
21162 rm -f conftest.
$ac_objext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164 (eval $ac_compile) 2>conftest.er1
21166 grep -v '^ *+' conftest.er1
>conftest.err
21168 cat conftest.err
>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try
='test -z "$ac_c_werror_flag"
21172 || test ! -s conftest.err'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; } &&
21178 { ac_try
='test -s conftest.$ac_objext'
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21184 ac_header_compiler
=yes
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.
$ac_ext >&5
21189 ac_header_compiler
=no
21191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21193 echo "${ECHO_T}$ac_header_compiler" >&6
21195 # Is the header present?
21196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21198 cat >conftest.
$ac_ext <<_ACEOF
21201 cat confdefs.h
>>conftest.
$ac_ext
21202 cat >>conftest.
$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 #include <$ac_header>
21206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21209 grep -v '^ *+' conftest.er1
>conftest.err
21211 cat conftest.err
>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } >/dev
/null
; then
21214 if test -s conftest.err
; then
21215 ac_cpp_err
=$ac_c_preproc_warn_flag
21216 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21223 if test -z "$ac_cpp_err"; then
21224 ac_header_preproc
=yes
21226 echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.
$ac_ext >&5
21229 ac_header_preproc
=no
21231 rm -f conftest.err conftest.
$ac_ext
21232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21233 echo "${ECHO_T}$ac_header_preproc" >&6
21235 # So? What about this header?
21236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21242 ac_header_preproc
=yes
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21259 ## ------------------------------------------ ##
21260 ## Report this to the AC_PACKAGE_NAME lists. ##
21261 ## ------------------------------------------ ##
21264 sed "s/^/$as_me: WARNING: /" >&2
21267 echo "$as_me:$LINENO: checking for $ac_header" >&5
21268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21270 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 eval "$as_ac_Header=\$ac_header_preproc"
21274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21279 cat >>confdefs.h
<<_ACEOF
21280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21289 # Solaris requires -lintl if you want strerror (which calls dgettext)
21290 # to return localized messages.
21292 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21293 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21294 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 ac_check_lib_save_LIBS
=$LIBS
21298 LIBS
="-lintl $LIBS"
21299 cat >conftest.
$ac_ext <<_ACEOF
21302 cat confdefs.h
>>conftest.
$ac_ext
21303 cat >>conftest.
$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21306 /* Override any gcc2 internal prototype to avoid an error. */
21310 /* We use char because int might match the return type of a gcc2
21311 builtin and then its argument prototype would still apply. */
21321 rm -f conftest.
$ac_objext conftest
$ac_exeext
21322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21323 (eval $ac_link) 2>conftest.er1
21325 grep -v '^ *+' conftest.er1
>conftest.err
21327 cat conftest.err
>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
21330 { ac_try
='test -z "$ac_c_werror_flag"
21331 || test ! -s conftest.err'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try
='test -s conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_lib_intl_dgettext
=yes
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.
$ac_ext >&5
21348 ac_cv_lib_intl_dgettext
=no
21350 rm -f conftest.err conftest.
$ac_objext \
21351 conftest
$ac_exeext conftest.
$ac_ext
21352 LIBS
=$ac_check_lib_save_LIBS
21354 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21355 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21356 if test $ac_cv_lib_intl_dgettext = yes; then
21357 cat >>confdefs.h
<<_ACEOF
21358 #define HAVE_LIBINTL 1
21361 LIBS
="-lintl $LIBS"
21366 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21367 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
21368 if test "${emacs_cv_localtime_cache+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 if test x
$ac_cv_func_tzset = xyes
; then
21372 if test "$cross_compiling" = yes; then
21373 # If we have tzset, assume the worst when cross-compiling.
21374 emacs_cv_localtime_cache
=yes
21376 cat >conftest.
$ac_ext <<_ACEOF
21379 cat confdefs.h
>>conftest.
$ac_ext
21380 cat >>conftest.
$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21383 extern char **environ;
21387 for (to = from = environ; (*to = *from); from++)
21388 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21391 char TZ_GMT0[] = "TZ=GMT0";
21392 char TZ_PST8[] = "TZ=PST8";
21395 time_t now = time ((time_t *) 0);
21396 int hour_GMT0, hour_unset;
21397 if (putenv (TZ_GMT0) != 0)
21399 hour_GMT0 = localtime (&now)->tm_hour;
21401 hour_unset = localtime (&now)->tm_hour;
21402 if (putenv (TZ_PST8) != 0)
21404 if (localtime (&now)->tm_hour == hour_GMT0)
21407 if (localtime (&now)->tm_hour != hour_unset)
21412 rm -f conftest
$ac_exeext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 emacs_cv_localtime_cache
=no
21425 echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.
$ac_ext >&5
21429 ( exit $ac_status )
21430 emacs_cv_localtime_cache
=yes
21432 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21435 # If we lack tzset, report that localtime does not cache TZ,
21436 # since we can't invalidate the cache if we don't have tzset.
21437 emacs_cv_localtime_cache
=no
21440 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21441 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
21442 if test $emacs_cv_localtime_cache = yes; then
21444 cat >>confdefs.h
<<\_ACEOF
21445 #define LOCALTIME_CACHE 1
21450 if test "x$HAVE_TIMEVAL" = xyes
; then
21452 for ac_func
in gettimeofday
21454 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21455 echo "$as_me:$LINENO: checking for $ac_func" >&5
21456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21457 if eval "test \"\${$as_ac_var+set}\" = set"; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 cat >conftest.
$ac_ext <<_ACEOF
21463 cat confdefs.h
>>conftest.
$ac_ext
21464 cat >>conftest.
$ac_ext <<_ACEOF
21465 /* end confdefs.h. */
21466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21468 #define $ac_func innocuous_$ac_func
21470 /* System header to define __stub macros and hopefully few prototypes,
21471 which can conflict with char $ac_func (); below.
21472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21473 <limits.h> exists even on freestanding compilers. */
21476 # include <limits.h>
21478 # include <assert.h>
21483 /* Override any gcc2 internal prototype to avoid an error. */
21488 /* We use char because int might match the return type of a gcc2
21489 builtin and then its argument prototype would still apply. */
21491 /* The GNU C library defines this for functions which it implements
21492 to always fail with ENOSYS. Some functions are actually named
21493 something starting with __ and the normal name is an alias. */
21494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21497 char (*f) () = $ac_func;
21506 return f != $ac_func;
21511 rm -f conftest.
$ac_objext conftest
$ac_exeext
21512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21513 (eval $ac_link) 2>conftest.er1
21515 grep -v '^ *+' conftest.er1
>conftest.err
21517 cat conftest.err
>&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } &&
21520 { ac_try
='test -z "$ac_c_werror_flag"
21521 || test ! -s conftest.err'
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try
='test -s conftest$ac_exeext'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 eval "$as_ac_var=yes"
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.
$ac_ext >&5
21538 eval "$as_ac_var=no"
21540 rm -f conftest.err conftest.
$ac_objext \
21541 conftest
$ac_exeext conftest.
$ac_ext
21543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21545 if test `eval echo '${'$as_ac_var'}'` = yes; then
21546 cat >>confdefs.h
<<_ACEOF
21547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21553 if test $ac_cv_func_gettimeofday = yes; then
21554 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21555 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21556 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 cat >conftest.
$ac_ext <<_ACEOF
21562 cat confdefs.h
>>conftest.
$ac_ext
21563 cat >>conftest.
$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21566 #ifdef TIME_WITH_SYS_TIME
21567 #include <sys/time.h>
21570 #ifdef HAVE_SYS_TIME_H
21571 #include <sys/time.h>
21579 struct timeval time;
21580 gettimeofday (&time, 0);
21585 rm -f conftest.
$ac_objext
21586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21587 (eval $ac_compile) 2>conftest.er1
21589 grep -v '^ *+' conftest.er1
>conftest.err
21591 cat conftest.err
>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } &&
21594 { ac_try
='test -z "$ac_c_werror_flag"
21595 || test ! -s conftest.err'
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; } &&
21601 { ac_try
='test -s conftest.$ac_objext'
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 emacs_cv_gettimeofday_two_arguments
=yes
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.
$ac_ext >&5
21612 emacs_cv_gettimeofday_two_arguments
=no
21614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21616 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21617 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21618 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21620 cat >>confdefs.h
<<\_ACEOF
21621 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21628 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21629 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21630 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21631 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 cat >conftest.
$ac_ext <<_ACEOF
21637 cat confdefs.h
>>conftest.
$ac_ext
21638 cat >>conftest.
$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 #include <sys/types.h>
21641 #include <$ac_cv_struct_tm>
21647 static struct tm ac_aggr;
21648 if (ac_aggr.tm_zone)
21654 rm -f conftest.
$ac_objext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21656 (eval $ac_compile) 2>conftest.er1
21658 grep -v '^ *+' conftest.er1
>conftest.err
21660 cat conftest.err
>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
21663 { ac_try
='test -z "$ac_c_werror_flag"
21664 || test ! -s conftest.err'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; } &&
21670 { ac_try
='test -s conftest.$ac_objext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 ac_cv_member_struct_tm_tm_zone
=yes
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.
$ac_ext >&5
21681 cat >conftest.
$ac_ext <<_ACEOF
21684 cat confdefs.h
>>conftest.
$ac_ext
21685 cat >>conftest.
$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 #include <sys/types.h>
21688 #include <$ac_cv_struct_tm>
21694 static struct tm ac_aggr;
21695 if (sizeof ac_aggr.tm_zone)
21701 rm -f conftest.
$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>conftest.er1
21705 grep -v '^ *+' conftest.er1
>conftest.err
21707 cat conftest.err
>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
21710 { ac_try
='test -z "$ac_c_werror_flag"
21711 || test ! -s conftest.err'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try
='test -s conftest.$ac_objext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 ac_cv_member_struct_tm_tm_zone
=yes
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.
$ac_ext >&5
21728 ac_cv_member_struct_tm_tm_zone
=no
21730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21734 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21735 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21736 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21738 cat >>confdefs.h
<<_ACEOF
21739 #define HAVE_STRUCT_TM_TM_ZONE 1
21745 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21747 cat >>confdefs.h
<<\_ACEOF
21748 #define HAVE_TM_ZONE 1
21752 echo "$as_me:$LINENO: checking for tzname" >&5
21753 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21754 if test "${ac_cv_var_tzname+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 cat >conftest.
$ac_ext <<_ACEOF
21760 cat confdefs.h
>>conftest.
$ac_ext
21761 cat >>conftest.
$ac_ext <<_ACEOF
21762 /* end confdefs.h. */
21764 #ifndef tzname /* For SGI. */
21765 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21776 rm -f conftest.
$ac_objext conftest
$ac_exeext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21778 (eval $ac_link) 2>conftest.er1
21780 grep -v '^ *+' conftest.er1
>conftest.err
21782 cat conftest.err
>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
21785 { ac_try
='test -z "$ac_c_werror_flag"
21786 || test ! -s conftest.err'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try
='test -s conftest$ac_exeext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_var_tzname
=yes
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.
$ac_ext >&5
21803 ac_cv_var_tzname
=no
21805 rm -f conftest.err conftest.
$ac_objext \
21806 conftest
$ac_exeext conftest.
$ac_ext
21808 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21809 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21810 if test $ac_cv_var_tzname = yes; then
21812 cat >>confdefs.h
<<\_ACEOF
21813 #define HAVE_TZNAME 1
21820 if test "$ac_cv_func_gettimeofday" = yes; then
21821 echo "$as_me:$LINENO: checking for struct timezone" >&5
21822 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21823 if test "${emacs_cv_struct_timezone+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 cat >conftest.
$ac_ext <<_ACEOF
21829 cat confdefs.h
>>conftest.
$ac_ext
21830 cat >>conftest.
$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21832 #include <sys/time.h>
21836 struct timezone tz;
21841 rm -f conftest.
$ac_objext
21842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21843 (eval $ac_compile) 2>conftest.er1
21845 grep -v '^ *+' conftest.er1
>conftest.err
21847 cat conftest.err
>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } &&
21850 { ac_try
='test -z "$ac_c_werror_flag"
21851 || test ! -s conftest.err'
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; } &&
21857 { ac_try
='test -s conftest.$ac_objext'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; }; then
21863 if test "$cross_compiling" = yes; then
21864 emacs_cv_struct_timezone
=yes
21866 cat >conftest.
$ac_ext <<_ACEOF
21869 cat confdefs.h
>>conftest.
$ac_ext
21870 cat >>conftest.
$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21873 #ifdef TIME_WITH_SYS_TIME
21874 #include <sys/time.h>
21877 #ifdef HAVE_SYS_TIME_H
21878 #include <sys/time.h>
21884 struct timeval time;
21885 struct timezone dummy;
21886 exit (gettimeofday (&time, &dummy));
21889 rm -f conftest
$ac_exeext
21890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21891 (eval $ac_link) 2>&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 emacs_cv_struct_timezone
=yes
21902 echo "$as_me: program exited with status $ac_status" >&5
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.
$ac_ext >&5
21906 ( exit $ac_status )
21907 emacs_cv_struct_timezone
=no
21909 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.
$ac_ext >&5
21915 emacs_cv_struct_timezone
=no
21917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21919 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21920 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21924 echo "$as_me:$LINENO: checking for socket" >&5
21925 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21926 if test "${ac_cv_func_socket+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 cat >conftest.
$ac_ext <<_ACEOF
21932 cat confdefs.h
>>conftest.
$ac_ext
21933 cat >>conftest.
$ac_ext <<_ACEOF
21934 /* end confdefs.h. */
21935 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21937 #define socket innocuous_socket
21939 /* System header to define __stub macros and hopefully few prototypes,
21940 which can conflict with char socket (); below.
21941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21942 <limits.h> exists even on freestanding compilers. */
21945 # include <limits.h>
21947 # include <assert.h>
21952 /* Override any gcc2 internal prototype to avoid an error. */
21957 /* We use char because int might match the return type of a gcc2
21958 builtin and then its argument prototype would still apply. */
21960 /* The GNU C library defines this for functions which it implements
21961 to always fail with ENOSYS. Some functions are actually named
21962 something starting with __ and the normal name is an alias. */
21963 #if defined (__stub_socket) || defined (__stub___socket)
21966 char (*f) () = socket;
21975 return f != socket;
21980 rm -f conftest.
$ac_objext conftest
$ac_exeext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21982 (eval $ac_link) 2>conftest.er1
21984 grep -v '^ *+' conftest.er1
>conftest.err
21986 cat conftest.err
>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
21989 { ac_try
='test -z "$ac_c_werror_flag"
21990 || test ! -s conftest.err'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; } &&
21996 { ac_try
='test -s conftest$ac_exeext'
21997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998 (eval $ac_try) 2>&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; }; then
22002 ac_cv_func_socket
=yes
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.
$ac_ext >&5
22007 ac_cv_func_socket
=no
22009 rm -f conftest.err conftest.
$ac_objext \
22010 conftest
$ac_exeext conftest.
$ac_ext
22012 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22013 echo "${ECHO_T}$ac_cv_func_socket" >&6
22014 if test $ac_cv_func_socket = yes; then
22020 if test $ok_so_far = yes; then
22021 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22022 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22023 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22024 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22028 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22030 # Is the header compilable?
22031 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22032 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
22033 cat >conftest.
$ac_ext <<_ACEOF
22036 cat confdefs.h
>>conftest.
$ac_ext
22037 cat >>conftest.
$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 $ac_includes_default
22040 #include <netinet/in.h>
22042 rm -f conftest.
$ac_objext
22043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22044 (eval $ac_compile) 2>conftest.er1
22046 grep -v '^ *+' conftest.er1
>conftest.err
22048 cat conftest.err
>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try
='test -z "$ac_c_werror_flag"
22052 || test ! -s conftest.err'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try
='test -s conftest.$ac_objext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 ac_header_compiler
=yes
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.
$ac_ext >&5
22069 ac_header_compiler
=no
22071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22073 echo "${ECHO_T}$ac_header_compiler" >&6
22075 # Is the header present?
22076 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22077 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
22078 cat >conftest.
$ac_ext <<_ACEOF
22081 cat confdefs.h
>>conftest.
$ac_ext
22082 cat >>conftest.
$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 #include <netinet/in.h>
22086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22087 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22089 grep -v '^ *+' conftest.er1
>conftest.err
22091 cat conftest.err
>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } >/dev
/null
; then
22094 if test -s conftest.err
; then
22095 ac_cpp_err
=$ac_c_preproc_warn_flag
22096 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22103 if test -z "$ac_cpp_err"; then
22104 ac_header_preproc
=yes
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.
$ac_ext >&5
22109 ac_header_preproc
=no
22111 rm -f conftest.err conftest.
$ac_ext
22112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22113 echo "${ECHO_T}$ac_header_preproc" >&6
22115 # So? What about this header?
22116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22118 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22119 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22121 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22122 ac_header_preproc
=yes
22125 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22126 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22127 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22128 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22130 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22132 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22134 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22136 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22139 ## ------------------------------------------ ##
22140 ## Report this to the AC_PACKAGE_NAME lists. ##
22141 ## ------------------------------------------ ##
22144 sed "s/^/$as_me: WARNING: /" >&2
22147 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22148 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22149 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 ac_cv_header_netinet_in_h
=$ac_header_preproc
22154 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22155 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22158 if test $ac_cv_header_netinet_in_h = yes; then
22166 if test $ok_so_far = yes; then
22167 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22168 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22169 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22170 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22174 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22176 # Is the header compilable?
22177 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22178 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
22179 cat >conftest.
$ac_ext <<_ACEOF
22182 cat confdefs.h
>>conftest.
$ac_ext
22183 cat >>conftest.
$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 $ac_includes_default
22186 #include <arpa/inet.h>
22188 rm -f conftest.
$ac_objext
22189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22190 (eval $ac_compile) 2>conftest.er1
22192 grep -v '^ *+' conftest.er1
>conftest.err
22194 cat conftest.err
>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } &&
22197 { ac_try
='test -z "$ac_c_werror_flag"
22198 || test ! -s conftest.err'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; } &&
22204 { ac_try
='test -s conftest.$ac_objext'
22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); }; }; then
22210 ac_header_compiler
=yes
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.
$ac_ext >&5
22215 ac_header_compiler
=no
22217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22219 echo "${ECHO_T}$ac_header_compiler" >&6
22221 # Is the header present?
22222 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22223 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
22224 cat >conftest.
$ac_ext <<_ACEOF
22227 cat confdefs.h
>>conftest.
$ac_ext
22228 cat >>conftest.
$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230 #include <arpa/inet.h>
22232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22233 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22235 grep -v '^ *+' conftest.er1
>conftest.err
22237 cat conftest.err
>&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } >/dev
/null
; then
22240 if test -s conftest.err
; then
22241 ac_cpp_err
=$ac_c_preproc_warn_flag
22242 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22249 if test -z "$ac_cpp_err"; then
22250 ac_header_preproc
=yes
22252 echo "$as_me: failed program was:" >&5
22253 sed 's/^/| /' conftest.
$ac_ext >&5
22255 ac_header_preproc
=no
22257 rm -f conftest.err conftest.
$ac_ext
22258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22259 echo "${ECHO_T}$ac_header_preproc" >&6
22261 # So? What about this header?
22262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22264 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22265 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22267 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22268 ac_header_preproc
=yes
22271 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22272 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22273 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22274 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22275 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22276 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22277 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22278 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22279 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22280 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22281 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22282 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22285 ## ------------------------------------------ ##
22286 ## Report this to the AC_PACKAGE_NAME lists. ##
22287 ## ------------------------------------------ ##
22290 sed "s/^/$as_me: WARNING: /" >&2
22293 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22294 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22295 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 ac_cv_header_arpa_inet_h
=$ac_header_preproc
22300 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22301 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22304 if test $ac_cv_header_arpa_inet_h = yes; then
22312 if test $ok_so_far = yes; then
22314 cat >>confdefs.h
<<\_ACEOF
22315 #define HAVE_INET_SOCKETS 1
22321 for ac_header
in sys
/ioctl.h
22323 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22325 echo "$as_me:$LINENO: checking for $ac_header" >&5
22326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22333 # Is the header compilable?
22334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22336 cat >conftest.
$ac_ext <<_ACEOF
22339 cat confdefs.h
>>conftest.
$ac_ext
22340 cat >>conftest.
$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22342 $ac_includes_default
22343 #include <$ac_header>
22345 rm -f conftest.
$ac_objext
22346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22347 (eval $ac_compile) 2>conftest.er1
22349 grep -v '^ *+' conftest.er1
>conftest.err
22351 cat conftest.err
>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } &&
22354 { ac_try
='test -z "$ac_c_werror_flag"
22355 || test ! -s conftest.err'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; } &&
22361 { ac_try
='test -s conftest.$ac_objext'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367 ac_header_compiler
=yes
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.
$ac_ext >&5
22372 ac_header_compiler
=no
22374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22376 echo "${ECHO_T}$ac_header_compiler" >&6
22378 # Is the header present?
22379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22381 cat >conftest.
$ac_ext <<_ACEOF
22384 cat confdefs.h
>>conftest.
$ac_ext
22385 cat >>conftest.
$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22387 #include <$ac_header>
22389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22390 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22392 grep -v '^ *+' conftest.er1
>conftest.err
22394 cat conftest.err
>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } >/dev
/null
; then
22397 if test -s conftest.err
; then
22398 ac_cpp_err
=$ac_c_preproc_warn_flag
22399 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22406 if test -z "$ac_cpp_err"; then
22407 ac_header_preproc
=yes
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.
$ac_ext >&5
22412 ac_header_preproc
=no
22414 rm -f conftest.err conftest.
$ac_ext
22415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22416 echo "${ECHO_T}$ac_header_preproc" >&6
22418 # So? What about this header?
22419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22425 ac_header_preproc
=yes
22428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22442 ## ------------------------------------------ ##
22443 ## Report this to the AC_PACKAGE_NAME lists. ##
22444 ## ------------------------------------------ ##
22447 sed "s/^/$as_me: WARNING: /" >&2
22450 echo "$as_me:$LINENO: checking for $ac_header" >&5
22451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22455 eval "$as_ac_Header=\$ac_header_preproc"
22457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22462 cat >>confdefs.h
<<_ACEOF
22463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22471 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
22473 cat >>confdefs.h
<<\_ACEOF
22474 #define HAVE_AIX_SMT_EXP 1
22479 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22480 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
22481 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
22482 echo "$as_me:$LINENO: result: yes" >&5
22483 echo "${ECHO_T}yes" >&6
22485 cat >>confdefs.h
<<\_ACEOF
22486 #define HAVE_DEV_PTMX 1
22490 echo "$as_me:$LINENO: result: no" >&5
22491 echo "${ECHO_T}no" >&6
22494 echo "$as_me:$LINENO: checking for pid_t" >&5
22495 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22496 if test "${ac_cv_type_pid_t+set}" = set; then
22497 echo $ECHO_N "(cached) $ECHO_C" >&6
22499 cat >conftest.
$ac_ext <<_ACEOF
22502 cat confdefs.h
>>conftest.
$ac_ext
22503 cat >>conftest.
$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22505 $ac_includes_default
22511 if (sizeof (pid_t))
22517 rm -f conftest.
$ac_objext
22518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22519 (eval $ac_compile) 2>conftest.er1
22521 grep -v '^ *+' conftest.er1
>conftest.err
22523 cat conftest.err
>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } &&
22526 { ac_try
='test -z "$ac_c_werror_flag"
22527 || test ! -s conftest.err'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; } &&
22533 { ac_try
='test -s conftest.$ac_objext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 ac_cv_type_pid_t
=yes
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.
$ac_ext >&5
22544 ac_cv_type_pid_t
=no
22546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22548 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22549 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22550 if test $ac_cv_type_pid_t = yes; then
22554 cat >>confdefs.h
<<_ACEOF
22562 for ac_header
in unistd.h vfork.h
22564 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22566 echo "$as_me:$LINENO: checking for $ac_header" >&5
22567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22574 # Is the header compilable?
22575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22577 cat >conftest.
$ac_ext <<_ACEOF
22580 cat confdefs.h
>>conftest.
$ac_ext
22581 cat >>conftest.
$ac_ext <<_ACEOF
22582 /* end confdefs.h. */
22583 $ac_includes_default
22584 #include <$ac_header>
22586 rm -f conftest.
$ac_objext
22587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22588 (eval $ac_compile) 2>conftest.er1
22590 grep -v '^ *+' conftest.er1
>conftest.err
22592 cat conftest.err
>&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } &&
22595 { ac_try
='test -z "$ac_c_werror_flag"
22596 || test ! -s conftest.err'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; } &&
22602 { ac_try
='test -s conftest.$ac_objext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
22608 ac_header_compiler
=yes
22610 echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.
$ac_ext >&5
22613 ac_header_compiler
=no
22615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22617 echo "${ECHO_T}$ac_header_compiler" >&6
22619 # Is the header present?
22620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22622 cat >conftest.
$ac_ext <<_ACEOF
22625 cat confdefs.h
>>conftest.
$ac_ext
22626 cat >>conftest.
$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22628 #include <$ac_header>
22630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22633 grep -v '^ *+' conftest.er1
>conftest.err
22635 cat conftest.err
>&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } >/dev
/null
; then
22638 if test -s conftest.err
; then
22639 ac_cpp_err
=$ac_c_preproc_warn_flag
22640 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22647 if test -z "$ac_cpp_err"; then
22648 ac_header_preproc
=yes
22650 echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.
$ac_ext >&5
22653 ac_header_preproc
=no
22655 rm -f conftest.err conftest.
$ac_ext
22656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22657 echo "${ECHO_T}$ac_header_preproc" >&6
22659 # So? What about this header?
22660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22666 ac_header_preproc
=yes
22669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22683 ## ------------------------------------------ ##
22684 ## Report this to the AC_PACKAGE_NAME lists. ##
22685 ## ------------------------------------------ ##
22688 sed "s/^/$as_me: WARNING: /" >&2
22691 echo "$as_me:$LINENO: checking for $ac_header" >&5
22692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22694 echo $ECHO_N "(cached) $ECHO_C" >&6
22696 eval "$as_ac_Header=\$ac_header_preproc"
22698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22703 cat >>confdefs.h
<<_ACEOF
22704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22713 for ac_func
in fork vfork
22715 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22716 echo "$as_me:$LINENO: checking for $ac_func" >&5
22717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22718 if eval "test \"\${$as_ac_var+set}\" = set"; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 cat >conftest.
$ac_ext <<_ACEOF
22724 cat confdefs.h
>>conftest.
$ac_ext
22725 cat >>conftest.
$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22729 #define $ac_func innocuous_$ac_func
22731 /* System header to define __stub macros and hopefully few prototypes,
22732 which can conflict with char $ac_func (); below.
22733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22734 <limits.h> exists even on freestanding compilers. */
22737 # include <limits.h>
22739 # include <assert.h>
22744 /* Override any gcc2 internal prototype to avoid an error. */
22749 /* We use char because int might match the return type of a gcc2
22750 builtin and then its argument prototype would still apply. */
22752 /* The GNU C library defines this for functions which it implements
22753 to always fail with ENOSYS. Some functions are actually named
22754 something starting with __ and the normal name is an alias. */
22755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22758 char (*f) () = $ac_func;
22767 return f != $ac_func;
22772 rm -f conftest.
$ac_objext conftest
$ac_exeext
22773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22774 (eval $ac_link) 2>conftest.er1
22776 grep -v '^ *+' conftest.er1
>conftest.err
22778 cat conftest.err
>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } &&
22781 { ac_try
='test -z "$ac_c_werror_flag"
22782 || test ! -s conftest.err'
22783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; } &&
22788 { ac_try
='test -s conftest$ac_exeext'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 eval "$as_ac_var=yes"
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.
$ac_ext >&5
22799 eval "$as_ac_var=no"
22801 rm -f conftest.err conftest.
$ac_objext \
22802 conftest
$ac_exeext conftest.
$ac_ext
22804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22806 if test `eval echo '${'$as_ac_var'}'` = yes; then
22807 cat >>confdefs.h
<<_ACEOF
22808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22814 if test "x$ac_cv_func_fork" = xyes
; then
22815 echo "$as_me:$LINENO: checking for working fork" >&5
22816 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22817 if test "${ac_cv_func_fork_works+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 if test "$cross_compiling" = yes; then
22821 ac_cv_func_fork_works
=cross
22823 cat >conftest.
$ac_ext <<_ACEOF
22824 /* By Ruediger Kuhlmann. */
22825 #include <sys/types.h>
22827 # include <unistd.h>
22829 /* Some systems only have a dummy stub for fork() */
22837 rm -f conftest
$ac_exeext
22838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22839 (eval $ac_link) 2>&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 ac_cv_func_fork_works
=yes
22850 echo "$as_me: program exited with status $ac_status" >&5
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.
$ac_ext >&5
22854 ( exit $ac_status )
22855 ac_cv_func_fork_works
=no
22857 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22860 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22861 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22864 ac_cv_func_fork_works
=$ac_cv_func_fork
22866 if test "x$ac_cv_func_fork_works" = xcross
; then
22868 *-*-amigaos* |
*-*-msdosdjgpp*)
22869 # Override, as these systems have only a dummy fork() stub
22870 ac_cv_func_fork_works
=no
22873 ac_cv_func_fork_works
=yes
22876 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22877 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22879 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22880 if test "x$ac_cv_func_vfork" = xyes
; then
22881 echo "$as_me:$LINENO: checking for working vfork" >&5
22882 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22883 if test "${ac_cv_func_vfork_works+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 if test "$cross_compiling" = yes; then
22887 ac_cv_func_vfork_works
=cross
22889 cat >conftest.
$ac_ext <<_ACEOF
22892 cat confdefs.h
>>conftest.
$ac_ext
22893 cat >>conftest.
$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 /* Thanks to Paul Eggert for this test. */
22897 #include <stdlib.h>
22898 #include <sys/types.h>
22899 #include <sys/stat.h>
22900 #include <sys/wait.h>
22902 # include <unistd.h>
22905 # include <vfork.h>
22907 /* On some sparc systems, changes by the child to local and incoming
22908 argument registers are propagated back to the parent. The compiler
22909 is told about this with #include <vfork.h>, but some compilers
22910 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22911 static variable whose address is put into a register that is
22912 clobbered by the vfork. */
22915 sparc_address_test (int arg)
22917 sparc_address_test (arg) int arg;
22920 static pid_t child;
22938 pid_t parent = getpid ();
22941 sparc_address_test (0);
22946 /* Here is another test for sparc vfork register problems. This
22947 test uses lots of local variables, at least as many local
22948 variables as main has allocated so far including compiler
22949 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22950 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22951 reuse the register of parent for one of the local variables,
22952 since it will think that parent can't possibly be used any more
22953 in this routine. Assigning to the local variable will thus
22954 munge parent in the parent process. */
22956 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22957 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22958 /* Convince the compiler that p..p7 are live; otherwise, it might
22959 use the same hardware register for all 8 local variables. */
22960 if (p != p1 || p != p2 || p != p3 || p != p4
22961 || p != p5 || p != p6 || p != p7)
22964 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22965 from child file descriptors. If the child closes a descriptor
22966 before it execs or exits, this munges the parent's descriptor
22967 as well. Test for this by closing stdout in the child. */
22968 _exit(close(fileno(stdout)) != 0);
22973 while (wait(&status) != child)
22976 /* Was there some problem with vforking? */
22979 /* Did the child fail? (This shouldn't happen.) */
22982 /* Did the vfork/compiler bug occur? */
22983 || parent != getpid()
22985 /* Did the file descriptor bug occur? */
22986 || fstat(fileno(stdout), &st) != 0
22991 rm -f conftest
$ac_exeext
22992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22993 (eval $ac_link) 2>&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998 (eval $ac_try) 2>&5
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); }; }; then
23002 ac_cv_func_vfork_works
=yes
23004 echo "$as_me: program exited with status $ac_status" >&5
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.
$ac_ext >&5
23008 ( exit $ac_status )
23009 ac_cv_func_vfork_works
=no
23011 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23014 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23015 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23018 if test "x$ac_cv_func_fork_works" = xcross
; then
23019 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23020 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23021 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23024 if test "x$ac_cv_func_vfork_works" = xyes
; then
23026 cat >>confdefs.h
<<\_ACEOF
23027 #define HAVE_WORKING_VFORK 1
23032 cat >>confdefs.h
<<\_ACEOF
23037 if test "x$ac_cv_func_fork_works" = xyes
; then
23039 cat >>confdefs.h
<<\_ACEOF
23040 #define HAVE_WORKING_FORK 1
23046 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23047 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23048 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23051 cat >conftest.
$ac_ext <<_ACEOF
23054 cat confdefs.h
>>conftest.
$ac_ext
23055 cat >>conftest.
$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 #include <langinfo.h>
23061 char* cs = nl_langinfo(CODESET);
23066 rm -f conftest.
$ac_objext conftest
$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068 (eval $ac_link) 2>conftest.er1
23070 grep -v '^ *+' conftest.er1
>conftest.err
23072 cat conftest.err
>&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try
='test -z "$ac_c_werror_flag"
23076 || test ! -s conftest.err'
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; } &&
23082 { ac_try
='test -s conftest$ac_exeext'
23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 emacs_cv_langinfo_codeset
=yes
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.
$ac_ext >&5
23093 emacs_cv_langinfo_codeset
=no
23095 rm -f conftest.err conftest.
$ac_objext \
23096 conftest
$ac_exeext conftest.
$ac_ext
23099 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23100 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
23101 if test $emacs_cv_langinfo_codeset = yes; then
23103 cat >>confdefs.h
<<\_ACEOF
23104 #define HAVE_LANGINFO_CODESET 1
23109 echo "$as_me:$LINENO: checking for size_t" >&5
23110 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23111 if test "${ac_cv_type_size_t+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23114 cat >conftest.
$ac_ext <<_ACEOF
23117 cat confdefs.h
>>conftest.
$ac_ext
23118 cat >>conftest.
$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23126 if (sizeof (size_t))
23132 rm -f conftest.
$ac_objext
23133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23134 (eval $ac_compile) 2>conftest.er1
23136 grep -v '^ *+' conftest.er1
>conftest.err
23138 cat conftest.err
>&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
23141 { ac_try
='test -z "$ac_c_werror_flag"
23142 || test ! -s conftest.err'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; } &&
23148 { ac_try
='test -s conftest.$ac_objext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 ac_cv_type_size_t
=yes
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.
$ac_ext >&5
23159 ac_cv_type_size_t
=no
23161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23163 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23164 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23165 if test $ac_cv_type_size_t = yes; then
23167 cat >>confdefs.h
<<_ACEOF
23168 #define HAVE_SIZE_T 1
23175 echo "$as_me:$LINENO: checking for mbstate_t" >&5
23176 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23177 if test "${ac_cv_type_mbstate_t+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 cat >conftest.
$ac_ext <<_ACEOF
23183 cat confdefs.h
>>conftest.
$ac_ext
23184 cat >>conftest.
$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 $ac_includes_default
23187 # include <wchar.h>
23191 mbstate_t x; return sizeof x;
23196 rm -f conftest.
$ac_objext
23197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23198 (eval $ac_compile) 2>conftest.er1
23200 grep -v '^ *+' conftest.er1
>conftest.err
23202 cat conftest.err
>&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); } &&
23205 { ac_try
='test -z "$ac_c_werror_flag"
23206 || test ! -s conftest.err'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; } &&
23212 { ac_try
='test -s conftest.$ac_objext'
23213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; }; then
23218 ac_cv_type_mbstate_t
=yes
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.
$ac_ext >&5
23223 ac_cv_type_mbstate_t
=no
23225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23227 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23228 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
23229 if test $ac_cv_type_mbstate_t = yes; then
23231 cat >>confdefs.h
<<\_ACEOF
23232 #define HAVE_MBSTATE_T 1
23237 cat >>confdefs.h
<<\_ACEOF
23238 #define mbstate_t int
23243 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23244 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
23245 if test "${emacs_cv_c_restrict+set}" = set; then
23246 echo $ECHO_N "(cached) $ECHO_C" >&6
23248 cat >conftest.
$ac_ext <<_ACEOF
23251 cat confdefs.h
>>conftest.
$ac_ext
23252 cat >>conftest.
$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 void fred (int *restrict x);
23263 rm -f conftest.
$ac_objext
23264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23265 (eval $ac_compile) 2>conftest.er1
23267 grep -v '^ *+' conftest.er1
>conftest.err
23269 cat conftest.err
>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } &&
23272 { ac_try
='test -z "$ac_c_werror_flag"
23273 || test ! -s conftest.err'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try
='test -s conftest.$ac_objext'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 emacs_cv_c_restrict
=yes
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.
$ac_ext >&5
23290 cat >conftest.
$ac_ext <<_ACEOF
23293 cat confdefs.h
>>conftest.
$ac_ext
23294 cat >>conftest.
$ac_ext <<_ACEOF
23295 /* end confdefs.h. */
23296 void fred (int *__restrict x);
23305 rm -f conftest.
$ac_objext
23306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23307 (eval $ac_compile) 2>conftest.er1
23309 grep -v '^ *+' conftest.er1
>conftest.err
23311 cat conftest.err
>&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
23314 { ac_try
='test -z "$ac_c_werror_flag"
23315 || test ! -s conftest.err'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try
='test -s conftest.$ac_objext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 emacs_cv_c_restrict
=__restrict
23329 echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.
$ac_ext >&5
23332 emacs_cv_c_restrict
=no
23334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23338 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23339 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
23340 case "$emacs_cv_c_restrict" in
23341 yes) emacs_restrict
=restrict
;;
23342 no
) emacs_restrict
="";;
23343 *) emacs_restrict
="$emacs_cv_c_restrict";;
23345 if test "$emacs_restrict" != __restrict
; then
23347 cat >>confdefs.h
<<_ACEOF
23348 #define __restrict $emacs_restrict
23353 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23354 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
23355 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23358 cat >conftest.
$ac_ext <<_ACEOF
23361 cat confdefs.h
>>conftest.
$ac_ext
23362 cat >>conftest.
$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23364 void fred (int x[__restrict]);
23373 rm -f conftest.
$ac_objext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23375 (eval $ac_compile) 2>conftest.er1
23377 grep -v '^ *+' conftest.er1
>conftest.err
23379 cat conftest.err
>&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
23382 { ac_try
='test -z "$ac_c_werror_flag"
23383 || test ! -s conftest.err'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; } &&
23389 { ac_try
='test -s conftest.$ac_objext'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 emacs_cv_c_restrict_arr
=yes
23397 echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.
$ac_ext >&5
23400 emacs_cv_c_restrict_arr
=no
23402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23404 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23405 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
23406 if test "$emacs_cv_c_restrict_arr" = yes; then
23408 cat >>confdefs.h
<<\_ACEOF
23409 #define __restrict_arr __restrict
23416 # Set up the CFLAGS for real compilation, so we can substitute it.
23417 CFLAGS
="$REAL_CFLAGS"
23418 CPPFLAGS
="$REAL_CPPFLAGS"
23420 #### Find out which version of Emacs this is.
23421 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23422 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23423 if test x
"${version}" = x
; then
23424 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23425 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23426 { (exit 1); exit 1; }; }
23429 ### Specify what sort of things we'll be editing into Makefile and config.h.
23430 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23466 cat >>confdefs.h
<<_ACEOF
23467 #define EMACS_CONFIGURATION "${canonical}"
23471 cat >>confdefs.h
<<_ACEOF
23472 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23476 cat >>confdefs.h
<<_ACEOF
23477 #define config_machfile "${machfile}"
23481 cat >>confdefs.h
<<_ACEOF
23482 #define config_opsysfile "${opsysfile}"
23486 cat >>confdefs.h
<<_ACEOF
23487 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23491 cat >>confdefs.h
<<_ACEOF
23492 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23496 cat >>confdefs.h
<<_ACEOF
23497 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23501 cat >>confdefs.h
<<_ACEOF
23502 #define UNEXEC_SRC ${UNEXEC_SRC}
23506 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23508 cat >>confdefs.h
<<\_ACEOF
23509 #define HAVE_X_WINDOWS 1
23513 if test "${USE_X_TOOLKIT}" != "none" ; then
23515 cat >>confdefs.h
<<\_ACEOF
23516 #define USE_X_TOOLKIT 1
23520 if test "${HAVE_X11}" = "yes" ; then
23522 cat >>confdefs.h
<<\_ACEOF
23527 if test "${HAVE_XFREE386}" = "yes" ; then
23529 cat >>confdefs.h
<<\_ACEOF
23530 #define HAVE_XFREE386 1
23534 if test "${HAVE_MENUS}" = "yes" ; then
23536 cat >>confdefs.h
<<\_ACEOF
23537 #define HAVE_MENUS 1
23541 if test "${GNU_MALLOC}" = "yes" ; then
23543 cat >>confdefs.h
<<\_ACEOF
23544 #define GNU_MALLOC 1
23548 if test "${REL_ALLOC}" = "yes" ; then
23550 cat >>confdefs.h
<<\_ACEOF
23551 #define REL_ALLOC 1
23560 #### Report on what we decided to do.
23561 #### Report GTK as a toolkit, even if it doesn't use Xt.
23562 #### It makes printing result more understandable as using GTK sets
23563 #### toolkit_scroll_bars to yes by default.
23564 if test "${HAVE_GTK}" = "yes"; then
23569 Configured for \`${canonical}'.
23571 Where should the build process find the source code? ${srcdir}
23572 What operating system and machine description files should Emacs use?
23573 \`${opsysfile}' and \`${machfile}'
23574 What compiler should emacs be built with? ${CC} ${CFLAGS}
23575 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23576 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23577 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23578 What window system should Emacs use? ${window_system}
23579 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23581 if test -n "${x_includes}"; then
23582 echo " Where do we find X Windows header files? ${x_includes}"
23584 echo " Where do we find X Windows header files? Standard dirs"
23586 if test -n "${x_libraries}"; then
23587 echo " Where do we find X Windows libraries? ${x_libraries}"
23589 echo " Where do we find X Windows libraries? Standard dirs"
23592 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23593 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23594 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23595 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23596 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23597 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23598 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23601 if test $USE_XASSERTS = yes; then
23602 echo " Compiling with asserts turned on."
23603 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23609 # Remove any trailing slashes in these variables.
23610 test "${prefix}" != NONE
&&
23611 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23612 test "${exec_prefix}" != NONE
&&
23613 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23615 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23616 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23617 ## from Makefile.c can correctly provide the arg `-traditional' to the
23620 cat >conftest.
$ac_ext <<_ACEOF
23623 cat confdefs.h
>>conftest.
$ac_ext
23624 cat >>conftest.
$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23629 $EGREP "yes..yes" >/dev
/null
2>&1; then
23630 CPP_NEED_TRADITIONAL
=no
23632 CPP_NEED_TRADITIONAL
=yes
23637 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"
23638 ac_config_commands
="$ac_config_commands default"
23639 cat >confcache
<<\_ACEOF
23640 # This file is a shell script that caches the results of configure
23641 # tests run on this system so they can be shared between configure
23642 # scripts and configure runs, see configure's option --config-cache.
23643 # It is not useful on other systems. If it contains results you don't
23644 # want to keep, you may remove or edit it.
23646 # config.status only pays attention to the cache file if you give it
23647 # the --recheck option to rerun configure.
23649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23651 # following values.
23655 # The following way of writing the cache mishandles newlines in values,
23656 # but we know of no workaround that is simple, portable, and efficient.
23657 # So, don't put newlines in cache variables' values.
23658 # Ultrix sh set writes to stderr and can't be redirected directly,
23659 # and sets the high bit in the cache file unless we assign to the vars.
23662 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23664 # `set' does not quote correctly, so add quotes (double-quote
23665 # substitution turns \\\\ into \\, and sed turns \\ into \).
23668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23671 # `set' quotes correctly as required by POSIX, so do not add quotes.
23673 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23682 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23684 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23685 if test -w $cache_file; then
23686 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23687 cat confcache
>$cache_file
23689 echo "not updating unwritable cache $cache_file"
23694 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23695 # Let make expand exec_prefix.
23696 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23700 # trailing colons and then remove the whole line if VPATH becomes empty
23701 # (actually we leave an empty line to preserve line numbers).
23702 if test "x$srcdir" = x.
; then
23703 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23704 s/:*\$(srcdir):*/:/;
23705 s/:*\${srcdir}:*/:/;
23707 s/^\([^=]*=[ ]*\):*/\1/;
23713 DEFS
=-DHAVE_CONFIG_H
23717 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23718 # 1. Remove the extension, and $U if already installed.
23719 ac_i
=`echo "$ac_i" |
23720 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23722 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23723 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23725 LIBOBJS
=$ac_libobjs
23727 LTLIBOBJS
=$ac_ltlibobjs
23731 : ${CONFIG_STATUS=./config.status}
23732 ac_clean_files_save
=$ac_clean_files
23733 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23734 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23735 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23736 cat >$CONFIG_STATUS <<_ACEOF
23738 # Generated by $as_me.
23739 # Run this file to recreate the current configuration.
23740 # Compiler output produced by configure, useful for debugging
23741 # configure, is in config.log if it exists.
23744 ac_cs_recheck=false
23746 SHELL=\${CONFIG_SHELL-$SHELL}
23749 cat >>$CONFIG_STATUS <<\_ACEOF
23750 ## --------------------- ##
23751 ## M4sh Initialization. ##
23752 ## --------------------- ##
23754 # Be Bourne compatible
23755 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23758 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23759 # is contrary to our usage. Disable this feature.
23760 alias -g '${1+"$@"}'='"$@"'
23761 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23764 DUALCASE
=1; export DUALCASE
# for MKS sh
23766 # Support unset when possible.
23767 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23774 # Work around bugs in pre-3.0 UWIN ksh.
23775 $as_unset ENV MAIL MAILPATH
23782 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23783 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23784 LC_TELEPHONE LC_TIME
23786 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23787 eval $as_var=C
; export $as_var
23793 # Required to use basename.
23794 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23800 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23801 as_basename
=basename
23807 # Name of the executable.
23808 as_me
=`$as_basename "$0" ||
23809 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23810 X"$0" : 'X\(//\)$' \| \
23811 X"$0" : 'X\(/\)$' \| \
23812 . : '\(.\)' 2>/dev/null ||
23814 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23815 /^X\/\(\/\/\)$/{ s//\1/; q; }
23816 /^X\/\(\/\).*/{ s//\1/; q; }
23820 # PATH needs CR, and LINENO needs CR and PATH.
23821 # Avoid depending upon Character Ranges.
23822 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23823 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23824 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23825 as_cr_digits
='0123456789'
23826 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23828 # The user is always right.
23829 if test "${PATH_SEPARATOR+set}" != set; then
23830 echo "#! /bin/sh" >conf$$.sh
23831 echo "exit 0" >>conf$$.sh
23833 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23842 as_lineno_1
=$LINENO
23843 as_lineno_2
=$LINENO
23844 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23845 test "x$as_lineno_1" != "x$as_lineno_2" &&
23846 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23847 # Find who we are. Look in the path if we contain no path at all
23850 *[\\/]* ) as_myself
=$0 ;;
23851 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23852 for as_dir
in $PATH
23855 test -z "$as_dir" && as_dir
=.
23856 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23861 # We did not find ourselves, most probably we were run as `sh COMMAND'
23862 # in which case we are not to be found in the path.
23863 if test "x$as_myself" = x
; then
23866 if test ! -f "$as_myself"; then
23867 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23868 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23869 { (exit 1); exit 1; }; }
23871 case $CONFIG_SHELL in
23873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23874 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23877 test -z "$as_dir" && as_dir
=.
23878 for as_base
in sh bash ksh sh5
; do
23881 if ("$as_dir/$as_base" -c '
23882 as_lineno_1=$LINENO
23883 as_lineno_2=$LINENO
23884 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23885 test "x$as_lineno_1" != "x$as_lineno_2" &&
23886 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23887 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23888 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23889 CONFIG_SHELL
=$as_dir/$as_base
23890 export CONFIG_SHELL
23891 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23899 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23900 # uniformly replaced by the line number. The first 'sed' inserts a
23901 # line-number line before each line; the second 'sed' does the real
23902 # work. The second script uses 'N' to pair each line-number line
23903 # with the numbered line, and appends trailing '-' during
23904 # substitution so that $LINENO is not a special case at line end.
23905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23906 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23907 sed '=' <$as_myself |
23912 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23915 s,^['$as_cr_digits']*\n,,
23916 ' >$as_me.lineno
&&
23917 chmod +x
$as_me.lineno ||
23918 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23919 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23920 { (exit 1); exit 1; }; }
23922 # Don't try to exec as it changes $[0], causing all sort of problems
23923 # (the dirname of $[0] is not the place where we might find the
23924 # original and so on. Autoconf is especially sensible to this).
23926 # Exit status is that of the last command.
23931 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23932 *c
*,-n*) ECHO_N
= ECHO_C
='
23934 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23935 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23938 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23944 rm -f conf$$ conf$$.exe conf$$.
file
23946 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23947 # We could just check for DJGPP; but this test a) works b) is more generic
23948 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23949 if test -f conf$$.exe
; then
23950 # Don't use ln at all; we don't have any links
23955 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23960 rm -f conf$$ conf$$.exe conf$$.
file
23962 if mkdir
-p .
2>/dev
/null
; then
23965 test -d .
/-p && rmdir .
/-p
23969 as_executable_p
="test -f"
23971 # Sed expression to map a string onto a valid CPP name.
23972 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23974 # Sed expression to map a string onto a valid variable name.
23975 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23979 # We need space, tab and new line, in precisely that order.
23989 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23990 # report actual input values of CONFIG_FILES etc. instead of their
23991 # values after options handling. Logging --version etc. is OK.
23995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23996 ## Running $as_me. ##
24001 This file was extended by $as_me, which was
24002 generated by GNU Autoconf 2.59. Invocation command line was
24004 CONFIG_FILES = $CONFIG_FILES
24005 CONFIG_HEADERS = $CONFIG_HEADERS
24006 CONFIG_LINKS = $CONFIG_LINKS
24007 CONFIG_COMMANDS = $CONFIG_COMMANDS
24011 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24015 # Files that config.status was made for.
24016 if test -n "$ac_config_files"; then
24017 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24020 if test -n "$ac_config_headers"; then
24021 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24024 if test -n "$ac_config_links"; then
24025 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24028 if test -n "$ac_config_commands"; then
24029 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24032 cat >>$CONFIG_STATUS <<\_ACEOF
24035 \`$as_me' instantiates files from templates according to the
24036 current configuration.
24038 Usage: $0 [OPTIONS] [FILE]...
24040 -h, --help print this help, then exit
24041 -V, --version print version number, then exit
24042 -q, --quiet do not print progress messages
24043 -d, --debug don't remove temporary files
24044 --recheck update $as_me by reconfiguring in the same conditions
24045 --file=FILE[:TEMPLATE]
24046 instantiate the configuration file FILE
24047 --header=FILE[:TEMPLATE]
24048 instantiate the configuration header FILE
24050 Configuration files:
24053 Configuration headers:
24056 Configuration commands:
24059 Report bugs to <bug-autoconf@gnu.org>."
24062 cat >>$CONFIG_STATUS <<_ACEOF
24065 configured by $0, generated by GNU Autoconf 2.59,
24066 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24068 Copyright (C) 2003 Free Software Foundation, Inc.
24069 This config.status script is free software; the Free Software Foundation
24070 gives unlimited permission to copy, distribute and modify it."
24075 cat >>$CONFIG_STATUS <<\_ACEOF
24076 # If no file are specified by the user, then we need to provide default
24077 # value. By we need to know if files were specified by the user.
24083 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
24084 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
24092 *) # This is not an option, so the user has probably given explicit
24095 ac_need_defaults
=false
;;
24099 # Handling of the options.
24101 cat >>$CONFIG_STATUS <<\_ACEOF
24102 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24104 --version |
--vers* |
-V )
24105 echo "$ac_cs_version"; exit 0 ;;
24107 # Conflict between --help and --header
24108 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24109 Try \`$0 --help' for more information." >&5
24110 echo "$as_me: error: ambiguous option: $1
24111 Try \`$0 --help' for more information." >&2;}
24112 { (exit 1); exit 1; }; };;
24113 --help |
--hel |
-h )
24114 echo "$ac_cs_usage"; exit 0 ;;
24115 --debug |
--d* |
-d )
24117 --file |
--fil |
--fi |
--f )
24119 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24120 ac_need_defaults
=false
;;
24121 --header |
--heade |
--head |
--hea )
24123 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24124 ac_need_defaults
=false
;;
24125 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24126 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24129 # This is an error.
24130 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24131 Try \`$0 --help' for more information." >&5
24132 echo "$as_me: error: unrecognized option: $1
24133 Try \`$0 --help' for more information." >&2;}
24134 { (exit 1); exit 1; }; } ;;
24136 *) ac_config_targets
="$ac_config_targets $1" ;;
24142 ac_configure_extra_args
=
24144 if $ac_cs_silent; then
24146 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24150 cat >>$CONFIG_STATUS <<_ACEOF
24151 if \$ac_cs_recheck; then
24152 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24153 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24158 cat >>$CONFIG_STATUS <<_ACEOF
24160 # INIT-COMMANDS section.
24163 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24169 cat >>$CONFIG_STATUS <<\_ACEOF
24170 for ac_config_target
in $ac_config_targets
24172 case "$ac_config_target" in
24173 # Handling of arguments.
24174 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24175 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24176 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24177 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24178 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24179 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24180 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24181 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24182 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24183 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24184 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24185 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24186 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24187 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24188 { (exit 1); exit 1; }; };;
24192 # If the user did not use the arguments to specify the items to instantiate,
24193 # then the envvar interface is used. Set only those that are not.
24194 # We use the long form for the default assignment because of an extremely
24195 # bizarre bug on SunOS 4.1.3.
24196 if $ac_need_defaults; then
24197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24198 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24202 # Have a temporary directory for convenience. Make it in the build tree
24203 # simply because there is no reason to put it here, and in addition,
24204 # creating and moving files from /tmp can sometimes cause problems.
24205 # Create a temporary directory, and hook for its removal unless debugging.
24208 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24209 trap '{ (exit 1); exit 1; }' 1 2 13 15
24212 # Create a (secure) tmp directory for tmp files.
24215 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24216 test -n "$tmp" && test -d "$tmp"
24219 tmp
=.
/confstat$$
-$RANDOM
24220 (umask 077 && mkdir
$tmp)
24223 echo "$me: cannot create a temporary directory in ." >&2
24224 { (exit 1); exit 1; }
24229 cat >>$CONFIG_STATUS <<_ACEOF
24232 # CONFIG_FILES section.
24235 # No need to generate the scripts if there are no CONFIG_FILES.
24236 # This happens for instance when ./config.status config.h
24237 if test -n "\$CONFIG_FILES"; then
24238 # Protect against being on the right side of a sed subst in config.status.
24239 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24240 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24241 s,@SHELL@,$SHELL,;t t
24242 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24243 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24244 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24245 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24246 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24247 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24248 s,@exec_prefix@,$exec_prefix,;t t
24249 s,@prefix@,$prefix,;t t
24250 s,@program_transform_name@,$program_transform_name,;t t
24251 s,@bindir@,$bindir,;t t
24252 s,@sbindir@,$sbindir,;t t
24253 s,@libexecdir@,$libexecdir,;t t
24254 s,@datadir@,$datadir,;t t
24255 s,@sysconfdir@,$sysconfdir,;t t
24256 s,@sharedstatedir@,$sharedstatedir,;t t
24257 s,@localstatedir@,$localstatedir,;t t
24258 s,@libdir@,$libdir,;t t
24259 s,@includedir@,$includedir,;t t
24260 s,@oldincludedir@,$oldincludedir,;t t
24261 s,@infodir@,$infodir,;t t
24262 s,@mandir@,$mandir,;t t
24263 s,@build_alias@,$build_alias,;t t
24264 s,@host_alias@,$host_alias,;t t
24265 s,@target_alias@,$target_alias,;t t
24266 s,@DEFS@,$DEFS,;t t
24267 s,@ECHO_C@,$ECHO_C,;t t
24268 s,@ECHO_N@,$ECHO_N,;t t
24269 s,@ECHO_T@,$ECHO_T,;t t
24270 s,@LIBS@,$LIBS,;t t
24271 s,@MAINT@,$MAINT,;t t
24272 s,@build@,$build,;t t
24273 s,@build_cpu@,$build_cpu,;t t
24274 s,@build_vendor@,$build_vendor,;t t
24275 s,@build_os@,$build_os,;t t
24276 s,@host@,$host,;t t
24277 s,@host_cpu@,$host_cpu,;t t
24278 s,@host_vendor@,$host_vendor,;t t
24279 s,@host_os@,$host_os,;t t
24281 s,@CFLAGS@,$CFLAGS,;t t
24282 s,@LDFLAGS@,$LDFLAGS,;t t
24283 s,@CPPFLAGS@,$CPPFLAGS,;t t
24284 s,@ac_ct_CC@,$ac_ct_CC,;t t
24285 s,@EXEEXT@,$EXEEXT,;t t
24286 s,@OBJEXT@,$OBJEXT,;t t
24288 s,@EGREP@,$EGREP,;t t
24289 s,@LN_S@,$LN_S,;t t
24290 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24291 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24292 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24293 s,@RANLIB@,$RANLIB,;t t
24294 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24295 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
24296 s,@GZIP_PROG@,$GZIP_PROG,;t t
24297 s,@LIBSOUND@,$LIBSOUND,;t t
24298 s,@SET_MAKE@,$SET_MAKE,;t t
24299 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24300 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
24301 s,@GTK_LIBS@,$GTK_LIBS,;t t
24302 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24303 s,@XFT_LIBS@,$XFT_LIBS,;t t
24304 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24305 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24306 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24307 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24308 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24309 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24310 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
24311 s,@ALLOCA@,$ALLOCA,;t t
24312 s,@liblockfile@,$liblockfile,;t t
24313 s,@LIBOBJS@,$LIBOBJS,;t t
24314 s,@NEED_SETGID@,$NEED_SETGID,;t t
24315 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
24316 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
24317 s,@GETOPT_H@,$GETOPT_H,;t t
24318 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
24319 s,@version@,$version,;t t
24320 s,@configuration@,$configuration,;t t
24321 s,@canonical@,$canonical,;t t
24322 s,@srcdir@,$srcdir,;t t
24323 s,@lispdir@,$lispdir,;t t
24324 s,@locallisppath@,$locallisppath,;t t
24325 s,@lisppath@,$lisppath,;t t
24326 s,@x_default_search_path@,$x_default_search_path,;t t
24327 s,@etcdir@,$etcdir,;t t
24328 s,@archlibdir@,$archlibdir,;t t
24329 s,@docdir@,$docdir,;t t
24330 s,@bitmapdir@,$bitmapdir,;t t
24331 s,@gamedir@,$gamedir,;t t
24332 s,@gameuser@,$gameuser,;t t
24333 s,@c_switch_system@,$c_switch_system,;t t
24334 s,@c_switch_machine@,$c_switch_machine,;t t
24335 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
24336 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
24337 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
24338 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
24339 s,@machfile@,$machfile,;t t
24340 s,@opsysfile@,$opsysfile,;t t
24341 s,@carbon_appdir@,$carbon_appdir,;t t
24342 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24347 cat >>$CONFIG_STATUS <<\_ACEOF
24348 # Split the substitutions into bite-sized pieces for seds with
24349 # small command number limits, like on Digital OSF/1 and HP-UX.
24350 ac_max_sed_lines
=48
24351 ac_sed_frag
=1 # Number of current file.
24352 ac_beg
=1 # First line for current file.
24353 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24356 while $ac_more_lines; do
24357 if test $ac_beg -gt 1; then
24358 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24360 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24362 if test ! -s $tmp/subs.frag
; then
24363 ac_more_lines
=false
24365 # The purpose of the label and of the branching condition is to
24366 # speed up the sed processing (if there are no `@' at all, there
24367 # is no need to browse any of the substitutions).
24368 # These are the two extra sed commands mentioned above.
24370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24371 if test -z "$ac_sed_cmds"; then
24372 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24374 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24376 ac_sed_frag
=`expr $ac_sed_frag + 1`
24378 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24381 if test -z "$ac_sed_cmds"; then
24384 fi # test -n "$CONFIG_FILES"
24387 cat >>$CONFIG_STATUS <<\_ACEOF
24388 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24391 - |
*:- |
*:-:* ) # input from stdin
24393 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24394 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24395 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24396 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24397 * ) ac_file_in
=$ac_file.
in ;;
24400 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24401 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24403 X"$ac_file" : 'X\(//\)[^/]' \| \
24404 X"$ac_file" : 'X\(//\)$' \| \
24405 X"$ac_file" : 'X\(/\)' \| \
24406 . : '\(.\)' 2>/dev/null ||
24408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24410 /^X\(\/\/\)$/{ s//\1/; q; }
24411 /^X\(\/\).*/{ s//\1/; q; }
24413 { if $as_mkdir_p; then
24418 while test ! -d "$as_dir"; do
24419 as_dirs
="$as_dir $as_dirs"
24420 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24422 X"$as_dir" : 'X\(//\)[^/]' \| \
24423 X"$as_dir" : 'X\(//\)$' \| \
24424 X"$as_dir" : 'X\(/\)' \| \
24425 . : '\(.\)' 2>/dev/null ||
24427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24429 /^X\(\/\/\)$/{ s//\1/; q; }
24430 /^X\(\/\).*/{ s//\1/; q; }
24433 test ! -n "$as_dirs" || mkdir
$as_dirs
24434 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24435 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24436 { (exit 1); exit 1; }; }; }
24440 if test "$ac_dir" != .
; then
24441 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24442 # A "../" for each directory in $ac_dir_suffix.
24443 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24445 ac_dir_suffix
= ac_top_builddir
=
24449 .
) # No --srcdir option. We are building in place.
24451 if test -z "$ac_top_builddir"; then
24454 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24456 [\\/]* | ?
:[\\/]* ) # Absolute path.
24457 ac_srcdir
=$srcdir$ac_dir_suffix;
24458 ac_top_srcdir
=$srcdir ;;
24459 *) # Relative path.
24460 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24461 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24464 # Do not use `cd foo && pwd` to compute absolute paths, because
24465 # the directories may not exist.
24467 .
) ac_abs_builddir
="$ac_dir";;
24470 .
) ac_abs_builddir
=`pwd`;;
24471 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24472 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24475 case $ac_abs_builddir in
24476 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24478 case ${ac_top_builddir}.
in
24479 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24480 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24481 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24484 case $ac_abs_builddir in
24485 .
) ac_abs_srcdir
=$ac_srcdir;;
24488 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24489 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24490 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24493 case $ac_abs_builddir in
24494 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24496 case $ac_top_srcdir in
24497 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24498 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24499 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24505 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24506 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
24509 if test x
"$ac_file" != x-
; then
24510 { echo "$as_me:$LINENO: creating $ac_file" >&5
24511 echo "$as_me: creating $ac_file" >&6;}
24514 # Let's still pretend it is `configure' which instantiates (i.e., don't
24515 # use $as_me), people would be surprised to read:
24516 # /* config.h. Generated by config.status. */
24517 if test x
"$ac_file" = x-
; then
24520 configure_input
="$ac_file. "
24522 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24523 sed 's,.*/,,'` by configure."
24525 # First look for the input files in the build tree, otherwise in the
24527 ac_file_inputs
=`IFS=:
24528 for f in $ac_file_in; do
24530 -) echo $tmp/stdin ;;
24532 # Absolute (can't be DOS-style, as IFS=:)
24533 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24534 echo "$as_me: error: cannot find input file: $f" >&2;}
24535 { (exit 1); exit 1; }; }
24538 if test -f "$f"; then
24541 elif test -f "$srcdir/$f"; then
24546 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24547 echo "$as_me: error: cannot find input file: $f" >&2;}
24548 { (exit 1); exit 1; }; }
24551 done` ||
{ (exit 1); exit 1; }
24553 cat >>$CONFIG_STATUS <<_ACEOF
24557 cat >>$CONFIG_STATUS <<\_ACEOF
24559 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24560 s
,@configure_input@
,$configure_input,;t t
24561 s
,@srcdir@
,$ac_srcdir,;t t
24562 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24563 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24564 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24565 s
,@builddir@
,$ac_builddir,;t t
24566 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24567 s
,@top_builddir@
,$ac_top_builddir,;t t
24568 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24569 s
,@INSTALL@
,$ac_INSTALL,;t t
24570 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24572 if test x"$ac_file" != x-; then
24573 mv $tmp/out $ac_file
24581 cat >>$CONFIG_STATUS <<\_ACEOF
24584 # CONFIG_HEADER section.
24587 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24588 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24590 # ac_d sets the value in "#define NAME VALUE" lines.
24591 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24592 ac_dB
='[ ].*$,\1#\2'
24595 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24596 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24597 ac_uB
='$,\1#\2define\3'
24601 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24604 - |
*:- |
*:-:* ) # input from stdin
24606 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24607 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24608 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24609 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24610 * ) ac_file_in
=$ac_file.
in ;;
24613 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24614 echo "$as_me: creating $ac_file" >&6;}
24616 # First look for the input files in the build tree, otherwise in the
24618 ac_file_inputs
=`IFS=:
24619 for f in $ac_file_in; do
24621 -) echo $tmp/stdin ;;
24623 # Absolute (can't be DOS-style, as IFS=:)
24624 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24625 echo "$as_me: error: cannot find input file: $f" >&2;}
24626 { (exit 1); exit 1; }; }
24627 # Do quote $f, to prevent DOS paths from being IFS'd.
24630 if test -f "$f"; then
24633 elif test -f "$srcdir/$f"; then
24638 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24639 echo "$as_me: error: cannot find input file: $f" >&2;}
24640 { (exit 1); exit 1; }; }
24643 done` ||
{ (exit 1); exit 1; }
24644 # Remove the trailing spaces.
24645 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24650 # `conftest.undefs', that substitutes the proper values into
24651 # config.h.in to produce config.h. The first handles `#define'
24652 # templates, and the second `#undef' templates.
24653 # And first: Protect against being on the right side of a sed subst in
24654 # config.status. Protect against being in an unquoted here document
24655 # in config.status.
24656 rm -f conftest.defines conftest.undefs
24657 # Using a here document instead of a string reduces the quoting nightmare.
24658 # Putting comments in sed scripts is not portable.
24660 # `end' is used to avoid that the second main sed command (meant for
24661 # 0-ary CPP macros) applies to n-ary macro definitions.
24662 # See the Autoconf documentation for `clear'.
24663 cat >confdef2sed.
sed <<\_ACEOF
24668 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24670 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24673 # If some macros were called several times there might be several times
24674 # the same #defines, which is useless. Nevertheless, we may not want to
24675 # sort them, since we want the *last* AC-DEFINE to be honored.
24676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24678 rm -f confdef2sed.sed
24680 # This sed command replaces #undef with comments. This is necessary, for
24681 # example, in the case of _POSIX_SOURCE, which is predefined and required
24682 # on some systems where configure will not decide to define it.
24683 cat >>conftest.undefs <<\_ACEOF
24684 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24687 # Break up conftest.defines because some shells have a limit on the size
24688 # of here documents, and old seds have small limits too (100 cmds).
24689 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24690 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24691 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24692 echo ' :' >>$CONFIG_STATUS
24693 rm -f conftest.tail
24694 while grep . conftest.defines >/dev/null
24696 # Write a limited-size here document to $tmp/defines.sed.
24697 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24698 # Speed up: don't consider the non `#define' lines.
24699 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24700 # Work around the forget-to-reset-the-flag bug.
24701 echo 't clr' >>$CONFIG_STATUS
24702 echo ': clr' >>$CONFIG_STATUS
24703 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24705 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24707 mv $tmp/out $tmp/in
24709 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24710 rm -f conftest.defines
24711 mv conftest.
tail conftest.defines
24713 rm -f conftest.defines
24714 echo ' fi # grep' >>$CONFIG_STATUS
24715 echo >>$CONFIG_STATUS
24717 # Break up conftest.undefs because some shells have a limit on the size
24718 # of here documents, and old seds have small limits too (100 cmds).
24719 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24720 rm -f conftest.
tail
24721 while grep . conftest.undefs
>/dev
/null
24723 # Write a limited-size here document to $tmp/undefs.sed.
24724 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24725 # Speed up: don't consider the non
`#undef'
24726 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24727 # Work around the forget-to-reset-the-flag bug.
24728 echo 't clr' >>$CONFIG_STATUS
24729 echo ': clr' >>$CONFIG_STATUS
24730 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24732 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24734 mv $tmp/out $tmp/in
24736 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24737 rm -f conftest.undefs
24738 mv conftest.tail conftest.undefs
24740 rm -f conftest.undefs
24742 cat >>$CONFIG_STATUS <<\_ACEOF
24743 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24744 # use $as_me), people would be surprised to read:
24745 # /* config.h. Generated by config.status. */
24746 if test x
"$ac_file" = x-
; then
24747 echo "/* Generated by configure. */" >$tmp/config.h
24749 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24751 cat $tmp/in >>$tmp/config.h
24753 if test x
"$ac_file" != x-
; then
24754 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24756 echo "$as_me: $ac_file is unchanged" >&6;}
24758 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24760 X"$ac_file" : 'X\(//\)[^/]' \| \
24761 X"$ac_file" : 'X\(//\)$' \| \
24762 X"$ac_file" : 'X\(/\)' \| \
24763 . : '\(.\)' 2>/dev/null ||
24765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24767 /^X\(\/\/\)$/{ s//\1/; q; }
24768 /^X\(\/\).*/{ s//\1/; q; }
24770 { if $as_mkdir_p; then
24775 while test ! -d "$as_dir"; do
24776 as_dirs
="$as_dir $as_dirs"
24777 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24779 X"$as_dir" : 'X\(//\)[^/]' \| \
24780 X"$as_dir" : 'X\(//\)$' \| \
24781 X"$as_dir" : 'X\(/\)' \| \
24782 . : '\(.\)' 2>/dev/null ||
24784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24786 /^X\(\/\/\)$/{ s//\1/; q; }
24787 /^X\(\/\).*/{ s//\1/; q; }
24790 test ! -n "$as_dirs" || mkdir
$as_dirs
24791 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24793 { (exit 1); exit 1; }; }; }
24796 mv $tmp/config.h
$ac_file
24800 rm -f $tmp/config.h
24804 cat >>$CONFIG_STATUS <<\_ACEOF
24807 # CONFIG_COMMANDS section.
24809 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24810 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24811 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24812 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24813 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24814 X"$ac_dest" : 'X\(//\)[^/]' \| \
24815 X"$ac_dest" : 'X\(//\)$' \| \
24816 X"$ac_dest" : 'X\(/\)' \| \
24817 . : '\(.\)' 2>/dev/null ||
24819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24821 /^X\(\/\/\)$/{ s//\1/; q; }
24822 /^X\(\/\).*/{ s//\1/; q; }
24824 { if $as_mkdir_p; then
24829 while test ! -d "$as_dir"; do
24830 as_dirs
="$as_dir $as_dirs"
24831 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24833 X"$as_dir" : 'X\(//\)[^/]' \| \
24834 X"$as_dir" : 'X\(//\)$' \| \
24835 X"$as_dir" : 'X\(/\)' \| \
24836 . : '\(.\)' 2>/dev/null ||
24838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24840 /^X\(\/\/\)$/{ s//\1/; q; }
24841 /^X\(\/\).*/{ s//\1/; q; }
24844 test ! -n "$as_dirs" || mkdir
$as_dirs
24845 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24847 { (exit 1); exit 1; }; }; }
24851 if test "$ac_dir" != .
; then
24852 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24853 # A "../" for each directory in $ac_dir_suffix.
24854 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24856 ac_dir_suffix
= ac_top_builddir
=
24860 .
) # No --srcdir option. We are building in place.
24862 if test -z "$ac_top_builddir"; then
24865 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24867 [\\/]* | ?
:[\\/]* ) # Absolute path.
24868 ac_srcdir
=$srcdir$ac_dir_suffix;
24869 ac_top_srcdir
=$srcdir ;;
24870 *) # Relative path.
24871 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24872 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24875 # Do not use `cd foo && pwd` to compute absolute paths, because
24876 # the directories may not exist.
24878 .
) ac_abs_builddir
="$ac_dir";;
24881 .
) ac_abs_builddir
=`pwd`;;
24882 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24883 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24886 case $ac_abs_builddir in
24887 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24889 case ${ac_top_builddir}.
in
24890 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24891 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24892 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24895 case $ac_abs_builddir in
24896 .
) ac_abs_srcdir
=$ac_srcdir;;
24899 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24900 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24901 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24904 case $ac_abs_builddir in
24905 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24907 case $ac_top_srcdir in
24908 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24909 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24910 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24915 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24916 echo "$as_me: executing $ac_dest commands" >&6;}
24920 ### Make the necessary directories, if they don't exist.
24921 for dir
in etc lisp
; do
24922 test -d ${dir} || mkdir
${dir}
24925 # Build src/Makefile from ${srcdir}/src/Makefile.c
24926 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24927 # This must be done after src/config.h is built, since we rely on that file.
24929 # Now get this: Some word that is part of the ${srcdir} directory name
24930 # or the ${configuration} value might, just might, happen to be an
24931 # identifier like `sun4' or `i386' or something, and be predefined by
24932 # the C preprocessor to some helpful value like 1, or maybe the empty
24933 # string. Needless to say consequent macro substitutions are less
24934 # than conducive to the makefile finding the correct directory.
24935 undefs
="`echo $top_srcdir $configuration $canonical |
24936 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24937 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24940 echo creating src
/epaths.h
24941 ${MAKE-make} epaths-force
24943 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24944 # `..' to `. .' unless invoked with -traditional
24946 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24947 CPPFLAGS
="$CPPFLAGS -traditional"
24950 echo creating lib-src
/Makefile
24952 rm -f junk.c junk1.c junk2.c
24953 sed -e '/start of cpp stuff/q' \
24954 < Makefile.c
> junk1.c
24955 sed -e '1,/start of cpp stuff/d'\
24956 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24957 < Makefile.c
> junk.c
24958 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24959 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24960 cat junk1.c junk2.c
> Makefile.new
24961 rm -f junk.c junk1.c junk2.c
24962 chmod 444 Makefile.new
24963 mv -f Makefile.new Makefile
24966 echo creating src
/Makefile
24968 rm -f junk.c junk1.c junk2.c
24969 sed -e '/start of cpp stuff/q' \
24970 < Makefile.c
> junk1.c
24971 sed -e '1,/start of cpp stuff/d'\
24972 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24973 < Makefile.c
> junk.c
24974 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24975 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24977 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24978 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24979 cat junk1.c junk2.c
> Makefile.new
24980 rm -f junk.c junk1.c junk2.c
24981 chmod 444 Makefile.new
24982 mv -f Makefile.new Makefile
24985 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24986 echo creating src
/.gdbinit
24987 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24990 # This is how we know whether to re-run configure in certain cases.
24991 touch src
/config.stamp
24998 cat >>$CONFIG_STATUS <<\_ACEOF
25000 { (exit 0); exit 0; }
25002 chmod +x
$CONFIG_STATUS
25003 ac_clean_files
=$ac_clean_files_save
25006 # configure is writing to config.log, and then calls config.status.
25007 # config.status does its own redirection, appending to config.log.
25008 # Unfortunately, on DOS this fails, as config.log is still kept open
25009 # by configure, so config.status won't be able to write to it; its
25010 # output is simply discarded. So we exec the FD to /dev/null,
25011 # effectively closing config.log, so it can be properly (re)opened and
25012 # appended to by config.status. When coming back to configure, we
25013 # need to make the FD available again.
25014 if test "$no_create" != yes; then
25016 ac_config_status_args
=
25017 test "$silent" = yes &&
25018 ac_config_status_args
="$ac_config_status_args --quiet"
25020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25023 # would make configure fail if this is the last instruction.
25024 $ac_cs_success ||
{ (exit 1); exit 1; }