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 PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_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-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp'
1358 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: 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." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 ia64-
*-freebsd*) machine
=ia64
;;
1721 sparc64-
*-freebsd*) machine
=sparc
;;
1722 powerpc-
*-freebsd*) machine
=macppc
;;
1723 i
[3456]86-*-freebsd*) machine
=intel386
;;
1724 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1731 if test -f /usr
/lib
/crti.o
; then
1733 cat >>confdefs.h
<<\_ACEOF
1739 case "${canonical}" in
1740 alpha
*-*-netbsd*) machine
=alpha
;;
1741 i
[3456]86-*-netbsd*) machine
=intel386
;;
1743 # This is somewhat bogus.
1744 machine
=hp9000s300
;;
1745 powerpc-apple-netbsd
*) machine
=macppc
;;
1746 mips-
*-netbsd*) machine
=pmax
;;
1747 mipsel-
*-netbsd*) machine
=pmax
;;
1748 mipseb-
*-netbsd*) machine
=pmax
;;
1749 ns32k-
*-netbsd*) machine
=ns32000
;;
1750 powerpc-
*-netbsd*) machine
=macppc
;;
1751 sparc
*-*-netbsd*) machine
=sparc
;;
1752 vax-
*-netbsd*) machine
=vax
;;
1753 arm-
*-netbsd*) machine
=arm
;;
1760 case "${canonical}" in
1761 alpha
*-*-openbsd*) machine
=alpha
;;
1762 i386-
*-openbsd*) machine
=intel386
;;
1763 x86_64-
*-openbsd*) machine
=amdx86-64
;;
1764 m68k-
*-openbsd*) machine
=hp9000s300
;;
1765 mipsel-
*-openbsd*) machine
=pmax
;;
1766 ns32k-
*-openbsd*) machine
=ns32000
;;
1767 sparc-
*-openbsd*) machine
=sparc
;;
1768 vax-
*-openbsd*) machine
=vax
;;
1775 case "${canonical}" in
1776 i
[3456]86-*-lynxos*) machine
=intel386
;;
1777 powerpc-
*-lynxos*) machine
=powerpc
;;
1782 arm-acorn-riscix1.1
* )
1783 machine
=acorn opsys
=riscix1-1
1785 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine
=acorn opsys
=riscix12
1794 case "${canonical}" in
1795 i
[345]86-*-bsdi*) machine
=intel386
;;
1796 sparc-
*-bsdi*) machine
=sparc
;;
1797 powerpc-
*-bsdi*) machine
=macppc
;;
1799 case "${canonical}" in
1800 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1801 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1802 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1803 *-*-bsdi3* ) opsys
=bsdos3
;;
1804 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1815 machine
=alliant4 opsys
=bsd4-2
1818 machine
=alliant-2800 opsys
=bsd4-3
1821 ## Alpha (DEC) machines.
1823 machine
=alpha opsys
=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1826 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP
=/usr
/bin
/cpp
1832 case "${canonical}" in
1833 alpha
*-dec-osf[5-9]*)
1838 alpha
*-*-linux-gnu* )
1839 machine
=alpha opsys
=gnu-linux
1843 machine
=arm opsys
=gnu-linux
1848 machine
=altos opsys
=usg5-2
1853 machine
=amdahl opsys
=usg5-2-2
1856 ## Apollo, Domain/OS
1858 machine
=apollo opsys
=bsd4-3
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1863 machine
=att3b opsys
=usg5-2-2
1866 ## AT&T 3b1 - The Mighty Unix PC!
1868 machine
=7300 opsys
=usg5-2-2
1873 machine
=ibmrs6000 opsys
=aix3-2
1878 machine
=dpx2 opsys
=usg5-3
1883 machine
=sps7 opsys
=usg5-2
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd
* )
1893 machine
=celerity opsys
=bsd4-2
1897 ## What operating systems does this chip run that Emacs has been
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1906 mips-compaq-nonstopux
* )
1907 machine
=nonstopux opsys
=nonstopux
1911 *-convex-bsd* |
*-convex-convexos* )
1912 machine
=convex opsys
=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP
="cc -E -P"
1918 i
[3456]86-cubix-sysv* )
1919 machine
=intel386 opsys
=usg5-3
1923 cydra
*-cydrome-sysv* )
1924 machine
=cydra5 opsys
=usg5-3
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1934 machine
=aviion opsys
=dgux4
1936 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine
=aviion opsys
=dgux5-4-3
1941 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1942 machine
=aviion opsys
=dgux5-4r2
1945 machine
=aviion opsys
=dgux
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i
[345]86-dg-dguxR4* )
1952 machine
=aviion-intel opsys
=dgux4
1956 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1957 machine
=pmax opsys
=bsd4-2
1959 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1960 machine
=pmax opsys
=bsd4-3
1963 machine
=pmax opsys
=ultrix4-3
1966 machine
=pmax opsys
=osf1
1968 mips-dec-mach_bsd4.3
* )
1969 machine
=pmax opsys
=mach-bsd4-3
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1974 machine
=delta opsys
=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1977 if test -s /etc
/167config
1978 then CC
="gnucc -m68040"
1979 else CC
="gnucc -m68881"
1982 if test -z "`type gcc | grep 'not found'`"
1988 m88k-motorola-sysv4
* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine
=delta88k opsys
=usg5-4-2
1995 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1996 machine
=delta88k opsys
=usg5-3
2001 machine
=dual opsys
=usg5-2
2003 m68
*-dual-uniplus* )
2004 machine
=dual opsys
=unipl5-2
2009 machine
=elxsi opsys
=usg5-2
2014 machine
=ns16000 opsys
=umax
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2020 ## Gould Power Node and NP1
2022 machine
=gould opsys
=bsd4-2
2025 machine
=gould opsys
=bsd4-3
2028 machine
=gould-np1 opsys
=bsd4-3
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2037 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2039 NON_GNU_CPP
="/lib/cpp"
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2043 machine
=nh3000 opsys
=cxux
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix
)
2047 machine
=nh6000 opsys
=powerunix
2048 NON_GNU_CPP
="cc -Xo -E -P"
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1
-hitachi-hiuxmpp* )
2052 machine
=sr2k opsys
=hiuxmpp
2054 hppa1.1
-hitachi-hiuxwe2* )
2055 machine
=sr2k opsys
=hiuxwe2
2058 xps
*-honeywell-sysv* )
2059 machine
=xps100 opsys
=usg5-2
2062 ## HP 9000 series 200 or 300
2064 machine
=hp9000s300 opsys
=bsd4-3
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2072 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2073 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2074 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2075 *) machine
=hp9000s300 opsys
=hpux
;;
2079 ## HP 9000 series 700 and 800, running HP/UX
2081 machine
=hp800 opsys
=hpux
2084 machine
=hp800 opsys
=hpux8
2086 hppa
*-hp-hpux9shr* )
2087 machine
=hp800 opsys
=hpux9shr
2090 machine
=hp800 opsys
=hpux9
2092 hppa
*-hp-hpux10.2
* )
2093 machine
=hp800 opsys
=hpux10-20
2096 machine
=hp800 opsys
=hpux10
2098 hppa
*-hp-hpux1[1-9]* )
2099 machine
=hp800 opsys
=hpux11
2100 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2103 hppa
*-*-linux-gnu* )
2104 machine
=hp800 opsys
=gnu-linux
2107 ## HP 9000 series 700 and 800, running HP/UX
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2114 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2115 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2116 *) machine
=hp800 opsys
=hpux10
;;
2120 machine
=hp800 opsys
=nextstep
2125 machine
=orion opsys
=bsd4-2
2127 clipper-orion-bsd
* )
2128 machine
=orion105 opsys
=bsd4-2
2132 i
[3456]86-ibm-aix1.1
* )
2133 machine
=ibmps2-aix opsys
=usg5-2-2
2135 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2136 machine
=ibmps2-aix opsys
=usg5-3
2139 machine
=ibm370aix opsys
=usg5-3
2142 machine
=ibms390 opsys
=gnu-linux
2144 s390x-
*-linux-gnu* )
2145 machine
=ibms390x opsys
=gnu-linux
2147 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2148 machine
=ibmrs6000 opsys
=aix3-1
2150 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2151 machine
=ibmrs6000 opsys
=aix3-2-5
2153 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2154 machine
=ibmrs6000 opsys
=aix4-1
2156 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2157 machine
=ibmrs6000 opsys
=aix4-2
2159 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2160 machine
=ibmrs6000 opsys
=aix4-2
2162 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2163 machine
=ibmrs6000 opsys
=aix4
2165 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2166 machine
=ibmrs6000 opsys
=aix4-1
2168 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2169 machine
=ibmrs6000 opsys
=aix3-2
2172 machine
=ibmrt opsys
=bsd4-3
2175 machine
=ibmrt opsys
=bsd4-2
2178 machine
=ibmrt opsys
=bsd4-3
2181 machine
=ibmrt opsys
=bsd4-2
2184 machine
=ibmrt opsys
=bsd4-3
2187 machine
=ibmrt opsys
=bsd4-3
2190 machine
=ibmrt-aix opsys
=usg5-2-2
2193 ## Integrated Solutions `Optimum V'
2195 machine
=isi-ov opsys
=bsd4-2
2198 machine
=isi-ov opsys
=bsd4-3
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i
[3456]86-intsys-sysv* )
2203 machine
=is386 opsys
=usg5-2-2
2207 i
[3456]86-prime-sysv* )
2208 machine
=i386 opsys
=usg5-3
2211 ## Sequent Symmetry running Dynix
2212 i
[3456]86-sequent-bsd* )
2213 machine
=symmetry opsys
=bsd4-3
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2218 machine
=sequent-ptx opsys
=ptx4
2219 NON_GNU_CPP
=/lib
/cpp
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i
[3456]86-sequent-ptx* )
2225 machine
=sequent-ptx opsys
=ptx
2226 NON_GNU_CPP
="/lib/cpp"
2229 ## ncr machine running svr4.3.
2230 i
[3456]86-ncr-sysv4.3
)
2231 machine
=ncr386 opsys
=usg5-4-3
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i
[3456]86-ncr-sysv* )
2237 machine
=ncr386 opsys
=usg5-4-2
2240 ## Intel Paragon OSF/1
2242 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2247 machine
=i860 opsys
=usg5-4
2248 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2252 ## Macintosh PowerPC
2253 powerpc
*-*-linux-gnu* )
2254 machine
=macppc opsys
=gnu-linux
2257 ## Masscomp machines
2258 m68
*-masscomp-rtu* )
2259 machine
=masscomp opsys
=rtu
2262 ## Megatest machines
2263 m68
*-megatest-bsd* )
2264 machine
=mega68 opsys
=bsd4-2
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2280 ## Fall through to the general code at the bottom to decide on the OS.
2282 mips-mips-riscos4
* )
2283 machine
=mips4 opsys
=bsd4-3
2284 NON_GNU_CC
="cc -systype bsd43"
2285 NON_GNU_CPP
="cc -systype bsd43 -E"
2287 mips-mips-riscos5
* )
2288 machine
=mips4 opsys
=riscos5
2289 NON_GNU_CC
="cc -systype bsd43"
2290 NON_GNU_CPP
="cc -systype bsd43 -E"
2293 machine
=mips opsys
=bsd4-3
2296 machine
=mips opsys
=usg5-2-2
2300 m68
*-next-* | m68k-
*-nextstep* )
2301 machine
=m68k opsys
=nextstep
2304 ## The complete machine from National Semiconductor
2306 machine
=ns32000 opsys
=usg5-2
2310 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2311 machine
=tower32 opsys
=usg5-2-2
2313 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2314 machine
=tower32v3 opsys
=usg5-3
2319 machine
=ews4800 opsys
=ux4800
2322 ## Nixdorf Targon 31
2323 m68
*-nixdorf-sysv* )
2324 machine
=targon31 opsys
=usg5-2-2
2329 machine
=nu opsys
=usg5-2
2334 machine
=plexus opsys
=usg5-2
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd
* )
2341 machine
=pyramid opsys
=bsd4-2
2345 ns32k-sequent-bsd4.2
* )
2346 machine
=sequent opsys
=bsd4-2
2348 ns32k-sequent-bsd4.3
* )
2349 machine
=sequent opsys
=bsd4-3
2353 mips-siemens-sysv
* | mips-sni-sysv
*)
2354 machine
=mips-siemens opsys
=usg5-4
2355 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2356 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2362 machine
=irist opsys
=iris3-5
2364 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2365 machine
=irist opsys
=iris3-6
2369 machine
=iris4d opsys
=irix3-3
2372 machine
=iris4d opsys
=irix4-0
2375 machine
=iris4d opsys
=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2383 machine
=iris4d opsys
=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS
=-32
2390 mips-sgi-irix5.
[01]* )
2391 machine
=iris4d opsys
=irix5-0
2393 mips-sgi-irix5
* | mips-sgi-irix
* )
2394 machine
=iris4d opsys
=irix5-2
2399 machine
=news opsys
=bsd4-2
2402 machine
=news opsys
=bsd4-3
2404 m68
*-sony-newsos3* | m68
*-sony-news3*)
2405 machine
=news opsys
=bsd4-3
2407 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2408 machine
=news-risc opsys
=bsd4-3
2410 mips-sony-newsos6
* )
2411 machine
=news-r6 opsys
=newsos6
2414 machine
=news-risc opsys
=newsos5
2419 machine
=stride opsys
=usg5-2
2423 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2424 machine
=sparc opsys
=gnu-linux
2427 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2428 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2429 | rs6000-
*-solaris2*)
2430 case "${canonical}" in
2431 m68
*-sunos1* ) machine
=sun1
;;
2432 m68
*-sunos2* ) machine
=sun2
;;
2433 m68
* ) machine
=sun3
;;
2434 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2435 i
[3456]86-*-* ) machine
=intel386
;;
2436 powerpcle
* ) machine
=powerpcle
;;
2437 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2438 sparc
* ) machine
=sparc
;;
2441 case "${canonical}" in
2442 ## The Sun386 didn't get past 4.0.
2443 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2444 *-sunos4.0
* ) opsys
=sunos4-0
;;
2445 *-sunos4.1.
[3-9]*noshare
)
2446 ## This name is sunos413 instead of sunos4-1-3
2447 ## to avoid a file name conflict on MSDOS.
2449 NON_GNU_CPP
=/usr
/lib
/cpp
2450 NON_GCC_TEST_OPTIONS
=-Bstatic
2451 GCC_TEST_OPTIONS
=-static
2453 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2455 NON_GNU_CPP
=/usr
/lib
/cpp
2457 *-sunos4* |
*-sunos )
2459 NON_GCC_TEST_OPTIONS
=-Bstatic
2460 GCC_TEST_OPTIONS
=-static
2462 *-sunos5.3
* |
*-solaris2.3
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2466 *-sunos5.4
* |
*-solaris2.4
* )
2468 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2471 *-sunos5.5
* |
*-solaris2.5
* )
2473 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2476 *-sunos5.6
* |
*-solaris2.6
* )
2478 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2481 *-sunos5* |
*-solaris* )
2483 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2487 ## Watch out for a compiler that we know will not work.
2488 case "${canonical}" in
2489 *-solaris* |
*-sunos5* )
2490 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2491 ## /usr/ucb/cc doesn't work;
2492 ## we should find some other compiler that does work.
2500 machine
=sparc opsys
=nextstep
2504 m68
*-tadpole-sysv* )
2505 machine
=tad68k opsys
=usg5-3
2509 tahoe-tahoe-bsd4.2
* )
2510 machine
=tahoe opsys
=bsd4-2
2512 tahoe-tahoe-bsd4.3
* )
2513 machine
=tahoe opsys
=bsd4-3
2516 ## Tandem Integrity S2
2518 machine
=tandem-s2 opsys
=usg5-3
2522 m88k-tektronix-sysv3
* )
2523 machine
=tekxd88 opsys
=usg5-3
2526 ## Tektronix 16000 box (6130?)
2527 ns16k-tektronix-bsd
* )
2528 machine
=ns16000 opsys
=bsd4-2
2531 ## src/m/tek4300.h hints that this is a m68k machine.
2532 m68
*-tektronix-bsd* )
2533 machine
=tek4300 opsys
=bsd4-3
2537 ## We seem to have lost the machine-description file titan.h!
2539 machine
=titan opsys
=usg5-3
2542 ## Ustation E30 (SS5E)
2543 m68
*-unisys-uniplus* )
2544 machine
=ustation opsystem
=unipl5-2
2550 case "${canonical}" in
2551 *-bsd4.1
* ) opsys
=bsd4-1
;;
2552 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2553 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2554 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2555 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2556 *-vms* ) opsys
=vms
;;
2562 ns16k-whitechapel-
* )
2564 ## We don't know what sort of OS runs on these; we'll let the
2565 ## operating system guessing code below try.
2570 machine
=wicat opsys
=usg5-2
2575 machine
=ia64 opsys
=gnu-linux
2578 ## Intel 386 machines where we don't care about the manufacturer
2581 case "${canonical}" in
2582 *-cygwin ) opsys
=cygwin
;;
2583 *-darwin* ) opsys
=darwin
2584 CPP
="${CC-cc} -E -no-cpp-precomp"
2586 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2587 *-isc2.2
* ) opsys
=isc2-2
;;
2588 *-isc4.0
* ) opsys
=isc4-0
;;
2589 *-isc4.
* ) opsys
=isc4-1
2590 GCC_TEST_OPTIONS
=-posix
2591 NON_GCC_TEST_OPTIONS
=-Xp
2593 *-isc* ) opsys
=isc3-0
;;
2594 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2595 *-esix* ) opsys
=esix
;;
2596 *-xenix* ) opsys
=xenix
;;
2597 *-linux-gnu* ) opsys
=gnu-linux
;;
2598 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2599 *-sco3.2v5
* ) opsys
=sco5
2600 NON_GNU_CPP
=/lib
/cpp
2601 # Prevent -belf from being passed to $CPP.
2602 # /lib/cpp does not accept it.
2603 OVERRIDE_CPPFLAGS
=" "
2605 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2606 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2607 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2608 *-386bsd* ) opsys
=386bsd
;;
2609 *-nextstep* ) opsys
=nextstep
;;
2610 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2614 ## m68k Linux-based GNU system
2616 machine
=m68k opsys
=gnu-linux
2619 ## Mips Linux-based GNU system
2620 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2621 machine
=mips opsys
=gnu-linux
2625 sparc-fujitsu-sysv4
* )
2626 machine
=sparc opsys
=uxpds
2627 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2632 f301-fujitsu-uxpv4.1
)
2633 machine
=f301 opsys
=uxpv
2636 ## Darwin / Mac OS X
2637 powerpc-apple-darwin
* )
2638 machine
=powermac opsys
=darwin
2639 # Define CPP as follows to make autoconf work correctly.
2640 CPP
="${CC-cc} -E -no-cpp-precomp"
2641 # Use fink packages if available.
2642 if test -d /sw
/include
&& test -d /sw
/lib
; then
2643 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2644 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2645 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2649 ## AMD x86-64 Linux-based GNU system
2650 x86_64-
*-linux-gnu* )
2651 machine
=amdx86-64 opsys
=gnu-linux
2659 ### If the code above didn't choose an operating system, just choose
2660 ### an operating system based on the configuration name. You really
2661 ### only want to use this when you have no idea what the right
2662 ### operating system is; if you know what operating systems a machine
2663 ### runs, it's cleaner to make it explicit in the case statement
2665 if test x
"${opsys}" = x
; then
2666 case "${canonical}" in
2667 *-gnu* ) opsys
=gnu
;;
2668 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2669 *-bsd4.2
) opsys
=bsd4-2
;;
2670 *-bsd4.3
) opsys
=bsd4-3
;;
2671 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2672 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2673 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2674 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2675 *-sysv4.2uw
* ) opsys
=unixware
;;
2676 *-sysv5uw* ) opsys
=unixware
;;
2677 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2678 *-sysv4.1
* |
*-sysvr4.1
* )
2679 NON_GNU_CPP
=/usr
/lib
/cpp
2681 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2682 if [ x
$NON_GNU_CPP = x
]; then
2683 if [ -f /usr
/ccs
/lib
/cpp
]; then
2684 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2686 NON_GNU_CPP
=/lib
/cpp
2690 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2699 if test $unported = yes; then
2700 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2701 Check \`etc/MACHINES' for recognized configuration names." >&5
2702 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2703 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2704 { (exit 1); exit 1; }; }
2707 machfile
="m/${machine}.h"
2708 opsysfile
="s/${opsys}.h"
2711 #### Choose a compiler.
2712 test -n "$CC" && cc_specified
=yes
2714 # Save the value of CFLAGS that the user specified.
2715 SPECIFIED_CFLAGS
="$CFLAGS"
2718 "yes" ) CC
="gcc" GCC
=yes ;;
2719 "no" ) : ${CC=cc} ;;
2723 ac_cpp
='$CPP $CPPFLAGS'
2724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2730 echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC
="$CC" # Let the user override the test.
2738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir
=.
2743 for ac_exec_ext
in '' $ac_executable_extensions; do
2744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 if test -n "$CC"; then
2756 echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6
2759 echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2764 if test -z "$ac_cv_prog_CC"; then
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc
; ac_word
=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir
=.
2781 for ac_exec_ext
in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_ac_ct_CC
="gcc"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 echo "${ECHO_T}$ac_ct_CC" >&6
2797 echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2810 echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC
="$CC" # Let the user override the test.
2818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir
=.
2823 for ac_exec_ext
in '' $ac_executable_extensions; do
2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$CC"; then
2836 echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6
2839 echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2844 if test -z "$ac_cv_prog_CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc
; ac_word
=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir
=.
2861 for ac_exec_ext
in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC
="cc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2873 if test -n "$ac_ct_CC"; then
2874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875 echo "${ECHO_T}$ac_ct_CC" >&6
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2887 if test -z "$CC"; then
2888 # Extract the first word of "cc", so it can be a program name with args.
2889 set dummy cc
; ac_word
=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC
="$CC" # Let the user override the test.
2899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir
=.
2904 for ac_exec_ext
in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2907 ac_prog_rejected
=yes
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 if test $ac_prog_rejected = yes; then
2918 # We found a bogon in the path, so make sure we never use it.
2919 set dummy
$ac_cv_prog_CC
2921 if test $# != 0; then
2922 # We chose a different compiler from the bogus one.
2923 # However, it has the same basename, so the bogon will be chosen
2924 # first if we set CC to just the basename; use the full file name.
2926 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2932 if test -n "$CC"; then
2933 echo "$as_me:$LINENO: result: $CC" >&5
2934 echo "${ECHO_T}$CC" >&6
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2947 echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC
="$CC" # Let the user override the test.
2955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir
=.
2960 for ac_exec_ext
in '' $ac_executable_extensions; do
2961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CC"; then
2973 echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6
2976 echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6
2980 test -n "$CC" && break
2983 if test -z "$CC"; then
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy
$ac_prog; ac_word
=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC
="$ac_prog"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3016 echo "${ECHO_T}$ac_ct_CC" >&6
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3022 test -n "$ac_ct_CC" && break
3031 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3037 # Provide some information about the compiler.
3038 echo "$as_me:$LINENO:" \
3039 "checking for C compiler version" >&5
3040 ac_compiler
=`set X $ac_compile; echo $2`
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3042 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3047 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3052 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }
3057 cat >conftest.
$ac_ext <<_ACEOF
3060 cat confdefs.h
>>conftest.
$ac_ext
3061 cat >>conftest.
$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 ac_clean_files_save
=$ac_clean_files
3073 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3077 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3078 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3079 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3081 (eval $ac_link_default) 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # Find the output, starting from the most likely. This scheme is
3086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3089 # Be careful to initialize this variable, since it used to be cached.
3090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3092 # b.out is created by i960 compilers.
3093 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3095 test -f "$ac_file" ||
continue
3097 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3100 # This is the source file.
3103 # We found the default executable, but exeext='' is most
3107 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 # FIXME: I believe we export ac_cv_exeext for Libtool,
3109 # but it would be cool to find out if it's true. Does anybody
3110 # maintain Libtool? --akim.
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.
$ac_ext >&5
3121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3122 See \`config.log' for more details." >&5
3123 echo "$as_me: error: C compiler cannot create executables
3124 See \`config.log' for more details." >&2;}
3125 { (exit 77); exit 77; }; }
3128 ac_exeext
=$ac_cv_exeext
3129 echo "$as_me:$LINENO: result: $ac_file" >&5
3130 echo "${ECHO_T}$ac_file" >&6
3132 # Check the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3135 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3137 # If not cross compiling, check that we can run a simple program.
3138 if test "$cross_compiling" != yes; then
3139 if { ac_try
='./$ac_file'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3147 if test "$cross_compiling" = maybe
; then
3150 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details." >&5
3153 echo "$as_me: error: cannot run C compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: result: yes" >&5
3161 echo "${ECHO_T}yes" >&6
3163 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3164 ac_clean_files
=$ac_clean_files_save
3165 # Check the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3170 echo "${ECHO_T}$cross_compiling" >&6
3172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; then
3179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3181 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 for ac_file
in conftest.exe conftest conftest.
*; do
3184 test -f "$ac_file" ||
continue
3186 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3187 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3201 rm -f conftest
$ac_cv_exeext
3202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3203 echo "${ECHO_T}$ac_cv_exeext" >&6
3205 rm -f conftest.
$ac_ext
3206 EXEEXT
=$ac_cv_exeext
3208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3210 if test "${ac_cv_objext+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 cat >conftest.
$ac_ext <<_ACEOF
3216 cat confdefs.h
>>conftest.
$ac_ext
3217 cat >>conftest.
$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.o conftest.obj
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; then
3234 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3236 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3237 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.
$ac_ext >&5
3245 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details." >&5
3247 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3248 See \`config.log' for more details." >&2;}
3249 { (exit 1); exit 1; }; }
3252 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3254 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3255 echo "${ECHO_T}$ac_cv_objext" >&6
3256 OBJEXT
=$ac_cv_objext
3258 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3259 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3260 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 cat >conftest.
$ac_ext <<_ACEOF
3266 cat confdefs.h
>>conftest.
$ac_ext
3267 cat >>conftest.
$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3281 rm -f conftest.
$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1
>conftest.err
3287 cat conftest.err
>&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try
='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try
='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.
$ac_ext >&5
3310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3311 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3316 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3317 ac_test_CFLAGS
=${CFLAGS+set}
3318 ac_save_CFLAGS
=$CFLAGS
3320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3322 if test "${ac_cv_prog_cc_g+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 cat >conftest.
$ac_ext <<_ACEOF
3328 cat confdefs.h
>>conftest.
$ac_ext
3329 cat >>conftest.
$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3340 rm -f conftest.
$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3344 grep -v '^ *+' conftest.er1
>conftest.err
3346 cat conftest.err
>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try
='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try
='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.
$ac_ext >&5
3369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3372 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3373 if test "$ac_test_CFLAGS" = set; then
3374 CFLAGS
=$ac_save_CFLAGS
3375 elif test $ac_cv_prog_cc_g = yes; then
3376 if test "$GCC" = yes; then
3382 if test "$GCC" = yes; then
3388 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3389 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3390 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 ac_cv_prog_cc_stdc
=no
3395 cat >conftest.
$ac_ext <<_ACEOF
3398 cat confdefs.h
>>conftest.
$ac_ext
3399 cat >>conftest.
$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3406 struct buf { int x; };
3407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408 static char *e (p, i)
3414 static char *f (char * (*g) (char **, int), char **p, ...)
3419 s = g (p, va_arg (v,int));
3424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3425 function prototypes and stuff, but not '\xHH' hex character constants.
3426 These don't provoke an error unfortunately, instead are silently treated
3427 as 'x'. The following induces an error, until -std1 is added to get
3428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3429 array size at least. It's necessary to write '\x00'==0 to get something
3430 that's true only with -std1. */
3431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3447 # Don't try gcc -ansi; that turns off useful extensions and
3448 # breaks some systems' header files.
3449 # AIX -qlanglvl=ansi
3450 # Ultrix and OSF/1 -std1
3451 # HP-UX 10.20 and later -Ae
3452 # HP-UX older versions -Aa -D_HPUX_SOURCE
3453 # SVR4 -Xc -D__EXTENSIONS__
3454 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456 CC
="$ac_save_CC $ac_arg"
3457 rm -f conftest.
$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3461 grep -v '^ *+' conftest.er1
>conftest.err
3463 cat conftest.err
>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try
='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try
='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_prog_cc_stdc
=$ac_arg
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.
$ac_ext >&5
3486 rm -f conftest.err conftest.
$ac_objext
3488 rm -f conftest.
$ac_ext conftest.
$ac_objext
3493 case "x$ac_cv_prog_cc_stdc" in
3495 echo "$as_me:$LINENO: result: none needed" >&5
3496 echo "${ECHO_T}none needed" >&6 ;;
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3500 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3503 # Some people use a C++ compiler to compile C. Since we use `exit',
3504 # in C++ we need to declare it. In case someone uses the same compiler
3505 # for both compiling C and C++ we need to have the C++ compiler decide
3506 # the declaration of exit, since it's the most demanding environment.
3507 cat >conftest.
$ac_ext <<_ACEOF
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 for ac_declaration
in \
3536 'extern "C" void std::exit (int) throw (); using std::exit;' \
3537 'extern "C" void std::exit (int); using std::exit;' \
3538 'extern "C" void exit (int) throw ();' \
3539 'extern "C" void exit (int);' \
3542 cat >conftest.
$ac_ext <<_ACEOF
3545 cat confdefs.h
>>conftest.
$ac_ext
3546 cat >>conftest.
$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3558 rm -f conftest.
$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3562 grep -v '^ *+' conftest.er1
>conftest.err
3564 cat conftest.err
>&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try
='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try
='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.
$ac_ext >&5
3587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3588 cat >conftest.
$ac_ext <<_ACEOF
3591 cat confdefs.h
>>conftest.
$ac_ext
3592 cat >>conftest.
$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3603 rm -f conftest.
$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3607 grep -v '^ *+' conftest.er1
>conftest.err
3609 cat conftest.err
>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try
='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try
='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.
$ac_ext >&5
3631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3634 if test -n "$ac_declaration"; then
3635 echo '#ifdef __cplusplus' >>confdefs.h
3636 echo $ac_declaration >>confdefs.h
3637 echo '#endif' >>confdefs.h
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.
$ac_ext >&5
3645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3647 ac_cpp
='$CPP $CPPFLAGS'
3648 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3658 #### Some systems specify a CPP to use unless we are using GCC.
3659 #### Now that we know whether we are using GCC, we can decide whether
3660 #### to use that one.
3661 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3666 #### Some systems specify a CC to use unless we are using GCC.
3667 #### Now that we know whether we are using GCC, we can decide whether
3668 #### to use that one.
3669 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3670 test x
$cc_specified != xyes
3675 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3677 CC
="$CC $GCC_TEST_OPTIONS"
3680 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3682 CC
="$CC $NON_GCC_TEST_OPTIONS"
3687 ac_cpp
='$CPP $CPPFLAGS'
3688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3691 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3693 # On Suns, sometimes $CPP names a directory.
3694 if test -n "$CPP" && test -d "$CPP"; then
3697 if test -z "$CPP"; then
3698 if test "${ac_cv_prog_CPP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 # Double quotes because CPP needs to be expanded
3702 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3705 for ac_c_preproc_warn_flag
in '' yes
3707 # Use a header file that comes with gcc, so configuring glibc
3708 # with a fresh cross-compiler works.
3709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3710 # <limits.h> exists even on freestanding compilers.
3711 # On the NeXT, cc -E runs the code through the compiler's parser,
3712 # not just through cpp. "Syntax error" is here to catch this case.
3713 cat >conftest.
$ac_ext <<_ACEOF
3716 cat confdefs.h
>>conftest.
$ac_ext
3717 cat >>conftest.
$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3720 # include <limits.h>
3722 # include <assert.h>
3726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3727 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3729 grep -v '^ *+' conftest.er1
>conftest.err
3731 cat conftest.err
>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev
/null
; then
3734 if test -s conftest.err
; then
3735 ac_cpp_err
=$ac_c_preproc_warn_flag
3736 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3743 if test -z "$ac_cpp_err"; then
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.
$ac_ext >&5
3749 # Broken: fails on valid input.
3752 rm -f conftest.err conftest.
$ac_ext
3754 # OK, works on sane cases. Now check whether non-existent headers
3755 # can be detected and how.
3756 cat >conftest.
$ac_ext <<_ACEOF
3759 cat confdefs.h
>>conftest.
$ac_ext
3760 cat >>conftest.
$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 #include <ac_nonexistent.h>
3764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3765 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3767 grep -v '^ *+' conftest.er1
>conftest.err
3769 cat conftest.err
>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } >/dev
/null
; then
3772 if test -s conftest.err
; then
3773 ac_cpp_err
=$ac_c_preproc_warn_flag
3774 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3781 if test -z "$ac_cpp_err"; then
3782 # Broken: success on invalid input.
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.
$ac_ext >&5
3788 # Passes both tests.
3792 rm -f conftest.err conftest.
$ac_ext
3795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3796 rm -f conftest.err conftest.
$ac_ext
3797 if $ac_preproc_ok; then
3809 echo "$as_me:$LINENO: result: $CPP" >&5
3810 echo "${ECHO_T}$CPP" >&6
3812 for ac_c_preproc_warn_flag
in '' yes
3814 # Use a header file that comes with gcc, so configuring glibc
3815 # with a fresh cross-compiler works.
3816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3817 # <limits.h> exists even on freestanding compilers.
3818 # On the NeXT, cc -E runs the code through the compiler's parser,
3819 # not just through cpp. "Syntax error" is here to catch this case.
3820 cat >conftest.
$ac_ext <<_ACEOF
3823 cat confdefs.h
>>conftest.
$ac_ext
3824 cat >>conftest.
$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3827 # include <limits.h>
3829 # include <assert.h>
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3836 grep -v '^ *+' conftest.er1
>conftest.err
3838 cat conftest.err
>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev
/null
; then
3841 if test -s conftest.err
; then
3842 ac_cpp_err
=$ac_c_preproc_warn_flag
3843 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3850 if test -z "$ac_cpp_err"; then
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.
$ac_ext >&5
3856 # Broken: fails on valid input.
3859 rm -f conftest.err conftest.
$ac_ext
3861 # OK, works on sane cases. Now check whether non-existent headers
3862 # can be detected and how.
3863 cat >conftest.
$ac_ext <<_ACEOF
3866 cat confdefs.h
>>conftest.
$ac_ext
3867 cat >>conftest.
$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <ac_nonexistent.h>
3871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3872 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3874 grep -v '^ *+' conftest.er1
>conftest.err
3876 cat conftest.err
>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } >/dev
/null
; then
3879 if test -s conftest.err
; then
3880 ac_cpp_err
=$ac_c_preproc_warn_flag
3881 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3888 if test -z "$ac_cpp_err"; then
3889 # Broken: success on invalid input.
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.
$ac_ext >&5
3895 # Passes both tests.
3899 rm -f conftest.err conftest.
$ac_ext
3902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3903 rm -f conftest.err conftest.
$ac_ext
3904 if $ac_preproc_ok; then
3907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3908 See \`config.log' for more details." >&5
3909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3910 See \`config.log' for more details." >&2;}
3911 { (exit 1); exit 1; }; }
3915 ac_cpp
='$CPP $CPPFLAGS'
3916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3921 echo "$as_me:$LINENO: checking for egrep" >&5
3922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923 if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3927 then ac_cv_prog_egrep
='grep -E'
3928 else ac_cv_prog_egrep
='egrep'
3931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP
=$ac_cv_prog_egrep
3937 echo "$as_me:$LINENO: checking for AIX" >&5
3938 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3939 cat >conftest.
$ac_ext <<_ACEOF
3942 cat confdefs.h
>>conftest.
$ac_ext
3943 cat >>conftest.
$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "yes" >/dev
/null
2>&1; then
3952 echo "$as_me:$LINENO: result: yes" >&5
3953 echo "${ECHO_T}yes" >&6
3954 cat >>confdefs.h
<<\_ACEOF
3955 #define _ALL_SOURCE 1
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3966 cat >>confdefs.h
<<\_ACEOF
3967 #define _GNU_SOURCE 1
3972 ### Use -Wno-pointer-sign if the compiler supports it
3973 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3974 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3975 SAVE_CFLAGS
="$CFLAGS"
3976 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3977 cat >conftest.
$ac_ext <<_ACEOF
3980 cat confdefs.h
>>conftest.
$ac_ext
3981 cat >>conftest.
$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3992 rm -f conftest.
$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1
>conftest.err
3998 cat conftest.err
>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try
='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try
='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.
$ac_ext >&5
4021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4022 if test $has_option = yes; then
4023 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4025 echo "$as_me:$LINENO: result: $has_option" >&5
4026 echo "${ECHO_T}$has_option" >&6
4027 CFLAGS
="$SAVE_CFLAGS"
4031 #### Some other nice autoconf tests.
4033 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4034 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4036 if test "$LN_S" = "ln -s"; then
4037 echo "$as_me:$LINENO: result: yes" >&5
4038 echo "${ECHO_T}yes" >&6
4040 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4041 echo "${ECHO_T}no, using $LN_S" >&6
4045 ac_cpp
='$CPP $CPPFLAGS'
4046 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4049 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4050 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4051 # On Suns, sometimes $CPP names a directory.
4052 if test -n "$CPP" && test -d "$CPP"; then
4055 if test -z "$CPP"; then
4056 if test "${ac_cv_prog_CPP+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 # Double quotes because CPP needs to be expanded
4060 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 for ac_c_preproc_warn_flag
in '' yes
4065 # Use a header file that comes with gcc, so configuring glibc
4066 # with a fresh cross-compiler works.
4067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068 # <limits.h> exists even on freestanding compilers.
4069 # On the NeXT, cc -E runs the code through the compiler's parser,
4070 # not just through cpp. "Syntax error" is here to catch this case.
4071 cat >conftest.
$ac_ext <<_ACEOF
4074 cat confdefs.h
>>conftest.
$ac_ext
4075 cat >>conftest.
$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4078 # include <limits.h>
4080 # include <assert.h>
4084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4087 grep -v '^ *+' conftest.er1
>conftest.err
4089 cat conftest.err
>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev
/null
; then
4092 if test -s conftest.err
; then
4093 ac_cpp_err
=$ac_c_preproc_warn_flag
4094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4101 if test -z "$ac_cpp_err"; then
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.
$ac_ext >&5
4107 # Broken: fails on valid input.
4110 rm -f conftest.err conftest.
$ac_ext
4112 # OK, works on sane cases. Now check whether non-existent headers
4113 # can be detected and how.
4114 cat >conftest.
$ac_ext <<_ACEOF
4117 cat confdefs.h
>>conftest.
$ac_ext
4118 cat >>conftest.
$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <ac_nonexistent.h>
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4125 grep -v '^ *+' conftest.er1
>conftest.err
4127 cat conftest.err
>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev
/null
; then
4130 if test -s conftest.err
; then
4131 ac_cpp_err
=$ac_c_preproc_warn_flag
4132 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4139 if test -z "$ac_cpp_err"; then
4140 # Broken: success on invalid input.
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.
$ac_ext >&5
4146 # Passes both tests.
4150 rm -f conftest.err conftest.
$ac_ext
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.err conftest.
$ac_ext
4155 if $ac_preproc_ok; then
4167 echo "$as_me:$LINENO: result: $CPP" >&5
4168 echo "${ECHO_T}$CPP" >&6
4170 for ac_c_preproc_warn_flag
in '' yes
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat >conftest.
$ac_ext <<_ACEOF
4181 cat confdefs.h
>>conftest.
$ac_ext
4182 cat >>conftest.
$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 # include <limits.h>
4187 # include <assert.h>
4191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4194 grep -v '^ *+' conftest.er1
>conftest.err
4196 cat conftest.err
>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev
/null
; then
4199 if test -s conftest.err
; then
4200 ac_cpp_err
=$ac_c_preproc_warn_flag
4201 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4208 if test -z "$ac_cpp_err"; then
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.
$ac_ext >&5
4214 # Broken: fails on valid input.
4217 rm -f conftest.err conftest.
$ac_ext
4219 # OK, works on sane cases. Now check whether non-existent headers
4220 # can be detected and how.
4221 cat >conftest.
$ac_ext <<_ACEOF
4224 cat confdefs.h
>>conftest.
$ac_ext
4225 cat >>conftest.
$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4230 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4232 grep -v '^ *+' conftest.er1
>conftest.err
4234 cat conftest.err
>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } >/dev
/null
; then
4237 if test -s conftest.err
; then
4238 ac_cpp_err
=$ac_c_preproc_warn_flag
4239 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4246 if test -z "$ac_cpp_err"; then
4247 # Broken: success on invalid input.
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.
$ac_ext >&5
4253 # Passes both tests.
4257 rm -f conftest.err conftest.
$ac_ext
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.
$ac_ext
4262 if $ac_preproc_ok; then
4265 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4266 See \`config.log' for more details." >&5
4267 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." >&2;}
4269 { (exit 1); exit 1; }; }
4273 ac_cpp
='$CPP $CPPFLAGS'
4274 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4278 # Find a good install program. We prefer a C program (faster),
4279 # so one script is as good as another. But avoid the broken or
4280 # incompatible versions:
4281 # SysV /etc/install, /usr/sbin/install
4282 # SunOS /usr/etc/install
4283 # IRIX /sbin/install
4285 # AmigaOS /C/install, which installs bootblocks on floppy discs
4286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4289 # OS/2's system install, which has a completely different semantic
4290 # ./install, which can be erroneously created by make from ./install.sh.
4291 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4293 if test -z "$INSTALL"; then
4294 if test "${ac_cv_path_install+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir
=.
4302 # Account for people who put trailing slashes in PATH elements.
4304 .
/ | .
// |
/cC
/* | \
4305 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4306 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4309 # OSF1 and SCO ODT 3.0 have their own names for install.
4310 # Don't use installbsd from OSF since it installs stuff as root
4312 for ac_prog
in ginstall scoinst
install; do
4313 for ac_exec_ext
in '' $ac_executable_extensions; do
4314 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4315 if test $ac_prog = install &&
4316 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4317 # AIX install. It has an incompatible calling convention.
4319 elif test $ac_prog = install &&
4320 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4321 # program-specific install script used by HP pwplus--don't use.
4324 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4336 if test "${ac_cv_path_install+set}" = set; then
4337 INSTALL
=$ac_cv_path_install
4339 # As a last resort, use the slow shell script. We don't cache a
4340 # path for INSTALL within a source directory, because that will
4341 # break other packages using the cache if that directory is
4342 # removed, or if the path is relative.
4343 INSTALL
=$ac_install_sh
4346 echo "$as_me:$LINENO: result: $INSTALL" >&5
4347 echo "${ECHO_T}$INSTALL" >&6
4349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4350 # It thinks the first close brace ends the variable substitution.
4351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4355 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4357 if test "x$RANLIB" = x
; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4360 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4361 echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363 if test "${ac_cv_prog_RANLIB+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 if test -n "$RANLIB"; then
4367 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir
=.
4374 for ac_exec_ext
in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 RANLIB
=$ac_cv_prog_RANLIB
4386 if test -n "$RANLIB"; then
4387 echo "$as_me:$LINENO: result: $RANLIB" >&5
4388 echo "${ECHO_T}$RANLIB" >&6
4390 echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4395 if test -z "$ac_cv_prog_RANLIB"; then
4396 ac_ct_RANLIB
=$RANLIB
4397 # Extract the first word of "ranlib", so it can be a program name with args.
4398 set dummy ranlib
; ac_word
=$2
4399 echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 if test -n "$ac_ct_RANLIB"; then
4405 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir
=.
4412 for ac_exec_ext
in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4424 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4425 if test -n "$ac_ct_RANLIB"; then
4426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4433 RANLIB
=$ac_ct_RANLIB
4435 RANLIB
="$ac_cv_prog_RANLIB"
4439 # Extract the first word of "install-info", so it can be a program name with args.
4440 set dummy install-info
; ac_word
=$2
4441 echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 case $INSTALL_INFO in
4448 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir
=.
4456 for ac_exec_ext
in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4470 if test -n "$INSTALL_INFO"; then
4471 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4472 echo "${ECHO_T}$INSTALL_INFO" >&6
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4478 # Extract the first word of "install-info", so it can be a program name with args.
4479 set dummy install-info
; ac_word
=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 case $INSTALL_INFO in
4487 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4491 for as_dir
in /usr
/sbin
4494 test -z "$as_dir" && as_dir
=.
4495 for ac_exec_ext
in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4509 if test -n "$INSTALL_INFO"; then
4510 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4511 echo "${ECHO_T}$INSTALL_INFO" >&6
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4517 # Extract the first word of "install-info", so it can be a program name with args.
4518 set dummy install-info
; ac_word
=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 case $INSTALL_INFO in
4526 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir
=.
4534 for ac_exec_ext
in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4547 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4549 if test -n "$INSTALL_INFO"; then
4550 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4551 echo "${ECHO_T}$INSTALL_INFO" >&6
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4557 # Extract the first word of "gzip", so it can be a program name with args.
4558 set dummy
gzip; ac_word
=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir
=.
4574 for ac_exec_ext
in '' $ac_executable_extensions; do
4575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4588 if test -n "$GZIP_PROG"; then
4589 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4590 echo "${ECHO_T}$GZIP_PROG" >&6
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4598 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4600 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4603 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4605 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4609 late_LDFLAGS
=$LDFLAGS
4610 if test "$GCC" = yes; then
4611 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4613 LDFLAGS
="$LDFLAGS -znocombreloc"
4616 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4617 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4618 cat >conftest.
$ac_ext <<_ACEOF
4621 rm -f conftest.
$ac_objext conftest
$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4625 grep -v '^ *+' conftest.er1
>conftest.err
4627 cat conftest.err
>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try
='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try
='test -s conftest$ac_exeext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 echo "$as_me:$LINENO: result: yes" >&5
4644 echo "${ECHO_T}yes" >&6
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.
$ac_ext >&5
4649 LDFLAGS
=$late_LDFLAGS
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4653 rm -f conftest.err conftest.
$ac_objext \
4654 conftest
$ac_exeext conftest.
$ac_ext
4656 #### Extract some information from the operating system and machine files.
4658 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4659 - which libraries the lib-src programs will want, and
4660 - whether the GNU malloc routines are usable..." >&5
4661 echo "$as_me: checking the machine- and system-dependent files to find out
4662 - which libraries the lib-src programs will want, and
4663 - whether the GNU malloc routines are usable..." >&6;}
4665 ### First figure out CFLAGS (which we use for running the compiler here)
4666 ### and REAL_CFLAGS (which we use for real compilation).
4667 ### The two are the same except on a few systems, where they are made
4668 ### different to work around various lossages. For example,
4669 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4670 ### as implying static linking.
4672 ### If the CFLAGS env var is specified, we use that value
4673 ### instead of the default.
4675 ### It's not important that this name contain the PID; you can't run
4676 ### two configures in the same directory and have anything work
4678 tempcname
="conftest.c"
4681 #include "'${srcdir}'/src/'${opsysfile}'"
4682 #include "'${srcdir}'/src/'${machfile}'"
4683 #ifndef LIBS_MACHINE
4684 #define LIBS_MACHINE
4689 #ifndef C_SWITCH_SYSTEM
4690 #define C_SWITCH_SYSTEM
4692 #ifndef C_SWITCH_MACHINE
4693 #define C_SWITCH_MACHINE
4695 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4696 configure___ c_switch_system=C_SWITCH_SYSTEM
4697 configure___ c_switch_machine=C_SWITCH_MACHINE
4700 #define LIB_X11_LIB -lX11
4703 #ifndef LIBX11_MACHINE
4704 #define LIBX11_MACHINE
4707 #ifndef LIBX11_SYSTEM
4708 #define LIBX11_SYSTEM
4710 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4713 configure___ unexec=UNEXEC
4715 configure___ unexec=unexec.o
4718 #ifdef SYSTEM_MALLOC
4719 configure___ system_malloc=yes
4721 configure___ system_malloc=no
4724 #ifdef USE_MMAP_FOR_BUFFERS
4725 configure___ use_mmap_for_buffers=yes
4727 configure___ use_mmap_for_buffers=no
4730 #ifndef C_DEBUG_SWITCH
4731 #define C_DEBUG_SWITCH -g
4734 #ifndef C_OPTIMIZE_SWITCH
4736 #define C_OPTIMIZE_SWITCH -O2
4738 #define C_OPTIMIZE_SWITCH -O
4742 #ifndef C_WARNINGS_SWITCH
4743 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4746 #ifndef LD_SWITCH_MACHINE
4747 #define LD_SWITCH_MACHINE
4750 #ifndef LD_SWITCH_SYSTEM
4751 #define LD_SWITCH_SYSTEM
4754 #ifndef LD_SWITCH_X_SITE_AUX
4755 #define LD_SWITCH_X_SITE_AUX
4758 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4759 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4761 #ifdef THIS_IS_CONFIGURE
4763 /* Get the CFLAGS for tests in configure. */
4765 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4767 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4770 #else /* not THIS_IS_CONFIGURE */
4772 /* Get the CFLAGS for real compilation. */
4774 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4776 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4779 #endif /* not THIS_IS_CONFIGURE */
4782 # The value of CPP is a quoted variable reference, so we need to do this
4783 # to get its actual value...
4784 CPP
=`eval "echo $CPP"`
4785 eval `${CPP} -Isrc ${tempcname} \
4786 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4787 if test "x$SPECIFIED_CFLAGS" = x
; then
4788 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4789 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4791 REAL_CFLAGS
="$CFLAGS"
4795 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4797 ### Make sure subsequent tests use flags consistent with the build flags.
4799 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4800 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4802 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4807 # Check whether --enable-largefile or --disable-largefile was given.
4808 if test "${enable_largefile+set}" = set; then
4809 enableval
="$enable_largefile"
4812 if test "$enable_largefile" != no
; then
4814 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4815 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4816 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 ac_cv_sys_largefile_CC
=no
4820 if test "$GCC" != yes; then
4823 # IRIX 6.2 and later do not support large files by default,
4824 # so use the C compiler's -n32 option if that helps.
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <sys/types.h>
4832 /* Check that off_t can represent 2**63 - 1 correctly.
4833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4834 since some C++ compilers masquerading as C compilers
4835 incorrectly reject 9223372036854775807. */
4836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4838 && LARGE_OFF_T % 2147483647 == 1)
4848 rm -f conftest.
$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4852 grep -v '^ *+' conftest.er1
>conftest.err
4854 cat conftest.err
>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try
='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try
='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.
$ac_ext >&5
4876 rm -f conftest.err conftest.
$ac_objext
4878 rm -f conftest.
$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4882 grep -v '^ *+' conftest.er1
>conftest.err
4884 cat conftest.err
>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try
='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try
='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_sys_largefile_CC
=' -n32'; break
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.
$ac_ext >&5
4906 rm -f conftest.err conftest.
$ac_objext
4910 rm -f conftest.
$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4914 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4915 if test "$ac_cv_sys_largefile_CC" != no
; then
4916 CC
=$CC$ac_cv_sys_largefile_CC
4919 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4920 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4921 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_cv_sys_file_offset_bits
=no
4926 cat >conftest.
$ac_ext <<_ACEOF
4929 cat confdefs.h
>>conftest.
$ac_ext
4930 cat >>conftest.
$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <sys/types.h>
4933 /* Check that off_t can represent 2**63 - 1 correctly.
4934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4935 since some C++ compilers masquerading as C compilers
4936 incorrectly reject 9223372036854775807. */
4937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4939 && LARGE_OFF_T % 2147483647 == 1)
4949 rm -f conftest.
$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1
>conftest.err
4955 cat conftest.err
>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try
='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try
='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.
$ac_ext >&5
4977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #define _FILE_OFFSET_BITS 64
4985 #include <sys/types.h>
4986 /* Check that off_t can represent 2**63 - 1 correctly.
4987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4988 since some C++ compilers masquerading as C compilers
4989 incorrectly reject 9223372036854775807. */
4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4992 && LARGE_OFF_T % 2147483647 == 1)
5002 rm -f conftest.
$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1
>conftest.err
5008 cat conftest.err
>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try
='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_sys_file_offset_bits
=64; break
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5034 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5035 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5036 if test "$ac_cv_sys_file_offset_bits" != no
; then
5038 cat >>confdefs.h
<<_ACEOF
5039 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5044 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5045 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5046 if test "${ac_cv_sys_large_files+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 ac_cv_sys_large_files
=no
5051 cat >conftest.
$ac_ext <<_ACEOF
5054 cat confdefs.h
>>conftest.
$ac_ext
5055 cat >>conftest.
$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <sys/types.h>
5058 /* Check that off_t can represent 2**63 - 1 correctly.
5059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5060 since some C++ compilers masquerading as C compilers
5061 incorrectly reject 9223372036854775807. */
5062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5064 && LARGE_OFF_T % 2147483647 == 1)
5074 rm -f conftest.
$ac_objext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5078 grep -v '^ *+' conftest.er1
>conftest.err
5080 cat conftest.err
>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try
='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try
='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.
$ac_ext >&5
5102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5103 cat >conftest.
$ac_ext <<_ACEOF
5106 cat confdefs.h
>>conftest.
$ac_ext
5107 cat >>conftest.
$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #define _LARGE_FILES 1
5110 #include <sys/types.h>
5111 /* Check that off_t can represent 2**63 - 1 correctly.
5112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5113 since some C++ compilers masquerading as C compilers
5114 incorrectly reject 9223372036854775807. */
5115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5117 && LARGE_OFF_T % 2147483647 == 1)
5127 rm -f conftest.
$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
5131 grep -v '^ *+' conftest.er1
>conftest.err
5133 cat conftest.err
>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try
='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try
='test -s conftest.$ac_objext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_sys_large_files
=1; break
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.
$ac_ext >&5
5155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5160 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5161 if test "$ac_cv_sys_large_files" != no
; then
5163 cat >>confdefs.h
<<_ACEOF
5164 #define _LARGE_FILES $ac_cv_sys_large_files
5176 if test "${with_sound}" != "no"; then
5177 # Sound support for GNU/Linux and the free BSDs.
5178 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5180 if test "${ac_cv_header_stdc+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 cat >conftest.
$ac_ext <<_ACEOF
5186 cat confdefs.h
>>conftest.
$ac_ext
5187 cat >>conftest.
$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5202 rm -f conftest.
$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5206 grep -v '^ *+' conftest.er1
>conftest.err
5208 cat conftest.err
>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try
='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try
='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_cv_header_stdc
=yes
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.
$ac_ext >&5
5229 ac_cv_header_stdc
=no
5231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5233 if test $ac_cv_header_stdc = yes; then
5234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5235 cat >conftest.
$ac_ext <<_ACEOF
5238 cat confdefs.h
>>conftest.
$ac_ext
5239 cat >>conftest.
$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5245 $EGREP "memchr" >/dev
/null
2>&1; then
5248 ac_cv_header_stdc
=no
5254 if test $ac_cv_header_stdc = yes; then
5255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5256 cat >conftest.
$ac_ext <<_ACEOF
5259 cat confdefs.h
>>conftest.
$ac_ext
5260 cat >>conftest.
$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "free" >/dev
/null
2>&1; then
5269 ac_cv_header_stdc
=no
5275 if test $ac_cv_header_stdc = yes; then
5276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5277 if test "$cross_compiling" = yes; then
5280 cat >conftest.
$ac_ext <<_ACEOF
5283 cat confdefs.h
>>conftest.
$ac_ext
5284 cat >>conftest.
$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5287 #if ((' ' & 0x0FF) == 0x020)
5288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5291 # define ISLOWER(c) \
5292 (('a' <= (c) && (c) <= 'i') \
5293 || ('j' <= (c) && (c) <= 'r') \
5294 || ('s' <= (c) && (c) <= 'z'))
5295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5303 for (i = 0; i < 256; i++)
5304 if (XOR (islower (i), ISLOWER (i))
5305 || toupper (i) != TOUPPER (i))
5310 rm -f conftest
$ac_exeext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312 (eval $ac_link) 2>&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.
$ac_ext >&5
5328 ac_cv_header_stdc
=no
5330 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5334 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5335 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5336 if test $ac_cv_header_stdc = yes; then
5338 cat >>confdefs.h
<<\_ACEOF
5339 #define STDC_HEADERS 1
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5354 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5355 inttypes.h stdint.h unistd.h
5357 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358 echo "$as_me:$LINENO: checking for $ac_header" >&5
5359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 cat >conftest.
$ac_ext <<_ACEOF
5366 cat confdefs.h
>>conftest.
$ac_ext
5367 cat >>conftest.
$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5371 #include <$ac_header>
5373 rm -f conftest.
$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>conftest.er1
5377 grep -v '^ *+' conftest.er1
>conftest.err
5379 cat conftest.err
>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try
='test -z "$ac_c_werror_flag"
5383 || test ! -s conftest.err'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try
='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 eval "$as_ac_Header=yes"
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.
$ac_ext >&5
5400 eval "$as_ac_Header=no"
5402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5407 cat >>confdefs.h
<<_ACEOF
5408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5421 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 echo "$as_me:$LINENO: checking for $ac_header" >&5
5424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431 # Is the header compilable?
5432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5434 cat >conftest.
$ac_ext <<_ACEOF
5437 cat confdefs.h
>>conftest.
$ac_ext
5438 cat >>conftest.
$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5441 #include <$ac_header>
5443 rm -f conftest.
$ac_objext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>conftest.er1
5447 grep -v '^ *+' conftest.er1
>conftest.err
5449 cat conftest.err
>&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } &&
5452 { ac_try
='test -z "$ac_c_werror_flag"
5453 || test ! -s conftest.err'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; } &&
5459 { ac_try
='test -s conftest.$ac_objext'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
5465 ac_header_compiler
=yes
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.
$ac_ext >&5
5470 ac_header_compiler
=no
5472 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474 echo "${ECHO_T}$ac_header_compiler" >&6
5476 # Is the header present?
5477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5482 cat confdefs.h
>>conftest.
$ac_ext
5483 cat >>conftest.
$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 #include <$ac_header>
5487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5488 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5490 grep -v '^ *+' conftest.er1
>conftest.err
5492 cat conftest.err
>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } >/dev
/null
; then
5495 if test -s conftest.err
; then
5496 ac_cpp_err
=$ac_c_preproc_warn_flag
5497 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5504 if test -z "$ac_cpp_err"; then
5505 ac_header_preproc
=yes
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.
$ac_ext >&5
5510 ac_header_preproc
=no
5512 rm -f conftest.err conftest.
$ac_ext
5513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514 echo "${ECHO_T}$ac_header_preproc" >&6
5516 # So? What about this header?
5517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5523 ac_header_preproc
=yes
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5540 ## ------------------------------------------ ##
5541 ## Report this to the AC_PACKAGE_NAME lists. ##
5542 ## ------------------------------------------ ##
5545 sed "s/^/$as_me: WARNING: /" >&2
5548 echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 eval "$as_ac_Header=\$ac_header_preproc"
5555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560 cat >>confdefs.h
<<_ACEOF
5561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 # Emulation library used on NetBSD.
5569 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5570 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5571 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 ac_check_lib_save_LIBS
=$LIBS
5575 LIBS
="-lossaudio $LIBS"
5576 cat >conftest.
$ac_ext <<_ACEOF
5579 cat confdefs.h
>>conftest.
$ac_ext
5580 cat >>conftest.
$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5583 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5598 rm -f conftest.
$ac_objext conftest
$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>conftest.er1
5602 grep -v '^ *+' conftest.er1
>conftest.err
5604 cat conftest.err
>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try
='test -z "$ac_c_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try
='test -s conftest$ac_exeext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_cv_lib_ossaudio__oss_ioctl
=yes
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.
$ac_ext >&5
5625 ac_cv_lib_ossaudio__oss_ioctl
=no
5627 rm -f conftest.err conftest.
$ac_objext \
5628 conftest
$ac_exeext conftest.
$ac_ext
5629 LIBS
=$ac_check_lib_save_LIBS
5631 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5632 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5633 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5642 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5643 if test "X${with_pkg_config_prog}" != X
; then
5644 PKG_CONFIG
="${with_pkg_config_prog}"
5649 if test -z "$PKG_CONFIG"; then
5650 # Extract the first word of "pkg-config", so it can be a program name with args.
5651 set dummy pkg-config
; ac_word
=$2
5652 echo "$as_me:$LINENO: checking for $ac_word" >&5
5653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5654 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir
=.
5667 for ac_exec_ext
in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5680 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5682 if test -n "$PKG_CONFIG"; then
5683 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5684 echo "${ECHO_T}$PKG_CONFIG" >&6
5686 echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5692 if test "$PKG_CONFIG" = "no" ; then
5695 PKG_CONFIG_MIN_VERSION
=0.9.0
5696 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5697 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5698 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5700 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5701 echo "$as_me:$LINENO: result: yes" >&5
5702 echo "${ECHO_T}yes" >&6
5705 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5706 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5707 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5708 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5709 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5711 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5712 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5713 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5714 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5715 echo "${ECHO_T}$ALSA_LIBS" >&6
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5721 ## If we have a custom action on failure, don't print errors, but
5722 ## do set a variable so people can do so.
5723 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5730 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5731 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5735 if test $succeeded = yes; then
5741 if test $HAVE_ALSA = yes; then
5742 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5743 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5745 cat >>confdefs.h
<<\_ACEOF
5778 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5779 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5780 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5781 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786 echo "$as_me:$LINENO: checking for $ac_header" >&5
5787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5794 # Is the header compilable?
5795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5797 cat >conftest.
$ac_ext <<_ACEOF
5800 cat confdefs.h
>>conftest.
$ac_ext
5801 cat >>conftest.
$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 #include <$ac_header>
5806 rm -f conftest.
$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>conftest.er1
5810 grep -v '^ *+' conftest.er1
>conftest.err
5812 cat conftest.err
>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try
='test -z "$ac_c_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try
='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_header_compiler
=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5833 ac_header_compiler
=no
5835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5837 echo "${ECHO_T}$ac_header_compiler" >&6
5839 # Is the header present?
5840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5842 cat >conftest.
$ac_ext <<_ACEOF
5845 cat confdefs.h
>>conftest.
$ac_ext
5846 cat >>conftest.
$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <$ac_header>
5850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5853 grep -v '^ *+' conftest.er1
>conftest.err
5855 cat conftest.err
>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } >/dev
/null
; then
5858 if test -s conftest.err
; then
5859 ac_cpp_err
=$ac_c_preproc_warn_flag
5860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5867 if test -z "$ac_cpp_err"; then
5868 ac_header_preproc
=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.
$ac_ext >&5
5873 ac_header_preproc
=no
5875 rm -f conftest.err conftest.
$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5877 echo "${ECHO_T}$ac_header_preproc" >&6
5879 # So? What about this header?
5880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5886 ac_header_preproc
=yes
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5903 ## ------------------------------------------ ##
5904 ## Report this to the AC_PACKAGE_NAME lists. ##
5905 ## ------------------------------------------ ##
5908 sed "s/^/$as_me: WARNING: /" >&2
5911 echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 eval "$as_ac_Header=\$ac_header_preproc"
5918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5923 cat >>confdefs.h
<<_ACEOF
5924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5932 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5933 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5934 cat >conftest.
$ac_ext <<_ACEOF
5937 cat confdefs.h
>>conftest.
$ac_ext
5938 cat >>conftest.
$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <sys/personality.h>
5944 personality (PER_LINUX32)
5949 rm -f conftest.
$ac_objext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951 (eval $ac_compile) 2>conftest.er1
5953 grep -v '^ *+' conftest.er1
>conftest.err
5955 cat conftest.err
>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try
='test -z "$ac_c_werror_flag"
5959 || test ! -s conftest.err'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; } &&
5965 { ac_try
='test -s conftest.$ac_objext'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 emacs_cv_personality_linux32
=yes
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.
$ac_ext >&5
5976 emacs_cv_personality_linux32
=no
5978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5979 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5980 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5982 if test $emacs_cv_personality_linux32 = yes; then
5984 cat >>confdefs.h
<<\_ACEOF
5985 #define HAVE_PERSONALITY_LINUX32 1
5991 for ac_header
in term.h
5993 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 cat >conftest.
$ac_ext <<_ACEOF
6002 cat confdefs.h
>>conftest.
$ac_ext
6003 cat >>conftest.
$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #include <$ac_header>
6007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6008 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6010 grep -v '^ *+' conftest.er1
>conftest.err
6012 cat conftest.err
>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev
/null
; then
6015 if test -s conftest.err
; then
6016 ac_cpp_err
=$ac_c_preproc_warn_flag
6017 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6024 if test -z "$ac_cpp_err"; then
6025 eval "$as_ac_Header=yes"
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.
$ac_ext >&5
6030 eval "$as_ac_Header=no"
6032 rm -f conftest.err conftest.
$ac_ext
6034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h
<<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6047 if test "${ac_cv_header_stdc+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 cat >conftest.
$ac_ext <<_ACEOF
6053 cat confdefs.h
>>conftest.
$ac_ext
6054 cat >>conftest.
$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6069 rm -f conftest.
$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1
>conftest.err
6075 cat conftest.err
>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try
='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try
='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_header_stdc
=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6096 ac_cv_header_stdc
=no
6098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6100 if test $ac_cv_header_stdc = yes; then
6101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6102 cat >conftest.
$ac_ext <<_ACEOF
6105 cat confdefs.h
>>conftest.
$ac_ext
6106 cat >>conftest.
$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6112 $EGREP "memchr" >/dev
/null
2>&1; then
6115 ac_cv_header_stdc
=no
6121 if test $ac_cv_header_stdc = yes; then
6122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6123 cat >conftest.
$ac_ext <<_ACEOF
6126 cat confdefs.h
>>conftest.
$ac_ext
6127 cat >>conftest.
$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 $EGREP "free" >/dev
/null
2>&1; then
6136 ac_cv_header_stdc
=no
6142 if test $ac_cv_header_stdc = yes; then
6143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6144 if test "$cross_compiling" = yes; then
6147 cat >conftest.
$ac_ext <<_ACEOF
6150 cat confdefs.h
>>conftest.
$ac_ext
6151 cat >>conftest.
$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6154 #if ((' ' & 0x0FF) == 0x020)
6155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6158 # define ISLOWER(c) \
6159 (('a' <= (c) && (c) <= 'i') \
6160 || ('j' <= (c) && (c) <= 'r') \
6161 || ('s' <= (c) && (c) <= 'z'))
6162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6170 for (i = 0; i < 256; i++)
6171 if (XOR (islower (i), ISLOWER (i))
6172 || toupper (i) != TOUPPER (i))
6177 rm -f conftest
$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6190 echo "$as_me: program exited with status $ac_status" >&5
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.
$ac_ext >&5
6195 ac_cv_header_stdc
=no
6197 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6203 if test $ac_cv_header_stdc = yes; then
6205 cat >>confdefs.h
<<\_ACEOF
6206 #define STDC_HEADERS 1
6211 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6212 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6213 if test "${ac_cv_header_time+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 cat >conftest.
$ac_ext <<_ACEOF
6219 cat confdefs.h
>>conftest.
$ac_ext
6220 cat >>conftest.
$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #include <sys/types.h>
6223 #include <sys/time.h>
6229 if ((struct tm *) 0)
6235 rm -f conftest.
$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>conftest.er1
6239 grep -v '^ *+' conftest.er1
>conftest.err
6241 cat conftest.err
>&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try
='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try
='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_header_time
=yes
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.
$ac_ext >&5
6262 ac_cv_header_time
=no
6264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6266 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6267 echo "${ECHO_T}$ac_cv_header_time" >&6
6268 if test $ac_cv_header_time = yes; then
6270 cat >>confdefs.h
<<\_ACEOF
6271 #define TIME_WITH_SYS_TIME 1
6276 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6277 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6278 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 cat >conftest.
$ac_ext <<_ACEOF
6284 cat confdefs.h
>>conftest.
$ac_ext
6285 cat >>conftest.
$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 $ac_includes_default
6292 char *p = (char *) sys_siglist;
6299 rm -f conftest.
$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>conftest.er1
6303 grep -v '^ *+' conftest.er1
>conftest.err
6305 cat conftest.err
>&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try
='test -z "$ac_c_werror_flag"
6309 || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try
='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_have_decl_sys_siglist
=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.
$ac_ext >&5
6326 ac_cv_have_decl_sys_siglist
=no
6328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6331 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6332 if test $ac_cv_have_decl_sys_siglist = yes; then
6334 cat >>confdefs.h
<<_ACEOF
6335 #define HAVE_DECL_SYS_SIGLIST 1
6340 cat >>confdefs.h
<<_ACEOF
6341 #define HAVE_DECL_SYS_SIGLIST 0
6348 if test $ac_cv_have_decl_sys_siglist != yes; then
6349 # For Tru64, at least:
6350 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6351 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6352 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 cat >conftest.
$ac_ext <<_ACEOF
6358 cat confdefs.h
>>conftest.
$ac_ext
6359 cat >>conftest.
$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 $ac_includes_default
6365 #ifndef __sys_siglist
6366 char *p = (char *) __sys_siglist;
6373 rm -f conftest.
$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6377 grep -v '^ *+' conftest.er1
>conftest.err
6379 cat conftest.err
>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try
='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try
='test -s conftest.$ac_objext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_cv_have_decl___sys_siglist
=yes
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.
$ac_ext >&5
6400 ac_cv_have_decl___sys_siglist
=no
6402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6404 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6405 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6406 if test $ac_cv_have_decl___sys_siglist = yes; then
6408 cat >>confdefs.h
<<_ACEOF
6409 #define HAVE_DECL___SYS_SIGLIST 1
6414 cat >>confdefs.h
<<_ACEOF
6415 #define HAVE_DECL___SYS_SIGLIST 0
6422 if test $ac_cv_have_decl___sys_siglist = yes; then
6424 cat >>confdefs.h
<<\_ACEOF
6425 #define sys_siglist __sys_siglist
6430 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6431 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6432 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 cat >conftest.
$ac_ext <<_ACEOF
6438 cat confdefs.h
>>conftest.
$ac_ext
6439 cat >>conftest.
$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <sys/types.h>
6442 #include <sys/wait.h>
6444 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6447 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6455 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6460 rm -f conftest.
$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>conftest.er1
6464 grep -v '^ *+' conftest.er1
>conftest.err
6466 cat conftest.err
>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try
='test -z "$ac_c_werror_flag"
6470 || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try
='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_header_sys_wait_h
=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.
$ac_ext >&5
6487 ac_cv_header_sys_wait_h
=no
6489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6492 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6493 if test $ac_cv_header_sys_wait_h = yes; then
6495 cat >>confdefs.h
<<\_ACEOF
6496 #define HAVE_SYS_WAIT_H 1
6502 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6503 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6504 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cat >conftest.
$ac_ext <<_ACEOF
6510 cat confdefs.h
>>conftest.
$ac_ext
6511 cat >>conftest.
$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #ifdef TIME_WITH_SYS_TIME
6514 #include <sys/time.h>
6517 #ifdef HAVE_SYS_TIME_H
6518 #include <sys/time.h>
6529 static struct utimbuf x; x.actime = x.modtime;
6534 rm -f conftest.
$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1
>conftest.err
6540 cat conftest.err
>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try
='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try
='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 emacs_cv_struct_utimbuf
=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.
$ac_ext >&5
6561 emacs_cv_struct_utimbuf
=no
6563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6566 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6567 if test $emacs_cv_struct_utimbuf = yes; then
6569 cat >>confdefs.h
<<\_ACEOF
6570 #define HAVE_STRUCT_UTIMBUF 1
6575 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6577 if test "${ac_cv_type_signal+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 cat >conftest.
$ac_ext <<_ACEOF
6583 cat confdefs.h
>>conftest.
$ac_ext
6584 cat >>conftest.
$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <sys/types.h>
6592 extern "C" void (*signal (int, void (*)(int)))(int);
6594 void (*signal ()) ();
6605 rm -f conftest.
$ac_objext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>conftest.er1
6609 grep -v '^ *+' conftest.er1
>conftest.err
6611 cat conftest.err
>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try
='test -z "$ac_c_werror_flag"
6615 || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try
='test -s conftest.$ac_objext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_cv_type_signal
=void
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.
$ac_ext >&5
6632 ac_cv_type_signal
=int
6634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6637 echo "${ECHO_T}$ac_cv_type_signal" >&6
6639 cat >>confdefs.h
<<_ACEOF
6640 #define RETSIGTYPE $ac_cv_type_signal
6645 echo "$as_me:$LINENO: checking for speed_t" >&5
6646 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6647 if test "${emacs_cv_speed_t+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 cat >conftest.
$ac_ext <<_ACEOF
6653 cat confdefs.h
>>conftest.
$ac_ext
6654 cat >>conftest.
$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <termios.h>
6665 rm -f conftest.
$ac_objext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>conftest.er1
6669 grep -v '^ *+' conftest.er1
>conftest.err
6671 cat conftest.err
>&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try
='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try
='test -s conftest.$ac_objext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 emacs_cv_speed_t
=yes
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.
$ac_ext >&5
6694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6696 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6697 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6698 if test $emacs_cv_speed_t = yes; then
6700 cat >>confdefs.h
<<\_ACEOF
6701 #define HAVE_SPEED_T 1
6706 echo "$as_me:$LINENO: checking for struct timeval" >&5
6707 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6708 if test "${emacs_cv_struct_timeval+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 cat >conftest.
$ac_ext <<_ACEOF
6714 cat confdefs.h
>>conftest.
$ac_ext
6715 cat >>conftest.
$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #ifdef TIME_WITH_SYS_TIME
6718 #include <sys/time.h>
6721 #ifdef HAVE_SYS_TIME_H
6722 #include <sys/time.h>
6730 static struct timeval x; x.tv_sec = x.tv_usec;
6735 rm -f conftest.
$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6739 grep -v '^ *+' conftest.er1
>conftest.err
6741 cat conftest.err
>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try
='test -z "$ac_c_werror_flag"
6745 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try
='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 emacs_cv_struct_timeval
=yes
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.
$ac_ext >&5
6762 emacs_cv_struct_timeval
=no
6764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6766 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6767 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6768 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6769 if test $emacs_cv_struct_timeval = yes; then
6771 cat >>confdefs.h
<<\_ACEOF
6772 #define HAVE_TIMEVAL 1
6777 echo "$as_me:$LINENO: checking for struct exception" >&5
6778 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6779 if test "${emacs_cv_struct_exception+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 cat >conftest.
$ac_ext <<_ACEOF
6785 cat confdefs.h
>>conftest.
$ac_ext
6786 cat >>conftest.
$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6792 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6797 rm -f conftest.
$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6801 grep -v '^ *+' conftest.er1
>conftest.err
6803 cat conftest.err
>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try
='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try
='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 emacs_cv_struct_exception
=yes
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.
$ac_ext >&5
6824 emacs_cv_struct_exception
=no
6826 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6828 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6829 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6830 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6831 if test $emacs_cv_struct_exception != yes; then
6833 cat >>confdefs.h
<<\_ACEOF
6834 #define NO_MATHERR 1
6840 for ac_header
in sys
/socket.h
6842 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6844 echo "$as_me:$LINENO: checking for $ac_header" >&5
6845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6852 # Is the header compilable?
6853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6855 cat >conftest.
$ac_ext <<_ACEOF
6858 cat confdefs.h
>>conftest.
$ac_ext
6859 cat >>conftest.
$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6862 #include <$ac_header>
6864 rm -f conftest.
$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>conftest.er1
6868 grep -v '^ *+' conftest.er1
>conftest.err
6870 cat conftest.err
>&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try
='test -z "$ac_c_werror_flag"
6874 || test ! -s conftest.err'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; } &&
6880 { ac_try
='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_header_compiler
=yes
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.
$ac_ext >&5
6891 ac_header_compiler
=no
6893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6895 echo "${ECHO_T}$ac_header_compiler" >&6
6897 # Is the header present?
6898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6900 cat >conftest.
$ac_ext <<_ACEOF
6903 cat confdefs.h
>>conftest.
$ac_ext
6904 cat >>conftest.
$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <$ac_header>
6908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6911 grep -v '^ *+' conftest.er1
>conftest.err
6913 cat conftest.err
>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } >/dev
/null
; then
6916 if test -s conftest.err
; then
6917 ac_cpp_err
=$ac_c_preproc_warn_flag
6918 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6925 if test -z "$ac_cpp_err"; then
6926 ac_header_preproc
=yes
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.
$ac_ext >&5
6931 ac_header_preproc
=no
6933 rm -f conftest.err conftest.
$ac_ext
6934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6935 echo "${ECHO_T}$ac_header_preproc" >&6
6937 # So? What about this header?
6938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6944 ac_header_preproc
=yes
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6961 ## ------------------------------------------ ##
6962 ## Report this to the AC_PACKAGE_NAME lists. ##
6963 ## ------------------------------------------ ##
6966 sed "s/^/$as_me: WARNING: /" >&2
6969 echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 eval "$as_ac_Header=\$ac_header_preproc"
6976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6981 cat >>confdefs.h
<<_ACEOF
6982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990 for ac_header
in net
/if.h
6992 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993 echo "$as_me:$LINENO: checking for $ac_header" >&5
6994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 cat >conftest.
$ac_ext <<_ACEOF
7001 cat confdefs.h
>>conftest.
$ac_ext
7002 cat >>conftest.
$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #if HAVE_SYS_SOCKET_H
7006 #include <sys/socket.h>
7009 #include <$ac_header>
7011 rm -f conftest.
$ac_objext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>conftest.er1
7015 grep -v '^ *+' conftest.er1
>conftest.err
7017 cat conftest.err
>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try
='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try
='test -s conftest.$ac_objext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 eval "$as_ac_Header=yes"
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.
$ac_ext >&5
7038 eval "$as_ac_Header=no"
7040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7045 cat >>confdefs.h
<<_ACEOF
7046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7054 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7055 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7056 if test "${ac_cv_struct_tm+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 cat >conftest.
$ac_ext <<_ACEOF
7062 cat confdefs.h
>>conftest.
$ac_ext
7063 cat >>conftest.
$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #include <sys/types.h>
7071 struct tm *tp; tp->tm_sec;
7076 rm -f conftest.
$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1
>conftest.err
7082 cat conftest.err
>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try
='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try
='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_struct_tm
=time.h
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.
$ac_ext >&5
7103 ac_cv_struct_tm
=sys
/time.h
7105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7107 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7108 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7109 if test $ac_cv_struct_tm = sys
/time.h
; then
7111 cat >>confdefs.h
<<\_ACEOF
7112 #define TM_IN_SYS_TIME 1
7117 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7118 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7119 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.
$ac_ext <<_ACEOF
7125 cat confdefs.h
>>conftest.
$ac_ext
7126 cat >>conftest.
$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7129 #include <$ac_cv_struct_tm>
7135 static struct tm ac_aggr;
7136 if (ac_aggr.tm_zone)
7142 rm -f conftest.
$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>conftest.er1
7146 grep -v '^ *+' conftest.er1
>conftest.err
7148 cat conftest.err
>&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try
='test -z "$ac_c_werror_flag"
7152 || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try
='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_cv_member_struct_tm_tm_zone
=yes
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.
$ac_ext >&5
7169 cat >conftest.
$ac_ext <<_ACEOF
7172 cat confdefs.h
>>conftest.
$ac_ext
7173 cat >>conftest.
$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 #include <sys/types.h>
7176 #include <$ac_cv_struct_tm>
7182 static struct tm ac_aggr;
7183 if (sizeof ac_aggr.tm_zone)
7189 rm -f conftest.
$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191 (eval $ac_compile) 2>conftest.er1
7193 grep -v '^ *+' conftest.er1
>conftest.err
7195 cat conftest.err
>&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try
='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try
='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_member_struct_tm_tm_zone
=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.
$ac_ext >&5
7216 ac_cv_member_struct_tm_tm_zone
=no
7218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7222 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7223 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7224 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7226 cat >>confdefs.h
<<_ACEOF
7227 #define HAVE_STRUCT_TM_TM_ZONE 1
7233 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7235 cat >>confdefs.h
<<\_ACEOF
7236 #define HAVE_TM_ZONE 1
7240 echo "$as_me:$LINENO: checking for tzname" >&5
7241 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7242 if test "${ac_cv_var_tzname+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 cat >conftest.
$ac_ext <<_ACEOF
7248 cat confdefs.h
>>conftest.
$ac_ext
7249 cat >>conftest.
$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7252 #ifndef tzname /* For SGI. */
7253 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7264 rm -f conftest.
$ac_objext conftest
$ac_exeext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>conftest.er1
7268 grep -v '^ *+' conftest.er1
>conftest.err
7270 cat conftest.err
>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try
='test -z "$ac_c_werror_flag"
7274 || test ! -s conftest.err'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try
='test -s conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_cv_var_tzname
=yes
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.
$ac_ext >&5
7293 rm -f conftest.err conftest.
$ac_objext \
7294 conftest
$ac_exeext conftest.
$ac_ext
7296 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7297 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7298 if test $ac_cv_var_tzname = yes; then
7300 cat >>confdefs.h
<<\_ACEOF
7301 #define HAVE_TZNAME 1
7307 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7308 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7309 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.
$ac_ext <<_ACEOF
7315 cat confdefs.h
>>conftest.
$ac_ext
7316 cat >>conftest.
$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7323 static struct tm ac_aggr;
7324 if (ac_aggr.tm_gmtoff)
7330 rm -f conftest.
$ac_objext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>conftest.er1
7334 grep -v '^ *+' conftest.er1
>conftest.err
7336 cat conftest.err
>&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try
='test -z "$ac_c_werror_flag"
7340 || test ! -s conftest.err'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; } &&
7346 { ac_try
='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_cv_member_struct_tm_tm_gmtoff
=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.
$ac_ext >&5
7357 cat >conftest.
$ac_ext <<_ACEOF
7360 cat confdefs.h
>>conftest.
$ac_ext
7361 cat >>conftest.
$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7368 static struct tm ac_aggr;
7369 if (sizeof ac_aggr.tm_gmtoff)
7375 rm -f conftest.
$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7379 grep -v '^ *+' conftest.er1
>conftest.err
7381 cat conftest.err
>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try
='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try
='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_member_struct_tm_tm_gmtoff
=yes
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.
$ac_ext >&5
7402 ac_cv_member_struct_tm_tm_gmtoff
=no
7404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7409 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7410 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7412 cat >>confdefs.h
<<\_ACEOF
7413 #define HAVE_TM_GMTOFF 1
7418 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7419 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7420 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.
$ac_ext <<_ACEOF
7426 cat confdefs.h
>>conftest.
$ac_ext
7427 cat >>conftest.
$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7430 #if HAVE_SYS_SOCKET_H
7431 #include <sys/socket.h>
7440 static struct ifreq ac_aggr;
7441 if (ac_aggr.ifr_flags)
7447 rm -f conftest.
$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7451 grep -v '^ *+' conftest.er1
>conftest.err
7453 cat conftest.err
>&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try
='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try
='test -s conftest.$ac_objext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_member_struct_ifreq_ifr_flags
=yes
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.
$ac_ext >&5
7474 cat >conftest.
$ac_ext <<_ACEOF
7477 cat confdefs.h
>>conftest.
$ac_ext
7478 cat >>conftest.
$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 #if HAVE_SYS_SOCKET_H
7482 #include <sys/socket.h>
7491 static struct ifreq ac_aggr;
7492 if (sizeof ac_aggr.ifr_flags)
7498 rm -f conftest.
$ac_objext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500 (eval $ac_compile) 2>conftest.er1
7502 grep -v '^ *+' conftest.er1
>conftest.err
7504 cat conftest.err
>&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try
='test -z "$ac_c_werror_flag"
7508 || test ! -s conftest.err'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try
='test -s conftest.$ac_objext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_member_struct_ifreq_ifr_flags
=yes
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.
$ac_ext >&5
7525 ac_cv_member_struct_ifreq_ifr_flags
=no
7527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7531 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7532 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7533 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7535 cat >>confdefs.h
<<_ACEOF
7536 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7541 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7542 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7543 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 cat >conftest.
$ac_ext <<_ACEOF
7549 cat confdefs.h
>>conftest.
$ac_ext
7550 cat >>conftest.
$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7553 #if HAVE_SYS_SOCKET_H
7554 #include <sys/socket.h>
7563 static struct ifreq ac_aggr;
7564 if (ac_aggr.ifr_hwaddr)
7570 rm -f conftest.
$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1
>conftest.err
7576 cat conftest.err
>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try
='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try
='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 cat >conftest.
$ac_ext <<_ACEOF
7600 cat confdefs.h
>>conftest.
$ac_ext
7601 cat >>conftest.
$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7604 #if HAVE_SYS_SOCKET_H
7605 #include <sys/socket.h>
7614 static struct ifreq ac_aggr;
7615 if (sizeof ac_aggr.ifr_hwaddr)
7621 rm -f conftest.
$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1
>conftest.err
7627 cat conftest.err
>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try
='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try
='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.
$ac_ext >&5
7648 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7654 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7656 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7658 cat >>confdefs.h
<<_ACEOF
7659 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7664 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7665 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7666 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7672 cat confdefs.h
>>conftest.
$ac_ext
7673 cat >>conftest.
$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 #if HAVE_SYS_SOCKET_H
7677 #include <sys/socket.h>
7686 static struct ifreq ac_aggr;
7687 if (ac_aggr.ifr_netmask)
7693 rm -f conftest.
$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7697 grep -v '^ *+' conftest.er1
>conftest.err
7699 cat conftest.err
>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try
='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try
='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.
$ac_ext >&5
7720 cat >conftest.
$ac_ext <<_ACEOF
7723 cat confdefs.h
>>conftest.
$ac_ext
7724 cat >>conftest.
$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 #if HAVE_SYS_SOCKET_H
7728 #include <sys/socket.h>
7737 static struct ifreq ac_aggr;
7738 if (sizeof ac_aggr.ifr_netmask)
7744 rm -f conftest.
$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1
>conftest.err
7750 cat conftest.err
>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try
='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try
='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7771 ac_cv_member_struct_ifreq_ifr_netmask
=no
7773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7775 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7778 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7779 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7781 cat >>confdefs.h
<<_ACEOF
7782 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7787 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7788 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7789 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 cat >conftest.
$ac_ext <<_ACEOF
7795 cat confdefs.h
>>conftest.
$ac_ext
7796 cat >>conftest.
$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 #if HAVE_SYS_SOCKET_H
7800 #include <sys/socket.h>
7809 static struct ifreq ac_aggr;
7810 if (ac_aggr.ifr_broadaddr)
7816 rm -f conftest.
$ac_objext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7820 grep -v '^ *+' conftest.er1
>conftest.err
7822 cat conftest.err
>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try
='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try
='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.
$ac_ext >&5
7843 cat >conftest.
$ac_ext <<_ACEOF
7846 cat confdefs.h
>>conftest.
$ac_ext
7847 cat >>conftest.
$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 #if HAVE_SYS_SOCKET_H
7851 #include <sys/socket.h>
7860 static struct ifreq ac_aggr;
7861 if (sizeof ac_aggr.ifr_broadaddr)
7867 rm -f conftest.
$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1
>conftest.err
7873 cat conftest.err
>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try
='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try
='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.
$ac_ext >&5
7894 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7900 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7901 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7902 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7904 cat >>confdefs.h
<<_ACEOF
7905 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7910 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7911 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7912 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 cat >conftest.
$ac_ext <<_ACEOF
7918 cat confdefs.h
>>conftest.
$ac_ext
7919 cat >>conftest.
$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 #if HAVE_SYS_SOCKET_H
7923 #include <sys/socket.h>
7932 static struct ifreq ac_aggr;
7933 if (ac_aggr.ifr_addr)
7939 rm -f conftest.
$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>conftest.er1
7943 grep -v '^ *+' conftest.er1
>conftest.err
7945 cat conftest.err
>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try
='test -z "$ac_c_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try
='test -s conftest.$ac_objext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_member_struct_ifreq_ifr_addr
=yes
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.
$ac_ext >&5
7966 cat >conftest.
$ac_ext <<_ACEOF
7969 cat confdefs.h
>>conftest.
$ac_ext
7970 cat >>conftest.
$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 $ac_includes_default
7973 #if HAVE_SYS_SOCKET_H
7974 #include <sys/socket.h>
7983 static struct ifreq ac_aggr;
7984 if (sizeof ac_aggr.ifr_addr)
7990 rm -f conftest.
$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>conftest.er1
7994 grep -v '^ *+' conftest.er1
>conftest.err
7996 cat conftest.err
>&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try
='test -z "$ac_c_werror_flag"
8000 || test ! -s conftest.err'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try
='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_cv_member_struct_ifreq_ifr_addr
=yes
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.
$ac_ext >&5
8017 ac_cv_member_struct_ifreq_ifr_addr
=no
8019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8024 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8025 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8027 cat >>confdefs.h
<<_ACEOF
8028 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8036 echo "$as_me:$LINENO: checking for function prototypes" >&5
8037 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8038 if test "$ac_cv_prog_cc_stdc" != no
; then
8039 echo "$as_me:$LINENO: result: yes" >&5
8040 echo "${ECHO_T}yes" >&6
8042 cat >>confdefs.h
<<\_ACEOF
8043 #define PROTOTYPES 1
8047 cat >>confdefs.h
<<\_ACEOF
8048 #define __PROTOTYPES 1
8052 echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6
8056 echo "$as_me:$LINENO: checking for working volatile" >&5
8057 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8058 if test "${ac_cv_c_volatile+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.
$ac_ext <<_ACEOF
8064 cat confdefs.h
>>conftest.
$ac_ext
8065 cat >>conftest.
$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8078 rm -f conftest.
$ac_objext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080 (eval $ac_compile) 2>conftest.er1
8082 grep -v '^ *+' conftest.er1
>conftest.err
8084 cat conftest.err
>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try
='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try
='test -s conftest.$ac_objext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_c_volatile
=yes
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.
$ac_ext >&5
8107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8109 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8110 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8111 if test $ac_cv_c_volatile = no
; then
8113 cat >>confdefs.h
<<\_ACEOF
8119 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8120 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8121 if test "${ac_cv_c_const+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 cat >conftest.
$ac_ext <<_ACEOF
8127 cat confdefs.h
>>conftest.
$ac_ext
8128 cat >>conftest.
$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8134 /* FIXME: Include the comments suggested by Paul. */
8136 /* Ultrix mips cc rejects this. */
8137 typedef int charset[2];
8139 /* SunOS 4.1.1 cc rejects this. */
8140 char const *const *ccp;
8142 /* NEC SVR4.0.2 mips cc rejects this. */
8143 struct point {int x, y;};
8144 static struct point const zero = {0,0};
8145 /* AIX XL C 1.02.0.0 rejects this.
8146 It does not let you subtract one const X* pointer from another in
8147 an arm of an if-expression whose if-part is not a constant
8149 const char *g = "string";
8150 ccp = &g + (g ? g-g : 0);
8151 /* HPUX 7.0 cc rejects these. */
8154 ccp = (char const *const *) p;
8155 { /* SCO 3.2v4 cc rejects this. */
8157 char const *s = 0 ? (char *) 0 : (char const *) 0;
8161 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8163 const int *foo = &x[0];
8166 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8167 typedef const int *iptr;
8171 { /* AIX XL C 1.02.0.0 rejects this saying
8172 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8173 struct s { int j; const int *ap[3]; };
8174 struct s *b; b->j = 5;
8176 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8185 rm -f conftest.
$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>conftest.er1
8189 grep -v '^ *+' conftest.er1
>conftest.err
8191 cat conftest.err
>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try
='test -z "$ac_c_werror_flag"
8195 || test ! -s conftest.err'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; } &&
8201 { ac_try
='test -s conftest.$ac_objext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.
$ac_ext >&5
8214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8217 echo "${ECHO_T}$ac_cv_c_const" >&6
8218 if test $ac_cv_c_const = no
; then
8220 cat >>confdefs.h
<<\_ACEOF
8226 echo "$as_me:$LINENO: checking for void * support" >&5
8227 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8228 if test "${emacs_cv_void_star+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.
$ac_ext <<_ACEOF
8234 cat confdefs.h
>>conftest.
$ac_ext
8235 cat >>conftest.
$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8246 rm -f conftest.
$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8250 grep -v '^ *+' conftest.er1
>conftest.err
8252 cat conftest.err
>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try
='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try
='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 emacs_cv_void_star
=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.
$ac_ext >&5
8273 emacs_cv_void_star
=no
8275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8278 echo "${ECHO_T}$emacs_cv_void_star" >&6
8279 if test $emacs_cv_void_star = yes; then
8280 cat >>confdefs.h
<<\_ACEOF
8281 #define POINTER_TYPE void
8285 cat >>confdefs.h
<<\_ACEOF
8286 #define POINTER_TYPE char
8295 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8296 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8297 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8298 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.
make <<\_ACEOF
8303 @
echo 'ac_maketemp="$(MAKE)"'
8305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8306 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8307 if test -n "$ac_maketemp"; then
8308 eval ac_cv_prog_make_
${ac_make}_set
=yes
8310 eval ac_cv_prog_make_
${ac_make}_set
=no
8314 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8315 echo "$as_me:$LINENO: result: yes" >&5
8316 echo "${ECHO_T}yes" >&6
8319 echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6
8321 SET_MAKE
="MAKE=${MAKE-make}"
8325 echo "$as_me:$LINENO: checking for long file names" >&5
8326 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8327 if test "${ac_cv_sys_long_file_names+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 ac_cv_sys_long_file_names
=yes
8331 # Test for long file names in all the places we know might matter:
8332 # . the current directory, where building will happen
8333 # $prefix/lib where we will be installing things
8334 # $exec_prefix/lib likewise
8335 # eval it to expand exec_prefix.
8336 # $TMPDIR if set, where it might want to write temporary files
8337 # if $TMPDIR is not set:
8338 # /tmp where it might want to write temporary files
8341 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8344 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8346 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8347 test -d $ac_dir ||
continue
8348 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8349 ac_xdir
=$ac_dir/cf$$
8350 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8351 ac_tf1
=$ac_xdir/conftest9012345
8352 ac_tf2
=$ac_xdir/conftest9012346
8353 (echo 1 >$ac_tf1) 2>/dev
/null
8354 (echo 2 >$ac_tf2) 2>/dev
/null
8355 ac_val
=`cat $ac_tf1 2>/dev/null`
8356 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8357 ac_cv_sys_long_file_names
=no
8358 rm -rf $ac_xdir 2>/dev
/null
8361 rm -rf $ac_xdir 2>/dev
/null
8364 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8365 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8366 if test $ac_cv_sys_long_file_names = yes; then
8368 cat >>confdefs.h
<<\_ACEOF
8369 #define HAVE_LONG_FILE_NAMES 1
8375 #### Choose a window system.
8377 echo "$as_me:$LINENO: checking for X" >&5
8378 echo $ECHO_N "checking for X... $ECHO_C" >&6
8381 # Check whether --with-x or --without-x was given.
8382 if test "${with_x+set}" = set; then
8386 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8387 if test "x$with_x" = xno
; then
8388 # The user explicitly disabled X.
8391 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8392 # Both variables are already set.
8395 if test "${ac_cv_have_x+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 # One or both of the vars are not set, and there is no cached value.
8399 ac_x_includes
=no ac_x_libraries
=no
8401 if mkdir conftest.dir
; then
8403 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8404 cat >Imakefile
<<'_ACEOF'
8406 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8408 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8409 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8410 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8411 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8412 for ac_extension
in a so sl
; do
8413 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8414 test -f $ac_im_libdir/libX11.
$ac_extension; then
8415 ac_im_usrlibdir
=$ac_im_libdir; break
8418 # Screen out bogus values from the imake configuration. They are
8419 # bogus both because they are the default anyway, and because
8420 # using them would break gcc on systems where it needs fixed includes.
8421 case $ac_im_incroot in
8423 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8425 case $ac_im_usrlibdir in
8427 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8434 # Standard set of common directories for X headers.
8435 # Check X11 before X11Rn because it is often a symlink to the current release.
8447 /usr/local/X11/include
8448 /usr/local/X11R6/include
8449 /usr/local/X11R5/include
8450 /usr/local/X11R4/include
8452 /usr/local/include/X11
8453 /usr/local/include/X11R6
8454 /usr/local/include/X11R5
8455 /usr/local/include/X11R4
8459 /usr/XFree86/include/X11
8463 /usr/unsupported/include
8465 /usr/local/x11r5/include
8466 /usr/lpp/Xamples/include
8468 /usr/openwin/include
8469 /usr/openwin/share/include'
8471 if test "$ac_x_includes" = no
; then
8472 # Guess where to find include files, by looking for Intrinsic.h.
8473 # First, try using that file with no special directory specified.
8474 cat >conftest.
$ac_ext <<_ACEOF
8477 cat confdefs.h
>>conftest.
$ac_ext
8478 cat >>conftest.
$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 #include <X11/Intrinsic.h>
8482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8483 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8485 grep -v '^ *+' conftest.er1
>conftest.err
8487 cat conftest.err
>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } >/dev
/null
; then
8490 if test -s conftest.err
; then
8491 ac_cpp_err
=$ac_c_preproc_warn_flag
8492 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8499 if test -z "$ac_cpp_err"; then
8500 # We can compile using X headers with no special include directory.
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.
$ac_ext >&5
8506 for ac_dir
in $ac_x_header_dirs; do
8507 if test -r "$ac_dir/X11/Intrinsic.h"; then
8508 ac_x_includes
=$ac_dir
8513 rm -f conftest.err conftest.
$ac_ext
8514 fi # $ac_x_includes = no
8516 if test "$ac_x_libraries" = no
; then
8517 # Check for the libraries.
8518 # See if we find them without any special options.
8519 # Don't add to $LIBS permanently.
8522 cat >conftest.
$ac_ext <<_ACEOF
8525 cat confdefs.h
>>conftest.
$ac_ext
8526 cat >>conftest.
$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <X11/Intrinsic.h>
8537 rm -f conftest.
$ac_objext conftest
$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>conftest.er1
8541 grep -v '^ *+' conftest.er1
>conftest.err
8543 cat conftest.err
>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try
='test -z "$ac_c_werror_flag"
8547 || test ! -s conftest.err'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; } &&
8553 { ac_try
='test -s conftest$ac_exeext'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8560 # We can link X programs with no special library path.
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.
$ac_ext >&5
8567 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8569 # Don't even attempt the hair of trying to link an X program!
8570 for ac_extension
in a so sl
; do
8571 if test -r $ac_dir/libXt.
$ac_extension; then
8572 ac_x_libraries
=$ac_dir
8578 rm -f conftest.err conftest.
$ac_objext \
8579 conftest
$ac_exeext conftest.
$ac_ext
8580 fi # $ac_x_libraries = no
8582 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8583 # Didn't find X anywhere. Cache the known absence of X.
8584 ac_cv_have_x
="have_x=no"
8586 # Record where we found X for the cache.
8587 ac_cv_have_x
="have_x=yes \
8588 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8593 eval "$ac_cv_have_x"
8596 if test "$have_x" != yes; then
8597 echo "$as_me:$LINENO: result: $have_x" >&5
8598 echo "${ECHO_T}$have_x" >&6
8601 # If each of the values was on the command line, it overrides each guess.
8602 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8603 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8604 # Update the cache value to reflect the command line values.
8605 ac_cv_have_x
="have_x=yes \
8606 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8607 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8608 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8611 if test "$no_x" = yes; then
8617 if test "${x_libraries}" != NONE
; then
8618 if test -n "${x_libraries}"; then
8619 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8620 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8622 x_default_search_path
=""
8623 x_search_path
=${x_libraries}
8624 if test -z "${x_search_path}"; then
8625 x_search_path
=/usr
/lib
8627 for x_library
in `echo ${x_search_path}: | \
8628 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8630 ${x_library}/X11/%L/%T/%N%C%S:\
8631 ${x_library}/X11/%l/%T/%N%C%S:\
8632 ${x_library}/X11/%T/%N%C%S:\
8633 ${x_library}/X11/%L/%T/%N%S:\
8634 ${x_library}/X11/%l/%T/%N%S:\
8635 ${x_library}/X11/%T/%N%S"
8636 if test x
"${x_default_search_path}" = x
; then
8637 x_default_search_path
=${x_search_path}
8639 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8643 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8644 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8647 if test x
"${x_includes}" = x
; then
8648 bitmapdir
=/usr
/include
/X11
/bitmaps
8650 # accumulate include directories that have X11 bitmap subdirectories
8652 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8653 if test -d "${bmd}/X11/bitmaps"; then
8654 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8656 if test -d "${bmd}/bitmaps"; then
8657 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8660 if test ${bmd_acc} != "dummyval"; then
8661 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8666 if test "${with_carbon}" != no
; then
8667 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8668 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8669 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8670 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8674 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8676 # Is the header compilable?
8677 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8678 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8679 cat >conftest.
$ac_ext <<_ACEOF
8682 cat confdefs.h
>>conftest.
$ac_ext
8683 cat >>conftest.
$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #include <Carbon/Carbon.h>
8688 rm -f conftest.
$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1
>conftest.err
8694 cat conftest.err
>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try
='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try
='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_header_compiler
=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.
$ac_ext >&5
8715 ac_header_compiler
=no
8717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8723 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8724 cat >conftest.
$ac_ext <<_ACEOF
8727 cat confdefs.h
>>conftest.
$ac_ext
8728 cat >>conftest.
$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 #include <Carbon/Carbon.h>
8732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8735 grep -v '^ *+' conftest.er1
>conftest.err
8737 cat conftest.err
>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } >/dev
/null
; then
8740 if test -s conftest.err
; then
8741 ac_cpp_err
=$ac_c_preproc_warn_flag
8742 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8749 if test -z "$ac_cpp_err"; then
8750 ac_header_preproc
=yes
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.
$ac_ext >&5
8755 ac_header_preproc
=no
8757 rm -f conftest.err conftest.
$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8759 echo "${ECHO_T}$ac_header_preproc" >&6
8761 # So? What about this header?
8762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8764 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8765 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8767 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8768 ac_header_preproc
=yes
8771 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8772 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8774 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8776 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8778 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8782 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8785 ## ------------------------------------------ ##
8786 ## Report this to the AC_PACKAGE_NAME lists. ##
8787 ## ------------------------------------------ ##
8790 sed "s/^/$as_me: WARNING: /" >&2
8793 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8794 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8795 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8800 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8801 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8804 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8810 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8811 if test "${with_carbon+set}" != set \
8812 && test "${carbon_appdir_x+set}" != set; then
8813 for var
in with_x with_x_toolkit with_gtk with_xim \
8814 with_xpm with_jpeg with_tiff with_gif with_png
; do
8815 if eval test \"\
${$var+set}\" = set; then
8822 if test "${HAVE_CARBON}" = yes; then
8826 case "${window_system}" in
8830 case "${with_x_toolkit}" in
8831 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8832 motif
) USE_X_TOOLKIT
=MOTIF
;;
8834 USE_X_TOOLKIT
=none
;;
8835 no
) USE_X_TOOLKIT
=none
;;
8836 * ) USE_X_TOOLKIT
=maybe
;;
8846 ### If we're using X11, we should use the X menu package.
8849 yes ) HAVE_MENUS
=yes ;;
8852 if test "${opsys}" = "hpux9"; then
8853 case "${x_libraries}" in
8855 opsysfile
="s/hpux9-x11r4.h"
8860 if test "${opsys}" = "hpux9shr"; then
8861 case "${x_libraries}" in
8863 opsysfile
="s/hpux9shxr4.h"
8868 ### Compute the unexec source name from the object name.
8869 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8871 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8872 # Assume not, until told otherwise.
8875 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8876 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8877 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 cat >conftest.
$ac_ext <<_ACEOF
8883 cat confdefs.h
>>conftest.
$ac_ext
8884 cat >>conftest.
$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8888 #define malloc_get_state innocuous_malloc_get_state
8890 /* System header to define __stub macros and hopefully few prototypes,
8891 which can conflict with char malloc_get_state (); below.
8892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893 <limits.h> exists even on freestanding compilers. */
8896 # include <limits.h>
8898 # include <assert.h>
8901 #undef malloc_get_state
8903 /* Override any gcc2 internal prototype to avoid an error. */
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8910 char malloc_get_state ();
8911 /* The GNU C library defines this for functions which it implements
8912 to always fail with ENOSYS. Some functions are actually named
8913 something starting with __ and the normal name is an alias. */
8914 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8917 char (*f) () = malloc_get_state;
8926 return f != malloc_get_state;
8931 rm -f conftest.
$ac_objext conftest
$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>conftest.er1
8935 grep -v '^ *+' conftest.er1
>conftest.err
8937 cat conftest.err
>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try
='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try
='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_cv_func_malloc_get_state
=yes
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.
$ac_ext >&5
8958 ac_cv_func_malloc_get_state
=no
8960 rm -f conftest.err conftest.
$ac_objext \
8961 conftest
$ac_exeext conftest.
$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8964 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8965 if test $ac_cv_func_malloc_get_state = yes; then
8971 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8972 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8973 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 cat >conftest.
$ac_ext <<_ACEOF
8979 cat confdefs.h
>>conftest.
$ac_ext
8980 cat >>conftest.
$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8984 #define malloc_set_state innocuous_malloc_set_state
8986 /* System header to define __stub macros and hopefully few prototypes,
8987 which can conflict with char malloc_set_state (); below.
8988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8989 <limits.h> exists even on freestanding compilers. */
8992 # include <limits.h>
8994 # include <assert.h>
8997 #undef malloc_set_state
8999 /* Override any gcc2 internal prototype to avoid an error. */
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9006 char malloc_set_state ();
9007 /* The GNU C library defines this for functions which it implements
9008 to always fail with ENOSYS. Some functions are actually named
9009 something starting with __ and the normal name is an alias. */
9010 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9013 char (*f) () = malloc_set_state;
9022 return f != malloc_set_state;
9027 rm -f conftest.
$ac_objext conftest
$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>conftest.er1
9031 grep -v '^ *+' conftest.er1
>conftest.err
9033 cat conftest.err
>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try
='test -z "$ac_c_werror_flag"
9037 || test ! -s conftest.err'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try
='test -s conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_func_malloc_set_state
=yes
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.
$ac_ext >&5
9054 ac_cv_func_malloc_set_state
=no
9056 rm -f conftest.err conftest.
$ac_objext \
9057 conftest
$ac_exeext conftest.
$ac_ext
9059 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9060 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9061 if test $ac_cv_func_malloc_set_state = yes; then
9067 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9068 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9069 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 cat >conftest.
$ac_ext <<_ACEOF
9075 cat confdefs.h
>>conftest.
$ac_ext
9076 cat >>conftest.
$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 extern void (* __after_morecore_hook)();
9082 __after_morecore_hook = 0
9087 rm -f conftest.
$ac_objext conftest
$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9091 grep -v '^ *+' conftest.er1
>conftest.err
9093 cat conftest.err
>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try
='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try
='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 emacs_cv_var___after_morecore_hook
=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.
$ac_ext >&5
9114 emacs_cv_var___after_morecore_hook
=no
9116 rm -f conftest.err conftest.
$ac_objext \
9117 conftest
$ac_exeext conftest.
$ac_ext
9119 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9120 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9121 if test $emacs_cv_var___after_morecore_hook = no
; then
9124 if test "${system_malloc}" = "yes"; then
9127 (The GNU allocators don't work with this system configuration.)"
9129 if test "$doug_lea_malloc" = "yes" ; then
9130 if test "$GNU_MALLOC" = yes ; then
9132 (Using Doug Lea's new malloc from the GNU C Library.)"
9135 cat >>confdefs.h
<<\_ACEOF
9136 #define DOUG_LEA_MALLOC 1
9141 if test x
"${REL_ALLOC}" = x
; then
9142 REL_ALLOC
=${GNU_MALLOC}
9148 for ac_header
in stdlib.h unistd.h
9150 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9152 echo "$as_me:$LINENO: checking for $ac_header" >&5
9153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9160 # Is the header compilable?
9161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9163 cat >conftest.
$ac_ext <<_ACEOF
9166 cat confdefs.h
>>conftest.
$ac_ext
9167 cat >>conftest.
$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 $ac_includes_default
9170 #include <$ac_header>
9172 rm -f conftest.
$ac_objext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9174 (eval $ac_compile) 2>conftest.er1
9176 grep -v '^ *+' conftest.er1
>conftest.err
9178 cat conftest.err
>&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try
='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try
='test -s conftest.$ac_objext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_header_compiler
=yes
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.
$ac_ext >&5
9199 ac_header_compiler
=no
9201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9203 echo "${ECHO_T}$ac_header_compiler" >&6
9205 # Is the header present?
9206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9208 cat >conftest.
$ac_ext <<_ACEOF
9211 cat confdefs.h
>>conftest.
$ac_ext
9212 cat >>conftest.
$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 #include <$ac_header>
9216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9217 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9219 grep -v '^ *+' conftest.er1
>conftest.err
9221 cat conftest.err
>&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } >/dev
/null
; then
9224 if test -s conftest.err
; then
9225 ac_cpp_err
=$ac_c_preproc_warn_flag
9226 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9233 if test -z "$ac_cpp_err"; then
9234 ac_header_preproc
=yes
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.
$ac_ext >&5
9239 ac_header_preproc
=no
9241 rm -f conftest.err conftest.
$ac_ext
9242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9243 echo "${ECHO_T}$ac_header_preproc" >&6
9245 # So? What about this header?
9246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9252 ac_header_preproc
=yes
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9269 ## ------------------------------------------ ##
9270 ## Report this to the AC_PACKAGE_NAME lists. ##
9271 ## ------------------------------------------ ##
9274 sed "s/^/$as_me: WARNING: /" >&2
9277 echo "$as_me:$LINENO: checking for $ac_header" >&5
9278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 eval "$as_ac_Header=\$ac_header_preproc"
9284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9289 cat >>confdefs.h
<<_ACEOF
9290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9298 for ac_func
in getpagesize
9300 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9301 echo "$as_me:$LINENO: checking for $ac_func" >&5
9302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9303 if eval "test \"\${$as_ac_var+set}\" = set"; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 cat >conftest.
$ac_ext <<_ACEOF
9309 cat confdefs.h
>>conftest.
$ac_ext
9310 cat >>conftest.
$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9314 #define $ac_func innocuous_$ac_func
9316 /* System header to define __stub macros and hopefully few prototypes,
9317 which can conflict with char $ac_func (); below.
9318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9319 <limits.h> exists even on freestanding compilers. */
9322 # include <limits.h>
9324 # include <assert.h>
9329 /* Override any gcc2 internal prototype to avoid an error. */
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9337 /* The GNU C library defines this for functions which it implements
9338 to always fail with ENOSYS. Some functions are actually named
9339 something starting with __ and the normal name is an alias. */
9340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9343 char (*f) () = $ac_func;
9352 return f != $ac_func;
9357 rm -f conftest.
$ac_objext conftest
$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9361 grep -v '^ *+' conftest.er1
>conftest.err
9363 cat conftest.err
>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try
='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try
='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 eval "$as_ac_var=yes"
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.
$ac_ext >&5
9384 eval "$as_ac_var=no"
9386 rm -f conftest.err conftest.
$ac_objext \
9387 conftest
$ac_exeext conftest.
$ac_ext
9389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9391 if test `eval echo '${'$as_ac_var'}'` = yes; then
9392 cat >>confdefs.h
<<_ACEOF
9393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9399 echo "$as_me:$LINENO: checking for working mmap" >&5
9400 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9401 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 if test "$cross_compiling" = yes; then
9405 ac_cv_func_mmap_fixed_mapped
=no
9407 cat >conftest.
$ac_ext <<_ACEOF
9410 cat confdefs.h
>>conftest.
$ac_ext
9411 cat >>conftest.
$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413 $ac_includes_default
9414 /* malloc might have been renamed as rpl_malloc. */
9417 /* Thanks to Mike Haertel and Jim Avera for this test.
9418 Here is a matrix of mmap possibilities:
9419 mmap private not fixed
9420 mmap private fixed at somewhere currently unmapped
9421 mmap private fixed at somewhere already mapped
9422 mmap shared not fixed
9423 mmap shared fixed at somewhere currently unmapped
9424 mmap shared fixed at somewhere already mapped
9425 For private mappings, we should verify that changes cannot be read()
9426 back from the file, nor mmap's back from the file at a different
9427 address. (There have been systems where private was not correctly
9428 implemented like the infamous i386 svr4.0, and systems where the
9429 VM page cache was not coherent with the file system buffer cache
9430 like early versions of FreeBSD and possibly contemporary NetBSD.)
9431 For shared mappings, we should conversely verify that changes get
9432 propagated back to all the places they're supposed to be.
9434 Grep wants private fixed already mapped.
9435 The main things grep needs to know about mmap are:
9436 * does it exist and is it safe to write into the mmap'd area
9437 * how to use it (BSD variants) */
9440 #include <sys/mman.h>
9442 #if !STDC_HEADERS && !HAVE_STDLIB_H
9446 /* This mess was copied from the GNU getpagesize.h. */
9447 #if !HAVE_GETPAGESIZE
9448 /* Assume that all systems that can run configure have sys/param.h. */
9449 # if !HAVE_SYS_PARAM_H
9450 # define HAVE_SYS_PARAM_H 1
9453 # ifdef _SC_PAGESIZE
9454 # define getpagesize() sysconf(_SC_PAGESIZE)
9455 # else /* no _SC_PAGESIZE */
9456 # if HAVE_SYS_PARAM_H
9457 # include <sys/param.h>
9458 # ifdef EXEC_PAGESIZE
9459 # define getpagesize() EXEC_PAGESIZE
9460 # else /* no EXEC_PAGESIZE */
9462 # define getpagesize() NBPG * CLSIZE
9465 # endif /* no CLSIZE */
9466 # else /* no NBPG */
9468 # define getpagesize() NBPC
9469 # else /* no NBPC */
9471 # define getpagesize() PAGESIZE
9472 # endif /* PAGESIZE */
9473 # endif /* no NBPC */
9474 # endif /* no NBPG */
9475 # endif /* no EXEC_PAGESIZE */
9476 # else /* no HAVE_SYS_PARAM_H */
9477 # define getpagesize() 8192 /* punt totally */
9478 # endif /* no HAVE_SYS_PARAM_H */
9479 # endif /* no _SC_PAGESIZE */
9481 #endif /* no HAVE_GETPAGESIZE */
9486 char *data, *data2, *data3;
9490 pagesize = getpagesize ();
9492 /* First, make a file with some known garbage in it. */
9493 data = (char *) malloc (pagesize);
9496 for (i = 0; i < pagesize; ++i)
9497 *(data + i) = rand ();
9499 fd = creat ("conftest.mmap", 0600);
9502 if (write (fd, data, pagesize) != pagesize)
9506 /* Next, try to mmap the file at a fixed address which already has
9507 something else allocated at it. If we can, also make sure that
9508 we see the same garbage. */
9509 fd = open ("conftest.mmap", O_RDWR);
9512 data2 = (char *) malloc (2 * pagesize);
9515 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9516 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9517 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9519 for (i = 0; i < pagesize; ++i)
9520 if (*(data + i) != *(data2 + i))
9523 /* Finally, make sure that changes to the mapped area do not
9524 percolate back to the file as seen by read(). (This is a bug on
9525 some variants of i386 svr4.0.) */
9526 for (i = 0; i < pagesize; ++i)
9527 *(data2 + i) = *(data2 + i) + 1;
9528 data3 = (char *) malloc (pagesize);
9531 if (read (fd, data3, pagesize) != pagesize)
9533 for (i = 0; i < pagesize; ++i)
9534 if (*(data + i) != *(data3 + i))
9540 rm -f conftest
$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_func_mmap_fixed_mapped
=yes
9553 echo "$as_me: program exited with status $ac_status" >&5
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.
$ac_ext >&5
9558 ac_cv_func_mmap_fixed_mapped
=no
9560 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9563 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9564 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9567 cat >>confdefs.h
<<\_ACEOF
9574 if test $use_mmap_for_buffers = yes; then
9578 LIBS
="$libsrc_libs $LIBS"
9581 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9582 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9583 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 ac_check_lib_save_LIBS
=$LIBS
9588 cat >conftest.
$ac_ext <<_ACEOF
9591 cat confdefs.h
>>conftest.
$ac_ext
9592 cat >>conftest.
$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9595 /* Override any gcc2 internal prototype to avoid an error. */
9599 /* We use char because int might match the return type of a gcc2
9600 builtin and then its argument prototype would still apply. */
9610 rm -f conftest.
$ac_objext conftest
$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1
>conftest.err
9616 cat conftest.err
>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try
='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try
='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 ac_cv_lib_dnet_dnet_ntoa
=yes
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.
$ac_ext >&5
9637 ac_cv_lib_dnet_dnet_ntoa
=no
9639 rm -f conftest.err conftest.
$ac_objext \
9640 conftest
$ac_exeext conftest.
$ac_ext
9641 LIBS
=$ac_check_lib_save_LIBS
9643 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9644 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9645 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9646 cat >>confdefs.h
<<_ACEOF
9647 #define HAVE_LIBDNET 1
9655 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9656 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9657 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_check_lib_save_LIBS
=$LIBS
9662 cat >conftest.
$ac_ext <<_ACEOF
9665 cat confdefs.h
>>conftest.
$ac_ext
9666 cat >>conftest.
$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9678 rm -f conftest.
$ac_objext conftest
$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>conftest.er1
9682 grep -v '^ *+' conftest.er1
>conftest.err
9684 cat conftest.err
>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try
='test -z "$ac_c_werror_flag"
9688 || test ! -s conftest.err'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try
='test -s conftest$ac_exeext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_lib_Xbsd_main
=yes
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.
$ac_ext >&5
9705 ac_cv_lib_Xbsd_main
=no
9707 rm -f conftest.err conftest.
$ac_objext \
9708 conftest
$ac_exeext conftest.
$ac_ext
9709 LIBS
=$ac_check_lib_save_LIBS
9711 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9712 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9713 if test $ac_cv_lib_Xbsd_main = yes; then
9714 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9719 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9720 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9721 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 ac_check_lib_save_LIBS
=$LIBS
9725 LIBS
="-lpthreads $LIBS"
9726 cat >conftest.
$ac_ext <<_ACEOF
9729 cat confdefs.h
>>conftest.
$ac_ext
9730 cat >>conftest.
$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9733 /* Override any gcc2 internal prototype to avoid an error. */
9737 /* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */
9748 rm -f conftest.
$ac_objext conftest
$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>conftest.er1
9752 grep -v '^ *+' conftest.er1
>conftest.err
9754 cat conftest.err
>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try
='test -z "$ac_c_werror_flag"
9758 || test ! -s conftest.err'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try
='test -s conftest$ac_exeext'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 ac_cv_lib_pthreads_cma_open
=yes
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.
$ac_ext >&5
9775 ac_cv_lib_pthreads_cma_open
=no
9777 rm -f conftest.err conftest.
$ac_objext \
9778 conftest
$ac_exeext conftest.
$ac_ext
9779 LIBS
=$ac_check_lib_save_LIBS
9781 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9782 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9783 if test $ac_cv_lib_pthreads_cma_open = yes; then
9784 cat >>confdefs.h
<<_ACEOF
9785 #define HAVE_LIBPTHREADS 1
9788 LIBS
="-lpthreads $LIBS"
9793 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9794 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9795 if test -d /usr
/X386
/include
; then
9797 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9801 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9802 echo "${ECHO_T}$HAVE_XFREE386" >&6
9807 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9808 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9809 if test "${gdb_cv_bigtoc+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9815 *) gdb_cv_bigtoc
=-bbigtoc ;;
9818 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9819 cat >conftest.
$ac_ext <<_ACEOF
9822 cat confdefs.h
>>conftest.
$ac_ext
9823 cat >>conftest.
$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9834 rm -f conftest.
$ac_objext conftest
$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1
>conftest.err
9840 cat conftest.err
>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try
='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try
='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.
$ac_ext >&5
9863 rm -f conftest.err conftest.
$ac_objext \
9864 conftest
$ac_exeext conftest.
$ac_ext
9867 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9868 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9872 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9873 # used for the tests that follow. We set them back to REAL_CFLAGS and
9874 # REAL_CPPFLAGS later on.
9876 REAL_CPPFLAGS
="$CPPFLAGS"
9878 if test "${HAVE_X11}" = "yes"; then
9879 DEFS
="$C_SWITCH_X_SITE $DEFS"
9880 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9882 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9883 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9885 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9886 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9887 # but it's more convenient here to set LD_RUN_PATH
9888 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9889 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9890 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9894 if test "${opsys}" = "gnu-linux"; then
9895 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9896 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9897 cat >conftest.
$ac_ext <<_ACEOF
9900 cat confdefs.h
>>conftest.
$ac_ext
9901 cat >>conftest.
$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9907 XOpenDisplay ("foo");
9912 rm -f conftest.
$ac_objext conftest
$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>conftest.er1
9916 grep -v '^ *+' conftest.er1
>conftest.err
9918 cat conftest.err
>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try
='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try
='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 xlinux_first_failure
=no
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.
$ac_ext >&5
9939 xlinux_first_failure
=yes
9941 rm -f conftest.err conftest.
$ac_objext \
9942 conftest
$ac_exeext conftest.
$ac_ext
9943 if test "${xlinux_first_failure}" = "yes"; then
9944 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9945 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9946 OLD_CPPFLAGS
="$CPPFLAGS"
9948 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9949 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9950 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9951 LIBS
="$LIBS -b i486-linuxaout"
9952 cat >conftest.
$ac_ext <<_ACEOF
9955 cat confdefs.h
>>conftest.
$ac_ext
9956 cat >>conftest.
$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9962 XOpenDisplay ("foo");
9967 rm -f conftest.
$ac_objext conftest
$ac_exeext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9971 grep -v '^ *+' conftest.er1
>conftest.err
9973 cat conftest.err
>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try
='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try
='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 xlinux_second_failure
=no
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.
$ac_ext >&5
9994 xlinux_second_failure
=yes
9996 rm -f conftest.err conftest.
$ac_objext \
9997 conftest
$ac_exeext conftest.
$ac_ext
9998 if test "${xlinux_second_failure}" = "yes"; then
9999 # If we get the same failure with -b, there is no use adding -b.
10000 # So take it out. This plays safe.
10001 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10002 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10003 CPPFLAGS
="$OLD_CPPFLAGS"
10005 echo "$as_me:$LINENO: result: no" >&5
10006 echo "${ECHO_T}no" >&6
10008 echo "$as_me:$LINENO: result: yes" >&5
10009 echo "${ECHO_T}yes" >&6
10012 echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6
10017 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10018 # header files included from there.
10019 echo "$as_me:$LINENO: checking for Xkb" >&5
10020 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10021 cat >conftest.
$ac_ext <<_ACEOF
10024 cat confdefs.h
>>conftest.
$ac_ext
10025 cat >>conftest.
$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <X11/Xlib.h>
10028 #include <X11/XKBlib.h>
10032 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10037 rm -f conftest.
$ac_objext conftest
$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>conftest.er1
10041 grep -v '^ *+' conftest.er1
>conftest.err
10043 cat conftest.err
>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try
='test -z "$ac_c_werror_flag"
10047 || test ! -s conftest.err'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try
='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.
$ac_ext >&5
10066 rm -f conftest.err conftest.
$ac_objext \
10067 conftest
$ac_exeext conftest.
$ac_ext
10068 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10069 echo "${ECHO_T}$emacs_xkb" >&6
10070 if test $emacs_xkb = yes; then
10072 cat >>confdefs.h
<<\_ACEOF
10073 #define HAVE_XKBGETKEYBOARD 1
10082 for ac_func
in XrmSetDatabase XScreenResourceString \
10083 XScreenNumberOfScreen XSetWMProtocols
10085 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10086 echo "$as_me:$LINENO: checking for $ac_func" >&5
10087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10088 if eval "test \"\${$as_ac_var+set}\" = set"; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 cat >conftest.
$ac_ext <<_ACEOF
10094 cat confdefs.h
>>conftest.
$ac_ext
10095 cat >>conftest.
$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10099 #define $ac_func innocuous_$ac_func
10101 /* System header to define __stub macros and hopefully few prototypes,
10102 which can conflict with char $ac_func (); below.
10103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10104 <limits.h> exists even on freestanding compilers. */
10107 # include <limits.h>
10109 # include <assert.h>
10114 /* Override any gcc2 internal prototype to avoid an error. */
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10122 /* The GNU C library defines this for functions which it implements
10123 to always fail with ENOSYS. Some functions are actually named
10124 something starting with __ and the normal name is an alias. */
10125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10128 char (*f) () = $ac_func;
10137 return f != $ac_func;
10142 rm -f conftest.
$ac_objext conftest
$ac_exeext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>conftest.er1
10146 grep -v '^ *+' conftest.er1
>conftest.err
10148 cat conftest.err
>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try
='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try
='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 eval "$as_ac_var=yes"
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.
$ac_ext >&5
10169 eval "$as_ac_var=no"
10171 rm -f conftest.err conftest.
$ac_objext \
10172 conftest
$ac_exeext conftest.
$ac_ext
10174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10176 if test `eval echo '${'$as_ac_var'}'` = yes; then
10177 cat >>confdefs.h
<<_ACEOF
10178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10186 if test "${window_system}" = "x11"; then
10187 echo "$as_me:$LINENO: checking X11 version 6" >&5
10188 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10189 if test "${emacs_cv_x11_version_6+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.
$ac_ext <<_ACEOF
10195 cat confdefs.h
>>conftest.
$ac_ext
10196 cat >>conftest.
$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 #include <X11/Xlib.h>
10202 #if XlibSpecificationRelease < 6
10210 rm -f conftest.
$ac_objext conftest
$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212 (eval $ac_link) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1
>conftest.err
10216 cat conftest.err
>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try
='test -z "$ac_c_werror_flag"
10220 || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try
='test -s conftest$ac_exeext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 emacs_cv_x11_version_6
=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.
$ac_ext >&5
10237 emacs_cv_x11_version_6
=no
10239 rm -f conftest.err conftest.
$ac_objext \
10240 conftest
$ac_exeext conftest.
$ac_ext
10243 if test $emacs_cv_x11_version_6 = yes; then
10244 echo "$as_me:$LINENO: result: 6 or newer" >&5
10245 echo "${ECHO_T}6 or newer" >&6
10247 cat >>confdefs.h
<<\_ACEOF
10248 #define HAVE_X11R6 1
10252 echo "$as_me:$LINENO: result: before 6" >&5
10253 echo "${ECHO_T}before 6" >&6
10257 if test "${window_system}" = "x11"; then
10258 echo "$as_me:$LINENO: checking X11 version 5" >&5
10259 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10260 if test "${emacs_cv_x11_version_5+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 cat >conftest.
$ac_ext <<_ACEOF
10266 cat confdefs.h
>>conftest.
$ac_ext
10267 cat >>conftest.
$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 #include <X11/Xlib.h>
10273 #if XlibSpecificationRelease < 5
10281 rm -f conftest.
$ac_objext conftest
$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1
>conftest.err
10287 cat conftest.err
>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try
='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try
='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 emacs_cv_x11_version_5
=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.
$ac_ext >&5
10308 emacs_cv_x11_version_5
=no
10310 rm -f conftest.err conftest.
$ac_objext \
10311 conftest
$ac_exeext conftest.
$ac_ext
10314 if test $emacs_cv_x11_version_5 = yes; then
10315 echo "$as_me:$LINENO: result: 5 or newer" >&5
10316 echo "${ECHO_T}5 or newer" >&6
10319 cat >>confdefs.h
<<\_ACEOF
10320 #define HAVE_X11R5 1
10325 echo "$as_me:$LINENO: result: before 5" >&5
10326 echo "${ECHO_T}before 5" >&6
10331 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10332 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10333 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10334 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10335 { (exit 1); exit 1; }; };
10339 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10341 if test "X${with_pkg_config_prog}" != X
; then
10342 PKG_CONFIG
="${with_pkg_config_prog}"
10347 if test -z "$PKG_CONFIG"; then
10348 # Extract the first word of "pkg-config", so it can be a program name with args.
10349 set dummy pkg-config
; ac_word
=$2
10350 echo "$as_me:$LINENO: checking for $ac_word" >&5
10351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10352 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 case $PKG_CONFIG in
10357 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10361 for as_dir
in $PATH
10364 test -z "$as_dir" && as_dir
=.
10365 for ac_exec_ext
in '' $ac_executable_extensions; do
10366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10378 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10380 if test -n "$PKG_CONFIG"; then
10381 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10382 echo "${ECHO_T}$PKG_CONFIG" >&6
10384 echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6
10390 if test "$PKG_CONFIG" = "no" ; then
10391 { { echo "$as_me:$LINENO: error:
10392 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10393 echo "$as_me: error:
10394 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10395 { (exit 1); exit 1; }; }
10397 PKG_CONFIG_MIN_VERSION
=0.9.0
10398 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10399 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10400 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10402 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10403 echo "$as_me:$LINENO: result: yes" >&5
10404 echo "${ECHO_T}yes" >&6
10407 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10408 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10409 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10410 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10411 echo "${ECHO_T}$GTK_CFLAGS" >&6
10413 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10414 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10415 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10416 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10417 echo "${ECHO_T}$GTK_LIBS" >&6
10419 echo "$as_me:$LINENO: result: no" >&5
10420 echo "${ECHO_T}no" >&6
10423 ## If we have a custom action on failure, don't print errors, but
10424 ## do set a variable so people can do so.
10425 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10426 echo $GTK_PKG_ERRORS
10432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10437 if test $succeeded = yes; then
10440 { { 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
10441 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;}
10442 { (exit 1); exit 1; }; }
10447 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10448 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10449 LIBS
="$GTK_LIBS $LIBS"
10452 cat >>confdefs.h
<<\_ACEOF
10458 if test "$with_toolkit_scroll_bars" != no
; then
10459 with_toolkit_scroll_bars
=yes
10462 HAVE_GTK_MULTIDISPLAY
=no
10464 for ac_func
in gdk_display_open
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_MULTIDISPLAY
=yes
10565 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10567 cat >>confdefs.h
<<\_ACEOF
10568 #define HAVE_GTK_MULTIDISPLAY 1
10572 HAVE_GTK_FILE_SELECTION
=no
10574 for ac_func
in gtk_file_selection_new
10576 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10577 echo "$as_me:$LINENO: checking for $ac_func" >&5
10578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10579 if eval "test \"\${$as_ac_var+set}\" = set"; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 cat >conftest.
$ac_ext <<_ACEOF
10585 cat confdefs.h
>>conftest.
$ac_ext
10586 cat >>conftest.
$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10590 #define $ac_func innocuous_$ac_func
10592 /* System header to define __stub macros and hopefully few prototypes,
10593 which can conflict with char $ac_func (); below.
10594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595 <limits.h> exists even on freestanding compilers. */
10598 # include <limits.h>
10600 # include <assert.h>
10605 /* Override any gcc2 internal prototype to avoid an error. */
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10613 /* The GNU C library defines this for functions which it implements
10614 to always fail with ENOSYS. Some functions are actually named
10615 something starting with __ and the normal name is an alias. */
10616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10619 char (*f) () = $ac_func;
10628 return f != $ac_func;
10633 rm -f conftest.
$ac_objext conftest
$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>conftest.er1
10637 grep -v '^ *+' conftest.er1
>conftest.err
10639 cat conftest.err
>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try
='test -z "$ac_c_werror_flag"
10643 || test ! -s conftest.err'
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); }; } &&
10649 { ac_try
='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 eval "$as_ac_var=yes"
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.
$ac_ext >&5
10660 eval "$as_ac_var=no"
10662 rm -f conftest.err conftest.
$ac_objext \
10663 conftest
$ac_exeext conftest.
$ac_ext
10665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10667 if test `eval echo '${'$as_ac_var'}'` = yes; then
10668 cat >>confdefs.h
<<_ACEOF
10669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10671 HAVE_GTK_FILE_SELECTION
=yes
10676 HAVE_GTK_FILE_CHOOSER
=no
10678 for ac_func
in gtk_file_chooser_dialog_new
10680 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10681 echo "$as_me:$LINENO: checking for $ac_func" >&5
10682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10683 if eval "test \"\${$as_ac_var+set}\" = set"; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 cat >conftest.
$ac_ext <<_ACEOF
10689 cat confdefs.h
>>conftest.
$ac_ext
10690 cat >>conftest.
$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10694 #define $ac_func innocuous_$ac_func
10696 /* System header to define __stub macros and hopefully few prototypes,
10697 which can conflict with char $ac_func (); below.
10698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10699 <limits.h> exists even on freestanding compilers. */
10702 # include <limits.h>
10704 # include <assert.h>
10709 /* Override any gcc2 internal prototype to avoid an error. */
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10717 /* The GNU C library defines this for functions which it implements
10718 to always fail with ENOSYS. Some functions are actually named
10719 something starting with __ and the normal name is an alias. */
10720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10723 char (*f) () = $ac_func;
10732 return f != $ac_func;
10737 rm -f conftest.
$ac_objext conftest
$ac_exeext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739 (eval $ac_link) 2>conftest.er1
10741 grep -v '^ *+' conftest.er1
>conftest.err
10743 cat conftest.err
>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try
='test -z "$ac_c_werror_flag"
10747 || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try
='test -s conftest$ac_exeext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 eval "$as_ac_var=yes"
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.
$ac_ext >&5
10764 eval "$as_ac_var=no"
10766 rm -f conftest.err conftest.
$ac_objext \
10767 conftest
$ac_exeext conftest.
$ac_ext
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10771 if test `eval echo '${'$as_ac_var'}'` = yes; then
10772 cat >>confdefs.h
<<_ACEOF
10773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10775 HAVE_GTK_FILE_CHOOSER
=yes
10780 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10781 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10783 cat >>confdefs.h
<<\_ACEOF
10784 #define HAVE_GTK_FILE_BOTH 1
10789 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10790 HAVE_GTK_AND_PTHREAD
=no
10792 for ac_header
in pthread.h
10794 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796 echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10804 # Is the header compilable?
10805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10807 cat >conftest.
$ac_ext <<_ACEOF
10810 cat confdefs.h
>>conftest.
$ac_ext
10811 cat >>conftest.
$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 $ac_includes_default
10814 #include <$ac_header>
10816 rm -f conftest.
$ac_objext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818 (eval $ac_compile) 2>conftest.er1
10820 grep -v '^ *+' conftest.er1
>conftest.err
10822 cat conftest.err
>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try
='test -z "$ac_c_werror_flag"
10826 || test ! -s conftest.err'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try
='test -s conftest.$ac_objext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }; then
10838 ac_header_compiler
=yes
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.
$ac_ext >&5
10843 ac_header_compiler
=no
10845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10847 echo "${ECHO_T}$ac_header_compiler" >&6
10849 # Is the header present?
10850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10852 cat >conftest.
$ac_ext <<_ACEOF
10855 cat confdefs.h
>>conftest.
$ac_ext
10856 cat >>conftest.
$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 #include <$ac_header>
10860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10861 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10863 grep -v '^ *+' conftest.er1
>conftest.err
10865 cat conftest.err
>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } >/dev
/null
; then
10868 if test -s conftest.err
; then
10869 ac_cpp_err
=$ac_c_preproc_warn_flag
10870 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10877 if test -z "$ac_cpp_err"; then
10878 ac_header_preproc
=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.
$ac_ext >&5
10883 ac_header_preproc
=no
10885 rm -f conftest.err conftest.
$ac_ext
10886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10887 echo "${ECHO_T}$ac_header_preproc" >&6
10889 # So? What about this header?
10890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10896 ac_header_preproc
=yes
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10913 ## ------------------------------------------ ##
10914 ## Report this to the AC_PACKAGE_NAME lists. ##
10915 ## ------------------------------------------ ##
10918 sed "s/^/$as_me: WARNING: /" >&2
10921 echo "$as_me:$LINENO: checking for $ac_header" >&5
10922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 eval "$as_ac_Header=\$ac_header_preproc"
10928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10933 cat >>confdefs.h
<<_ACEOF
10934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10941 if test "$ac_cv_header_pthread_h"; then
10942 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10943 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10944 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 ac_check_lib_save_LIBS
=$LIBS
10948 LIBS
="-lpthread $LIBS"
10949 cat >conftest.
$ac_ext <<_ACEOF
10952 cat confdefs.h
>>conftest.
$ac_ext
10953 cat >>conftest.
$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10956 /* Override any gcc2 internal prototype to avoid an error. */
10960 /* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10962 char pthread_self ();
10971 rm -f conftest.
$ac_objext conftest
$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>conftest.er1
10975 grep -v '^ *+' conftest.er1
>conftest.err
10977 cat conftest.err
>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try
='test -z "$ac_c_werror_flag"
10981 || test ! -s conftest.err'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try
='test -s conftest$ac_exeext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_cv_lib_pthread_pthread_self
=yes
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.
$ac_ext >&5
10998 ac_cv_lib_pthread_pthread_self
=no
11000 rm -f conftest.err conftest.
$ac_objext \
11001 conftest
$ac_exeext conftest.
$ac_ext
11002 LIBS
=$ac_check_lib_save_LIBS
11004 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11006 if test $ac_cv_lib_pthread_pthread_self = yes; then
11007 HAVE_GTK_AND_PTHREAD
=yes
11011 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11012 GTK_LIBS
="$GTK_LIBS -lpthread"
11014 cat >>confdefs.h
<<\_ACEOF
11015 #define HAVE_GTK_AND_PTHREAD 1
11022 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11023 if test x
"${HAVE_X11R5}" = xyes
; then
11024 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11025 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11026 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.
$ac_ext <<_ACEOF
11032 cat confdefs.h
>>conftest.
$ac_ext
11033 cat >>conftest.
$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11036 #include <X11/Intrinsic.h>
11037 #include <X11/Xaw/Simple.h>
11046 rm -f conftest.
$ac_objext conftest
$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048 (eval $ac_link) 2>conftest.er1
11050 grep -v '^ *+' conftest.er1
>conftest.err
11052 cat conftest.err
>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try
='test -z "$ac_c_werror_flag"
11056 || test ! -s conftest.err'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try
='test -s conftest$ac_exeext'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 emacs_cv_x11_version_5_with_xaw
=yes
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.
$ac_ext >&5
11073 emacs_cv_x11_version_5_with_xaw
=no
11075 rm -f conftest.err conftest.
$ac_objext \
11076 conftest
$ac_exeext conftest.
$ac_ext
11079 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11080 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11081 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11082 USE_X_TOOLKIT
=LUCID
11084 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11085 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11093 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11095 if test "${USE_X_TOOLKIT}" != "none"; then
11096 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11097 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11098 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 cat >conftest.
$ac_ext <<_ACEOF
11104 cat confdefs.h
>>conftest.
$ac_ext
11105 cat >>conftest.
$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 #include <X11/Intrinsic.h>
11111 #if XtSpecificationRelease < 6
11119 rm -f conftest.
$ac_objext conftest
$ac_exeext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11121 (eval $ac_link) 2>conftest.er1
11123 grep -v '^ *+' conftest.er1
>conftest.err
11125 cat conftest.err
>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try
='test -z "$ac_c_werror_flag"
11129 || test ! -s conftest.err'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; } &&
11135 { ac_try
='test -s conftest$ac_exeext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 emacs_cv_x11_toolkit_version_6
=yes
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.
$ac_ext >&5
11146 emacs_cv_x11_toolkit_version_6
=no
11148 rm -f conftest.err conftest.
$ac_objext \
11149 conftest
$ac_exeext conftest.
$ac_ext
11152 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11153 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11154 echo "$as_me:$LINENO: result: 6 or newer" >&5
11155 echo "${ECHO_T}6 or newer" >&6
11157 cat >>confdefs.h
<<\_ACEOF
11158 #define HAVE_X11XTR6 1
11162 echo "$as_me:$LINENO: result: before 6" >&5
11163 echo "${ECHO_T}before 6" >&6
11167 if test x
$HAVE_X11XTR6 = xyes
; then
11168 LIBS
="-lXt -lSM -lICE $LIBS"
11173 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11174 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11175 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 ac_check_lib_save_LIBS
=$LIBS
11180 cat >conftest.
$ac_ext <<_ACEOF
11183 cat confdefs.h
>>conftest.
$ac_ext
11184 cat >>conftest.
$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11187 /* Override any gcc2 internal prototype to avoid an error. */
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193 char XmuConvertStandardSelection ();
11197 XmuConvertStandardSelection ();
11202 rm -f conftest.
$ac_objext conftest
$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>conftest.er1
11206 grep -v '^ *+' conftest.er1
>conftest.err
11208 cat conftest.err
>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try
='test -z "$ac_c_werror_flag"
11212 || test ! -s conftest.err'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
11218 { ac_try
='test -s conftest$ac_exeext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.
$ac_ext >&5
11229 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11231 rm -f conftest.err conftest.
$ac_objext \
11232 conftest
$ac_exeext conftest.
$ac_ext
11233 LIBS
=$ac_check_lib_save_LIBS
11235 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11236 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11237 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11238 cat >>confdefs.h
<<_ACEOF
11239 #define HAVE_LIBXMU 1
11246 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11249 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11250 if test "${HAVE_X11}" = "yes"; then
11251 if test "${USE_X_TOOLKIT}" != "none"; then
11253 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11254 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11255 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 ac_check_lib_save_LIBS
=$LIBS
11259 LIBS
="-lXext $LIBS"
11260 cat >conftest.
$ac_ext <<_ACEOF
11263 cat confdefs.h
>>conftest.
$ac_ext
11264 cat >>conftest.
$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11267 /* Override any gcc2 internal prototype to avoid an error. */
11271 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */
11273 char XShapeQueryExtension ();
11277 XShapeQueryExtension ();
11282 rm -f conftest.
$ac_objext conftest
$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>conftest.er1
11286 grep -v '^ *+' conftest.er1
>conftest.err
11288 cat conftest.err
>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try
='test -z "$ac_c_werror_flag"
11292 || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try
='test -s conftest$ac_exeext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.
$ac_ext >&5
11309 ac_cv_lib_Xext_XShapeQueryExtension
=no
11311 rm -f conftest.err conftest.
$ac_objext \
11312 conftest
$ac_exeext conftest.
$ac_ext
11313 LIBS
=$ac_check_lib_save_LIBS
11315 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11316 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11317 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11318 cat >>confdefs.h
<<_ACEOF
11319 #define HAVE_LIBXEXT 1
11322 LIBS
="-lXext $LIBS"
11329 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11330 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11331 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11332 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 cat >conftest.
$ac_ext <<_ACEOF
11338 cat confdefs.h
>>conftest.
$ac_ext
11339 cat >>conftest.
$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11345 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11348 Motif version prior to 2.1.
11354 rm -f conftest.
$ac_objext
11355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11356 (eval $ac_compile) 2>conftest.er1
11358 grep -v '^ *+' conftest.er1
>conftest.err
11360 cat conftest.err
>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try
='test -z "$ac_c_werror_flag"
11364 || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try
='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 emacs_cv_motif_version_2_1
=yes
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.
$ac_ext >&5
11381 emacs_cv_motif_version_2_1
=no
11383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11385 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11386 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11387 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11388 if test $emacs_cv_motif_version_2_1 = yes; then
11391 cat >>confdefs.h
<<\_ACEOF
11392 #define HAVE_MOTIF_2_1 1
11395 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11396 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11397 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 ac_check_lib_save_LIBS
=$LIBS
11402 cat >conftest.
$ac_ext <<_ACEOF
11405 cat confdefs.h
>>conftest.
$ac_ext
11406 cat >>conftest.
$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11409 /* Override any gcc2 internal prototype to avoid an error. */
11413 /* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11415 char XpCreateContext ();
11419 XpCreateContext ();
11424 rm -f conftest.
$ac_objext conftest
$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>conftest.er1
11428 grep -v '^ *+' conftest.er1
>conftest.err
11430 cat conftest.err
>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try
='test -z "$ac_c_werror_flag"
11434 || test ! -s conftest.err'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try
='test -s conftest$ac_exeext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_cv_lib_Xp_XpCreateContext
=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.
$ac_ext >&5
11451 ac_cv_lib_Xp_XpCreateContext
=no
11453 rm -f conftest.err conftest.
$ac_objext \
11454 conftest
$ac_exeext conftest.
$ac_ext
11455 LIBS
=$ac_check_lib_save_LIBS
11457 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11458 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11459 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11463 if test ${HAVE_LIBXP} = yes; then
11465 cat >>confdefs.h
<<\_ACEOF
11466 #define HAVE_LIBXP 1
11471 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11472 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11473 if test "${emacs_cv_lesstif+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 # We put this in CFLAGS temporarily to precede other -I options
11477 # that might be in CFLAGS temporarily.
11478 # We put this in CPPFLAGS where it precedes the other -I options.
11479 OLD_CPPFLAGS
=$CPPFLAGS
11481 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11482 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11483 cat >conftest.
$ac_ext <<_ACEOF
11486 cat confdefs.h
>>conftest.
$ac_ext
11487 cat >>conftest.
$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11498 rm -f conftest.
$ac_objext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500 (eval $ac_compile) 2>conftest.er1
11502 grep -v '^ *+' conftest.er1
>conftest.err
11504 cat conftest.err
>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try
='test -z "$ac_c_werror_flag"
11508 || test ! -s conftest.err'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try
='test -s conftest.$ac_objext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 emacs_cv_lesstif
=yes
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.
$ac_ext >&5
11525 emacs_cv_lesstif
=no
11527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11529 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11530 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11531 if test $emacs_cv_lesstif = yes; then
11532 # Make sure this -I option remains in CPPFLAGS after it is set
11533 # back to REAL_CPPFLAGS.
11534 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11535 # have those other -I options anyway. Ultimately, having this
11536 # directory ultimately in CPPFLAGS will be enough.
11537 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11538 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11541 CPPFLAGS
=$OLD_CPPFLAGS
11546 ### Is -lXaw3d available?
11548 if test "${HAVE_X11}" = "yes"; then
11549 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11550 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11551 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11552 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.
$ac_ext <<_ACEOF
11558 cat confdefs.h
>>conftest.
$ac_ext
11559 cat >>conftest.
$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <X11/Xaw3d/Scrollbar.h>
11563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11564 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11566 grep -v '^ *+' conftest.er1
>conftest.err
11568 cat conftest.err
>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } >/dev
/null
; then
11571 if test -s conftest.err
; then
11572 ac_cpp_err
=$ac_c_preproc_warn_flag
11573 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11580 if test -z "$ac_cpp_err"; then
11581 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.
$ac_ext >&5
11586 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11588 rm -f conftest.err conftest.
$ac_ext
11590 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11591 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11592 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11593 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11594 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11595 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 ac_check_lib_save_LIBS
=$LIBS
11599 LIBS
="-lXaw3d $LIBS"
11600 cat >conftest.
$ac_ext <<_ACEOF
11603 cat confdefs.h
>>conftest.
$ac_ext
11604 cat >>conftest.
$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11607 /* Override any gcc2 internal prototype to avoid an error. */
11611 /* We use char because int might match the return type of a gcc2
11612 builtin and then its argument prototype would still apply. */
11613 char XawScrollbarSetThumb ();
11617 XawScrollbarSetThumb ();
11622 rm -f conftest.
$ac_objext conftest
$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624 (eval $ac_link) 2>conftest.er1
11626 grep -v '^ *+' conftest.er1
>conftest.err
11628 cat conftest.err
>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try
='test -z "$ac_c_werror_flag"
11632 || test ! -s conftest.err'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try
='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.
$ac_ext >&5
11649 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11651 rm -f conftest.err conftest.
$ac_objext \
11652 conftest
$ac_exeext conftest.
$ac_ext
11653 LIBS
=$ac_check_lib_save_LIBS
11655 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11656 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11657 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11664 if test "${HAVE_XAW3D}" = "yes"; then
11666 cat >>confdefs.h
<<\_ACEOF
11667 #define HAVE_XAW3D 1
11676 USE_TOOLKIT_SCROLL_BARS
=no
11677 if test "${with_toolkit_scroll_bars}" != "no"; then
11678 if test "${USE_X_TOOLKIT}" != "none"; then
11679 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11680 cat >>confdefs.h
<<\_ACEOF
11681 #define USE_TOOLKIT_SCROLL_BARS 1
11685 USE_TOOLKIT_SCROLL_BARS
=yes
11686 elif test "${HAVE_XAW3D}" = "yes"; then
11687 cat >>confdefs.h
<<\_ACEOF
11688 #define USE_TOOLKIT_SCROLL_BARS 1
11691 USE_TOOLKIT_SCROLL_BARS
=yes
11693 elif test "${HAVE_GTK}" = "yes"; then
11694 cat >>confdefs.h
<<\_ACEOF
11695 #define USE_TOOLKIT_SCROLL_BARS 1
11698 USE_TOOLKIT_SCROLL_BARS
=yes
11699 elif test "${HAVE_CARBON}" = "yes"; then
11700 cat >>confdefs.h
<<\_ACEOF
11701 #define USE_TOOLKIT_SCROLL_BARS 1
11704 USE_TOOLKIT_SCROLL_BARS
=yes
11708 cat >conftest.
$ac_ext <<_ACEOF
11711 cat confdefs.h
>>conftest.
$ac_ext
11712 cat >>conftest.
$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11715 #include <X11/Xlib.h>
11716 #include <X11/Xresource.h>
11725 rm -f conftest.
$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727 (eval $ac_compile) 2>conftest.er1
11729 grep -v '^ *+' conftest.er1
>conftest.err
11731 cat conftest.err
>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try
='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try
='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11749 cat >>confdefs.h
<<\_ACEOF
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.
$ac_ext >&5
11759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11762 if test "${with_xim}" != "no"; then
11764 cat >>confdefs.h
<<\_ACEOF
11771 if test "${HAVE_XIM}" != "no"; then
11772 late_CFLAGS
=$CFLAGS
11773 if test "$GCC" = yes; then
11774 CFLAGS
="$CFLAGS --pedantic-errors"
11776 cat >conftest.
$ac_ext <<_ACEOF
11779 cat confdefs.h
>>conftest.
$ac_ext
11780 cat >>conftest.
$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11783 #include <X11/Xlib.h>
11784 #include <X11/Xresource.h>
11793 XPointer *client_data;
11795 /* If we're not using GCC, it's probably not XFree86, and this is
11796 probably right, but we can't use something like --pedantic-errors. */
11797 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11798 char*, XIMProc, XPointer*);
11800 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11806 rm -f conftest.
$ac_objext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11808 (eval $ac_compile) 2>conftest.er1
11810 grep -v '^ *+' conftest.er1
>conftest.err
11812 cat conftest.err
>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try
='test -z "$ac_c_werror_flag"
11816 || test ! -s conftest.err'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try
='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 emacs_cv_arg6_star
=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.
$ac_ext >&5
11834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11836 if test "$emacs_cv_arg6_star" = yes; then
11837 cat >>confdefs.h
<<\_ACEOF
11838 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11842 cat >>confdefs.h
<<\_ACEOF
11843 #define XRegisterIMInstantiateCallback_arg6 XPointer
11847 CFLAGS
=$late_CFLAGS
11850 ### Use -lXpm if available, unless `--with-xpm=no'.
11852 if test "${HAVE_X11}" = "yes"; then
11853 if test "${with_xpm}" != "no"; then
11854 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11855 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11856 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11857 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11861 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11863 # Is the header compilable?
11864 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11865 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11866 cat >conftest.
$ac_ext <<_ACEOF
11869 cat confdefs.h
>>conftest.
$ac_ext
11870 cat >>conftest.
$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 $ac_includes_default
11873 #include <X11/xpm.h>
11875 rm -f conftest.
$ac_objext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877 (eval $ac_compile) 2>conftest.er1
11879 grep -v '^ *+' conftest.er1
>conftest.err
11881 cat conftest.err
>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try
='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try
='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_header_compiler
=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.
$ac_ext >&5
11902 ac_header_compiler
=no
11904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11906 echo "${ECHO_T}$ac_header_compiler" >&6
11908 # Is the header present?
11909 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11910 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11911 cat >conftest.
$ac_ext <<_ACEOF
11914 cat confdefs.h
>>conftest.
$ac_ext
11915 cat >>conftest.
$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 #include <X11/xpm.h>
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1
>conftest.err
11924 cat conftest.err
>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } >/dev
/null
; then
11927 if test -s conftest.err
; then
11928 ac_cpp_err
=$ac_c_preproc_warn_flag
11929 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11936 if test -z "$ac_cpp_err"; then
11937 ac_header_preproc
=yes
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.
$ac_ext >&5
11942 ac_header_preproc
=no
11944 rm -f conftest.err conftest.
$ac_ext
11945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11946 echo "${ECHO_T}$ac_header_preproc" >&6
11948 # So? What about this header?
11949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11951 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11952 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11954 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11955 ac_header_preproc
=yes
11958 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11959 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11961 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11963 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11965 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11967 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11969 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11972 ## ------------------------------------------ ##
11973 ## Report this to the AC_PACKAGE_NAME lists. ##
11974 ## ------------------------------------------ ##
11977 sed "s/^/$as_me: WARNING: /" >&2
11980 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11981 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11982 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11987 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11988 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11991 if test $ac_cv_header_X11_xpm_h = yes; then
11992 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11993 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11994 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 ac_check_lib_save_LIBS
=$LIBS
11998 LIBS
="-lXpm -lX11 $LIBS"
11999 cat >conftest.
$ac_ext <<_ACEOF
12002 cat confdefs.h
>>conftest.
$ac_ext
12003 cat >>conftest.
$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 /* Override any gcc2 internal prototype to avoid an error. */
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char XpmReadFileToPixmap ();
12016 XpmReadFileToPixmap ();
12021 rm -f conftest.
$ac_objext conftest
$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12025 grep -v '^ *+' conftest.er1
>conftest.err
12027 cat conftest.err
>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try
='test -z "$ac_c_werror_flag"
12031 || test ! -s conftest.err'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try
='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.
$ac_ext >&5
12048 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12050 rm -f conftest.err conftest.
$ac_objext \
12051 conftest
$ac_exeext conftest.
$ac_ext
12052 LIBS
=$ac_check_lib_save_LIBS
12054 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12055 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12056 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12063 if test "${HAVE_XPM}" = "yes"; then
12064 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12065 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12066 cat >conftest.
$ac_ext <<_ACEOF
12069 cat confdefs.h
>>conftest.
$ac_ext
12070 cat >>conftest.
$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 #include "X11/xpm.h"
12073 #ifndef XpmReturnAllocPixels
12074 no_return_alloc_pixels
12078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12087 if test "${HAVE_XPM}" = "yes"; then
12088 echo "$as_me:$LINENO: result: yes" >&5
12089 echo "${ECHO_T}yes" >&6
12091 echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12097 if test "${HAVE_XPM}" = "yes"; then
12099 cat >>confdefs.h
<<\_ACEOF
12106 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12108 if test "${HAVE_X11}" = "yes"; then
12109 if test "${with_jpeg}" != "no"; then
12110 if test "${ac_cv_header_jerror_h+set}" = set; then
12111 echo "$as_me:$LINENO: checking for jerror.h" >&5
12112 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12113 if test "${ac_cv_header_jerror_h+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12117 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12119 # Is the header compilable?
12120 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12121 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12122 cat >conftest.
$ac_ext <<_ACEOF
12125 cat confdefs.h
>>conftest.
$ac_ext
12126 cat >>conftest.
$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 $ac_includes_default
12129 #include <jerror.h>
12131 rm -f conftest.
$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12135 grep -v '^ *+' conftest.er1
>conftest.err
12137 cat conftest.err
>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try
='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try
='test -s conftest.$ac_objext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_header_compiler
=yes
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.
$ac_ext >&5
12158 ac_header_compiler
=no
12160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12162 echo "${ECHO_T}$ac_header_compiler" >&6
12164 # Is the header present?
12165 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12166 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12167 cat >conftest.
$ac_ext <<_ACEOF
12170 cat confdefs.h
>>conftest.
$ac_ext
12171 cat >>conftest.
$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <jerror.h>
12175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12176 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12178 grep -v '^ *+' conftest.er1
>conftest.err
12180 cat conftest.err
>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } >/dev
/null
; then
12183 if test -s conftest.err
; then
12184 ac_cpp_err
=$ac_c_preproc_warn_flag
12185 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12192 if test -z "$ac_cpp_err"; then
12193 ac_header_preproc
=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.
$ac_ext >&5
12198 ac_header_preproc
=no
12200 rm -f conftest.err conftest.
$ac_ext
12201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc
=yes
12214 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12228 ## ------------------------------------------ ##
12229 ## Report this to the AC_PACKAGE_NAME lists. ##
12230 ## ------------------------------------------ ##
12233 sed "s/^/$as_me: WARNING: /" >&2
12236 echo "$as_me:$LINENO: checking for jerror.h" >&5
12237 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12238 if test "${ac_cv_header_jerror_h+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 ac_cv_header_jerror_h
=$ac_header_preproc
12243 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12244 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12247 if test $ac_cv_header_jerror_h = yes; then
12248 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12249 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12250 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 ac_check_lib_save_LIBS
=$LIBS
12254 LIBS
="-ljpeg $LIBS"
12255 cat >conftest.
$ac_ext <<_ACEOF
12258 cat confdefs.h
>>conftest.
$ac_ext
12259 cat >>conftest.
$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 /* Override any gcc2 internal prototype to avoid an error. */
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12268 char jpeg_destroy_compress ();
12272 jpeg_destroy_compress ();
12277 rm -f conftest.
$ac_objext conftest
$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>conftest.er1
12281 grep -v '^ *+' conftest.er1
>conftest.err
12283 cat conftest.err
>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try
='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try
='test -s conftest$ac_exeext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.
$ac_ext >&5
12304 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12306 rm -f conftest.err conftest.
$ac_objext \
12307 conftest
$ac_exeext conftest.
$ac_ext
12308 LIBS
=$ac_check_lib_save_LIBS
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12311 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12312 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12322 if test "${HAVE_JPEG}" = "yes"; then
12323 cat >>confdefs.h
<<\_ACEOF
12324 #define HAVE_JPEG 1
12327 cat >conftest.
$ac_ext <<_ACEOF
12330 cat confdefs.h
>>conftest.
$ac_ext
12331 cat >>conftest.
$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <jpeglib.h>
12334 version=JPEG_LIB_VERSION
12337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12338 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12339 cat >>confdefs.h
<<\_ACEOF
12340 #define HAVE_JPEG 1
12344 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12345 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12353 ### Use -lpng if available, unless `--with-png=no'.
12355 if test "${HAVE_X11}" = "yes"; then
12356 if test "${with_png}" != "no"; then
12357 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12358 # in /usr/include/libpng.
12361 for ac_header
in png.h libpng
/png.h
12363 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12365 echo "$as_me:$LINENO: checking for $ac_header" >&5
12366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12373 # Is the header compilable?
12374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12376 cat >conftest.
$ac_ext <<_ACEOF
12379 cat confdefs.h
>>conftest.
$ac_ext
12380 cat >>conftest.
$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 $ac_includes_default
12383 #include <$ac_header>
12385 rm -f conftest.
$ac_objext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>conftest.er1
12389 grep -v '^ *+' conftest.er1
>conftest.err
12391 cat conftest.err
>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try
='test -z "$ac_c_werror_flag"
12395 || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try
='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_header_compiler
=yes
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.
$ac_ext >&5
12412 ac_header_compiler
=no
12414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12416 echo "${ECHO_T}$ac_header_compiler" >&6
12418 # Is the header present?
12419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12421 cat >conftest.
$ac_ext <<_ACEOF
12424 cat confdefs.h
>>conftest.
$ac_ext
12425 cat >>conftest.
$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 #include <$ac_header>
12429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12432 grep -v '^ *+' conftest.er1
>conftest.err
12434 cat conftest.err
>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } >/dev
/null
; then
12437 if test -s conftest.err
; then
12438 ac_cpp_err
=$ac_c_preproc_warn_flag
12439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12446 if test -z "$ac_cpp_err"; then
12447 ac_header_preproc
=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.
$ac_ext >&5
12452 ac_header_preproc
=no
12454 rm -f conftest.err conftest.
$ac_ext
12455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12456 echo "${ECHO_T}$ac_header_preproc" >&6
12458 # So? What about this header?
12459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12465 ac_header_preproc
=yes
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12482 ## ------------------------------------------ ##
12483 ## Report this to the AC_PACKAGE_NAME lists. ##
12484 ## ------------------------------------------ ##
12487 sed "s/^/$as_me: WARNING: /" >&2
12490 echo "$as_me:$LINENO: checking for $ac_header" >&5
12491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 eval "$as_ac_Header=\$ac_header_preproc"
12497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12502 cat >>confdefs.h
<<_ACEOF
12503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12510 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12511 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12512 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12513 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 ac_check_lib_save_LIBS
=$LIBS
12517 LIBS
="-lpng -lz -lm $LIBS"
12518 cat >conftest.
$ac_ext <<_ACEOF
12521 cat confdefs.h
>>conftest.
$ac_ext
12522 cat >>conftest.
$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 /* Override any gcc2 internal prototype to avoid an error. */
12529 /* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12531 char png_get_channels ();
12535 png_get_channels ();
12540 rm -f conftest.
$ac_objext conftest
$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542 (eval $ac_link) 2>conftest.er1
12544 grep -v '^ *+' conftest.er1
>conftest.err
12546 cat conftest.err
>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try
='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try
='test -s conftest$ac_exeext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_lib_png_png_get_channels
=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.
$ac_ext >&5
12567 ac_cv_lib_png_png_get_channels
=no
12569 rm -f conftest.err conftest.
$ac_objext \
12570 conftest
$ac_exeext conftest.
$ac_ext
12571 LIBS
=$ac_check_lib_save_LIBS
12573 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12574 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12575 if test $ac_cv_lib_png_png_get_channels = yes; then
12582 if test "${HAVE_PNG}" = "yes"; then
12584 cat >>confdefs.h
<<\_ACEOF
12591 ### Use -ltiff if available, unless `--with-tiff=no'.
12593 if test "${HAVE_X11}" = "yes"; then
12594 if test "${with_tiff}" != "no"; then
12595 if test "${ac_cv_header_tiffio_h+set}" = set; then
12596 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12597 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12598 if test "${ac_cv_header_tiffio_h+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12602 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12604 # Is the header compilable?
12605 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12606 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12607 cat >conftest.
$ac_ext <<_ACEOF
12610 cat confdefs.h
>>conftest.
$ac_ext
12611 cat >>conftest.
$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12613 $ac_includes_default
12614 #include <tiffio.h>
12616 rm -f conftest.
$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12620 grep -v '^ *+' conftest.er1
>conftest.err
12622 cat conftest.err
>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try
='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try
='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_header_compiler
=yes
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.
$ac_ext >&5
12643 ac_header_compiler
=no
12645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12647 echo "${ECHO_T}$ac_header_compiler" >&6
12649 # Is the header present?
12650 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12651 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12652 cat >conftest.
$ac_ext <<_ACEOF
12655 cat confdefs.h
>>conftest.
$ac_ext
12656 cat >>conftest.
$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 #include <tiffio.h>
12660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12663 grep -v '^ *+' conftest.er1
>conftest.err
12665 cat conftest.err
>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } >/dev
/null
; then
12668 if test -s conftest.err
; then
12669 ac_cpp_err
=$ac_c_preproc_warn_flag
12670 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12677 if test -z "$ac_cpp_err"; then
12678 ac_header_preproc
=yes
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.
$ac_ext >&5
12683 ac_header_preproc
=no
12685 rm -f conftest.err conftest.
$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12687 echo "${ECHO_T}$ac_header_preproc" >&6
12689 # So? What about this header?
12690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12692 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12693 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12695 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12696 ac_header_preproc
=yes
12699 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12700 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12701 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12702 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12703 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12704 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12705 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12706 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12708 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12710 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12713 ## ------------------------------------------ ##
12714 ## Report this to the AC_PACKAGE_NAME lists. ##
12715 ## ------------------------------------------ ##
12718 sed "s/^/$as_me: WARNING: /" >&2
12721 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12722 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12723 if test "${ac_cv_header_tiffio_h+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 ac_cv_header_tiffio_h
=$ac_header_preproc
12728 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12729 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12732 if test $ac_cv_header_tiffio_h = yes; then
12734 # At least one tiff package requires the jpeg library.
12735 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12736 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12737 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 ac_check_lib_save_LIBS
=$LIBS
12742 LIBS
="-ltiff $tifflibs $LIBS"
12743 cat >conftest.
$ac_ext <<_ACEOF
12746 cat confdefs.h
>>conftest.
$ac_ext
12747 cat >>conftest.
$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any gcc2 internal prototype to avoid an error. */
12754 /* We use char because int might match the return type of a gcc2
12755 builtin and then its argument prototype would still apply. */
12756 char TIFFGetVersion ();
12765 rm -f conftest.
$ac_objext conftest
$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>conftest.er1
12769 grep -v '^ *+' conftest.er1
>conftest.err
12771 cat conftest.err
>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try
='test -z "$ac_c_werror_flag"
12775 || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try
='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_cv_lib_tiff_TIFFGetVersion
=yes
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.
$ac_ext >&5
12792 ac_cv_lib_tiff_TIFFGetVersion
=no
12794 rm -f conftest.err conftest.
$ac_objext \
12795 conftest
$ac_exeext conftest.
$ac_ext
12796 LIBS
=$ac_check_lib_save_LIBS
12798 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12799 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12800 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12809 if test "${HAVE_TIFF}" = "yes"; then
12811 cat >>confdefs.h
<<\_ACEOF
12812 #define HAVE_TIFF 1
12818 ### Use -lgif if available, unless `--with-gif=no'.
12820 if test "${HAVE_X11}" = "yes"; then
12821 if test "${with_gif}" != "no"; then
12822 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12823 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12824 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12825 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12829 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12831 # Is the header compilable?
12832 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12833 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12834 cat >conftest.
$ac_ext <<_ACEOF
12837 cat confdefs.h
>>conftest.
$ac_ext
12838 cat >>conftest.
$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 $ac_includes_default
12841 #include <gif_lib.h>
12843 rm -f conftest.
$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>conftest.er1
12847 grep -v '^ *+' conftest.er1
>conftest.err
12849 cat conftest.err
>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try
='test -z "$ac_c_werror_flag"
12853 || test ! -s conftest.err'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try
='test -s conftest.$ac_objext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_header_compiler
=yes
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.
$ac_ext >&5
12870 ac_header_compiler
=no
12872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874 echo "${ECHO_T}$ac_header_compiler" >&6
12876 # Is the header present?
12877 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12878 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12879 cat >conftest.
$ac_ext <<_ACEOF
12882 cat confdefs.h
>>conftest.
$ac_ext
12883 cat >>conftest.
$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <gif_lib.h>
12887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12888 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12890 grep -v '^ *+' conftest.er1
>conftest.err
12892 cat conftest.err
>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev
/null
; then
12895 if test -s conftest.err
; then
12896 ac_cpp_err
=$ac_c_preproc_warn_flag
12897 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12904 if test -z "$ac_cpp_err"; then
12905 ac_header_preproc
=yes
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.
$ac_ext >&5
12910 ac_header_preproc
=no
12912 rm -f conftest.err conftest.
$ac_ext
12913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12914 echo "${ECHO_T}$ac_header_preproc" >&6
12916 # So? What about this header?
12917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12919 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12920 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12922 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12923 ac_header_preproc
=yes
12926 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12927 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12929 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12931 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12933 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12935 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12936 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12937 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12940 ## ------------------------------------------ ##
12941 ## Report this to the AC_PACKAGE_NAME lists. ##
12942 ## ------------------------------------------ ##
12945 sed "s/^/$as_me: WARNING: /" >&2
12948 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12949 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12950 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 ac_cv_header_gif_lib_h
=$ac_header_preproc
12955 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12956 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12959 if test $ac_cv_header_gif_lib_h = yes; then
12960 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12961 # Earlier versions can crash Emacs.
12962 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12963 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12964 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 ac_check_lib_save_LIBS
=$LIBS
12968 LIBS
="-lungif $LIBS"
12969 cat >conftest.
$ac_ext <<_ACEOF
12972 cat confdefs.h
>>conftest.
$ac_ext
12973 cat >>conftest.
$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12976 /* Override any gcc2 internal prototype to avoid an error. */
12980 /* We use char because int might match the return type of a gcc2
12981 builtin and then its argument prototype would still apply. */
12982 char EGifPutExtensionLast ();
12986 EGifPutExtensionLast ();
12991 rm -f conftest.
$ac_objext conftest
$ac_exeext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12993 (eval $ac_link) 2>conftest.er1
12995 grep -v '^ *+' conftest.er1
>conftest.err
12997 cat conftest.err
>&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try
='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try
='test -s conftest$ac_exeext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.
$ac_ext >&5
13018 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13020 rm -f conftest.err conftest.
$ac_objext \
13021 conftest
$ac_exeext conftest.
$ac_ext
13022 LIBS
=$ac_check_lib_save_LIBS
13024 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13025 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13026 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13035 if test "${HAVE_GIF}" = "yes"; then
13037 cat >>confdefs.h
<<\_ACEOF
13044 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13045 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13046 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13047 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13051 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13053 # Is the header compilable?
13054 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13055 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13056 cat >conftest.
$ac_ext <<_ACEOF
13059 cat confdefs.h
>>conftest.
$ac_ext
13060 cat >>conftest.
$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13063 #include <malloc/malloc.h>
13065 rm -f conftest.
$ac_objext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 (eval $ac_compile) 2>conftest.er1
13069 grep -v '^ *+' conftest.er1
>conftest.err
13071 cat conftest.err
>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try
='test -z "$ac_c_werror_flag"
13075 || test ! -s conftest.err'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try
='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_header_compiler
=yes
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.
$ac_ext >&5
13092 ac_header_compiler
=no
13094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13096 echo "${ECHO_T}$ac_header_compiler" >&6
13098 # Is the header present?
13099 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13100 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13101 cat >conftest.
$ac_ext <<_ACEOF
13104 cat confdefs.h
>>conftest.
$ac_ext
13105 cat >>conftest.
$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 #include <malloc/malloc.h>
13109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13112 grep -v '^ *+' conftest.er1
>conftest.err
13114 cat conftest.err
>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } >/dev
/null
; then
13117 if test -s conftest.err
; then
13118 ac_cpp_err
=$ac_c_preproc_warn_flag
13119 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13126 if test -z "$ac_cpp_err"; then
13127 ac_header_preproc
=yes
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.
$ac_ext >&5
13132 ac_header_preproc
=no
13134 rm -f conftest.err conftest.
$ac_ext
13135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13136 echo "${ECHO_T}$ac_header_preproc" >&6
13138 # So? What about this header?
13139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13141 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13142 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13144 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13145 ac_header_preproc
=yes
13148 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13149 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13151 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13153 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13155 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13157 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13159 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13162 ## ------------------------------------------ ##
13163 ## Report this to the AC_PACKAGE_NAME lists. ##
13164 ## ------------------------------------------ ##
13167 sed "s/^/$as_me: WARNING: /" >&2
13170 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13171 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13172 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13177 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13178 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13181 if test $ac_cv_header_malloc_malloc_h = yes; then
13183 cat >>confdefs.h
<<\_ACEOF
13184 #define HAVE_MALLOC_MALLOC_H 1
13191 ### Use Mac OS X Carbon API to implement GUI.
13192 if test "${HAVE_CARBON}" = "yes"; then
13194 cat >>confdefs.h
<<\_ACEOF
13195 #define HAVE_CARBON 1
13198 ## Specify the install directory
13200 if test "${carbon_appdir_x}" != ""; then
13201 case ${carbon_appdir_x} in
13202 y | ye |
yes) carbon_appdir
=/Applications
;;
13203 * ) carbon_appdir
=${carbon_appdir_x} ;;
13206 # We also have mouse menus.
13210 ### Use session management (-lSM -lICE) if available
13212 if test "${HAVE_X11}" = "yes"; then
13213 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13214 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13215 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13216 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13220 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13222 # Is the header compilable?
13223 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13224 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13225 cat >conftest.
$ac_ext <<_ACEOF
13228 cat confdefs.h
>>conftest.
$ac_ext
13229 cat >>conftest.
$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 #include <X11/SM/SMlib.h>
13234 rm -f conftest.
$ac_objext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13238 grep -v '^ *+' conftest.er1
>conftest.err
13240 cat conftest.err
>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try
='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try
='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_header_compiler
=yes
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.
$ac_ext >&5
13261 ac_header_compiler
=no
13263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13265 echo "${ECHO_T}$ac_header_compiler" >&6
13267 # Is the header present?
13268 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13269 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13270 cat >conftest.
$ac_ext <<_ACEOF
13273 cat confdefs.h
>>conftest.
$ac_ext
13274 cat >>conftest.
$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <X11/SM/SMlib.h>
13278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13279 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13281 grep -v '^ *+' conftest.er1
>conftest.err
13283 cat conftest.err
>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } >/dev
/null
; then
13286 if test -s conftest.err
; then
13287 ac_cpp_err
=$ac_c_preproc_warn_flag
13288 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13295 if test -z "$ac_cpp_err"; then
13296 ac_header_preproc
=yes
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.
$ac_ext >&5
13301 ac_header_preproc
=no
13303 rm -f conftest.err conftest.
$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305 echo "${ECHO_T}$ac_header_preproc" >&6
13307 # So? What about this header?
13308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13310 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13311 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13313 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13314 ac_header_preproc
=yes
13317 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13318 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13320 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13322 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13324 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13326 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13328 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13331 ## ------------------------------------------ ##
13332 ## Report this to the AC_PACKAGE_NAME lists. ##
13333 ## ------------------------------------------ ##
13336 sed "s/^/$as_me: WARNING: /" >&2
13339 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13340 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13341 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13346 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13347 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13350 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13351 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13352 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13353 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 ac_check_lib_save_LIBS
=$LIBS
13357 LIBS
="-lSM -lICE $LIBS"
13358 cat >conftest.
$ac_ext <<_ACEOF
13361 cat confdefs.h
>>conftest.
$ac_ext
13362 cat >>conftest.
$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13365 /* Override any gcc2 internal prototype to avoid an error. */
13369 /* We use char because int might match the return type of a gcc2
13370 builtin and then its argument prototype would still apply. */
13371 char SmcOpenConnection ();
13375 SmcOpenConnection ();
13380 rm -f conftest.
$ac_objext conftest
$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>conftest.er1
13384 grep -v '^ *+' conftest.er1
>conftest.err
13386 cat conftest.err
>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try
='test -z "$ac_c_werror_flag"
13390 || test ! -s conftest.err'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try
='test -s conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_cv_lib_SM_SmcOpenConnection
=yes
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.
$ac_ext >&5
13407 ac_cv_lib_SM_SmcOpenConnection
=no
13409 rm -f conftest.err conftest.
$ac_objext \
13410 conftest
$ac_exeext conftest.
$ac_ext
13411 LIBS
=$ac_check_lib_save_LIBS
13413 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13414 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13415 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13423 if test "${HAVE_X_SM}" = "yes"; then
13425 cat >>confdefs.h
<<\_ACEOF
13426 #define HAVE_X_SM 1
13431 *) LIBS
="-lSM -lICE $LIBS" ;;
13436 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13437 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13438 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13439 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 cat >conftest.
$ac_ext <<_ACEOF
13445 cat confdefs.h
>>conftest.
$ac_ext
13446 cat >>conftest.
$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13457 rm -f conftest.
$ac_objext conftest
$ac_exeext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459 (eval $ac_link) 2>conftest.er1
13461 grep -v '^ *+' conftest.er1
>conftest.err
13463 cat conftest.err
>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try
='test -z "$ac_c_werror_flag"
13467 || test ! -s conftest.err'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } &&
13473 { ac_try
='test -s conftest$ac_exeext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 emacs_cv_netdb_declares_h_errno
=yes
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.
$ac_ext >&5
13484 emacs_cv_netdb_declares_h_errno
=no
13486 rm -f conftest.err conftest.
$ac_objext \
13487 conftest
$ac_exeext conftest.
$ac_ext
13489 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13490 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13491 if test $emacs_cv_netdb_declares_h_errno = yes; then
13493 cat >>confdefs.h
<<\_ACEOF
13494 #define HAVE_H_ERRNO 1
13499 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13500 # for constant arguments. Useless!
13501 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13502 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13503 if test "${ac_cv_working_alloca_h+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 cat >conftest.
$ac_ext <<_ACEOF
13509 cat confdefs.h
>>conftest.
$ac_ext
13510 cat >>conftest.
$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 #include <alloca.h>
13516 char *p = (char *) alloca (2 * sizeof (int));
13521 rm -f conftest.
$ac_objext conftest
$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523 (eval $ac_link) 2>conftest.er1
13525 grep -v '^ *+' conftest.er1
>conftest.err
13527 cat conftest.err
>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try
='test -z "$ac_c_werror_flag"
13531 || test ! -s conftest.err'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try
='test -s conftest$ac_exeext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_cv_working_alloca_h
=yes
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.
$ac_ext >&5
13548 ac_cv_working_alloca_h
=no
13550 rm -f conftest.err conftest.
$ac_objext \
13551 conftest
$ac_exeext conftest.
$ac_ext
13553 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13554 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13555 if test $ac_cv_working_alloca_h = yes; then
13557 cat >>confdefs.h
<<\_ACEOF
13558 #define HAVE_ALLOCA_H 1
13563 echo "$as_me:$LINENO: checking for alloca" >&5
13564 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13565 if test "${ac_cv_func_alloca_works+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 cat >conftest.
$ac_ext <<_ACEOF
13571 cat confdefs.h
>>conftest.
$ac_ext
13572 cat >>conftest.
$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13575 # define alloca __builtin_alloca
13578 # include <malloc.h>
13579 # define alloca _alloca
13582 # include <alloca.h>
13587 # ifndef alloca /* predefined by HP cc +Olibcalls */
13598 char *p = (char *) alloca (1);
13603 rm -f conftest.
$ac_objext conftest
$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605 (eval $ac_link) 2>conftest.er1
13607 grep -v '^ *+' conftest.er1
>conftest.err
13609 cat conftest.err
>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try
='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try
='test -s conftest$ac_exeext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_func_alloca_works
=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.
$ac_ext >&5
13630 ac_cv_func_alloca_works
=no
13632 rm -f conftest.err conftest.
$ac_objext \
13633 conftest
$ac_exeext conftest.
$ac_ext
13635 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13636 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13638 if test $ac_cv_func_alloca_works = yes; then
13640 cat >>confdefs.h
<<\_ACEOF
13641 #define HAVE_ALLOCA 1
13645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13646 # that cause trouble. Some versions do not even contain alloca or
13647 # contain a buggy version. If you still want to use their alloca,
13648 # use ar to extract alloca.o from them instead of compiling alloca.c.
13650 ALLOCA
=alloca.
$ac_objext
13652 cat >>confdefs.h
<<\_ACEOF
13657 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13658 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13659 if test "${ac_cv_os_cray+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 cat >conftest.
$ac_ext <<_ACEOF
13665 cat confdefs.h
>>conftest.
$ac_ext
13666 cat >>conftest.
$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 #if defined(CRAY) && ! defined(CRAY2)
13675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13676 $EGREP "webecray" >/dev
/null
2>&1; then
13684 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13685 echo "${ECHO_T}$ac_cv_os_cray" >&6
13686 if test $ac_cv_os_cray = yes; then
13687 for ac_func
in _getb67 GETB67 getb67
; do
13688 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13689 echo "$as_me:$LINENO: checking for $ac_func" >&5
13690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13691 if eval "test \"\${$as_ac_var+set}\" = set"; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 cat >conftest.
$ac_ext <<_ACEOF
13697 cat confdefs.h
>>conftest.
$ac_ext
13698 cat >>conftest.
$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13702 #define $ac_func innocuous_$ac_func
13704 /* System header to define __stub macros and hopefully few prototypes,
13705 which can conflict with char $ac_func (); below.
13706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13707 <limits.h> exists even on freestanding compilers. */
13710 # include <limits.h>
13712 # include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error. */
13722 /* We use char because int might match the return type of a gcc2
13723 builtin and then its argument prototype would still apply. */
13725 /* The GNU C library defines this for functions which it implements
13726 to always fail with ENOSYS. Some functions are actually named
13727 something starting with __ and the normal name is an alias. */
13728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13731 char (*f) () = $ac_func;
13740 return f != $ac_func;
13745 rm -f conftest.
$ac_objext conftest
$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>conftest.er1
13749 grep -v '^ *+' conftest.er1
>conftest.err
13751 cat conftest.err
>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try
='test -z "$ac_c_werror_flag"
13755 || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try
='test -s conftest$ac_exeext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 eval "$as_ac_var=yes"
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.
$ac_ext >&5
13772 eval "$as_ac_var=no"
13774 rm -f conftest.err conftest.
$ac_objext \
13775 conftest
$ac_exeext conftest.
$ac_ext
13777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13779 if test `eval echo '${'$as_ac_var'}'` = yes; then
13781 cat >>confdefs.h
<<_ACEOF
13782 #define CRAY_STACKSEG_END $ac_func
13791 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13792 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13793 if test "${ac_cv_c_stack_direction+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 if test "$cross_compiling" = yes; then
13797 ac_cv_c_stack_direction
=0
13799 cat >conftest.
$ac_ext <<_ACEOF
13802 cat confdefs.h
>>conftest.
$ac_ext
13803 cat >>conftest.
$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 find_stack_direction ()
13808 static char *addr = 0;
13813 return find_stack_direction ();
13816 return (&dummy > addr) ? 1 : -1;
13822 exit (find_stack_direction () < 0);
13825 rm -f conftest
$ac_exeext
13826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13827 (eval $ac_link) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_c_stack_direction
=1
13838 echo "$as_me: program exited with status $ac_status" >&5
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.
$ac_ext >&5
13842 ( exit $ac_status )
13843 ac_cv_c_stack_direction
=-1
13845 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13848 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13849 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13851 cat >>confdefs.h
<<_ACEOF
13852 #define STACK_DIRECTION $ac_cv_c_stack_direction
13859 # fmod, logb, and frexp are found in -lm on most systems.
13860 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13862 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13863 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13864 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 ac_check_lib_save_LIBS
=$LIBS
13869 cat >conftest.
$ac_ext <<_ACEOF
13872 cat confdefs.h
>>conftest.
$ac_ext
13873 cat >>conftest.
$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13876 /* Override any gcc2 internal prototype to avoid an error. */
13880 /* We use char because int might match the return type of a gcc2
13881 builtin and then its argument prototype would still apply. */
13891 rm -f conftest.
$ac_objext conftest
$ac_exeext
13892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13893 (eval $ac_link) 2>conftest.er1
13895 grep -v '^ *+' conftest.er1
>conftest.err
13897 cat conftest.err
>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } &&
13900 { ac_try
='test -z "$ac_c_werror_flag"
13901 || test ! -s conftest.err'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try
='test -s conftest$ac_exeext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_lib_m_sqrt
=yes
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.
$ac_ext >&5
13918 ac_cv_lib_m_sqrt
=no
13920 rm -f conftest.err conftest.
$ac_objext \
13921 conftest
$ac_exeext conftest.
$ac_ext
13922 LIBS
=$ac_check_lib_save_LIBS
13924 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13925 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13926 if test $ac_cv_lib_m_sqrt = yes; then
13927 cat >>confdefs.h
<<_ACEOF
13928 #define HAVE_LIBM 1
13936 # Check for mail-locking functions in a "mail" library. Probably this should
13937 # have the same check as for liblockfile below.
13939 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13940 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13941 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 ac_check_lib_save_LIBS
=$LIBS
13945 LIBS
="-lmail $LIBS"
13946 cat >conftest.
$ac_ext <<_ACEOF
13949 cat confdefs.h
>>conftest.
$ac_ext
13950 cat >>conftest.
$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13953 /* Override any gcc2 internal prototype to avoid an error. */
13957 /* We use char because int might match the return type of a gcc2
13958 builtin and then its argument prototype would still apply. */
13968 rm -f conftest.
$ac_objext conftest
$ac_exeext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13970 (eval $ac_link) 2>conftest.er1
13972 grep -v '^ *+' conftest.er1
>conftest.err
13974 cat conftest.err
>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try
='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try
='test -s conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_lib_mail_maillock
=yes
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.
$ac_ext >&5
13995 ac_cv_lib_mail_maillock
=no
13997 rm -f conftest.err conftest.
$ac_objext \
13998 conftest
$ac_exeext conftest.
$ac_ext
13999 LIBS
=$ac_check_lib_save_LIBS
14001 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14002 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14003 if test $ac_cv_lib_mail_maillock = yes; then
14004 cat >>confdefs.h
<<_ACEOF
14005 #define HAVE_LIBMAIL 1
14008 LIBS
="-lmail $LIBS"
14013 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14014 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14015 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 ac_check_lib_save_LIBS
=$LIBS
14019 LIBS
="-llockfile $LIBS"
14020 cat >conftest.
$ac_ext <<_ACEOF
14023 cat confdefs.h
>>conftest.
$ac_ext
14024 cat >>conftest.
$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14027 /* Override any gcc2 internal prototype to avoid an error. */
14031 /* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14042 rm -f conftest.
$ac_objext conftest
$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14046 grep -v '^ *+' conftest.er1
>conftest.err
14048 cat conftest.err
>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try
='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try
='test -s conftest$ac_exeext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_lib_lockfile_maillock
=yes
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.
$ac_ext >&5
14069 ac_cv_lib_lockfile_maillock
=no
14071 rm -f conftest.err conftest.
$ac_objext \
14072 conftest
$ac_exeext conftest.
$ac_ext
14073 LIBS
=$ac_check_lib_save_LIBS
14075 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14076 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14077 if test $ac_cv_lib_lockfile_maillock = yes; then
14078 cat >>confdefs.h
<<_ACEOF
14079 #define HAVE_LIBLOCKFILE 1
14082 LIBS
="-llockfile $LIBS"
14086 # If we have the shared liblockfile, assume we must use it for mail
14087 # locking (e.g. Debian). If we couldn't link against liblockfile
14088 # (no liblockfile.a installed), ensure that we don't need to.
14089 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14090 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14091 set dummy liblockfile.so
; ac_word
=$2
14092 echo "$as_me:$LINENO: checking for $ac_word" >&5
14093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14094 if test "${ac_cv_prog_liblockfile+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 if test -n "$liblockfile"; then
14098 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14101 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14102 for as_dir
in $as_dummy
14105 test -z "$as_dir" && as_dir
=.
14106 for ac_exec_ext
in '' $ac_executable_extensions; do
14107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14108 ac_cv_prog_liblockfile
="yes"
14109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14118 liblockfile
=$ac_cv_prog_liblockfile
14119 if test -n "$liblockfile"; then
14120 echo "$as_me:$LINENO: result: $liblockfile" >&5
14121 echo "${ECHO_T}$liblockfile" >&6
14123 echo "$as_me:$LINENO: result: no" >&5
14124 echo "${ECHO_T}no" >&6
14127 if test $ac_cv_prog_liblockfile = yes; then
14128 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14129 This probably means that movemail could lose mail.
14130 There may be a \`development' package to install containing liblockfile." >&5
14131 echo "$as_me: error: Shared liblockfile found but can't link against it.
14132 This probably means that movemail could lose mail.
14133 There may be a \`development' package to install containing liblockfile." >&2;}
14134 { (exit 1); exit 1; }; }
14139 for ac_func
in touchlock
14141 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14142 echo "$as_me:$LINENO: checking for $ac_func" >&5
14143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14144 if eval "test \"\${$as_ac_var+set}\" = set"; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 cat >conftest.
$ac_ext <<_ACEOF
14150 cat confdefs.h
>>conftest.
$ac_ext
14151 cat >>conftest.
$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14155 #define $ac_func innocuous_$ac_func
14157 /* System header to define __stub macros and hopefully few prototypes,
14158 which can conflict with char $ac_func (); below.
14159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14160 <limits.h> exists even on freestanding compilers. */
14163 # include <limits.h>
14165 # include <assert.h>
14170 /* Override any gcc2 internal prototype to avoid an error. */
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14178 /* The GNU C library defines this for functions which it implements
14179 to always fail with ENOSYS. Some functions are actually named
14180 something starting with __ and the normal name is an alias. */
14181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14184 char (*f) () = $ac_func;
14193 return f != $ac_func;
14198 rm -f conftest.
$ac_objext conftest
$ac_exeext
14199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14200 (eval $ac_link) 2>conftest.er1
14202 grep -v '^ *+' conftest.er1
>conftest.err
14204 cat conftest.err
>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try
='test -z "$ac_c_werror_flag"
14208 || test ! -s conftest.err'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; } &&
14214 { ac_try
='test -s conftest$ac_exeext'
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
14220 eval "$as_ac_var=yes"
14222 echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.
$ac_ext >&5
14225 eval "$as_ac_var=no"
14227 rm -f conftest.err conftest.
$ac_objext \
14228 conftest
$ac_exeext conftest.
$ac_ext
14230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14232 if test `eval echo '${'$as_ac_var'}'` = yes; then
14233 cat >>confdefs.h
<<_ACEOF
14234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14241 for ac_header
in maillock.h
14243 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14253 # Is the header compilable?
14254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14256 cat >conftest.
$ac_ext <<_ACEOF
14259 cat confdefs.h
>>conftest.
$ac_ext
14260 cat >>conftest.
$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 $ac_includes_default
14263 #include <$ac_header>
14265 rm -f conftest.
$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14269 grep -v '^ *+' conftest.er1
>conftest.err
14271 cat conftest.err
>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try
='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try
='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 ac_header_compiler
=yes
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.
$ac_ext >&5
14292 ac_header_compiler
=no
14294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14296 echo "${ECHO_T}$ac_header_compiler" >&6
14298 # Is the header present?
14299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14301 cat >conftest.
$ac_ext <<_ACEOF
14304 cat confdefs.h
>>conftest.
$ac_ext
14305 cat >>conftest.
$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14307 #include <$ac_header>
14309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14310 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14312 grep -v '^ *+' conftest.er1
>conftest.err
14314 cat conftest.err
>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } >/dev
/null
; then
14317 if test -s conftest.err
; then
14318 ac_cpp_err
=$ac_c_preproc_warn_flag
14319 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14326 if test -z "$ac_cpp_err"; then
14327 ac_header_preproc
=yes
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.
$ac_ext >&5
14332 ac_header_preproc
=no
14334 rm -f conftest.err conftest.
$ac_ext
14335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14336 echo "${ECHO_T}$ac_header_preproc" >&6
14338 # So? What about this header?
14339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14345 ac_header_preproc
=yes
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14362 ## ------------------------------------------ ##
14363 ## Report this to the AC_PACKAGE_NAME lists. ##
14364 ## ------------------------------------------ ##
14367 sed "s/^/$as_me: WARNING: /" >&2
14370 echo "$as_me:$LINENO: checking for $ac_header" >&5
14371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 eval "$as_ac_Header=\$ac_header_preproc"
14377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h
<<_ACEOF
14383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14459 for ac_func
in gethostname getdomainname dup2 \
14460 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14461 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14462 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14463 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14464 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14465 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14466 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14467 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14469 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14470 echo "$as_me:$LINENO: checking for $ac_func" >&5
14471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14472 if eval "test \"\${$as_ac_var+set}\" = set"; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 cat >conftest.
$ac_ext <<_ACEOF
14478 cat confdefs.h
>>conftest.
$ac_ext
14479 cat >>conftest.
$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14483 #define $ac_func innocuous_$ac_func
14485 /* System header to define __stub macros and hopefully few prototypes,
14486 which can conflict with char $ac_func (); below.
14487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14488 <limits.h> exists even on freestanding compilers. */
14491 # include <limits.h>
14493 # include <assert.h>
14498 /* Override any gcc2 internal prototype to avoid an error. */
14503 /* We use char because int might match the return type of a gcc2
14504 builtin and then its argument prototype would still apply. */
14506 /* The GNU C library defines this for functions which it implements
14507 to always fail with ENOSYS. Some functions are actually named
14508 something starting with __ and the normal name is an alias. */
14509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14512 char (*f) () = $ac_func;
14521 return f != $ac_func;
14526 rm -f conftest.
$ac_objext conftest
$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>conftest.er1
14530 grep -v '^ *+' conftest.er1
>conftest.err
14532 cat conftest.err
>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try
='test -z "$ac_c_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try
='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 eval "$as_ac_var=yes"
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.
$ac_ext >&5
14553 eval "$as_ac_var=no"
14555 rm -f conftest.err conftest.
$ac_objext \
14556 conftest
$ac_exeext conftest.
$ac_ext
14558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14560 if test `eval echo '${'$as_ac_var'}'` = yes; then
14561 cat >>confdefs.h
<<_ACEOF
14562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14570 for ac_header
in sys
/un.h
14572 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14574 echo "$as_me:$LINENO: checking for $ac_header" >&5
14575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14582 # Is the header compilable?
14583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14585 cat >conftest.
$ac_ext <<_ACEOF
14588 cat confdefs.h
>>conftest.
$ac_ext
14589 cat >>conftest.
$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 $ac_includes_default
14592 #include <$ac_header>
14594 rm -f conftest.
$ac_objext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14596 (eval $ac_compile) 2>conftest.er1
14598 grep -v '^ *+' conftest.er1
>conftest.err
14600 cat conftest.err
>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try
='test -z "$ac_c_werror_flag"
14604 || test ! -s conftest.err'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try
='test -s conftest.$ac_objext'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 ac_header_compiler
=yes
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.
$ac_ext >&5
14621 ac_header_compiler
=no
14623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14625 echo "${ECHO_T}$ac_header_compiler" >&6
14627 # Is the header present?
14628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14630 cat >conftest.
$ac_ext <<_ACEOF
14633 cat confdefs.h
>>conftest.
$ac_ext
14634 cat >>conftest.
$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 #include <$ac_header>
14638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14639 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14641 grep -v '^ *+' conftest.er1
>conftest.err
14643 cat conftest.err
>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } >/dev
/null
; then
14646 if test -s conftest.err
; then
14647 ac_cpp_err
=$ac_c_preproc_warn_flag
14648 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14655 if test -z "$ac_cpp_err"; then
14656 ac_header_preproc
=yes
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.
$ac_ext >&5
14661 ac_header_preproc
=no
14663 rm -f conftest.err conftest.
$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14665 echo "${ECHO_T}$ac_header_preproc" >&6
14667 # So? What about this header?
14668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14674 ac_header_preproc
=yes
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14691 ## ------------------------------------------ ##
14692 ## Report this to the AC_PACKAGE_NAME lists. ##
14693 ## ------------------------------------------ ##
14696 sed "s/^/$as_me: WARNING: /" >&2
14699 echo "$as_me:$LINENO: checking for $ac_header" >&5
14700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 eval "$as_ac_Header=\$ac_header_preproc"
14706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14711 cat >>confdefs.h
<<_ACEOF
14712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14723 for ac_header
in stdlib.h sys
/time.h unistd.h
14725 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14727 echo "$as_me:$LINENO: checking for $ac_header" >&5
14728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14730 echo $ECHO_N "(cached) $ECHO_C" >&6
14732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14735 # Is the header compilable?
14736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14738 cat >conftest.
$ac_ext <<_ACEOF
14741 cat confdefs.h
>>conftest.
$ac_ext
14742 cat >>conftest.
$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 $ac_includes_default
14745 #include <$ac_header>
14747 rm -f conftest.
$ac_objext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749 (eval $ac_compile) 2>conftest.er1
14751 grep -v '^ *+' conftest.er1
>conftest.err
14753 cat conftest.err
>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try
='test -z "$ac_c_werror_flag"
14757 || test ! -s conftest.err'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; } &&
14763 { ac_try
='test -s conftest.$ac_objext'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_header_compiler
=yes
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.
$ac_ext >&5
14774 ac_header_compiler
=no
14776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14778 echo "${ECHO_T}$ac_header_compiler" >&6
14780 # Is the header present?
14781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14783 cat >conftest.
$ac_ext <<_ACEOF
14786 cat confdefs.h
>>conftest.
$ac_ext
14787 cat >>conftest.
$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <$ac_header>
14791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14792 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14794 grep -v '^ *+' conftest.er1
>conftest.err
14796 cat conftest.err
>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } >/dev
/null
; then
14799 if test -s conftest.err
; then
14800 ac_cpp_err
=$ac_c_preproc_warn_flag
14801 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14808 if test -z "$ac_cpp_err"; then
14809 ac_header_preproc
=yes
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.
$ac_ext >&5
14814 ac_header_preproc
=no
14816 rm -f conftest.err conftest.
$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14818 echo "${ECHO_T}$ac_header_preproc" >&6
14820 # So? What about this header?
14821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14827 ac_header_preproc
=yes
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14844 ## ------------------------------------------ ##
14845 ## Report this to the AC_PACKAGE_NAME lists. ##
14846 ## ------------------------------------------ ##
14849 sed "s/^/$as_me: WARNING: /" >&2
14852 echo "$as_me:$LINENO: checking for $ac_header" >&5
14853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 eval "$as_ac_Header=\$ac_header_preproc"
14859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14864 cat >>confdefs.h
<<_ACEOF
14865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14873 for ac_func
in alarm
14875 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14876 echo "$as_me:$LINENO: checking for $ac_func" >&5
14877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14878 if eval "test \"\${$as_ac_var+set}\" = set"; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 cat >conftest.
$ac_ext <<_ACEOF
14884 cat confdefs.h
>>conftest.
$ac_ext
14885 cat >>conftest.
$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14889 #define $ac_func innocuous_$ac_func
14891 /* System header to define __stub macros and hopefully few prototypes,
14892 which can conflict with char $ac_func (); below.
14893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14894 <limits.h> exists even on freestanding compilers. */
14897 # include <limits.h>
14899 # include <assert.h>
14904 /* Override any gcc2 internal prototype to avoid an error. */
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14912 /* The GNU C library defines this for functions which it implements
14913 to always fail with ENOSYS. Some functions are actually named
14914 something starting with __ and the normal name is an alias. */
14915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14918 char (*f) () = $ac_func;
14927 return f != $ac_func;
14932 rm -f conftest.
$ac_objext conftest
$ac_exeext
14933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14934 (eval $ac_link) 2>conftest.er1
14936 grep -v '^ *+' conftest.er1
>conftest.err
14938 cat conftest.err
>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try
='test -z "$ac_c_werror_flag"
14942 || test ! -s conftest.err'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try
='test -s conftest$ac_exeext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 eval "$as_ac_var=yes"
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.
$ac_ext >&5
14959 eval "$as_ac_var=no"
14961 rm -f conftest.err conftest.
$ac_objext \
14962 conftest
$ac_exeext conftest.
$ac_ext
14964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14966 if test `eval echo '${'$as_ac_var'}'` = yes; then
14967 cat >>confdefs.h
<<_ACEOF
14968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14974 echo "$as_me:$LINENO: checking for working mktime" >&5
14975 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14976 if test "${ac_cv_func_working_mktime+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 if test "$cross_compiling" = yes; then
14980 ac_cv_func_working_mktime
=no
14982 cat >conftest.
$ac_ext <<_ACEOF
14985 cat confdefs.h
>>conftest.
$ac_ext
14986 cat >>conftest.
$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 /* Test program from Paul Eggert and Tony Leneis. */
14989 #if TIME_WITH_SYS_TIME
14990 # include <sys/time.h>
14993 # if HAVE_SYS_TIME_H
14994 # include <sys/time.h>
15001 # include <stdlib.h>
15005 # include <unistd.h>
15009 # define alarm(X) /* empty */
15012 /* Work around redefinition to rpl_putenv by other config tests. */
15015 static time_t time_t_max;
15016 static time_t time_t_min;
15018 /* Values we'll use to set the TZ environment variable. */
15019 static char *tz_strings[] = {
15020 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15021 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15023 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15025 /* Fail if mktime fails to convert a date in the spring-forward gap.
15026 Based on a problem report from Andreas Jaeger. */
15028 spring_forward_gap ()
15030 /* glibc (up to about 1998-10-07) failed this test. */
15033 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15034 instead of "TZ=America/Vancouver" in order to detect the bug even
15035 on systems that don't support the Olson extension, or don't have the
15036 full zoneinfo tables installed. */
15037 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15046 if (mktime (&tm) == (time_t)-1)
15055 if ((lt = localtime (&now)) && mktime (lt) != now)
15063 mktime_test1 (now);
15064 mktime_test1 ((time_t) (time_t_max - now));
15065 mktime_test1 ((time_t) (time_t_min + now));
15071 /* Based on code from Ariel Faigon. */
15081 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15091 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15092 now = mktime (&tm);
15093 if (now != (time_t) -1)
15095 struct tm *lt = localtime (&now);
15097 && lt->tm_year == tm.tm_year
15098 && lt->tm_mon == tm.tm_mon
15099 && lt->tm_mday == tm.tm_mday
15100 && lt->tm_hour == tm.tm_hour
15101 && lt->tm_min == tm.tm_min
15102 && lt->tm_sec == tm.tm_sec
15103 && lt->tm_yday == tm.tm_yday
15104 && lt->tm_wday == tm.tm_wday
15105 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15106 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15117 /* This test makes some buggy mktime implementations loop.
15118 Give up after 60 seconds; a mktime slower than that
15119 isn't worth using anyway. */
15122 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15125 if ((time_t) -1 < 0)
15126 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15128 delta = time_t_max / 997; /* a suitable prime number */
15129 for (i = 0; i < N_STRINGS; i++)
15132 putenv (tz_strings[i]);
15134 for (t = 0; t <= time_t_max - delta; t += delta)
15136 mktime_test ((time_t) 1);
15137 mktime_test ((time_t) (60 * 60));
15138 mktime_test ((time_t) (60 * 60 * 24));
15140 for (j = 1; 0 < j; j *= 2)
15142 bigtime_test (j - 1);
15145 spring_forward_gap ();
15149 rm -f conftest
$ac_exeext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_func_working_mktime
=yes
15162 echo "$as_me: program exited with status $ac_status" >&5
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.
$ac_ext >&5
15166 ( exit $ac_status )
15167 ac_cv_func_working_mktime
=no
15169 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15172 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15173 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15174 if test $ac_cv_func_working_mktime = no
; then
15176 "mktime.$ac_objext" | \
15177 *" mktime.$ac_objext" | \
15178 "mktime.$ac_objext "* | \
15179 *" mktime.$ac_objext "* ) ;;
15180 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15185 if test "$ac_cv_func_working_mktime" = no
; then
15187 cat >>confdefs.h
<<\_ACEOF
15188 #define BROKEN_MKTIME 1
15193 ac_have_func
=no
# yes means we've found a way to get the load average.
15195 # Make sure getloadavg.c is where it belongs, at configure-time.
15196 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15197 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15198 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15199 { (exit 1); exit 1; }; }
15203 # Check for getloadavg, but be sure not to touch the cache variable.
15204 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15205 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15206 if test "${ac_cv_func_getloadavg+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 cat >conftest.
$ac_ext <<_ACEOF
15212 cat confdefs.h
>>conftest.
$ac_ext
15213 cat >>conftest.
$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15217 #define getloadavg innocuous_getloadavg
15219 /* System header to define __stub macros and hopefully few prototypes,
15220 which can conflict with char getloadavg (); below.
15221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15222 <limits.h> exists even on freestanding compilers. */
15225 # include <limits.h>
15227 # include <assert.h>
15232 /* Override any gcc2 internal prototype to avoid an error. */
15237 /* We use char because int might match the return type of a gcc2
15238 builtin and then its argument prototype would still apply. */
15239 char getloadavg ();
15240 /* The GNU C library defines this for functions which it implements
15241 to always fail with ENOSYS. Some functions are actually named
15242 something starting with __ and the normal name is an alias. */
15243 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15246 char (*f) () = getloadavg;
15255 return f != getloadavg;
15260 rm -f conftest.
$ac_objext conftest
$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>conftest.er1
15264 grep -v '^ *+' conftest.er1
>conftest.err
15266 cat conftest.err
>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try
='test -z "$ac_c_werror_flag"
15270 || test ! -s conftest.err'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try
='test -s conftest$ac_exeext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_cv_func_getloadavg
=yes
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.
$ac_ext >&5
15287 ac_cv_func_getloadavg
=no
15289 rm -f conftest.err conftest.
$ac_objext \
15290 conftest
$ac_exeext conftest.
$ac_ext
15292 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15293 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15294 if test $ac_cv_func_getloadavg = yes; then
15299 ) && ac_have_func
=yes
15301 # On HPUX9, an unprivileged user can get load averages through this function.
15303 for ac_func
in pstat_getdynamic
15305 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15306 echo "$as_me:$LINENO: checking for $ac_func" >&5
15307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15308 if eval "test \"\${$as_ac_var+set}\" = set"; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 cat >conftest.
$ac_ext <<_ACEOF
15314 cat confdefs.h
>>conftest.
$ac_ext
15315 cat >>conftest.
$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15319 #define $ac_func innocuous_$ac_func
15321 /* System header to define __stub macros and hopefully few prototypes,
15322 which can conflict with char $ac_func (); below.
15323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15324 <limits.h> exists even on freestanding compilers. */
15327 # include <limits.h>
15329 # include <assert.h>
15334 /* Override any gcc2 internal prototype to avoid an error. */
15339 /* We use char because int might match the return type of a gcc2
15340 builtin and then its argument prototype would still apply. */
15342 /* The GNU C library defines this for functions which it implements
15343 to always fail with ENOSYS. Some functions are actually named
15344 something starting with __ and the normal name is an alias. */
15345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15348 char (*f) () = $ac_func;
15357 return f != $ac_func;
15362 rm -f conftest.
$ac_objext conftest
$ac_exeext
15363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15364 (eval $ac_link) 2>conftest.er1
15366 grep -v '^ *+' conftest.er1
>conftest.err
15368 cat conftest.err
>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try
='test -z "$ac_c_werror_flag"
15372 || test ! -s conftest.err'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try
='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 eval "$as_ac_var=yes"
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.
$ac_ext >&5
15389 eval "$as_ac_var=no"
15391 rm -f conftest.err conftest.
$ac_objext \
15392 conftest
$ac_exeext conftest.
$ac_ext
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15397 cat >>confdefs.h
<<_ACEOF
15398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15405 # Solaris has libkstat which does not require root.
15407 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15408 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15409 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 ac_check_lib_save_LIBS
=$LIBS
15413 LIBS
="-lkstat $LIBS"
15414 cat >conftest.
$ac_ext <<_ACEOF
15417 cat confdefs.h
>>conftest.
$ac_ext
15418 cat >>conftest.
$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15421 /* Override any gcc2 internal prototype to avoid an error. */
15425 /* We use char because int might match the return type of a gcc2
15426 builtin and then its argument prototype would still apply. */
15427 char kstat_open ();
15436 rm -f conftest.
$ac_objext conftest
$ac_exeext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15438 (eval $ac_link) 2>conftest.er1
15440 grep -v '^ *+' conftest.er1
>conftest.err
15442 cat conftest.err
>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try
='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try
='test -s conftest$ac_exeext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_lib_kstat_kstat_open
=yes
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.
$ac_ext >&5
15463 ac_cv_lib_kstat_kstat_open
=no
15465 rm -f conftest.err conftest.
$ac_objext \
15466 conftest
$ac_exeext conftest.
$ac_ext
15467 LIBS
=$ac_check_lib_save_LIBS
15469 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15470 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15471 if test $ac_cv_lib_kstat_kstat_open = yes; then
15472 cat >>confdefs.h
<<_ACEOF
15473 #define HAVE_LIBKSTAT 1
15476 LIBS
="-lkstat $LIBS"
15480 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15482 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15483 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15484 # to get the right answer into the cache.
15485 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15486 if test $ac_have_func = no
; then
15487 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15488 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15489 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 ac_check_lib_save_LIBS
=$LIBS
15494 cat >conftest.
$ac_ext <<_ACEOF
15497 cat confdefs.h
>>conftest.
$ac_ext
15498 cat >>conftest.
$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15501 /* Override any gcc2 internal prototype to avoid an error. */
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15516 rm -f conftest.
$ac_objext conftest
$ac_exeext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15518 (eval $ac_link) 2>conftest.er1
15520 grep -v '^ *+' conftest.er1
>conftest.err
15522 cat conftest.err
>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try
='test -z "$ac_c_werror_flag"
15526 || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try
='test -s conftest$ac_exeext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_lib_elf_elf_begin
=yes
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.
$ac_ext >&5
15543 ac_cv_lib_elf_elf_begin
=no
15545 rm -f conftest.err conftest.
$ac_objext \
15546 conftest
$ac_exeext conftest.
$ac_ext
15547 LIBS
=$ac_check_lib_save_LIBS
15549 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15550 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15551 if test $ac_cv_lib_elf_elf_begin = yes; then
15556 if test $ac_have_func = no
; then
15557 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15558 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15559 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 ac_check_lib_save_LIBS
=$LIBS
15564 cat >conftest.
$ac_ext <<_ACEOF
15567 cat confdefs.h
>>conftest.
$ac_ext
15568 cat >>conftest.
$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15571 /* Override any gcc2 internal prototype to avoid an error. */
15575 /* We use char because int might match the return type of a gcc2
15576 builtin and then its argument prototype would still apply. */
15586 rm -f conftest.
$ac_objext conftest
$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15590 grep -v '^ *+' conftest.er1
>conftest.err
15592 cat conftest.err
>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try
='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try
='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_lib_kvm_kvm_open
=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.
$ac_ext >&5
15613 ac_cv_lib_kvm_kvm_open
=no
15615 rm -f conftest.err conftest.
$ac_objext \
15616 conftest
$ac_exeext conftest.
$ac_ext
15617 LIBS
=$ac_check_lib_save_LIBS
15619 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15620 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15621 if test $ac_cv_lib_kvm_kvm_open = yes; then
15625 # Check for the 4.4BSD definition of getloadavg.
15626 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15627 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15628 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 ac_check_lib_save_LIBS
=$LIBS
15632 LIBS
="-lutil $LIBS"
15633 cat >conftest.
$ac_ext <<_ACEOF
15636 cat confdefs.h
>>conftest.
$ac_ext
15637 cat >>conftest.
$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15640 /* Override any gcc2 internal prototype to avoid an error. */
15644 /* We use char because int might match the return type of a gcc2
15645 builtin and then its argument prototype would still apply. */
15646 char getloadavg ();
15655 rm -f conftest.
$ac_objext conftest
$ac_exeext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15657 (eval $ac_link) 2>conftest.er1
15659 grep -v '^ *+' conftest.er1
>conftest.err
15661 cat conftest.err
>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try
='test -z "$ac_c_werror_flag"
15665 || test ! -s conftest.err'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; } &&
15671 { ac_try
='test -s conftest$ac_exeext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_cv_lib_util_getloadavg
=yes
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.
$ac_ext >&5
15682 ac_cv_lib_util_getloadavg
=no
15684 rm -f conftest.err conftest.
$ac_objext \
15685 conftest
$ac_exeext conftest.
$ac_ext
15686 LIBS
=$ac_check_lib_save_LIBS
15688 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15689 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15690 if test $ac_cv_lib_util_getloadavg = yes; then
15691 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15696 if test $ac_have_func = no
; then
15697 # There is a commonly available library for RS/6000 AIX.
15698 # Since it is not a standard part of AIX, it might be installed locally.
15699 ac_getloadavg_LIBS
=$LIBS
15700 LIBS
="-L/usr/local/lib $LIBS"
15701 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15702 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15703 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 ac_check_lib_save_LIBS
=$LIBS
15707 LIBS
="-lgetloadavg $LIBS"
15708 cat >conftest.
$ac_ext <<_ACEOF
15711 cat confdefs.h
>>conftest.
$ac_ext
15712 cat >>conftest.
$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15715 /* Override any gcc2 internal prototype to avoid an error. */
15719 /* We use char because int might match the return type of a gcc2
15720 builtin and then its argument prototype would still apply. */
15721 char getloadavg ();
15730 rm -f conftest.
$ac_objext conftest
$ac_exeext
15731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732 (eval $ac_link) 2>conftest.er1
15734 grep -v '^ *+' conftest.er1
>conftest.err
15736 cat conftest.err
>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try
='test -z "$ac_c_werror_flag"
15740 || test ! -s conftest.err'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try
='test -s conftest$ac_exeext'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_cv_lib_getloadavg_getloadavg
=yes
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.
$ac_ext >&5
15757 ac_cv_lib_getloadavg_getloadavg
=no
15759 rm -f conftest.err conftest.
$ac_objext \
15760 conftest
$ac_exeext conftest.
$ac_ext
15761 LIBS
=$ac_check_lib_save_LIBS
15763 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15764 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15765 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15766 LIBS
="-lgetloadavg $LIBS"
15768 LIBS
=$ac_getloadavg_LIBS
15773 # Make sure it is really in the library, if we think we found it,
15774 # otherwise set up the replacement function.
15776 for ac_func
in getloadavg
15778 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15779 echo "$as_me:$LINENO: checking for $ac_func" >&5
15780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15781 if eval "test \"\${$as_ac_var+set}\" = set"; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 cat >conftest.
$ac_ext <<_ACEOF
15787 cat confdefs.h
>>conftest.
$ac_ext
15788 cat >>conftest.
$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15792 #define $ac_func innocuous_$ac_func
15794 /* System header to define __stub macros and hopefully few prototypes,
15795 which can conflict with char $ac_func (); below.
15796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15797 <limits.h> exists even on freestanding compilers. */
15800 # include <limits.h>
15802 # include <assert.h>
15807 /* Override any gcc2 internal prototype to avoid an error. */
15812 /* We use char because int might match the return type of a gcc2
15813 builtin and then its argument prototype would still apply. */
15815 /* The GNU C library defines this for functions which it implements
15816 to always fail with ENOSYS. Some functions are actually named
15817 something starting with __ and the normal name is an alias. */
15818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15821 char (*f) () = $ac_func;
15830 return f != $ac_func;
15835 rm -f conftest.
$ac_objext conftest
$ac_exeext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15837 (eval $ac_link) 2>conftest.er1
15839 grep -v '^ *+' conftest.er1
>conftest.err
15841 cat conftest.err
>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
15844 { ac_try
='test -z "$ac_c_werror_flag"
15845 || test ! -s conftest.err'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try
='test -s conftest$ac_exeext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857 eval "$as_ac_var=yes"
15859 echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.
$ac_ext >&5
15862 eval "$as_ac_var=no"
15864 rm -f conftest.err conftest.
$ac_objext \
15865 conftest
$ac_exeext conftest.
$ac_ext
15867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15869 if test `eval echo '${'$as_ac_var'}'` = yes; then
15870 cat >>confdefs.h
<<_ACEOF
15871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15876 "getloadavg.$ac_objext" | \
15877 *" getloadavg.$ac_objext" | \
15878 "getloadavg.$ac_objext "* | \
15879 *" getloadavg.$ac_objext "* ) ;;
15880 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15884 cat >>confdefs.h
<<\_ACEOF
15885 #define C_GETLOADAVG 1
15888 # Figure out what our getloadavg.c needs.
15890 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15891 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15892 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15893 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15897 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15899 # Is the header compilable?
15900 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15901 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15902 cat >conftest.
$ac_ext <<_ACEOF
15905 cat confdefs.h
>>conftest.
$ac_ext
15906 cat >>conftest.
$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 $ac_includes_default
15909 #include <sys/dg_sys_info.h>
15911 rm -f conftest.
$ac_objext
15912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15913 (eval $ac_compile) 2>conftest.er1
15915 grep -v '^ *+' conftest.er1
>conftest.err
15917 cat conftest.err
>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try
='test -z "$ac_c_werror_flag"
15921 || test ! -s conftest.err'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try
='test -s conftest.$ac_objext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 ac_header_compiler
=yes
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.
$ac_ext >&5
15938 ac_header_compiler
=no
15940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15942 echo "${ECHO_T}$ac_header_compiler" >&6
15944 # Is the header present?
15945 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15946 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15947 cat >conftest.
$ac_ext <<_ACEOF
15950 cat confdefs.h
>>conftest.
$ac_ext
15951 cat >>conftest.
$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 #include <sys/dg_sys_info.h>
15955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15956 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15958 grep -v '^ *+' conftest.er1
>conftest.err
15960 cat conftest.err
>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } >/dev
/null
; then
15963 if test -s conftest.err
; then
15964 ac_cpp_err
=$ac_c_preproc_warn_flag
15965 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15972 if test -z "$ac_cpp_err"; then
15973 ac_header_preproc
=yes
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.
$ac_ext >&5
15978 ac_header_preproc
=no
15980 rm -f conftest.err conftest.
$ac_ext
15981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15982 echo "${ECHO_T}$ac_header_preproc" >&6
15984 # So? What about this header?
15985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15987 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15988 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15990 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15991 ac_header_preproc
=yes
15994 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15995 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15997 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15999 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16001 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16003 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16005 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16008 ## ------------------------------------------ ##
16009 ## Report this to the AC_PACKAGE_NAME lists. ##
16010 ## ------------------------------------------ ##
16013 sed "s/^/$as_me: WARNING: /" >&2
16016 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16017 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16018 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16023 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16024 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16027 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16030 cat >>confdefs.h
<<\_ACEOF
16035 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16036 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16037 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 ac_check_lib_save_LIBS
=$LIBS
16042 cat >conftest.
$ac_ext <<_ACEOF
16045 cat confdefs.h
>>conftest.
$ac_ext
16046 cat >>conftest.
$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16049 /* Override any gcc2 internal prototype to avoid an error. */
16053 /* We use char because int might match the return type of a gcc2
16054 builtin and then its argument prototype would still apply. */
16055 char dg_sys_info ();
16064 rm -f conftest.
$ac_objext conftest
$ac_exeext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>conftest.er1
16068 grep -v '^ *+' conftest.er1
>conftest.err
16070 cat conftest.err
>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try
='test -z "$ac_c_werror_flag"
16074 || test ! -s conftest.err'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try
='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_lib_dgc_dg_sys_info
=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.
$ac_ext >&5
16091 ac_cv_lib_dgc_dg_sys_info
=no
16093 rm -f conftest.err conftest.
$ac_objext \
16094 conftest
$ac_exeext conftest.
$ac_ext
16095 LIBS
=$ac_check_lib_save_LIBS
16097 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16098 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16099 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16100 cat >>confdefs.h
<<_ACEOF
16101 #define HAVE_LIBDGC 1
16112 if test "${ac_cv_header_locale_h+set}" = set; then
16113 echo "$as_me:$LINENO: checking for locale.h" >&5
16114 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16115 if test "${ac_cv_header_locale_h+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16119 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16121 # Is the header compilable?
16122 echo "$as_me:$LINENO: checking locale.h usability" >&5
16123 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16124 cat >conftest.
$ac_ext <<_ACEOF
16127 cat confdefs.h
>>conftest.
$ac_ext
16128 cat >>conftest.
$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16130 $ac_includes_default
16131 #include <locale.h>
16133 rm -f conftest.
$ac_objext
16134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16135 (eval $ac_compile) 2>conftest.er1
16137 grep -v '^ *+' conftest.er1
>conftest.err
16139 cat conftest.err
>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
16142 { ac_try
='test -z "$ac_c_werror_flag"
16143 || test ! -s conftest.err'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } &&
16149 { ac_try
='test -s conftest.$ac_objext'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155 ac_header_compiler
=yes
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.
$ac_ext >&5
16160 ac_header_compiler
=no
16162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16164 echo "${ECHO_T}$ac_header_compiler" >&6
16166 # Is the header present?
16167 echo "$as_me:$LINENO: checking locale.h presence" >&5
16168 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16169 cat >conftest.
$ac_ext <<_ACEOF
16172 cat confdefs.h
>>conftest.
$ac_ext
16173 cat >>conftest.
$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <locale.h>
16177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16180 grep -v '^ *+' conftest.er1
>conftest.err
16182 cat conftest.err
>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } >/dev
/null
; then
16185 if test -s conftest.err
; then
16186 ac_cpp_err
=$ac_c_preproc_warn_flag
16187 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16194 if test -z "$ac_cpp_err"; then
16195 ac_header_preproc
=yes
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.
$ac_ext >&5
16200 ac_header_preproc
=no
16202 rm -f conftest.err conftest.
$ac_ext
16203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16204 echo "${ECHO_T}$ac_header_preproc" >&6
16206 # So? What about this header?
16207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16209 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16210 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16212 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16213 ac_header_preproc
=yes
16216 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16217 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16218 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16219 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16220 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16221 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16223 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16225 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16227 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16230 ## ------------------------------------------ ##
16231 ## Report this to the AC_PACKAGE_NAME lists. ##
16232 ## ------------------------------------------ ##
16235 sed "s/^/$as_me: WARNING: /" >&2
16238 echo "$as_me:$LINENO: checking for locale.h" >&5
16239 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16240 if test "${ac_cv_header_locale_h+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 ac_cv_header_locale_h
=$ac_header_preproc
16245 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16246 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16252 for ac_func
in setlocale
16254 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16255 echo "$as_me:$LINENO: checking for $ac_func" >&5
16256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16257 if eval "test \"\${$as_ac_var+set}\" = set"; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 cat >conftest.
$ac_ext <<_ACEOF
16263 cat confdefs.h
>>conftest.
$ac_ext
16264 cat >>conftest.
$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16268 #define $ac_func innocuous_$ac_func
16270 /* System header to define __stub macros and hopefully few prototypes,
16271 which can conflict with char $ac_func (); below.
16272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16273 <limits.h> exists even on freestanding compilers. */
16276 # include <limits.h>
16278 # include <assert.h>
16283 /* Override any gcc2 internal prototype to avoid an error. */
16288 /* We use char because int might match the return type of a gcc2
16289 builtin and then its argument prototype would still apply. */
16291 /* The GNU C library defines this for functions which it implements
16292 to always fail with ENOSYS. Some functions are actually named
16293 something starting with __ and the normal name is an alias. */
16294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16297 char (*f) () = $ac_func;
16306 return f != $ac_func;
16311 rm -f conftest.
$ac_objext conftest
$ac_exeext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16313 (eval $ac_link) 2>conftest.er1
16315 grep -v '^ *+' conftest.er1
>conftest.err
16317 cat conftest.err
>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try
='test -z "$ac_c_werror_flag"
16321 || test ! -s conftest.err'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try
='test -s conftest$ac_exeext'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 eval "$as_ac_var=yes"
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.
$ac_ext >&5
16338 eval "$as_ac_var=no"
16340 rm -f conftest.err conftest.
$ac_objext \
16341 conftest
$ac_exeext conftest.
$ac_ext
16343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16345 if test `eval echo '${'$as_ac_var'}'` = yes; then
16346 cat >>confdefs.h
<<_ACEOF
16347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16354 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16355 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16356 # Irix 4.0.5F has the header but not the library.
16357 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16360 cat >>confdefs.h
<<\_ACEOF
16366 if test $ac_have_func = no
; then
16367 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16368 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16369 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16370 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16374 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16376 # Is the header compilable?
16377 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16378 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16379 cat >conftest.
$ac_ext <<_ACEOF
16382 cat confdefs.h
>>conftest.
$ac_ext
16383 cat >>conftest.
$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 $ac_includes_default
16386 #include <inq_stats/cpustats.h>
16388 rm -f conftest.
$ac_objext
16389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16390 (eval $ac_compile) 2>conftest.er1
16392 grep -v '^ *+' conftest.er1
>conftest.err
16394 cat conftest.err
>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try
='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try
='test -s conftest.$ac_objext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler
=yes
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.
$ac_ext >&5
16415 ac_header_compiler
=no
16417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16419 echo "${ECHO_T}$ac_header_compiler" >&6
16421 # Is the header present?
16422 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16423 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16424 cat >conftest.
$ac_ext <<_ACEOF
16427 cat confdefs.h
>>conftest.
$ac_ext
16428 cat >>conftest.
$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 #include <inq_stats/cpustats.h>
16432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16433 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16435 grep -v '^ *+' conftest.er1
>conftest.err
16437 cat conftest.err
>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } >/dev
/null
; then
16440 if test -s conftest.err
; then
16441 ac_cpp_err
=$ac_c_preproc_warn_flag
16442 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16449 if test -z "$ac_cpp_err"; then
16450 ac_header_preproc
=yes
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.
$ac_ext >&5
16455 ac_header_preproc
=no
16457 rm -f conftest.err conftest.
$ac_ext
16458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6
16461 # So? What about this header?
16462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16464 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16467 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16468 ac_header_preproc
=yes
16471 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16472 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16474 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16476 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16478 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16480 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16482 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16485 ## ------------------------------------------ ##
16486 ## Report this to the AC_PACKAGE_NAME lists. ##
16487 ## ------------------------------------------ ##
16490 sed "s/^/$as_me: WARNING: /" >&2
16493 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16494 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16495 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16500 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16501 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16504 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16507 cat >>confdefs.h
<<\_ACEOF
16512 cat >>confdefs.h
<<\_ACEOF
16521 if test $ac_have_func = no
; then
16522 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16523 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16524 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16525 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16529 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16531 # Is the header compilable?
16532 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16533 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16534 cat >conftest.
$ac_ext <<_ACEOF
16537 cat confdefs.h
>>conftest.
$ac_ext
16538 cat >>conftest.
$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 $ac_includes_default
16541 #include <sys/cpustats.h>
16543 rm -f conftest.
$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545 (eval $ac_compile) 2>conftest.er1
16547 grep -v '^ *+' conftest.er1
>conftest.err
16549 cat conftest.err
>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try
='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try
='test -s conftest.$ac_objext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_header_compiler
=yes
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.
$ac_ext >&5
16570 ac_header_compiler
=no
16572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16574 echo "${ECHO_T}$ac_header_compiler" >&6
16576 # Is the header present?
16577 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16578 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16579 cat >conftest.
$ac_ext <<_ACEOF
16582 cat confdefs.h
>>conftest.
$ac_ext
16583 cat >>conftest.
$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #include <sys/cpustats.h>
16587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16588 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16590 grep -v '^ *+' conftest.er1
>conftest.err
16592 cat conftest.err
>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } >/dev
/null
; then
16595 if test -s conftest.err
; then
16596 ac_cpp_err
=$ac_c_preproc_warn_flag
16597 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16604 if test -z "$ac_cpp_err"; then
16605 ac_header_preproc
=yes
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.
$ac_ext >&5
16610 ac_header_preproc
=no
16612 rm -f conftest.err conftest.
$ac_ext
16613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16614 echo "${ECHO_T}$ac_header_preproc" >&6
16616 # So? What about this header?
16617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16619 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16620 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16622 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16623 ac_header_preproc
=yes
16626 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16627 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16629 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16631 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16633 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16635 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16637 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16640 ## ------------------------------------------ ##
16641 ## Report this to the AC_PACKAGE_NAME lists. ##
16642 ## ------------------------------------------ ##
16645 sed "s/^/$as_me: WARNING: /" >&2
16648 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16649 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16650 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16656 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16659 if test $ac_cv_header_sys_cpustats_h = yes; then
16660 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16669 if test $ac_have_func = no
; then
16671 for ac_header
in mach
/mach.h
16673 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16675 echo "$as_me:$LINENO: checking for $ac_header" >&5
16676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16683 # Is the header compilable?
16684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16686 cat >conftest.
$ac_ext <<_ACEOF
16689 cat confdefs.h
>>conftest.
$ac_ext
16690 cat >>conftest.
$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 $ac_includes_default
16693 #include <$ac_header>
16695 rm -f conftest.
$ac_objext
16696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16697 (eval $ac_compile) 2>conftest.er1
16699 grep -v '^ *+' conftest.er1
>conftest.err
16701 cat conftest.err
>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try
='test -z "$ac_c_werror_flag"
16705 || test ! -s conftest.err'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try
='test -s conftest.$ac_objext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 ac_header_compiler
=yes
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.
$ac_ext >&5
16722 ac_header_compiler
=no
16724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16726 echo "${ECHO_T}$ac_header_compiler" >&6
16728 # Is the header present?
16729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16731 cat >conftest.
$ac_ext <<_ACEOF
16734 cat confdefs.h
>>conftest.
$ac_ext
16735 cat >>conftest.
$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 #include <$ac_header>
16739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16740 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16742 grep -v '^ *+' conftest.er1
>conftest.err
16744 cat conftest.err
>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } >/dev
/null
; then
16747 if test -s conftest.err
; then
16748 ac_cpp_err
=$ac_c_preproc_warn_flag
16749 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16756 if test -z "$ac_cpp_err"; then
16757 ac_header_preproc
=yes
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.
$ac_ext >&5
16762 ac_header_preproc
=no
16764 rm -f conftest.err conftest.
$ac_ext
16765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16766 echo "${ECHO_T}$ac_header_preproc" >&6
16768 # So? What about this header?
16769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16775 ac_header_preproc
=yes
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16792 ## ------------------------------------------ ##
16793 ## Report this to the AC_PACKAGE_NAME lists. ##
16794 ## ------------------------------------------ ##
16797 sed "s/^/$as_me: WARNING: /" >&2
16800 echo "$as_me:$LINENO: checking for $ac_header" >&5
16801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 eval "$as_ac_Header=\$ac_header_preproc"
16807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16812 cat >>confdefs.h
<<_ACEOF
16813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16823 for ac_header
in nlist.h
16825 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16827 echo "$as_me:$LINENO: checking for $ac_header" >&5
16828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16835 # Is the header compilable?
16836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16838 cat >conftest.
$ac_ext <<_ACEOF
16841 cat confdefs.h
>>conftest.
$ac_ext
16842 cat >>conftest.
$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 $ac_includes_default
16845 #include <$ac_header>
16847 rm -f conftest.
$ac_objext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16849 (eval $ac_compile) 2>conftest.er1
16851 grep -v '^ *+' conftest.er1
>conftest.err
16853 cat conftest.err
>&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try
='test -z "$ac_c_werror_flag"
16857 || test ! -s conftest.err'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; } &&
16863 { ac_try
='test -s conftest.$ac_objext'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 ac_header_compiler
=yes
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.
$ac_ext >&5
16874 ac_header_compiler
=no
16876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16878 echo "${ECHO_T}$ac_header_compiler" >&6
16880 # Is the header present?
16881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16883 cat >conftest.
$ac_ext <<_ACEOF
16886 cat confdefs.h
>>conftest.
$ac_ext
16887 cat >>conftest.
$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 #include <$ac_header>
16891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16894 grep -v '^ *+' conftest.er1
>conftest.err
16896 cat conftest.err
>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } >/dev
/null
; then
16899 if test -s conftest.err
; then
16900 ac_cpp_err
=$ac_c_preproc_warn_flag
16901 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16908 if test -z "$ac_cpp_err"; then
16909 ac_header_preproc
=yes
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.
$ac_ext >&5
16914 ac_header_preproc
=no
16916 rm -f conftest.err conftest.
$ac_ext
16917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16918 echo "${ECHO_T}$ac_header_preproc" >&6
16920 # So? What about this header?
16921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16927 ac_header_preproc
=yes
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16944 ## ------------------------------------------ ##
16945 ## Report this to the AC_PACKAGE_NAME lists. ##
16946 ## ------------------------------------------ ##
16949 sed "s/^/$as_me: WARNING: /" >&2
16952 echo "$as_me:$LINENO: checking for $ac_header" >&5
16953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 eval "$as_ac_Header=\$ac_header_preproc"
16959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16964 cat >>confdefs.h
<<_ACEOF
16965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16967 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16968 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16969 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 cat >conftest.
$ac_ext <<_ACEOF
16975 cat confdefs.h
>>conftest.
$ac_ext
16976 cat >>conftest.
$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16983 static struct nlist ac_aggr;
16984 if (ac_aggr.n_un.n_name)
16990 rm -f conftest.
$ac_objext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16992 (eval $ac_compile) 2>conftest.er1
16994 grep -v '^ *+' conftest.er1
>conftest.err
16996 cat conftest.err
>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try
='test -z "$ac_c_werror_flag"
17000 || test ! -s conftest.err'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try
='test -s conftest.$ac_objext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_cv_member_struct_nlist_n_un_n_name
=yes
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.
$ac_ext >&5
17017 cat >conftest.
$ac_ext <<_ACEOF
17020 cat confdefs.h
>>conftest.
$ac_ext
17021 cat >>conftest.
$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17028 static struct nlist ac_aggr;
17029 if (sizeof ac_aggr.n_un.n_name)
17035 rm -f conftest.
$ac_objext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17037 (eval $ac_compile) 2>conftest.er1
17039 grep -v '^ *+' conftest.er1
>conftest.err
17041 cat conftest.err
>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try
='test -z "$ac_c_werror_flag"
17045 || test ! -s conftest.err'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try
='test -s conftest.$ac_objext'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_cv_member_struct_nlist_n_un_n_name
=yes
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.
$ac_ext >&5
17062 ac_cv_member_struct_nlist_n_un_n_name
=no
17064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17069 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17070 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17072 cat >>confdefs.h
<<_ACEOF
17073 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17077 cat >>confdefs.h
<<\_ACEOF
17078 #define NLIST_NAME_UNION 1
17092 # Some definitions of getloadavg require that the program be installed setgid.
17093 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17094 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17095 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 cat >conftest.
$ac_ext <<_ACEOF
17101 cat confdefs.h
>>conftest.
$ac_ext
17102 cat >>conftest.
$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17105 #ifdef LDAV_PRIVILEGED
17106 Yowza Am I SETGID yet
17109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17110 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17111 ac_cv_func_getloadavg_setgid
=yes
17113 ac_cv_func_getloadavg_setgid
=no
17118 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17119 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17120 if test $ac_cv_func_getloadavg_setgid = yes; then
17123 cat >>confdefs.h
<<\_ACEOF
17124 #define GETLOADAVG_PRIVILEGED 1
17131 if test $ac_cv_func_getloadavg_setgid = yes; then
17132 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17133 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17134 if test "${ac_cv_group_kmem+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17138 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17139 # If we got an error (system does not support symlinks), try without -L.
17140 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17141 ac_cv_group_kmem
=`echo $ac_ls_output \
17142 | sed -ne 's/[ ][ ]*/ /g;
17143 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17147 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17148 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17149 KMEM_GROUP
=$ac_cv_group_kmem
17151 if test "x$ac_save_LIBS" = x
; then
17152 GETLOADAVG_LIBS
=$LIBS
17154 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17160 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17161 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17162 if test "${ac_cv_sys_largefile_source+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 ac_cv_sys_largefile_source
=no
17167 cat >conftest.
$ac_ext <<_ACEOF
17170 cat confdefs.h
>>conftest.
$ac_ext
17171 cat >>conftest.
$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17182 rm -f conftest.
$ac_objext
17183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17184 (eval $ac_compile) 2>conftest.er1
17186 grep -v '^ *+' conftest.er1
>conftest.err
17188 cat conftest.err
>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try
='test -z "$ac_c_werror_flag"
17192 || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try
='test -s conftest.$ac_objext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.
$ac_ext >&5
17210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17211 cat >conftest.
$ac_ext <<_ACEOF
17214 cat confdefs.h
>>conftest.
$ac_ext
17215 cat >>conftest.
$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 #define _LARGEFILE_SOURCE 1
17227 rm -f conftest.
$ac_objext
17228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17229 (eval $ac_compile) 2>conftest.er1
17231 grep -v '^ *+' conftest.er1
>conftest.err
17233 cat conftest.err
>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try
='test -z "$ac_c_werror_flag"
17237 || test ! -s conftest.err'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try
='test -s conftest.$ac_objext'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 ac_cv_sys_largefile_source
=1; break
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.
$ac_ext >&5
17255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17259 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17260 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17261 if test "$ac_cv_sys_largefile_source" != no
; then
17263 cat >>confdefs.h
<<_ACEOF
17264 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17270 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17271 # in glibc 2.1.3, but that breaks too many other things.
17272 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17273 echo "$as_me:$LINENO: checking for fseeko" >&5
17274 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17275 if test "${ac_cv_func_fseeko+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 cat >conftest.
$ac_ext <<_ACEOF
17281 cat confdefs.h
>>conftest.
$ac_ext
17282 cat >>conftest.
$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17288 return fseeko && fseeko (stdin, 0, 0);
17293 rm -f conftest.
$ac_objext conftest
$ac_exeext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295 (eval $ac_link) 2>conftest.er1
17297 grep -v '^ *+' conftest.er1
>conftest.err
17299 cat conftest.err
>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try
='test -z "$ac_c_werror_flag"
17303 || test ! -s conftest.err'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try
='test -s conftest$ac_exeext'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 ac_cv_func_fseeko
=yes
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.
$ac_ext >&5
17320 ac_cv_func_fseeko
=no
17322 rm -f conftest.err conftest.
$ac_objext \
17323 conftest
$ac_exeext conftest.
$ac_ext
17325 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17326 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17327 if test $ac_cv_func_fseeko = yes; then
17329 cat >>confdefs.h
<<\_ACEOF
17330 #define HAVE_FSEEKO 1
17336 # Configure getopt.
17337 # getopt.m4 serial 10
17339 # The getopt module assume you want GNU getopt, with getopt_long etc,
17340 # rather than vanilla POSIX getopt. This means your your code should
17341 # always include <getopt.h> for the getopt prototypes.
17353 # Prerequisites of lib/getopt*.
17360 for ac_header
in getopt.h
17362 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17364 echo "$as_me:$LINENO: checking for $ac_header" >&5
17365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17372 # Is the header compilable?
17373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17375 cat >conftest.
$ac_ext <<_ACEOF
17378 cat confdefs.h
>>conftest.
$ac_ext
17379 cat >>conftest.
$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 $ac_includes_default
17382 #include <$ac_header>
17384 rm -f conftest.
$ac_objext
17385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17386 (eval $ac_compile) 2>conftest.er1
17388 grep -v '^ *+' conftest.er1
>conftest.err
17390 cat conftest.err
>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try
='test -z "$ac_c_werror_flag"
17394 || test ! -s conftest.err'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; } &&
17400 { ac_try
='test -s conftest.$ac_objext'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_header_compiler
=yes
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.
$ac_ext >&5
17411 ac_header_compiler
=no
17413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17415 echo "${ECHO_T}$ac_header_compiler" >&6
17417 # Is the header present?
17418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17420 cat >conftest.
$ac_ext <<_ACEOF
17423 cat confdefs.h
>>conftest.
$ac_ext
17424 cat >>conftest.
$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 #include <$ac_header>
17428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17429 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17431 grep -v '^ *+' conftest.er1
>conftest.err
17433 cat conftest.err
>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } >/dev
/null
; then
17436 if test -s conftest.err
; then
17437 ac_cpp_err
=$ac_c_preproc_warn_flag
17438 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17445 if test -z "$ac_cpp_err"; then
17446 ac_header_preproc
=yes
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.
$ac_ext >&5
17451 ac_header_preproc
=no
17453 rm -f conftest.err conftest.
$ac_ext
17454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17455 echo "${ECHO_T}$ac_header_preproc" >&6
17457 # So? What about this header?
17458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17464 ac_header_preproc
=yes
17467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17481 ## ------------------------------------------ ##
17482 ## Report this to the AC_PACKAGE_NAME lists. ##
17483 ## ------------------------------------------ ##
17486 sed "s/^/$as_me: WARNING: /" >&2
17489 echo "$as_me:$LINENO: checking for $ac_header" >&5
17490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17494 eval "$as_ac_Header=\$ac_header_preproc"
17496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17501 cat >>confdefs.h
<<_ACEOF
17502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17511 if test -z "$GETOPT_H"; then
17513 for ac_func
in getopt_long_only
17515 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17516 echo "$as_me:$LINENO: checking for $ac_func" >&5
17517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17518 if eval "test \"\${$as_ac_var+set}\" = set"; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 cat >conftest.
$ac_ext <<_ACEOF
17524 cat confdefs.h
>>conftest.
$ac_ext
17525 cat >>conftest.
$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529 #define $ac_func innocuous_$ac_func
17531 /* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char $ac_func (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17537 # include <limits.h>
17539 # include <assert.h>
17544 /* Override any gcc2 internal prototype to avoid an error. */
17549 /* We use char because int might match the return type of a gcc2
17550 builtin and then its argument prototype would still apply. */
17552 /* The GNU C library defines this for functions which it implements
17553 to always fail with ENOSYS. Some functions are actually named
17554 something starting with __ and the normal name is an alias. */
17555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17558 char (*f) () = $ac_func;
17567 return f != $ac_func;
17572 rm -f conftest.
$ac_objext conftest
$ac_exeext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574 (eval $ac_link) 2>conftest.er1
17576 grep -v '^ *+' conftest.er1
>conftest.err
17578 cat conftest.err
>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try
='test -z "$ac_c_werror_flag"
17582 || test ! -s conftest.err'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; } &&
17588 { ac_try
='test -s conftest$ac_exeext'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 eval "$as_ac_var=yes"
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.
$ac_ext >&5
17599 eval "$as_ac_var=no"
17601 rm -f conftest.err conftest.
$ac_objext \
17602 conftest
$ac_exeext conftest.
$ac_ext
17604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17606 if test `eval echo '${'$as_ac_var'}'` = yes; then
17607 cat >>confdefs.h
<<_ACEOF
17608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17618 if test -z "$GETOPT_H"; then
17619 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17620 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17621 if test "${ac_cv_have_decl_optreset+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.
$ac_ext <<_ACEOF
17627 cat confdefs.h
>>conftest.
$ac_ext
17628 cat >>conftest.
$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 #include <getopt.h>
17636 char *p = (char *) optreset;
17643 rm -f conftest.
$ac_objext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645 (eval $ac_compile) 2>conftest.er1
17647 grep -v '^ *+' conftest.er1
>conftest.err
17649 cat conftest.err
>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try
='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try
='test -s conftest.$ac_objext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_have_decl_optreset
=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.
$ac_ext >&5
17670 ac_cv_have_decl_optreset
=no
17672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17674 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17675 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17676 if test $ac_cv_have_decl_optreset = yes; then
17682 if test -z "$GETOPT_H"; then
17683 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17684 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17685 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 if test "$cross_compiling" = yes; then
17689 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17690 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17691 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 cat >conftest.
$ac_ext <<_ACEOF
17697 cat confdefs.h
>>conftest.
$ac_ext
17698 cat >>conftest.
$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700 #include <getopt.h>
17705 #ifndef getopt_clip
17706 char *p = (char *) getopt_clip;
17713 rm -f conftest.
$ac_objext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17715 (eval $ac_compile) 2>conftest.er1
17717 grep -v '^ *+' conftest.er1
>conftest.err
17719 cat conftest.err
>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try
='test -z "$ac_c_werror_flag"
17723 || test ! -s conftest.err'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; } &&
17729 { ac_try
='test -s conftest.$ac_objext'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_have_decl_getopt_clip
=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.
$ac_ext >&5
17740 ac_cv_have_decl_getopt_clip
=no
17742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17744 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17745 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17746 if test $ac_cv_have_decl_getopt_clip = yes; then
17747 gl_cv_func_gnu_getopt
=no
17749 gl_cv_func_gnu_getopt
=yes
17753 cat >conftest.
$ac_ext <<_ACEOF
17756 cat confdefs.h
>>conftest.
$ac_ext
17757 cat >>conftest.
$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 #include <getopt.h>
17765 myargv[0] = "conftest";
17768 return getopt (2, myargv, "+a") != '?';
17774 rm -f conftest
$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776 (eval $ac_link) 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 gl_cv_func_gnu_getopt
=yes
17787 echo "$as_me: program exited with status $ac_status" >&5
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.
$ac_ext >&5
17791 ( exit $ac_status )
17792 gl_cv_func_gnu_getopt
=no
17794 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17797 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17798 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17799 if test "$gl_cv_func_gnu_getopt" = "no"; then
17806 if test -n "$GETOPT_H"; then
17811 cat >>confdefs.h
<<\_ACEOF
17812 #define __GETOPT_PREFIX rpl_
17818 GETOPTOBJS
='getopt.o getopt1.o'
17825 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17826 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17827 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 # Use it with a single arg.
17831 cat >conftest.
$ac_ext <<_ACEOF
17834 cat confdefs.h
>>conftest.
$ac_ext
17835 cat >>conftest.
$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17837 $ac_includes_default
17846 rm -f conftest.
$ac_objext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848 (eval $ac_compile) 2>conftest.er1
17850 grep -v '^ *+' conftest.er1
>conftest.err
17852 cat conftest.err
>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try
='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try
='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_func_getpgrp_void
=no
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.
$ac_ext >&5
17873 ac_cv_func_getpgrp_void
=yes
17875 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17878 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17879 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17880 if test $ac_cv_func_getpgrp_void = yes; then
17882 cat >>confdefs.h
<<\_ACEOF
17883 #define GETPGRP_VOID 1
17890 for ac_func
in strftime
17892 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17893 echo "$as_me:$LINENO: checking for $ac_func" >&5
17894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17895 if eval "test \"\${$as_ac_var+set}\" = set"; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 cat >conftest.
$ac_ext <<_ACEOF
17901 cat confdefs.h
>>conftest.
$ac_ext
17902 cat >>conftest.
$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17906 #define $ac_func innocuous_$ac_func
17908 /* System header to define __stub macros and hopefully few prototypes,
17909 which can conflict with char $ac_func (); below.
17910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17911 <limits.h> exists even on freestanding compilers. */
17914 # include <limits.h>
17916 # include <assert.h>
17921 /* Override any gcc2 internal prototype to avoid an error. */
17926 /* We use char because int might match the return type of a gcc2
17927 builtin and then its argument prototype would still apply. */
17929 /* The GNU C library defines this for functions which it implements
17930 to always fail with ENOSYS. Some functions are actually named
17931 something starting with __ and the normal name is an alias. */
17932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17935 char (*f) () = $ac_func;
17944 return f != $ac_func;
17949 rm -f conftest.
$ac_objext conftest
$ac_exeext
17950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17951 (eval $ac_link) 2>conftest.er1
17953 grep -v '^ *+' conftest.er1
>conftest.err
17955 cat conftest.err
>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try
='test -z "$ac_c_werror_flag"
17959 || test ! -s conftest.err'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try
='test -s conftest$ac_exeext'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 eval "$as_ac_var=yes"
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.
$ac_ext >&5
17976 eval "$as_ac_var=no"
17978 rm -f conftest.err conftest.
$ac_objext \
17979 conftest
$ac_exeext conftest.
$ac_ext
17981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17983 if test `eval echo '${'$as_ac_var'}'` = yes; then
17984 cat >>confdefs.h
<<_ACEOF
17985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17989 # strftime is in -lintl on SCO UNIX.
17990 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17991 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17992 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 ac_check_lib_save_LIBS
=$LIBS
17996 LIBS
="-lintl $LIBS"
17997 cat >conftest.
$ac_ext <<_ACEOF
18000 cat confdefs.h
>>conftest.
$ac_ext
18001 cat >>conftest.
$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18004 /* Override any gcc2 internal prototype to avoid an error. */
18008 /* We use char because int might match the return type of a gcc2
18009 builtin and then its argument prototype would still apply. */
18019 rm -f conftest.
$ac_objext conftest
$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>conftest.er1
18023 grep -v '^ *+' conftest.er1
>conftest.err
18025 cat conftest.err
>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try
='test -z "$ac_c_werror_flag"
18029 || test ! -s conftest.err'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try
='test -s conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 ac_cv_lib_intl_strftime
=yes
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.
$ac_ext >&5
18046 ac_cv_lib_intl_strftime
=no
18048 rm -f conftest.err conftest.
$ac_objext \
18049 conftest
$ac_exeext conftest.
$ac_ext
18050 LIBS
=$ac_check_lib_save_LIBS
18052 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18053 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18054 if test $ac_cv_lib_intl_strftime = yes; then
18055 cat >>confdefs.h
<<\_ACEOF
18056 #define HAVE_STRFTIME 1
18059 LIBS
="-lintl $LIBS"
18068 for ac_func
in grantpt
18070 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18071 echo "$as_me:$LINENO: checking for $ac_func" >&5
18072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18073 if eval "test \"\${$as_ac_var+set}\" = set"; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 cat >conftest.
$ac_ext <<_ACEOF
18079 cat confdefs.h
>>conftest.
$ac_ext
18080 cat >>conftest.
$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18084 #define $ac_func innocuous_$ac_func
18086 /* System header to define __stub macros and hopefully few prototypes,
18087 which can conflict with char $ac_func (); below.
18088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18089 <limits.h> exists even on freestanding compilers. */
18092 # include <limits.h>
18094 # include <assert.h>
18099 /* Override any gcc2 internal prototype to avoid an error. */
18104 /* We use char because int might match the return type of a gcc2
18105 builtin and then its argument prototype would still apply. */
18107 /* The GNU C library defines this for functions which it implements
18108 to always fail with ENOSYS. Some functions are actually named
18109 something starting with __ and the normal name is an alias. */
18110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18113 char (*f) () = $ac_func;
18122 return f != $ac_func;
18127 rm -f conftest.
$ac_objext conftest
$ac_exeext
18128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18129 (eval $ac_link) 2>conftest.er1
18131 grep -v '^ *+' conftest.er1
>conftest.err
18133 cat conftest.err
>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try
='test -z "$ac_c_werror_flag"
18137 || test ! -s conftest.err'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; } &&
18143 { ac_try
='test -s conftest$ac_exeext'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 eval "$as_ac_var=yes"
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.
$ac_ext >&5
18154 eval "$as_ac_var=no"
18156 rm -f conftest.err conftest.
$ac_objext \
18157 conftest
$ac_exeext conftest.
$ac_ext
18159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18161 if test `eval echo '${'$as_ac_var'}'` = yes; then
18162 cat >>confdefs.h
<<_ACEOF
18163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18170 # PTY-related GNU extensions.
18172 for ac_func
in getpt
18174 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18175 echo "$as_me:$LINENO: checking for $ac_func" >&5
18176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18177 if eval "test \"\${$as_ac_var+set}\" = set"; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 cat >conftest.
$ac_ext <<_ACEOF
18183 cat confdefs.h
>>conftest.
$ac_ext
18184 cat >>conftest.
$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18188 #define $ac_func innocuous_$ac_func
18190 /* System header to define __stub macros and hopefully few prototypes,
18191 which can conflict with char $ac_func (); below.
18192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18193 <limits.h> exists even on freestanding compilers. */
18196 # include <limits.h>
18198 # include <assert.h>
18203 /* Override any gcc2 internal prototype to avoid an error. */
18208 /* We use char because int might match the return type of a gcc2
18209 builtin and then its argument prototype would still apply. */
18211 /* The GNU C library defines this for functions which it implements
18212 to always fail with ENOSYS. Some functions are actually named
18213 something starting with __ and the normal name is an alias. */
18214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18217 char (*f) () = $ac_func;
18226 return f != $ac_func;
18231 rm -f conftest.
$ac_objext conftest
$ac_exeext
18232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18233 (eval $ac_link) 2>conftest.er1
18235 grep -v '^ *+' conftest.er1
>conftest.err
18237 cat conftest.err
>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try
='test -z "$ac_c_werror_flag"
18241 || test ! -s conftest.err'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; } &&
18247 { ac_try
='test -s conftest$ac_exeext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 eval "$as_ac_var=yes"
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.
$ac_ext >&5
18258 eval "$as_ac_var=no"
18260 rm -f conftest.err conftest.
$ac_objext \
18261 conftest
$ac_exeext conftest.
$ac_ext
18263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18265 if test `eval echo '${'$as_ac_var'}'` = yes; then
18266 cat >>confdefs.h
<<_ACEOF
18267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18274 # Check this now, so that we will NOT find the above functions in ncurses.
18275 # That is because we have not set up to link ncurses in lib-src.
18276 # It's better to believe a function is not available
18277 # than to expect to find it in ncurses.
18279 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18280 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18281 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 ac_check_lib_save_LIBS
=$LIBS
18285 LIBS
="-lncurses $LIBS"
18286 cat >conftest.
$ac_ext <<_ACEOF
18289 cat confdefs.h
>>conftest.
$ac_ext
18290 cat >>conftest.
$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18293 /* Override any gcc2 internal prototype to avoid an error. */
18297 /* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18308 rm -f conftest.
$ac_objext conftest
$ac_exeext
18309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18310 (eval $ac_link) 2>conftest.er1
18312 grep -v '^ *+' conftest.er1
>conftest.err
18314 cat conftest.err
>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
18317 { ac_try
='test -z "$ac_c_werror_flag"
18318 || test ! -s conftest.err'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try
='test -s conftest$ac_exeext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_cv_lib_ncurses_tparm
=yes
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.
$ac_ext >&5
18335 ac_cv_lib_ncurses_tparm
=no
18337 rm -f conftest.err conftest.
$ac_objext \
18338 conftest
$ac_exeext conftest.
$ac_ext
18339 LIBS
=$ac_check_lib_save_LIBS
18341 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18342 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18343 if test $ac_cv_lib_ncurses_tparm = yes; then
18344 cat >>confdefs.h
<<_ACEOF
18345 #define HAVE_LIBNCURSES 1
18348 LIBS
="-lncurses $LIBS"
18353 # Do we need the Hesiod library to provide the support routines?
18354 if test "$with_hesiod" = yes ; then
18355 # Don't set $LIBS here -- see comments above.
18357 echo "$as_me:$LINENO: checking for res_send" >&5
18358 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18359 if test "${ac_cv_func_res_send+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 cat >conftest.
$ac_ext <<_ACEOF
18365 cat confdefs.h
>>conftest.
$ac_ext
18366 cat >>conftest.
$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18368 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18370 #define res_send innocuous_res_send
18372 /* System header to define __stub macros and hopefully few prototypes,
18373 which can conflict with char res_send (); below.
18374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18375 <limits.h> exists even on freestanding compilers. */
18378 # include <limits.h>
18380 # include <assert.h>
18385 /* Override any gcc2 internal prototype to avoid an error. */
18390 /* We use char because int might match the return type of a gcc2
18391 builtin and then its argument prototype would still apply. */
18393 /* The GNU C library defines this for functions which it implements
18394 to always fail with ENOSYS. Some functions are actually named
18395 something starting with __ and the normal name is an alias. */
18396 #if defined (__stub_res_send) || defined (__stub___res_send)
18399 char (*f) () = res_send;
18408 return f != res_send;
18413 rm -f conftest.
$ac_objext conftest
$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415 (eval $ac_link) 2>conftest.er1
18417 grep -v '^ *+' conftest.er1
>conftest.err
18419 cat conftest.err
>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try
='test -z "$ac_c_werror_flag"
18423 || test ! -s conftest.err'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try
='test -s conftest$ac_exeext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_func_res_send
=yes
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.
$ac_ext >&5
18440 ac_cv_func_res_send
=no
18442 rm -f conftest.err conftest.
$ac_objext \
18443 conftest
$ac_exeext conftest.
$ac_ext
18445 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18446 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18447 if test $ac_cv_func_res_send = yes; then
18450 echo "$as_me:$LINENO: checking for __res_send" >&5
18451 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18452 if test "${ac_cv_func___res_send+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 cat >conftest.
$ac_ext <<_ACEOF
18458 cat confdefs.h
>>conftest.
$ac_ext
18459 cat >>conftest.
$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18461 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18463 #define __res_send innocuous___res_send
18465 /* System header to define __stub macros and hopefully few prototypes,
18466 which can conflict with char __res_send (); below.
18467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18468 <limits.h> exists even on freestanding compilers. */
18471 # include <limits.h>
18473 # include <assert.h>
18478 /* Override any gcc2 internal prototype to avoid an error. */
18483 /* We use char because int might match the return type of a gcc2
18484 builtin and then its argument prototype would still apply. */
18485 char __res_send ();
18486 /* The GNU C library defines this for functions which it implements
18487 to always fail with ENOSYS. Some functions are actually named
18488 something starting with __ and the normal name is an alias. */
18489 #if defined (__stub___res_send) || defined (__stub_____res_send)
18492 char (*f) () = __res_send;
18501 return f != __res_send;
18506 rm -f conftest.
$ac_objext conftest
$ac_exeext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 (eval $ac_link) 2>conftest.er1
18510 grep -v '^ *+' conftest.er1
>conftest.err
18512 cat conftest.err
>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } &&
18515 { ac_try
='test -z "$ac_c_werror_flag"
18516 || test ! -s conftest.err'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try
='test -s conftest$ac_exeext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_func___res_send
=yes
18530 echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.
$ac_ext >&5
18533 ac_cv_func___res_send
=no
18535 rm -f conftest.err conftest.
$ac_objext \
18536 conftest
$ac_exeext conftest.
$ac_ext
18538 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18539 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18540 if test $ac_cv_func___res_send = yes; then
18543 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18544 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18545 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 ac_check_lib_save_LIBS
=$LIBS
18549 LIBS
="-lresolv $LIBS"
18550 cat >conftest.
$ac_ext <<_ACEOF
18553 cat confdefs.h
>>conftest.
$ac_ext
18554 cat >>conftest.
$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18557 /* Override any gcc2 internal prototype to avoid an error. */
18561 /* We use char because int might match the return type of a gcc2
18562 builtin and then its argument prototype would still apply. */
18572 rm -f conftest.
$ac_objext conftest
$ac_exeext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18574 (eval $ac_link) 2>conftest.er1
18576 grep -v '^ *+' conftest.er1
>conftest.err
18578 cat conftest.err
>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try
='test -z "$ac_c_werror_flag"
18582 || test ! -s conftest.err'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try
='test -s conftest$ac_exeext'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_cv_lib_resolv_res_send
=yes
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.
$ac_ext >&5
18599 ac_cv_lib_resolv_res_send
=no
18601 rm -f conftest.err conftest.
$ac_objext \
18602 conftest
$ac_exeext conftest.
$ac_ext
18603 LIBS
=$ac_check_lib_save_LIBS
18605 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18606 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18607 if test $ac_cv_lib_resolv_res_send = yes; then
18610 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18611 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18612 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 ac_check_lib_save_LIBS
=$LIBS
18616 LIBS
="-lresolv $LIBS"
18617 cat >conftest.
$ac_ext <<_ACEOF
18620 cat confdefs.h
>>conftest.
$ac_ext
18621 cat >>conftest.
$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18624 /* Override any gcc2 internal prototype to avoid an error. */
18628 /* We use char because int might match the return type of a gcc2
18629 builtin and then its argument prototype would still apply. */
18630 char __res_send ();
18639 rm -f conftest.
$ac_objext conftest
$ac_exeext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18641 (eval $ac_link) 2>conftest.er1
18643 grep -v '^ *+' conftest.er1
>conftest.err
18645 cat conftest.err
>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try
='test -z "$ac_c_werror_flag"
18649 || test ! -s conftest.err'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; } &&
18655 { ac_try
='test -s conftest$ac_exeext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 ac_cv_lib_resolv___res_send
=yes
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.
$ac_ext >&5
18666 ac_cv_lib_resolv___res_send
=no
18668 rm -f conftest.err conftest.
$ac_objext \
18669 conftest
$ac_exeext conftest.
$ac_ext
18670 LIBS
=$ac_check_lib_save_LIBS
18672 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18673 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18674 if test $ac_cv_lib_resolv___res_send = yes; then
18684 if test "$resolv" = yes ; then
18687 cat >>confdefs.h
<<\_ACEOF
18688 #define HAVE_LIBRESOLV 1
18694 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18695 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18696 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18699 cat >conftest.
$ac_ext <<_ACEOF
18702 cat confdefs.h
>>conftest.
$ac_ext
18703 cat >>conftest.
$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18707 #define hes_getmailhost innocuous_hes_getmailhost
18709 /* System header to define __stub macros and hopefully few prototypes,
18710 which can conflict with char hes_getmailhost (); below.
18711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18712 <limits.h> exists even on freestanding compilers. */
18715 # include <limits.h>
18717 # include <assert.h>
18720 #undef hes_getmailhost
18722 /* Override any gcc2 internal prototype to avoid an error. */
18727 /* We use char because int might match the return type of a gcc2
18728 builtin and then its argument prototype would still apply. */
18729 char hes_getmailhost ();
18730 /* The GNU C library defines this for functions which it implements
18731 to always fail with ENOSYS. Some functions are actually named
18732 something starting with __ and the normal name is an alias. */
18733 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18736 char (*f) () = hes_getmailhost;
18745 return f != hes_getmailhost;
18750 rm -f conftest.
$ac_objext conftest
$ac_exeext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18752 (eval $ac_link) 2>conftest.er1
18754 grep -v '^ *+' conftest.er1
>conftest.err
18756 cat conftest.err
>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try
='test -z "$ac_c_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try
='test -s conftest$ac_exeext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_func_hes_getmailhost
=yes
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.
$ac_ext >&5
18777 ac_cv_func_hes_getmailhost
=no
18779 rm -f conftest.err conftest.
$ac_objext \
18780 conftest
$ac_exeext conftest.
$ac_ext
18782 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18783 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18784 if test $ac_cv_func_hes_getmailhost = yes; then
18787 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18788 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18789 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 ac_check_lib_save_LIBS
=$LIBS
18793 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18794 cat >conftest.
$ac_ext <<_ACEOF
18797 cat confdefs.h
>>conftest.
$ac_ext
18798 cat >>conftest.
$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18801 /* Override any gcc2 internal prototype to avoid an error. */
18805 /* We use char because int might match the return type of a gcc2
18806 builtin and then its argument prototype would still apply. */
18807 char hes_getmailhost ();
18811 hes_getmailhost ();
18816 rm -f conftest.
$ac_objext conftest
$ac_exeext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18818 (eval $ac_link) 2>conftest.er1
18820 grep -v '^ *+' conftest.er1
>conftest.err
18822 cat conftest.err
>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try
='test -z "$ac_c_werror_flag"
18826 || test ! -s conftest.err'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try
='test -s conftest$ac_exeext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 ac_cv_lib_hesiod_hes_getmailhost
=yes
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.
$ac_ext >&5
18843 ac_cv_lib_hesiod_hes_getmailhost
=no
18845 rm -f conftest.err conftest.
$ac_objext \
18846 conftest
$ac_exeext conftest.
$ac_ext
18847 LIBS
=$ac_check_lib_save_LIBS
18849 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18850 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18851 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18853 cat >>confdefs.h
<<\_ACEOF
18854 #define HAVE_LIBHESIOD 1
18865 # These tell us which Kerberos-related libraries to use.
18866 if test "${with_kerberos+set}" = set; then
18868 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18869 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18870 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 ac_check_lib_save_LIBS
=$LIBS
18874 LIBS
="-lcom_err $LIBS"
18875 cat >conftest.
$ac_ext <<_ACEOF
18878 cat confdefs.h
>>conftest.
$ac_ext
18879 cat >>conftest.
$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18882 /* Override any gcc2 internal prototype to avoid an error. */
18886 /* We use char because int might match the return type of a gcc2
18887 builtin and then its argument prototype would still apply. */
18897 rm -f conftest.
$ac_objext conftest
$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899 (eval $ac_link) 2>conftest.er1
18901 grep -v '^ *+' conftest.er1
>conftest.err
18903 cat conftest.err
>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
18906 { ac_try
='test -z "$ac_c_werror_flag"
18907 || test ! -s conftest.err'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try
='test -s conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_lib_com_err_com_err
=yes
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.
$ac_ext >&5
18924 ac_cv_lib_com_err_com_err
=no
18926 rm -f conftest.err conftest.
$ac_objext \
18927 conftest
$ac_exeext conftest.
$ac_ext
18928 LIBS
=$ac_check_lib_save_LIBS
18930 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18931 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18932 if test $ac_cv_lib_com_err_com_err = yes; then
18933 cat >>confdefs.h
<<_ACEOF
18934 #define HAVE_LIBCOM_ERR 1
18937 LIBS
="-lcom_err $LIBS"
18942 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18943 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18944 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 ac_check_lib_save_LIBS
=$LIBS
18948 LIBS
="-lk5crypto $LIBS"
18949 cat >conftest.
$ac_ext <<_ACEOF
18952 cat confdefs.h
>>conftest.
$ac_ext
18953 cat >>conftest.
$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18956 /* Override any gcc2 internal prototype to avoid an error. */
18960 /* We use char because int might match the return type of a gcc2
18961 builtin and then its argument prototype would still apply. */
18962 char mit_des_cbc_encrypt ();
18966 mit_des_cbc_encrypt ();
18971 rm -f conftest.
$ac_objext conftest
$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973 (eval $ac_link) 2>conftest.er1
18975 grep -v '^ *+' conftest.er1
>conftest.err
18977 cat conftest.err
>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try
='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try
='test -s conftest$ac_exeext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.
$ac_ext >&5
18998 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19000 rm -f conftest.err conftest.
$ac_objext \
19001 conftest
$ac_exeext conftest.
$ac_ext
19002 LIBS
=$ac_check_lib_save_LIBS
19004 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19005 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19006 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19007 cat >>confdefs.h
<<_ACEOF
19008 #define HAVE_LIBK5CRYPTO 1
19011 LIBS
="-lk5crypto $LIBS"
19016 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19017 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19018 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 ac_check_lib_save_LIBS
=$LIBS
19022 LIBS
="-lcrypto $LIBS"
19023 cat >conftest.
$ac_ext <<_ACEOF
19026 cat confdefs.h
>>conftest.
$ac_ext
19027 cat >>conftest.
$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any gcc2 internal prototype to avoid an error. */
19034 /* We use char because int might match the return type of a gcc2
19035 builtin and then its argument prototype would still apply. */
19036 char mit_des_cbc_encrypt ();
19040 mit_des_cbc_encrypt ();
19045 rm -f conftest.
$ac_objext conftest
$ac_exeext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19047 (eval $ac_link) 2>conftest.er1
19049 grep -v '^ *+' conftest.er1
>conftest.err
19051 cat conftest.err
>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try
='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try
='test -s conftest$ac_exeext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.
$ac_ext >&5
19072 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19074 rm -f conftest.err conftest.
$ac_objext \
19075 conftest
$ac_exeext conftest.
$ac_ext
19076 LIBS
=$ac_check_lib_save_LIBS
19078 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19079 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19080 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19081 cat >>confdefs.h
<<_ACEOF
19082 #define HAVE_LIBCRYPTO 1
19085 LIBS
="-lcrypto $LIBS"
19090 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19091 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19092 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 ac_check_lib_save_LIBS
=$LIBS
19096 LIBS
="-lkrb5 $LIBS"
19097 cat >conftest.
$ac_ext <<_ACEOF
19100 cat confdefs.h
>>conftest.
$ac_ext
19101 cat >>conftest.
$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19104 /* Override any gcc2 internal prototype to avoid an error. */
19108 /* We use char because int might match the return type of a gcc2
19109 builtin and then its argument prototype would still apply. */
19110 char krb5_init_context ();
19114 krb5_init_context ();
19119 rm -f conftest.
$ac_objext conftest
$ac_exeext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19121 (eval $ac_link) 2>conftest.er1
19123 grep -v '^ *+' conftest.er1
>conftest.err
19125 cat conftest.err
>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try
='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try
='test -s conftest$ac_exeext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_cv_lib_krb5_krb5_init_context
=yes
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.
$ac_ext >&5
19146 ac_cv_lib_krb5_krb5_init_context
=no
19148 rm -f conftest.err conftest.
$ac_objext \
19149 conftest
$ac_exeext conftest.
$ac_ext
19150 LIBS
=$ac_check_lib_save_LIBS
19152 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19153 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19154 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19155 cat >>confdefs.h
<<_ACEOF
19156 #define HAVE_LIBKRB5 1
19159 LIBS
="-lkrb5 $LIBS"
19163 if test "${with_kerberos5+set}" != set; then
19165 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19166 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19167 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19170 ac_check_lib_save_LIBS
=$LIBS
19171 LIBS
="-ldes425 $LIBS"
19172 cat >conftest.
$ac_ext <<_ACEOF
19175 cat confdefs.h
>>conftest.
$ac_ext
19176 cat >>conftest.
$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19179 /* Override any gcc2 internal prototype to avoid an error. */
19183 /* We use char because int might match the return type of a gcc2
19184 builtin and then its argument prototype would still apply. */
19185 char des_cbc_encrypt ();
19189 des_cbc_encrypt ();
19194 rm -f conftest.
$ac_objext conftest
$ac_exeext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196 (eval $ac_link) 2>conftest.er1
19198 grep -v '^ *+' conftest.er1
>conftest.err
19200 cat conftest.err
>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
19203 { ac_try
='test -z "$ac_c_werror_flag"
19204 || test ! -s conftest.err'
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); }; } &&
19210 { ac_try
='test -s conftest$ac_exeext'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; }; then
19216 ac_cv_lib_des425_des_cbc_encrypt
=yes
19218 echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.
$ac_ext >&5
19221 ac_cv_lib_des425_des_cbc_encrypt
=no
19223 rm -f conftest.err conftest.
$ac_objext \
19224 conftest
$ac_exeext conftest.
$ac_ext
19225 LIBS
=$ac_check_lib_save_LIBS
19227 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19228 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19229 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19230 cat >>confdefs.h
<<_ACEOF
19231 #define HAVE_LIBDES425 1
19234 LIBS
="-ldes425 $LIBS"
19238 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19239 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19240 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 ac_check_lib_save_LIBS
=$LIBS
19245 cat >conftest.
$ac_ext <<_ACEOF
19248 cat confdefs.h
>>conftest.
$ac_ext
19249 cat >>conftest.
$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19252 /* Override any gcc2 internal prototype to avoid an error. */
19256 /* We use char because int might match the return type of a gcc2
19257 builtin and then its argument prototype would still apply. */
19258 char des_cbc_encrypt ();
19262 des_cbc_encrypt ();
19267 rm -f conftest.
$ac_objext conftest
$ac_exeext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19269 (eval $ac_link) 2>conftest.er1
19271 grep -v '^ *+' conftest.er1
>conftest.err
19273 cat conftest.err
>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try
='test -z "$ac_c_werror_flag"
19277 || test ! -s conftest.err'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try
='test -s conftest$ac_exeext'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_lib_des_des_cbc_encrypt
=yes
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.
$ac_ext >&5
19294 ac_cv_lib_des_des_cbc_encrypt
=no
19296 rm -f conftest.err conftest.
$ac_objext \
19297 conftest
$ac_exeext conftest.
$ac_ext
19298 LIBS
=$ac_check_lib_save_LIBS
19300 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19301 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19302 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19303 cat >>confdefs.h
<<_ACEOF
19304 #define HAVE_LIBDES 1
19314 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19315 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19316 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 ac_check_lib_save_LIBS
=$LIBS
19320 LIBS
="-lkrb4 $LIBS"
19321 cat >conftest.
$ac_ext <<_ACEOF
19324 cat confdefs.h
>>conftest.
$ac_ext
19325 cat >>conftest.
$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19328 /* Override any gcc2 internal prototype to avoid an error. */
19332 /* We use char because int might match the return type of a gcc2
19333 builtin and then its argument prototype would still apply. */
19334 char krb_get_cred ();
19343 rm -f conftest.
$ac_objext conftest
$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345 (eval $ac_link) 2>conftest.er1
19347 grep -v '^ *+' conftest.er1
>conftest.err
19349 cat conftest.err
>&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try
='test -z "$ac_c_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try
='test -s conftest$ac_exeext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 ac_cv_lib_krb4_krb_get_cred
=yes
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.
$ac_ext >&5
19370 ac_cv_lib_krb4_krb_get_cred
=no
19372 rm -f conftest.err conftest.
$ac_objext \
19373 conftest
$ac_exeext conftest.
$ac_ext
19374 LIBS
=$ac_check_lib_save_LIBS
19376 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19377 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19378 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19379 cat >>confdefs.h
<<_ACEOF
19380 #define HAVE_LIBKRB4 1
19383 LIBS
="-lkrb4 $LIBS"
19387 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19388 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19389 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 ac_check_lib_save_LIBS
=$LIBS
19394 cat >conftest.
$ac_ext <<_ACEOF
19397 cat confdefs.h
>>conftest.
$ac_ext
19398 cat >>conftest.
$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19401 /* Override any gcc2 internal prototype to avoid an error. */
19405 /* We use char because int might match the return type of a gcc2
19406 builtin and then its argument prototype would still apply. */
19407 char krb_get_cred ();
19416 rm -f conftest.
$ac_objext conftest
$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>conftest.er1
19420 grep -v '^ *+' conftest.er1
>conftest.err
19422 cat conftest.err
>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try
='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try
='test -s conftest$ac_exeext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_lib_krb_krb_get_cred
=yes
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.
$ac_ext >&5
19443 ac_cv_lib_krb_krb_get_cred
=no
19445 rm -f conftest.err conftest.
$ac_objext \
19446 conftest
$ac_exeext conftest.
$ac_ext
19447 LIBS
=$ac_check_lib_save_LIBS
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19450 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19451 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19452 cat >>confdefs.h
<<_ACEOF
19453 #define HAVE_LIBKRB 1
19464 if test "${with_kerberos5+set}" = set; then
19466 for ac_header
in krb5.h
19468 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19470 echo "$as_me:$LINENO: checking for $ac_header" >&5
19471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19478 # Is the header compilable?
19479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19481 cat >conftest.
$ac_ext <<_ACEOF
19484 cat confdefs.h
>>conftest.
$ac_ext
19485 cat >>conftest.
$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 $ac_includes_default
19488 #include <$ac_header>
19490 rm -f conftest.
$ac_objext
19491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19492 (eval $ac_compile) 2>conftest.er1
19494 grep -v '^ *+' conftest.er1
>conftest.err
19496 cat conftest.err
>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try
='test -z "$ac_c_werror_flag"
19500 || test ! -s conftest.err'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try
='test -s conftest.$ac_objext'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 ac_header_compiler
=yes
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.
$ac_ext >&5
19517 ac_header_compiler
=no
19519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19521 echo "${ECHO_T}$ac_header_compiler" >&6
19523 # Is the header present?
19524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19526 cat >conftest.
$ac_ext <<_ACEOF
19529 cat confdefs.h
>>conftest.
$ac_ext
19530 cat >>conftest.
$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532 #include <$ac_header>
19534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19535 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19537 grep -v '^ *+' conftest.er1
>conftest.err
19539 cat conftest.err
>&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } >/dev
/null
; then
19542 if test -s conftest.err
; then
19543 ac_cpp_err
=$ac_c_preproc_warn_flag
19544 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19551 if test -z "$ac_cpp_err"; then
19552 ac_header_preproc
=yes
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.
$ac_ext >&5
19557 ac_header_preproc
=no
19559 rm -f conftest.err conftest.
$ac_ext
19560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19561 echo "${ECHO_T}$ac_header_preproc" >&6
19563 # So? What about this header?
19564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19570 ac_header_preproc
=yes
19573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19587 ## ------------------------------------------ ##
19588 ## Report this to the AC_PACKAGE_NAME lists. ##
19589 ## ------------------------------------------ ##
19592 sed "s/^/$as_me: WARNING: /" >&2
19595 echo "$as_me:$LINENO: checking for $ac_header" >&5
19596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 eval "$as_ac_Header=\$ac_header_preproc"
19602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19607 cat >>confdefs.h
<<_ACEOF
19608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19617 for ac_header
in des.h
19619 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621 echo "$as_me:$LINENO: checking for $ac_header" >&5
19622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19629 # Is the header compilable?
19630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19632 cat >conftest.
$ac_ext <<_ACEOF
19635 cat confdefs.h
>>conftest.
$ac_ext
19636 cat >>conftest.
$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19638 $ac_includes_default
19639 #include <$ac_header>
19641 rm -f conftest.
$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>conftest.er1
19645 grep -v '^ *+' conftest.er1
>conftest.err
19647 cat conftest.err
>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try
='test -z "$ac_c_werror_flag"
19651 || test ! -s conftest.err'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try
='test -s conftest.$ac_objext'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 ac_header_compiler
=yes
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.
$ac_ext >&5
19668 ac_header_compiler
=no
19670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19672 echo "${ECHO_T}$ac_header_compiler" >&6
19674 # Is the header present?
19675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19677 cat >conftest.
$ac_ext <<_ACEOF
19680 cat confdefs.h
>>conftest.
$ac_ext
19681 cat >>conftest.
$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 #include <$ac_header>
19685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19688 grep -v '^ *+' conftest.er1
>conftest.err
19690 cat conftest.err
>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } >/dev
/null
; then
19693 if test -s conftest.err
; then
19694 ac_cpp_err
=$ac_c_preproc_warn_flag
19695 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19702 if test -z "$ac_cpp_err"; then
19703 ac_header_preproc
=yes
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.
$ac_ext >&5
19708 ac_header_preproc
=no
19710 rm -f conftest.err conftest.
$ac_ext
19711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19712 echo "${ECHO_T}$ac_header_preproc" >&6
19714 # So? What about this header?
19715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19721 ac_header_preproc
=yes
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19738 ## ------------------------------------------ ##
19739 ## Report this to the AC_PACKAGE_NAME lists. ##
19740 ## ------------------------------------------ ##
19743 sed "s/^/$as_me: WARNING: /" >&2
19746 echo "$as_me:$LINENO: checking for $ac_header" >&5
19747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 eval "$as_ac_Header=\$ac_header_preproc"
19753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19758 cat >>confdefs.h
<<_ACEOF
19759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19764 for ac_header
in kerberosIV
/des.h
19766 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19768 echo "$as_me:$LINENO: checking for $ac_header" >&5
19769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19776 # Is the header compilable?
19777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19779 cat >conftest.
$ac_ext <<_ACEOF
19782 cat confdefs.h
>>conftest.
$ac_ext
19783 cat >>conftest.
$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 $ac_includes_default
19786 #include <$ac_header>
19788 rm -f conftest.
$ac_objext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790 (eval $ac_compile) 2>conftest.er1
19792 grep -v '^ *+' conftest.er1
>conftest.err
19794 cat conftest.err
>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try
='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try
='test -s conftest.$ac_objext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_header_compiler
=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.
$ac_ext >&5
19815 ac_header_compiler
=no
19817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19819 echo "${ECHO_T}$ac_header_compiler" >&6
19821 # Is the header present?
19822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19824 cat >conftest.
$ac_ext <<_ACEOF
19827 cat confdefs.h
>>conftest.
$ac_ext
19828 cat >>conftest.
$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <$ac_header>
19832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19835 grep -v '^ *+' conftest.er1
>conftest.err
19837 cat conftest.err
>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } >/dev
/null
; then
19840 if test -s conftest.err
; then
19841 ac_cpp_err
=$ac_c_preproc_warn_flag
19842 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19849 if test -z "$ac_cpp_err"; then
19850 ac_header_preproc
=yes
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.
$ac_ext >&5
19855 ac_header_preproc
=no
19857 rm -f conftest.err conftest.
$ac_ext
19858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19859 echo "${ECHO_T}$ac_header_preproc" >&6
19861 # So? What about this header?
19862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19868 ac_header_preproc
=yes
19871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19885 ## ------------------------------------------ ##
19886 ## Report this to the AC_PACKAGE_NAME lists. ##
19887 ## ------------------------------------------ ##
19890 sed "s/^/$as_me: WARNING: /" >&2
19893 echo "$as_me:$LINENO: checking for $ac_header" >&5
19894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 eval "$as_ac_Header=\$ac_header_preproc"
19900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19905 cat >>confdefs.h
<<_ACEOF
19906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19911 for ac_header
in kerberos
/des.h
19913 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19915 echo "$as_me:$LINENO: checking for $ac_header" >&5
19916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19923 # Is the header compilable?
19924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19926 cat >conftest.
$ac_ext <<_ACEOF
19929 cat confdefs.h
>>conftest.
$ac_ext
19930 cat >>conftest.
$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 $ac_includes_default
19933 #include <$ac_header>
19935 rm -f conftest.
$ac_objext
19936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19937 (eval $ac_compile) 2>conftest.er1
19939 grep -v '^ *+' conftest.er1
>conftest.err
19941 cat conftest.err
>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try
='test -z "$ac_c_werror_flag"
19945 || test ! -s conftest.err'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try
='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_header_compiler
=yes
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.
$ac_ext >&5
19962 ac_header_compiler
=no
19964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19966 echo "${ECHO_T}$ac_header_compiler" >&6
19968 # Is the header present?
19969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19971 cat >conftest.
$ac_ext <<_ACEOF
19974 cat confdefs.h
>>conftest.
$ac_ext
19975 cat >>conftest.
$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19977 #include <$ac_header>
19979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19980 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19982 grep -v '^ *+' conftest.er1
>conftest.err
19984 cat conftest.err
>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } >/dev
/null
; then
19987 if test -s conftest.err
; then
19988 ac_cpp_err
=$ac_c_preproc_warn_flag
19989 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19996 if test -z "$ac_cpp_err"; then
19997 ac_header_preproc
=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.
$ac_ext >&5
20002 ac_header_preproc
=no
20004 rm -f conftest.err conftest.
$ac_ext
20005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20006 echo "${ECHO_T}$ac_header_preproc" >&6
20008 # So? What about this header?
20009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20015 ac_header_preproc
=yes
20018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20032 ## ------------------------------------------ ##
20033 ## Report this to the AC_PACKAGE_NAME lists. ##
20034 ## ------------------------------------------ ##
20037 sed "s/^/$as_me: WARNING: /" >&2
20040 echo "$as_me:$LINENO: checking for $ac_header" >&5
20041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 eval "$as_ac_Header=\$ac_header_preproc"
20047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20052 cat >>confdefs.h
<<_ACEOF
20053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20069 for ac_header
in krb.h
20071 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20073 echo "$as_me:$LINENO: checking for $ac_header" >&5
20074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20081 # Is the header compilable?
20082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20084 cat >conftest.
$ac_ext <<_ACEOF
20087 cat confdefs.h
>>conftest.
$ac_ext
20088 cat >>conftest.
$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 $ac_includes_default
20091 #include <$ac_header>
20093 rm -f conftest.
$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20097 grep -v '^ *+' conftest.er1
>conftest.err
20099 cat conftest.err
>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try
='test -z "$ac_c_werror_flag"
20103 || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try
='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_header_compiler
=yes
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.
$ac_ext >&5
20120 ac_header_compiler
=no
20122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20124 echo "${ECHO_T}$ac_header_compiler" >&6
20126 # Is the header present?
20127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20129 cat >conftest.
$ac_ext <<_ACEOF
20132 cat confdefs.h
>>conftest.
$ac_ext
20133 cat >>conftest.
$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #include <$ac_header>
20137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20138 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20140 grep -v '^ *+' conftest.er1
>conftest.err
20142 cat conftest.err
>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } >/dev
/null
; then
20145 if test -s conftest.err
; then
20146 ac_cpp_err
=$ac_c_preproc_warn_flag
20147 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20154 if test -z "$ac_cpp_err"; then
20155 ac_header_preproc
=yes
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.
$ac_ext >&5
20160 ac_header_preproc
=no
20162 rm -f conftest.err conftest.
$ac_ext
20163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20164 echo "${ECHO_T}$ac_header_preproc" >&6
20166 # So? What about this header?
20167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20173 ac_header_preproc
=yes
20176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20190 ## ------------------------------------------ ##
20191 ## Report this to the AC_PACKAGE_NAME lists. ##
20192 ## ------------------------------------------ ##
20195 sed "s/^/$as_me: WARNING: /" >&2
20198 echo "$as_me:$LINENO: checking for $ac_header" >&5
20199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 eval "$as_ac_Header=\$ac_header_preproc"
20205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20210 cat >>confdefs.h
<<_ACEOF
20211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20216 for ac_header
in kerberosIV
/krb.h
20218 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20220 echo "$as_me:$LINENO: checking for $ac_header" >&5
20221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20228 # Is the header compilable?
20229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20231 cat >conftest.
$ac_ext <<_ACEOF
20234 cat confdefs.h
>>conftest.
$ac_ext
20235 cat >>conftest.
$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20237 $ac_includes_default
20238 #include <$ac_header>
20240 rm -f conftest.
$ac_objext
20241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242 (eval $ac_compile) 2>conftest.er1
20244 grep -v '^ *+' conftest.er1
>conftest.err
20246 cat conftest.err
>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try
='test -z "$ac_c_werror_flag"
20250 || test ! -s conftest.err'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } &&
20256 { ac_try
='test -s conftest.$ac_objext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ac_header_compiler
=yes
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.
$ac_ext >&5
20267 ac_header_compiler
=no
20269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20271 echo "${ECHO_T}$ac_header_compiler" >&6
20273 # Is the header present?
20274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20276 cat >conftest.
$ac_ext <<_ACEOF
20279 cat confdefs.h
>>conftest.
$ac_ext
20280 cat >>conftest.
$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 #include <$ac_header>
20284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20285 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20287 grep -v '^ *+' conftest.er1
>conftest.err
20289 cat conftest.err
>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } >/dev
/null
; then
20292 if test -s conftest.err
; then
20293 ac_cpp_err
=$ac_c_preproc_warn_flag
20294 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20301 if test -z "$ac_cpp_err"; then
20302 ac_header_preproc
=yes
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.
$ac_ext >&5
20307 ac_header_preproc
=no
20309 rm -f conftest.err conftest.
$ac_ext
20310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20311 echo "${ECHO_T}$ac_header_preproc" >&6
20313 # So? What about this header?
20314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20320 ac_header_preproc
=yes
20323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20337 ## ------------------------------------------ ##
20338 ## Report this to the AC_PACKAGE_NAME lists. ##
20339 ## ------------------------------------------ ##
20342 sed "s/^/$as_me: WARNING: /" >&2
20345 echo "$as_me:$LINENO: checking for $ac_header" >&5
20346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 eval "$as_ac_Header=\$ac_header_preproc"
20352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20357 cat >>confdefs.h
<<_ACEOF
20358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20363 for ac_header
in kerberos
/krb.h
20365 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20367 echo "$as_me:$LINENO: checking for $ac_header" >&5
20368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20370 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20375 # Is the header compilable?
20376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20378 cat >conftest.
$ac_ext <<_ACEOF
20381 cat confdefs.h
>>conftest.
$ac_ext
20382 cat >>conftest.
$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 $ac_includes_default
20385 #include <$ac_header>
20387 rm -f conftest.
$ac_objext
20388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20389 (eval $ac_compile) 2>conftest.er1
20391 grep -v '^ *+' conftest.er1
>conftest.err
20393 cat conftest.err
>&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
20396 { ac_try
='test -z "$ac_c_werror_flag"
20397 || test ! -s conftest.err'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; } &&
20403 { ac_try
='test -s conftest.$ac_objext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_header_compiler
=yes
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.
$ac_ext >&5
20414 ac_header_compiler
=no
20416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20418 echo "${ECHO_T}$ac_header_compiler" >&6
20420 # Is the header present?
20421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20423 cat >conftest.
$ac_ext <<_ACEOF
20426 cat confdefs.h
>>conftest.
$ac_ext
20427 cat >>conftest.
$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 #include <$ac_header>
20431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20434 grep -v '^ *+' conftest.er1
>conftest.err
20436 cat conftest.err
>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } >/dev
/null
; then
20439 if test -s conftest.err
; then
20440 ac_cpp_err
=$ac_c_preproc_warn_flag
20441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20448 if test -z "$ac_cpp_err"; then
20449 ac_header_preproc
=yes
20451 echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.
$ac_ext >&5
20454 ac_header_preproc
=no
20456 rm -f conftest.err conftest.
$ac_ext
20457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20458 echo "${ECHO_T}$ac_header_preproc" >&6
20460 # So? What about this header?
20461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20467 ac_header_preproc
=yes
20470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20484 ## ------------------------------------------ ##
20485 ## Report this to the AC_PACKAGE_NAME lists. ##
20486 ## ------------------------------------------ ##
20489 sed "s/^/$as_me: WARNING: /" >&2
20492 echo "$as_me:$LINENO: checking for $ac_header" >&5
20493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 eval "$as_ac_Header=\$ac_header_preproc"
20499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20504 cat >>confdefs.h
<<_ACEOF
20505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20522 for ac_header
in com_err.h
20524 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20526 echo "$as_me:$LINENO: checking for $ac_header" >&5
20527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20534 # Is the header compilable?
20535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20537 cat >conftest.
$ac_ext <<_ACEOF
20540 cat confdefs.h
>>conftest.
$ac_ext
20541 cat >>conftest.
$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 $ac_includes_default
20544 #include <$ac_header>
20546 rm -f conftest.
$ac_objext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>conftest.er1
20550 grep -v '^ *+' conftest.er1
>conftest.err
20552 cat conftest.err
>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try
='test -z "$ac_c_werror_flag"
20556 || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try
='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_header_compiler
=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.
$ac_ext >&5
20573 ac_header_compiler
=no
20575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20577 echo "${ECHO_T}$ac_header_compiler" >&6
20579 # Is the header present?
20580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20582 cat >conftest.
$ac_ext <<_ACEOF
20585 cat confdefs.h
>>conftest.
$ac_ext
20586 cat >>conftest.
$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 #include <$ac_header>
20590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20591 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20593 grep -v '^ *+' conftest.er1
>conftest.err
20595 cat conftest.err
>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } >/dev
/null
; then
20598 if test -s conftest.err
; then
20599 ac_cpp_err
=$ac_c_preproc_warn_flag
20600 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20607 if test -z "$ac_cpp_err"; then
20608 ac_header_preproc
=yes
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.
$ac_ext >&5
20613 ac_header_preproc
=no
20615 rm -f conftest.err conftest.
$ac_ext
20616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20617 echo "${ECHO_T}$ac_header_preproc" >&6
20619 # So? What about this header?
20620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20626 ac_header_preproc
=yes
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20643 ## ------------------------------------------ ##
20644 ## Report this to the AC_PACKAGE_NAME lists. ##
20645 ## ------------------------------------------ ##
20648 sed "s/^/$as_me: WARNING: /" >&2
20651 echo "$as_me:$LINENO: checking for $ac_header" >&5
20652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 eval "$as_ac_Header=\$ac_header_preproc"
20658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20663 cat >>confdefs.h
<<_ACEOF
20664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20673 # Solaris requires -lintl if you want strerror (which calls dgettext)
20674 # to return localized messages.
20676 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20677 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20678 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 ac_check_lib_save_LIBS
=$LIBS
20682 LIBS
="-lintl $LIBS"
20683 cat >conftest.
$ac_ext <<_ACEOF
20686 cat confdefs.h
>>conftest.
$ac_ext
20687 cat >>conftest.
$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20690 /* Override any gcc2 internal prototype to avoid an error. */
20694 /* We use char because int might match the return type of a gcc2
20695 builtin and then its argument prototype would still apply. */
20705 rm -f conftest.
$ac_objext conftest
$ac_exeext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707 (eval $ac_link) 2>conftest.er1
20709 grep -v '^ *+' conftest.er1
>conftest.err
20711 cat conftest.err
>&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } &&
20714 { ac_try
='test -z "$ac_c_werror_flag"
20715 || test ! -s conftest.err'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; } &&
20721 { ac_try
='test -s conftest$ac_exeext'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_cv_lib_intl_dgettext
=yes
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.
$ac_ext >&5
20732 ac_cv_lib_intl_dgettext
=no
20734 rm -f conftest.err conftest.
$ac_objext \
20735 conftest
$ac_exeext conftest.
$ac_ext
20736 LIBS
=$ac_check_lib_save_LIBS
20738 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20739 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20740 if test $ac_cv_lib_intl_dgettext = yes; then
20741 cat >>confdefs.h
<<_ACEOF
20742 #define HAVE_LIBINTL 1
20745 LIBS
="-lintl $LIBS"
20750 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20751 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20752 if test "${emacs_cv_localtime_cache+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 if test x
$ac_cv_func_tzset = xyes
; then
20756 if test "$cross_compiling" = yes; then
20757 # If we have tzset, assume the worst when cross-compiling.
20758 emacs_cv_localtime_cache
=yes
20760 cat >conftest.
$ac_ext <<_ACEOF
20763 cat confdefs.h
>>conftest.
$ac_ext
20764 cat >>conftest.
$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20767 extern char **environ;
20771 for (to = from = environ; (*to = *from); from++)
20772 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20775 char TZ_GMT0[] = "TZ=GMT0";
20776 char TZ_PST8[] = "TZ=PST8";
20779 time_t now = time ((time_t *) 0);
20780 int hour_GMT0, hour_unset;
20781 if (putenv (TZ_GMT0) != 0)
20783 hour_GMT0 = localtime (&now)->tm_hour;
20785 hour_unset = localtime (&now)->tm_hour;
20786 if (putenv (TZ_PST8) != 0)
20788 if (localtime (&now)->tm_hour == hour_GMT0)
20791 if (localtime (&now)->tm_hour != hour_unset)
20796 rm -f conftest
$ac_exeext
20797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20798 (eval $ac_link) 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 emacs_cv_localtime_cache
=no
20809 echo "$as_me: program exited with status $ac_status" >&5
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.
$ac_ext >&5
20813 ( exit $ac_status )
20814 emacs_cv_localtime_cache
=yes
20816 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20819 # If we lack tzset, report that localtime does not cache TZ,
20820 # since we can't invalidate the cache if we don't have tzset.
20821 emacs_cv_localtime_cache
=no
20824 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20825 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20826 if test $emacs_cv_localtime_cache = yes; then
20828 cat >>confdefs.h
<<\_ACEOF
20829 #define LOCALTIME_CACHE 1
20834 if test "x$HAVE_TIMEVAL" = xyes
; then
20836 for ac_func
in gettimeofday
20838 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20839 echo "$as_me:$LINENO: checking for $ac_func" >&5
20840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20841 if eval "test \"\${$as_ac_var+set}\" = set"; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 cat >conftest.
$ac_ext <<_ACEOF
20847 cat confdefs.h
>>conftest.
$ac_ext
20848 cat >>conftest.
$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20852 #define $ac_func innocuous_$ac_func
20854 /* System header to define __stub macros and hopefully few prototypes,
20855 which can conflict with char $ac_func (); below.
20856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20857 <limits.h> exists even on freestanding compilers. */
20860 # include <limits.h>
20862 # include <assert.h>
20867 /* Override any gcc2 internal prototype to avoid an error. */
20872 /* We use char because int might match the return type of a gcc2
20873 builtin and then its argument prototype would still apply. */
20875 /* The GNU C library defines this for functions which it implements
20876 to always fail with ENOSYS. Some functions are actually named
20877 something starting with __ and the normal name is an alias. */
20878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20881 char (*f) () = $ac_func;
20890 return f != $ac_func;
20895 rm -f conftest.
$ac_objext conftest
$ac_exeext
20896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20897 (eval $ac_link) 2>conftest.er1
20899 grep -v '^ *+' conftest.er1
>conftest.err
20901 cat conftest.err
>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
20904 { ac_try
='test -z "$ac_c_werror_flag"
20905 || test ! -s conftest.err'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try
='test -s conftest$ac_exeext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 eval "$as_ac_var=yes"
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.
$ac_ext >&5
20922 eval "$as_ac_var=no"
20924 rm -f conftest.err conftest.
$ac_objext \
20925 conftest
$ac_exeext conftest.
$ac_ext
20927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20929 if test `eval echo '${'$as_ac_var'}'` = yes; then
20930 cat >>confdefs.h
<<_ACEOF
20931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20937 if test $ac_cv_func_gettimeofday = yes; then
20938 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20939 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20940 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 cat >conftest.
$ac_ext <<_ACEOF
20946 cat confdefs.h
>>conftest.
$ac_ext
20947 cat >>conftest.
$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20950 #ifdef TIME_WITH_SYS_TIME
20951 #include <sys/time.h>
20954 #ifdef HAVE_SYS_TIME_H
20955 #include <sys/time.h>
20963 struct timeval time;
20964 gettimeofday (&time, 0);
20969 rm -f conftest.
$ac_objext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971 (eval $ac_compile) 2>conftest.er1
20973 grep -v '^ *+' conftest.er1
>conftest.err
20975 cat conftest.err
>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try
='test -z "$ac_c_werror_flag"
20979 || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try
='test -s conftest.$ac_objext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 emacs_cv_gettimeofday_two_arguments
=yes
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.
$ac_ext >&5
20996 emacs_cv_gettimeofday_two_arguments
=no
20998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21000 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21001 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21002 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21004 cat >>confdefs.h
<<\_ACEOF
21005 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21012 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21013 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21014 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21015 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 cat >conftest.
$ac_ext <<_ACEOF
21021 cat confdefs.h
>>conftest.
$ac_ext
21022 cat >>conftest.
$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21024 #include <sys/types.h>
21025 #include <$ac_cv_struct_tm>
21031 static struct tm ac_aggr;
21032 if (ac_aggr.tm_zone)
21038 rm -f conftest.
$ac_objext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040 (eval $ac_compile) 2>conftest.er1
21042 grep -v '^ *+' conftest.er1
>conftest.err
21044 cat conftest.err
>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try
='test -z "$ac_c_werror_flag"
21048 || test ! -s conftest.err'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try
='test -s conftest.$ac_objext'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_member_struct_tm_tm_zone
=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.
$ac_ext >&5
21065 cat >conftest.
$ac_ext <<_ACEOF
21068 cat confdefs.h
>>conftest.
$ac_ext
21069 cat >>conftest.
$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21071 #include <sys/types.h>
21072 #include <$ac_cv_struct_tm>
21078 static struct tm ac_aggr;
21079 if (sizeof ac_aggr.tm_zone)
21085 rm -f conftest.
$ac_objext
21086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21087 (eval $ac_compile) 2>conftest.er1
21089 grep -v '^ *+' conftest.er1
>conftest.err
21091 cat conftest.err
>&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
21094 { ac_try
='test -z "$ac_c_werror_flag"
21095 || test ! -s conftest.err'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; } &&
21101 { ac_try
='test -s conftest.$ac_objext'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_cv_member_struct_tm_tm_zone
=yes
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.
$ac_ext >&5
21112 ac_cv_member_struct_tm_tm_zone
=no
21114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21118 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21119 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21120 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21122 cat >>confdefs.h
<<_ACEOF
21123 #define HAVE_STRUCT_TM_TM_ZONE 1
21129 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21131 cat >>confdefs.h
<<\_ACEOF
21132 #define HAVE_TM_ZONE 1
21136 echo "$as_me:$LINENO: checking for tzname" >&5
21137 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21138 if test "${ac_cv_var_tzname+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 cat >conftest.
$ac_ext <<_ACEOF
21144 cat confdefs.h
>>conftest.
$ac_ext
21145 cat >>conftest.
$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21148 #ifndef tzname /* For SGI. */
21149 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21160 rm -f conftest.
$ac_objext conftest
$ac_exeext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21162 (eval $ac_link) 2>conftest.er1
21164 grep -v '^ *+' conftest.er1
>conftest.err
21166 cat conftest.err
>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try
='test -z "$ac_c_werror_flag"
21170 || test ! -s conftest.err'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try
='test -s conftest$ac_exeext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_var_tzname
=yes
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.
$ac_ext >&5
21187 ac_cv_var_tzname
=no
21189 rm -f conftest.err conftest.
$ac_objext \
21190 conftest
$ac_exeext conftest.
$ac_ext
21192 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21193 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21194 if test $ac_cv_var_tzname = yes; then
21196 cat >>confdefs.h
<<\_ACEOF
21197 #define HAVE_TZNAME 1
21204 if test "$ac_cv_func_gettimeofday" = yes; then
21205 echo "$as_me:$LINENO: checking for struct timezone" >&5
21206 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21207 if test "${emacs_cv_struct_timezone+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 cat >conftest.
$ac_ext <<_ACEOF
21213 cat confdefs.h
>>conftest.
$ac_ext
21214 cat >>conftest.
$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21216 #include <sys/time.h>
21220 struct timezone tz;
21225 rm -f conftest.
$ac_objext
21226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21227 (eval $ac_compile) 2>conftest.er1
21229 grep -v '^ *+' conftest.er1
>conftest.err
21231 cat conftest.err
>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try
='test -z "$ac_c_werror_flag"
21235 || test ! -s conftest.err'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; } &&
21241 { ac_try
='test -s conftest.$ac_objext'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 if test "$cross_compiling" = yes; then
21248 emacs_cv_struct_timezone
=yes
21250 cat >conftest.
$ac_ext <<_ACEOF
21253 cat confdefs.h
>>conftest.
$ac_ext
21254 cat >>conftest.
$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21257 #ifdef TIME_WITH_SYS_TIME
21258 #include <sys/time.h>
21261 #ifdef HAVE_SYS_TIME_H
21262 #include <sys/time.h>
21268 struct timeval time;
21269 struct timezone dummy;
21270 exit (gettimeofday (&time, &dummy));
21273 rm -f conftest
$ac_exeext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21275 (eval $ac_link) 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
21284 emacs_cv_struct_timezone
=yes
21286 echo "$as_me: program exited with status $ac_status" >&5
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.
$ac_ext >&5
21290 ( exit $ac_status )
21291 emacs_cv_struct_timezone
=no
21293 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.
$ac_ext >&5
21299 emacs_cv_struct_timezone
=no
21301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21303 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21304 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21308 echo "$as_me:$LINENO: checking for socket" >&5
21309 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21310 if test "${ac_cv_func_socket+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 cat >conftest.
$ac_ext <<_ACEOF
21316 cat confdefs.h
>>conftest.
$ac_ext
21317 cat >>conftest.
$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21321 #define socket innocuous_socket
21323 /* System header to define __stub macros and hopefully few prototypes,
21324 which can conflict with char socket (); below.
21325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21326 <limits.h> exists even on freestanding compilers. */
21329 # include <limits.h>
21331 # include <assert.h>
21336 /* Override any gcc2 internal prototype to avoid an error. */
21341 /* We use char because int might match the return type of a gcc2
21342 builtin and then its argument prototype would still apply. */
21344 /* The GNU C library defines this for functions which it implements
21345 to always fail with ENOSYS. Some functions are actually named
21346 something starting with __ and the normal name is an alias. */
21347 #if defined (__stub_socket) || defined (__stub___socket)
21350 char (*f) () = socket;
21359 return f != socket;
21364 rm -f conftest.
$ac_objext conftest
$ac_exeext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21366 (eval $ac_link) 2>conftest.er1
21368 grep -v '^ *+' conftest.er1
>conftest.err
21370 cat conftest.err
>&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } &&
21373 { ac_try
='test -z "$ac_c_werror_flag"
21374 || test ! -s conftest.err'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; } &&
21380 { ac_try
='test -s conftest$ac_exeext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_cv_func_socket
=yes
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.
$ac_ext >&5
21391 ac_cv_func_socket
=no
21393 rm -f conftest.err conftest.
$ac_objext \
21394 conftest
$ac_exeext conftest.
$ac_ext
21396 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21397 echo "${ECHO_T}$ac_cv_func_socket" >&6
21398 if test $ac_cv_func_socket = yes; then
21404 if test $ok_so_far = yes; then
21405 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21406 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21407 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21408 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21411 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21412 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21414 # Is the header compilable?
21415 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21416 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21417 cat >conftest.
$ac_ext <<_ACEOF
21420 cat confdefs.h
>>conftest.
$ac_ext
21421 cat >>conftest.
$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21424 #include <netinet/in.h>
21426 rm -f conftest.
$ac_objext
21427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21428 (eval $ac_compile) 2>conftest.er1
21430 grep -v '^ *+' conftest.er1
>conftest.err
21432 cat conftest.err
>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } &&
21435 { ac_try
='test -z "$ac_c_werror_flag"
21436 || test ! -s conftest.err'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; } &&
21442 { ac_try
='test -s conftest.$ac_objext'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448 ac_header_compiler
=yes
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.
$ac_ext >&5
21453 ac_header_compiler
=no
21455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6
21459 # Is the header present?
21460 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21461 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21462 cat >conftest.
$ac_ext <<_ACEOF
21465 cat confdefs.h
>>conftest.
$ac_ext
21466 cat >>conftest.
$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <netinet/in.h>
21470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21471 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21473 grep -v '^ *+' conftest.er1
>conftest.err
21475 cat conftest.err
>&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } >/dev
/null
; then
21478 if test -s conftest.err
; then
21479 ac_cpp_err
=$ac_c_preproc_warn_flag
21480 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21487 if test -z "$ac_cpp_err"; then
21488 ac_header_preproc
=yes
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.
$ac_ext >&5
21493 ac_header_preproc
=no
21495 rm -f conftest.err conftest.
$ac_ext
21496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21497 echo "${ECHO_T}$ac_header_preproc" >&6
21499 # So? What about this header?
21500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21502 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21503 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21505 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21506 ac_header_preproc
=yes
21509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21510 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21512 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21514 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21516 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21518 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21520 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21523 ## ------------------------------------------ ##
21524 ## Report this to the AC_PACKAGE_NAME lists. ##
21525 ## ------------------------------------------ ##
21528 sed "s/^/$as_me: WARNING: /" >&2
21531 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21532 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21533 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 ac_cv_header_netinet_in_h
=$ac_header_preproc
21538 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21539 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21542 if test $ac_cv_header_netinet_in_h = yes; then
21550 if test $ok_so_far = yes; then
21551 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21552 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21553 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21554 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21558 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21560 # Is the header compilable?
21561 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21562 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21563 cat >conftest.
$ac_ext <<_ACEOF
21566 cat confdefs.h
>>conftest.
$ac_ext
21567 cat >>conftest.
$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 $ac_includes_default
21570 #include <arpa/inet.h>
21572 rm -f conftest.
$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574 (eval $ac_compile) 2>conftest.er1
21576 grep -v '^ *+' conftest.er1
>conftest.err
21578 cat conftest.err
>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try
='test -z "$ac_c_werror_flag"
21582 || test ! -s conftest.err'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try
='test -s conftest.$ac_objext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 ac_header_compiler
=yes
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.
$ac_ext >&5
21599 ac_header_compiler
=no
21601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21603 echo "${ECHO_T}$ac_header_compiler" >&6
21605 # Is the header present?
21606 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21607 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21608 cat >conftest.
$ac_ext <<_ACEOF
21611 cat confdefs.h
>>conftest.
$ac_ext
21612 cat >>conftest.
$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 #include <arpa/inet.h>
21616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21617 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21619 grep -v '^ *+' conftest.er1
>conftest.err
21621 cat conftest.err
>&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } >/dev
/null
; then
21624 if test -s conftest.err
; then
21625 ac_cpp_err
=$ac_c_preproc_warn_flag
21626 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21633 if test -z "$ac_cpp_err"; then
21634 ac_header_preproc
=yes
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.
$ac_ext >&5
21639 ac_header_preproc
=no
21641 rm -f conftest.err conftest.
$ac_ext
21642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21643 echo "${ECHO_T}$ac_header_preproc" >&6
21645 # So? What about this header?
21646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21648 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21649 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21651 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21652 ac_header_preproc
=yes
21655 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21656 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21658 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21660 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21662 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21664 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21666 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21669 ## ------------------------------------------ ##
21670 ## Report this to the AC_PACKAGE_NAME lists. ##
21671 ## ------------------------------------------ ##
21674 sed "s/^/$as_me: WARNING: /" >&2
21677 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21678 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21679 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21684 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21685 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21688 if test $ac_cv_header_arpa_inet_h = yes; then
21696 if test $ok_so_far = yes; then
21698 cat >>confdefs.h
<<\_ACEOF
21699 #define HAVE_INET_SOCKETS 1
21705 for ac_header
in sys
/ioctl.h
21707 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21709 echo "$as_me:$LINENO: checking for $ac_header" >&5
21710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21717 # Is the header compilable?
21718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21720 cat >conftest.
$ac_ext <<_ACEOF
21723 cat confdefs.h
>>conftest.
$ac_ext
21724 cat >>conftest.
$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 $ac_includes_default
21727 #include <$ac_header>
21729 rm -f conftest.
$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21733 grep -v '^ *+' conftest.er1
>conftest.err
21735 cat conftest.err
>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try
='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try
='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_header_compiler
=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.
$ac_ext >&5
21756 ac_header_compiler
=no
21758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21760 echo "${ECHO_T}$ac_header_compiler" >&6
21762 # Is the header present?
21763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21765 cat >conftest.
$ac_ext <<_ACEOF
21768 cat confdefs.h
>>conftest.
$ac_ext
21769 cat >>conftest.
$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 #include <$ac_header>
21773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21774 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21776 grep -v '^ *+' conftest.er1
>conftest.err
21778 cat conftest.err
>&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } >/dev
/null
; then
21781 if test -s conftest.err
; then
21782 ac_cpp_err
=$ac_c_preproc_warn_flag
21783 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21790 if test -z "$ac_cpp_err"; then
21791 ac_header_preproc
=yes
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.
$ac_ext >&5
21796 ac_header_preproc
=no
21798 rm -f conftest.err conftest.
$ac_ext
21799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21800 echo "${ECHO_T}$ac_header_preproc" >&6
21802 # So? What about this header?
21803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21809 ac_header_preproc
=yes
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21826 ## ------------------------------------------ ##
21827 ## Report this to the AC_PACKAGE_NAME lists. ##
21828 ## ------------------------------------------ ##
21831 sed "s/^/$as_me: WARNING: /" >&2
21834 echo "$as_me:$LINENO: checking for $ac_header" >&5
21835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 eval "$as_ac_Header=\$ac_header_preproc"
21841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21846 cat >>confdefs.h
<<_ACEOF
21847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21855 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21857 cat >>confdefs.h
<<\_ACEOF
21858 #define HAVE_AIX_SMT_EXP 1
21863 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21864 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21865 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21866 echo "$as_me:$LINENO: result: yes" >&5
21867 echo "${ECHO_T}yes" >&6
21869 cat >>confdefs.h
<<\_ACEOF
21870 #define HAVE_DEV_PTMX 1
21874 echo "$as_me:$LINENO: result: no" >&5
21875 echo "${ECHO_T}no" >&6
21878 echo "$as_me:$LINENO: checking for pid_t" >&5
21879 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21880 if test "${ac_cv_type_pid_t+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 cat >conftest.
$ac_ext <<_ACEOF
21886 cat confdefs.h
>>conftest.
$ac_ext
21887 cat >>conftest.
$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 $ac_includes_default
21895 if (sizeof (pid_t))
21901 rm -f conftest.
$ac_objext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21903 (eval $ac_compile) 2>conftest.er1
21905 grep -v '^ *+' conftest.er1
>conftest.err
21907 cat conftest.err
>&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
21910 { ac_try
='test -z "$ac_c_werror_flag"
21911 || test ! -s conftest.err'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; } &&
21917 { ac_try
='test -s conftest.$ac_objext'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
21923 ac_cv_type_pid_t
=yes
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.
$ac_ext >&5
21928 ac_cv_type_pid_t
=no
21930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21932 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21933 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21934 if test $ac_cv_type_pid_t = yes; then
21938 cat >>confdefs.h
<<_ACEOF
21946 for ac_header
in unistd.h vfork.h
21948 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21950 echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21958 # Is the header compilable?
21959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21961 cat >conftest.
$ac_ext <<_ACEOF
21964 cat confdefs.h
>>conftest.
$ac_ext
21965 cat >>conftest.
$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 $ac_includes_default
21968 #include <$ac_header>
21970 rm -f conftest.
$ac_objext
21971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21972 (eval $ac_compile) 2>conftest.er1
21974 grep -v '^ *+' conftest.er1
>conftest.err
21976 cat conftest.err
>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } &&
21979 { ac_try
='test -z "$ac_c_werror_flag"
21980 || test ! -s conftest.err'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; } &&
21986 { ac_try
='test -s conftest.$ac_objext'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; }; then
21992 ac_header_compiler
=yes
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.
$ac_ext >&5
21997 ac_header_compiler
=no
21999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22001 echo "${ECHO_T}$ac_header_compiler" >&6
22003 # Is the header present?
22004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22006 cat >conftest.
$ac_ext <<_ACEOF
22009 cat confdefs.h
>>conftest.
$ac_ext
22010 cat >>conftest.
$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22012 #include <$ac_header>
22014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22017 grep -v '^ *+' conftest.er1
>conftest.err
22019 cat conftest.err
>&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } >/dev
/null
; then
22022 if test -s conftest.err
; then
22023 ac_cpp_err
=$ac_c_preproc_warn_flag
22024 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22031 if test -z "$ac_cpp_err"; then
22032 ac_header_preproc
=yes
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.
$ac_ext >&5
22037 ac_header_preproc
=no
22039 rm -f conftest.err conftest.
$ac_ext
22040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22041 echo "${ECHO_T}$ac_header_preproc" >&6
22043 # So? What about this header?
22044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22050 ac_header_preproc
=yes
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22067 ## ------------------------------------------ ##
22068 ## Report this to the AC_PACKAGE_NAME lists. ##
22069 ## ------------------------------------------ ##
22072 sed "s/^/$as_me: WARNING: /" >&2
22075 echo "$as_me:$LINENO: checking for $ac_header" >&5
22076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22080 eval "$as_ac_Header=\$ac_header_preproc"
22082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22087 cat >>confdefs.h
<<_ACEOF
22088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22097 for ac_func
in fork vfork
22099 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22100 echo "$as_me:$LINENO: checking for $ac_func" >&5
22101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22102 if eval "test \"\${$as_ac_var+set}\" = set"; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 cat >conftest.
$ac_ext <<_ACEOF
22108 cat confdefs.h
>>conftest.
$ac_ext
22109 cat >>conftest.
$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22113 #define $ac_func innocuous_$ac_func
22115 /* System header to define __stub macros and hopefully few prototypes,
22116 which can conflict with char $ac_func (); below.
22117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22118 <limits.h> exists even on freestanding compilers. */
22121 # include <limits.h>
22123 # include <assert.h>
22128 /* Override any gcc2 internal prototype to avoid an error. */
22133 /* We use char because int might match the return type of a gcc2
22134 builtin and then its argument prototype would still apply. */
22136 /* The GNU C library defines this for functions which it implements
22137 to always fail with ENOSYS. Some functions are actually named
22138 something starting with __ and the normal name is an alias. */
22139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22142 char (*f) () = $ac_func;
22151 return f != $ac_func;
22156 rm -f conftest.
$ac_objext conftest
$ac_exeext
22157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22158 (eval $ac_link) 2>conftest.er1
22160 grep -v '^ *+' conftest.er1
>conftest.err
22162 cat conftest.err
>&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
22165 { ac_try
='test -z "$ac_c_werror_flag"
22166 || test ! -s conftest.err'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try
='test -s conftest$ac_exeext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 eval "$as_ac_var=yes"
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.
$ac_ext >&5
22183 eval "$as_ac_var=no"
22185 rm -f conftest.err conftest.
$ac_objext \
22186 conftest
$ac_exeext conftest.
$ac_ext
22188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22190 if test `eval echo '${'$as_ac_var'}'` = yes; then
22191 cat >>confdefs.h
<<_ACEOF
22192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22198 if test "x$ac_cv_func_fork" = xyes
; then
22199 echo "$as_me:$LINENO: checking for working fork" >&5
22200 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22201 if test "${ac_cv_func_fork_works+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 if test "$cross_compiling" = yes; then
22205 ac_cv_func_fork_works
=cross
22207 cat >conftest.
$ac_ext <<_ACEOF
22208 /* By Ruediger Kuhlmann. */
22209 #include <sys/types.h>
22211 # include <unistd.h>
22213 /* Some systems only have a dummy stub for fork() */
22221 rm -f conftest
$ac_exeext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22223 (eval $ac_link) 2>&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 ac_cv_func_fork_works
=yes
22234 echo "$as_me: program exited with status $ac_status" >&5
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.
$ac_ext >&5
22238 ( exit $ac_status )
22239 ac_cv_func_fork_works
=no
22241 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22244 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22245 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22248 ac_cv_func_fork_works
=$ac_cv_func_fork
22250 if test "x$ac_cv_func_fork_works" = xcross
; then
22252 *-*-amigaos* |
*-*-msdosdjgpp*)
22253 # Override, as these systems have only a dummy fork() stub
22254 ac_cv_func_fork_works
=no
22257 ac_cv_func_fork_works
=yes
22260 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22261 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22263 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22264 if test "x$ac_cv_func_vfork" = xyes
; then
22265 echo "$as_me:$LINENO: checking for working vfork" >&5
22266 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22267 if test "${ac_cv_func_vfork_works+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22270 if test "$cross_compiling" = yes; then
22271 ac_cv_func_vfork_works
=cross
22273 cat >conftest.
$ac_ext <<_ACEOF
22276 cat confdefs.h
>>conftest.
$ac_ext
22277 cat >>conftest.
$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 /* Thanks to Paul Eggert for this test. */
22281 #include <stdlib.h>
22282 #include <sys/types.h>
22283 #include <sys/stat.h>
22284 #include <sys/wait.h>
22286 # include <unistd.h>
22289 # include <vfork.h>
22291 /* On some sparc systems, changes by the child to local and incoming
22292 argument registers are propagated back to the parent. The compiler
22293 is told about this with #include <vfork.h>, but some compilers
22294 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22295 static variable whose address is put into a register that is
22296 clobbered by the vfork. */
22299 sparc_address_test (int arg)
22301 sparc_address_test (arg) int arg;
22304 static pid_t child;
22322 pid_t parent = getpid ();
22325 sparc_address_test (0);
22330 /* Here is another test for sparc vfork register problems. This
22331 test uses lots of local variables, at least as many local
22332 variables as main has allocated so far including compiler
22333 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22334 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22335 reuse the register of parent for one of the local variables,
22336 since it will think that parent can't possibly be used any more
22337 in this routine. Assigning to the local variable will thus
22338 munge parent in the parent process. */
22340 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22341 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22342 /* Convince the compiler that p..p7 are live; otherwise, it might
22343 use the same hardware register for all 8 local variables. */
22344 if (p != p1 || p != p2 || p != p3 || p != p4
22345 || p != p5 || p != p6 || p != p7)
22348 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22349 from child file descriptors. If the child closes a descriptor
22350 before it execs or exits, this munges the parent's descriptor
22351 as well. Test for this by closing stdout in the child. */
22352 _exit(close(fileno(stdout)) != 0);
22357 while (wait(&status) != child)
22360 /* Was there some problem with vforking? */
22363 /* Did the child fail? (This shouldn't happen.) */
22366 /* Did the vfork/compiler bug occur? */
22367 || parent != getpid()
22369 /* Did the file descriptor bug occur? */
22370 || fstat(fileno(stdout), &st) != 0
22375 rm -f conftest
$ac_exeext
22376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22377 (eval $ac_link) 2>&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; }; then
22386 ac_cv_func_vfork_works
=yes
22388 echo "$as_me: program exited with status $ac_status" >&5
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.
$ac_ext >&5
22392 ( exit $ac_status )
22393 ac_cv_func_vfork_works
=no
22395 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22398 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22399 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22402 if test "x$ac_cv_func_fork_works" = xcross
; then
22403 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22404 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22405 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22408 if test "x$ac_cv_func_vfork_works" = xyes
; then
22410 cat >>confdefs.h
<<\_ACEOF
22411 #define HAVE_WORKING_VFORK 1
22416 cat >>confdefs.h
<<\_ACEOF
22421 if test "x$ac_cv_func_fork_works" = xyes
; then
22423 cat >>confdefs.h
<<\_ACEOF
22424 #define HAVE_WORKING_FORK 1
22430 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22431 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22432 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22433 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 cat >conftest.
$ac_ext <<_ACEOF
22438 cat confdefs.h
>>conftest.
$ac_ext
22439 cat >>conftest.
$ac_ext <<_ACEOF
22440 /* end confdefs.h. */
22441 #include <langinfo.h>
22445 char* cs = nl_langinfo(CODESET);
22450 rm -f conftest.
$ac_objext conftest
$ac_exeext
22451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22452 (eval $ac_link) 2>conftest.er1
22454 grep -v '^ *+' conftest.er1
>conftest.err
22456 cat conftest.err
>&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
22459 { ac_try
='test -z "$ac_c_werror_flag"
22460 || test ! -s conftest.err'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; } &&
22466 { ac_try
='test -s conftest$ac_exeext'
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; }; then
22472 emacs_cv_langinfo_codeset
=yes
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.
$ac_ext >&5
22477 emacs_cv_langinfo_codeset
=no
22479 rm -f conftest.err conftest.
$ac_objext \
22480 conftest
$ac_exeext conftest.
$ac_ext
22483 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22484 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22485 if test $emacs_cv_langinfo_codeset = yes; then
22487 cat >>confdefs.h
<<\_ACEOF
22488 #define HAVE_LANGINFO_CODESET 1
22493 echo "$as_me:$LINENO: checking for size_t" >&5
22494 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22495 if test "${ac_cv_type_size_t+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22498 cat >conftest.
$ac_ext <<_ACEOF
22501 cat confdefs.h
>>conftest.
$ac_ext
22502 cat >>conftest.
$ac_ext <<_ACEOF
22503 /* end confdefs.h. */
22504 $ac_includes_default
22510 if (sizeof (size_t))
22516 rm -f conftest.
$ac_objext
22517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22518 (eval $ac_compile) 2>conftest.er1
22520 grep -v '^ *+' conftest.er1
>conftest.err
22522 cat conftest.err
>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
22525 { ac_try
='test -z "$ac_c_werror_flag"
22526 || test ! -s conftest.err'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; } &&
22532 { ac_try
='test -s conftest.$ac_objext'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_cv_type_size_t
=yes
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.
$ac_ext >&5
22543 ac_cv_type_size_t
=no
22545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22547 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22548 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22549 if test $ac_cv_type_size_t = yes; then
22551 cat >>confdefs.h
<<_ACEOF
22552 #define HAVE_SIZE_T 1
22559 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22560 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22561 if test "${ac_cv_type_mbstate_t+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22564 cat >conftest.
$ac_ext <<_ACEOF
22567 cat confdefs.h
>>conftest.
$ac_ext
22568 cat >>conftest.
$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 $ac_includes_default
22571 # include <wchar.h>
22575 mbstate_t x; return sizeof x;
22580 rm -f conftest.
$ac_objext
22581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22582 (eval $ac_compile) 2>conftest.er1
22584 grep -v '^ *+' conftest.er1
>conftest.err
22586 cat conftest.err
>&5
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } &&
22589 { ac_try
='test -z "$ac_c_werror_flag"
22590 || test ! -s conftest.err'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; } &&
22596 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
22602 ac_cv_type_mbstate_t
=yes
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.
$ac_ext >&5
22607 ac_cv_type_mbstate_t
=no
22609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22611 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22612 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22613 if test $ac_cv_type_mbstate_t = yes; then
22615 cat >>confdefs.h
<<\_ACEOF
22616 #define HAVE_MBSTATE_T 1
22621 cat >>confdefs.h
<<\_ACEOF
22622 #define mbstate_t int
22627 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22628 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22629 if test "${emacs_cv_c_restrict+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 cat >conftest.
$ac_ext <<_ACEOF
22635 cat confdefs.h
>>conftest.
$ac_ext
22636 cat >>conftest.
$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 void fred (int *restrict x);
22647 rm -f conftest.
$ac_objext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22649 (eval $ac_compile) 2>conftest.er1
22651 grep -v '^ *+' conftest.er1
>conftest.err
22653 cat conftest.err
>&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
22656 { ac_try
='test -z "$ac_c_werror_flag"
22657 || test ! -s conftest.err'
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; } &&
22663 { ac_try
='test -s conftest.$ac_objext'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 emacs_cv_c_restrict
=yes
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.
$ac_ext >&5
22674 cat >conftest.
$ac_ext <<_ACEOF
22677 cat confdefs.h
>>conftest.
$ac_ext
22678 cat >>conftest.
$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 void fred (int *__restrict x);
22689 rm -f conftest.
$ac_objext
22690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22691 (eval $ac_compile) 2>conftest.er1
22693 grep -v '^ *+' conftest.er1
>conftest.err
22695 cat conftest.err
>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } &&
22698 { ac_try
='test -z "$ac_c_werror_flag"
22699 || test ! -s conftest.err'
22700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701 (eval $ac_try) 2>&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); }; } &&
22705 { ac_try
='test -s conftest.$ac_objext'
22706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707 (eval $ac_try) 2>&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); }; }; then
22711 emacs_cv_c_restrict
=__restrict
22713 echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.
$ac_ext >&5
22716 emacs_cv_c_restrict
=no
22718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22722 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22723 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22724 case "$emacs_cv_c_restrict" in
22725 yes) emacs_restrict
=restrict
;;
22726 no
) emacs_restrict
="";;
22727 *) emacs_restrict
="$emacs_cv_c_restrict";;
22729 if test "$emacs_restrict" != __restrict
; then
22731 cat >>confdefs.h
<<_ACEOF
22732 #define __restrict $emacs_restrict
22737 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22738 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22739 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22742 cat >conftest.
$ac_ext <<_ACEOF
22745 cat confdefs.h
>>conftest.
$ac_ext
22746 cat >>conftest.
$ac_ext <<_ACEOF
22747 /* end confdefs.h. */
22748 void fred (int x[__restrict]);
22757 rm -f conftest.
$ac_objext
22758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22759 (eval $ac_compile) 2>conftest.er1
22761 grep -v '^ *+' conftest.er1
>conftest.err
22763 cat conftest.err
>&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } &&
22766 { ac_try
='test -z "$ac_c_werror_flag"
22767 || test ! -s conftest.err'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; } &&
22773 { ac_try
='test -s conftest.$ac_objext'
22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775 (eval $ac_try) 2>&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; }; then
22779 emacs_cv_c_restrict_arr
=yes
22781 echo "$as_me: failed program was:" >&5
22782 sed 's/^/| /' conftest.
$ac_ext >&5
22784 emacs_cv_c_restrict_arr
=no
22786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22788 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22789 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22790 if test "$emacs_cv_c_restrict_arr" = yes; then
22792 cat >>confdefs.h
<<\_ACEOF
22793 #define __restrict_arr __restrict
22800 # Set up the CFLAGS for real compilation, so we can substitute it.
22801 CFLAGS
="$REAL_CFLAGS"
22802 CPPFLAGS
="$REAL_CPPFLAGS"
22804 #### Find out which version of Emacs this is.
22805 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22806 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22807 if test x
"${version}" = x
; then
22808 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22809 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22810 { (exit 1); exit 1; }; }
22813 ### Specify what sort of things we'll be editing into Makefile and config.h.
22814 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22850 cat >>confdefs.h
<<_ACEOF
22851 #define EMACS_CONFIGURATION "${canonical}"
22855 cat >>confdefs.h
<<_ACEOF
22856 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22860 cat >>confdefs.h
<<_ACEOF
22861 #define config_machfile "${machfile}"
22865 cat >>confdefs.h
<<_ACEOF
22866 #define config_opsysfile "${opsysfile}"
22870 cat >>confdefs.h
<<_ACEOF
22871 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22875 cat >>confdefs.h
<<_ACEOF
22876 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22880 cat >>confdefs.h
<<_ACEOF
22881 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22885 cat >>confdefs.h
<<_ACEOF
22886 #define UNEXEC_SRC ${UNEXEC_SRC}
22890 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22892 cat >>confdefs.h
<<\_ACEOF
22893 #define HAVE_X_WINDOWS 1
22897 if test "${USE_X_TOOLKIT}" != "none" ; then
22899 cat >>confdefs.h
<<\_ACEOF
22900 #define USE_X_TOOLKIT 1
22904 if test "${HAVE_X11}" = "yes" ; then
22906 cat >>confdefs.h
<<\_ACEOF
22911 if test "${HAVE_XFREE386}" = "yes" ; then
22913 cat >>confdefs.h
<<\_ACEOF
22914 #define HAVE_XFREE386 1
22918 if test "${HAVE_MENUS}" = "yes" ; then
22920 cat >>confdefs.h
<<\_ACEOF
22921 #define HAVE_MENUS 1
22925 if test "${GNU_MALLOC}" = "yes" ; then
22927 cat >>confdefs.h
<<\_ACEOF
22928 #define GNU_MALLOC 1
22932 if test "${REL_ALLOC}" = "yes" ; then
22934 cat >>confdefs.h
<<\_ACEOF
22935 #define REL_ALLOC 1
22944 #### Report on what we decided to do.
22945 #### Report GTK as a toolkit, even if it doesn't use Xt.
22946 #### It makes printing result more understandable as using GTK sets
22947 #### toolkit_scroll_bars to yes by default.
22948 if test "${HAVE_GTK}" = "yes"; then
22953 Configured for \`${canonical}'.
22955 Where should the build process find the source code? ${srcdir}
22956 What operating system and machine description files should Emacs use?
22957 \`${opsysfile}' and \`${machfile}'
22958 What compiler should emacs be built with? ${CC} ${CFLAGS}
22959 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22960 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22961 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22962 What window system should Emacs use? ${window_system}
22963 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22965 if test -n "${x_includes}"; then
22966 echo " Where do we find X Windows header files? ${x_includes}"
22968 echo " Where do we find X Windows header files? Standard dirs"
22970 if test -n "${x_libraries}"; then
22971 echo " Where do we find X Windows libraries? ${x_libraries}"
22973 echo " Where do we find X Windows libraries? Standard dirs"
22976 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22977 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22978 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22979 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22980 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22981 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22982 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22985 if test $USE_XASSERTS = yes; then
22986 echo " Compiling with asserts turned on."
22987 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22993 # Remove any trailing slashes in these variables.
22994 test "${prefix}" != NONE
&&
22995 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22996 test "${exec_prefix}" != NONE
&&
22997 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22999 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23000 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23001 ## from Makefile.c can correctly provide the arg `-traditional' to the
23004 cat >conftest.
$ac_ext <<_ACEOF
23007 cat confdefs.h
>>conftest.
$ac_ext
23008 cat >>conftest.
$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23013 $EGREP "yes..yes" >/dev
/null
2>&1; then
23014 CPP_NEED_TRADITIONAL
=no
23016 CPP_NEED_TRADITIONAL
=yes
23021 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"
23022 ac_config_commands
="$ac_config_commands default"
23023 cat >confcache
<<\_ACEOF
23024 # This file is a shell script that caches the results of configure
23025 # tests run on this system so they can be shared between configure
23026 # scripts and configure runs, see configure's option --config-cache.
23027 # It is not useful on other systems. If it contains results you don't
23028 # want to keep, you may remove or edit it.
23030 # config.status only pays attention to the cache file if you give it
23031 # the --recheck option to rerun configure.
23033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23035 # following values.
23039 # The following way of writing the cache mishandles newlines in values,
23040 # but we know of no workaround that is simple, portable, and efficient.
23041 # So, don't put newlines in cache variables' values.
23042 # Ultrix sh set writes to stderr and can't be redirected directly,
23043 # and sets the high bit in the cache file unless we assign to the vars.
23046 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23048 # `set' does not quote correctly, so add quotes (double-quote
23049 # substitution turns \\\\ into \\, and sed turns \\ into \).
23052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23055 # `set' quotes correctly as required by POSIX, so do not add quotes.
23057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23066 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23068 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23069 if test -w $cache_file; then
23070 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23071 cat confcache
>$cache_file
23073 echo "not updating unwritable cache $cache_file"
23078 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23079 # Let make expand exec_prefix.
23080 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23082 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23083 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23084 # trailing colons and then remove the whole line if VPATH becomes empty
23085 # (actually we leave an empty line to preserve line numbers).
23086 if test "x$srcdir" = x.
; then
23087 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23088 s/:*\$(srcdir):*/:/;
23089 s/:*\${srcdir}:*/:/;
23091 s/^\([^=]*=[ ]*\):*/\1/;
23097 DEFS
=-DHAVE_CONFIG_H
23101 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23102 # 1. Remove the extension, and $U if already installed.
23103 ac_i
=`echo "$ac_i" |
23104 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23106 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23107 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23109 LIBOBJS
=$ac_libobjs
23111 LTLIBOBJS
=$ac_ltlibobjs
23115 : ${CONFIG_STATUS=./config.status}
23116 ac_clean_files_save
=$ac_clean_files
23117 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23118 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23119 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23120 cat >$CONFIG_STATUS <<_ACEOF
23122 # Generated by $as_me.
23123 # Run this file to recreate the current configuration.
23124 # Compiler output produced by configure, useful for debugging
23125 # configure, is in config.log if it exists.
23128 ac_cs_recheck=false
23130 SHELL=\${CONFIG_SHELL-$SHELL}
23133 cat >>$CONFIG_STATUS <<\_ACEOF
23134 ## --------------------- ##
23135 ## M4sh Initialization. ##
23136 ## --------------------- ##
23138 # Be Bourne compatible
23139 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23142 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23143 # is contrary to our usage. Disable this feature.
23144 alias -g '${1+"$@"}'='"$@"'
23145 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23148 DUALCASE
=1; export DUALCASE
# for MKS sh
23150 # Support unset when possible.
23151 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23158 # Work around bugs in pre-3.0 UWIN ksh.
23159 $as_unset ENV MAIL MAILPATH
23166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23168 LC_TELEPHONE LC_TIME
23170 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23171 eval $as_var=C
; export $as_var
23177 # Required to use basename.
23178 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23184 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23185 as_basename
=basename
23191 # Name of the executable.
23192 as_me
=`$as_basename "$0" ||
23193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23194 X"$0" : 'X\(//\)$' \| \
23195 X"$0" : 'X\(/\)$' \| \
23196 . : '\(.\)' 2>/dev/null ||
23198 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23199 /^X\/\(\/\/\)$/{ s//\1/; q; }
23200 /^X\/\(\/\).*/{ s//\1/; q; }
23204 # PATH needs CR, and LINENO needs CR and PATH.
23205 # Avoid depending upon Character Ranges.
23206 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23207 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23208 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23209 as_cr_digits
='0123456789'
23210 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23212 # The user is always right.
23213 if test "${PATH_SEPARATOR+set}" != set; then
23214 echo "#! /bin/sh" >conf$$.sh
23215 echo "exit 0" >>conf$$.sh
23217 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23226 as_lineno_1
=$LINENO
23227 as_lineno_2
=$LINENO
23228 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23229 test "x$as_lineno_1" != "x$as_lineno_2" &&
23230 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23231 # Find who we are. Look in the path if we contain no path at all
23234 *[\\/]* ) as_myself
=$0 ;;
23235 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23236 for as_dir
in $PATH
23239 test -z "$as_dir" && as_dir
=.
23240 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23245 # We did not find ourselves, most probably we were run as `sh COMMAND'
23246 # in which case we are not to be found in the path.
23247 if test "x$as_myself" = x
; then
23250 if test ! -f "$as_myself"; then
23251 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23252 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23253 { (exit 1); exit 1; }; }
23255 case $CONFIG_SHELL in
23257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23258 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23261 test -z "$as_dir" && as_dir
=.
23262 for as_base
in sh bash ksh sh5
; do
23265 if ("$as_dir/$as_base" -c '
23266 as_lineno_1=$LINENO
23267 as_lineno_2=$LINENO
23268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23269 test "x$as_lineno_1" != "x$as_lineno_2" &&
23270 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23271 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23272 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23273 CONFIG_SHELL
=$as_dir/$as_base
23274 export CONFIG_SHELL
23275 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23284 # uniformly replaced by the line number. The first 'sed' inserts a
23285 # line-number line before each line; the second 'sed' does the real
23286 # work. The second script uses 'N' to pair each line-number line
23287 # with the numbered line, and appends trailing '-' during
23288 # substitution so that $LINENO is not a special case at line end.
23289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23290 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23291 sed '=' <$as_myself |
23296 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23299 s,^['$as_cr_digits']*\n,,
23300 ' >$as_me.lineno
&&
23301 chmod +x
$as_me.lineno ||
23302 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23303 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23304 { (exit 1); exit 1; }; }
23306 # Don't try to exec as it changes $[0], causing all sort of problems
23307 # (the dirname of $[0] is not the place where we might find the
23308 # original and so on. Autoconf is especially sensible to this).
23310 # Exit status is that of the last command.
23315 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23316 *c
*,-n*) ECHO_N
= ECHO_C
='
23318 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23319 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23322 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23328 rm -f conf$$ conf$$.exe conf$$.
file
23330 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23331 # We could just check for DJGPP; but this test a) works b) is more generic
23332 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23333 if test -f conf$$.exe
; then
23334 # Don't use ln at all; we don't have any links
23339 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23344 rm -f conf$$ conf$$.exe conf$$.
file
23346 if mkdir
-p .
2>/dev
/null
; then
23349 test -d .
/-p && rmdir .
/-p
23353 as_executable_p
="test -f"
23355 # Sed expression to map a string onto a valid CPP name.
23356 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23358 # Sed expression to map a string onto a valid variable name.
23359 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23363 # We need space, tab and new line, in precisely that order.
23373 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23374 # report actual input values of CONFIG_FILES etc. instead of their
23375 # values after options handling. Logging --version etc. is OK.
23379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23380 ## Running $as_me. ##
23385 This file was extended by $as_me, which was
23386 generated by GNU Autoconf 2.59. Invocation command line was
23388 CONFIG_FILES = $CONFIG_FILES
23389 CONFIG_HEADERS = $CONFIG_HEADERS
23390 CONFIG_LINKS = $CONFIG_LINKS
23391 CONFIG_COMMANDS = $CONFIG_COMMANDS
23395 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23399 # Files that config.status was made for.
23400 if test -n "$ac_config_files"; then
23401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23404 if test -n "$ac_config_headers"; then
23405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23408 if test -n "$ac_config_links"; then
23409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23412 if test -n "$ac_config_commands"; then
23413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23416 cat >>$CONFIG_STATUS <<\_ACEOF
23419 \`$as_me' instantiates files from templates according to the
23420 current configuration.
23422 Usage: $0 [OPTIONS] [FILE]...
23424 -h, --help print this help, then exit
23425 -V, --version print version number, then exit
23426 -q, --quiet do not print progress messages
23427 -d, --debug don't remove temporary files
23428 --recheck update $as_me by reconfiguring in the same conditions
23429 --file=FILE[:TEMPLATE]
23430 instantiate the configuration file FILE
23431 --header=FILE[:TEMPLATE]
23432 instantiate the configuration header FILE
23434 Configuration files:
23437 Configuration headers:
23440 Configuration commands:
23443 Report bugs to <bug-autoconf@gnu.org>."
23446 cat >>$CONFIG_STATUS <<_ACEOF
23449 configured by $0, generated by GNU Autoconf 2.59,
23450 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23452 Copyright (C) 2003 Free Software Foundation, Inc.
23453 This config.status script is free software; the Free Software Foundation
23454 gives unlimited permission to copy, distribute and modify it."
23459 cat >>$CONFIG_STATUS <<\_ACEOF
23460 # If no file are specified by the user, then we need to provide default
23461 # value. By we need to know if files were specified by the user.
23467 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23468 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23476 *) # This is not an option, so the user has probably given explicit
23479 ac_need_defaults
=false
;;
23483 # Handling of the options.
23485 cat >>$CONFIG_STATUS <<\_ACEOF
23486 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23488 --version |
--vers* |
-V )
23489 echo "$ac_cs_version"; exit 0 ;;
23491 # Conflict between --help and --header
23492 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23493 Try \`$0 --help' for more information." >&5
23494 echo "$as_me: error: ambiguous option: $1
23495 Try \`$0 --help' for more information." >&2;}
23496 { (exit 1); exit 1; }; };;
23497 --help |
--hel |
-h )
23498 echo "$ac_cs_usage"; exit 0 ;;
23499 --debug |
--d* |
-d )
23501 --file |
--fil |
--fi |
--f )
23503 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23504 ac_need_defaults
=false
;;
23505 --header |
--heade |
--head |
--hea )
23507 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23508 ac_need_defaults
=false
;;
23509 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23510 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23513 # This is an error.
23514 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23515 Try \`$0 --help' for more information." >&5
23516 echo "$as_me: error: unrecognized option: $1
23517 Try \`$0 --help' for more information." >&2;}
23518 { (exit 1); exit 1; }; } ;;
23520 *) ac_config_targets
="$ac_config_targets $1" ;;
23526 ac_configure_extra_args
=
23528 if $ac_cs_silent; then
23530 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23534 cat >>$CONFIG_STATUS <<_ACEOF
23535 if \$ac_cs_recheck; then
23536 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23537 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23542 cat >>$CONFIG_STATUS <<_ACEOF
23544 # INIT-COMMANDS section.
23547 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23553 cat >>$CONFIG_STATUS <<\_ACEOF
23554 for ac_config_target
in $ac_config_targets
23556 case "$ac_config_target" in
23557 # Handling of arguments.
23558 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23559 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23560 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23561 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23562 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23563 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23564 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23565 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23566 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23567 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23568 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23569 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23570 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23571 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23572 { (exit 1); exit 1; }; };;
23576 # If the user did not use the arguments to specify the items to instantiate,
23577 # then the envvar interface is used. Set only those that are not.
23578 # We use the long form for the default assignment because of an extremely
23579 # bizarre bug on SunOS 4.1.3.
23580 if $ac_need_defaults; then
23581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23586 # Have a temporary directory for convenience. Make it in the build tree
23587 # simply because there is no reason to put it here, and in addition,
23588 # creating and moving files from /tmp can sometimes cause problems.
23589 # Create a temporary directory, and hook for its removal unless debugging.
23592 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23593 trap '{ (exit 1); exit 1; }' 1 2 13 15
23596 # Create a (secure) tmp directory for tmp files.
23599 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23600 test -n "$tmp" && test -d "$tmp"
23603 tmp
=.
/confstat$$
-$RANDOM
23604 (umask 077 && mkdir
$tmp)
23607 echo "$me: cannot create a temporary directory in ." >&2
23608 { (exit 1); exit 1; }
23613 cat >>$CONFIG_STATUS <<_ACEOF
23616 # CONFIG_FILES section.
23619 # No need to generate the scripts if there are no CONFIG_FILES.
23620 # This happens for instance when ./config.status config.h
23621 if test -n "\$CONFIG_FILES"; then
23622 # Protect against being on the right side of a sed subst in config.status.
23623 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23624 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23625 s,@SHELL@,$SHELL,;t t
23626 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23627 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23628 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23629 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23630 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23631 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23632 s,@exec_prefix@,$exec_prefix,;t t
23633 s,@prefix@,$prefix,;t t
23634 s,@program_transform_name@,$program_transform_name,;t t
23635 s,@bindir@,$bindir,;t t
23636 s,@sbindir@,$sbindir,;t t
23637 s,@libexecdir@,$libexecdir,;t t
23638 s,@datadir@,$datadir,;t t
23639 s,@sysconfdir@,$sysconfdir,;t t
23640 s,@sharedstatedir@,$sharedstatedir,;t t
23641 s,@localstatedir@,$localstatedir,;t t
23642 s,@libdir@,$libdir,;t t
23643 s,@includedir@,$includedir,;t t
23644 s,@oldincludedir@,$oldincludedir,;t t
23645 s,@infodir@,$infodir,;t t
23646 s,@mandir@,$mandir,;t t
23647 s,@build_alias@,$build_alias,;t t
23648 s,@host_alias@,$host_alias,;t t
23649 s,@target_alias@,$target_alias,;t t
23650 s,@DEFS@,$DEFS,;t t
23651 s,@ECHO_C@,$ECHO_C,;t t
23652 s,@ECHO_N@,$ECHO_N,;t t
23653 s,@ECHO_T@,$ECHO_T,;t t
23654 s,@LIBS@,$LIBS,;t t
23655 s,@MAINT@,$MAINT,;t t
23656 s,@build@,$build,;t t
23657 s,@build_cpu@,$build_cpu,;t t
23658 s,@build_vendor@,$build_vendor,;t t
23659 s,@build_os@,$build_os,;t t
23660 s,@host@,$host,;t t
23661 s,@host_cpu@,$host_cpu,;t t
23662 s,@host_vendor@,$host_vendor,;t t
23663 s,@host_os@,$host_os,;t t
23665 s,@CFLAGS@,$CFLAGS,;t t
23666 s,@LDFLAGS@,$LDFLAGS,;t t
23667 s,@CPPFLAGS@,$CPPFLAGS,;t t
23668 s,@ac_ct_CC@,$ac_ct_CC,;t t
23669 s,@EXEEXT@,$EXEEXT,;t t
23670 s,@OBJEXT@,$OBJEXT,;t t
23672 s,@EGREP@,$EGREP,;t t
23673 s,@LN_S@,$LN_S,;t t
23674 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23675 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23676 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23677 s,@RANLIB@,$RANLIB,;t t
23678 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23679 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23680 s,@GZIP_PROG@,$GZIP_PROG,;t t
23681 s,@LIBSOUND@,$LIBSOUND,;t t
23682 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23683 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23684 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23685 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23686 s,@SET_MAKE@,$SET_MAKE,;t t
23687 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23688 s,@GTK_LIBS@,$GTK_LIBS,;t t
23689 s,@ALLOCA@,$ALLOCA,;t t
23690 s,@liblockfile@,$liblockfile,;t t
23691 s,@LIBOBJS@,$LIBOBJS,;t t
23692 s,@NEED_SETGID@,$NEED_SETGID,;t t
23693 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23694 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23695 s,@GETOPT_H@,$GETOPT_H,;t t
23696 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23697 s,@version@,$version,;t t
23698 s,@configuration@,$configuration,;t t
23699 s,@canonical@,$canonical,;t t
23700 s,@srcdir@,$srcdir,;t t
23701 s,@lispdir@,$lispdir,;t t
23702 s,@locallisppath@,$locallisppath,;t t
23703 s,@lisppath@,$lisppath,;t t
23704 s,@x_default_search_path@,$x_default_search_path,;t t
23705 s,@etcdir@,$etcdir,;t t
23706 s,@archlibdir@,$archlibdir,;t t
23707 s,@docdir@,$docdir,;t t
23708 s,@bitmapdir@,$bitmapdir,;t t
23709 s,@gamedir@,$gamedir,;t t
23710 s,@gameuser@,$gameuser,;t t
23711 s,@c_switch_system@,$c_switch_system,;t t
23712 s,@c_switch_machine@,$c_switch_machine,;t t
23713 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23714 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23715 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23716 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23717 s,@machfile@,$machfile,;t t
23718 s,@opsysfile@,$opsysfile,;t t
23719 s,@carbon_appdir@,$carbon_appdir,;t t
23720 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23725 cat >>$CONFIG_STATUS <<\_ACEOF
23726 # Split the substitutions into bite-sized pieces for seds with
23727 # small command number limits, like on Digital OSF/1 and HP-UX.
23728 ac_max_sed_lines
=48
23729 ac_sed_frag
=1 # Number of current file.
23730 ac_beg
=1 # First line for current file.
23731 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23734 while $ac_more_lines; do
23735 if test $ac_beg -gt 1; then
23736 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23738 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23740 if test ! -s $tmp/subs.frag
; then
23741 ac_more_lines
=false
23743 # The purpose of the label and of the branching condition is to
23744 # speed up the sed processing (if there are no `@' at all, there
23745 # is no need to browse any of the substitutions).
23746 # These are the two extra sed commands mentioned above.
23748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23749 if test -z "$ac_sed_cmds"; then
23750 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23752 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23754 ac_sed_frag
=`expr $ac_sed_frag + 1`
23756 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23759 if test -z "$ac_sed_cmds"; then
23762 fi # test -n "$CONFIG_FILES"
23765 cat >>$CONFIG_STATUS <<\_ACEOF
23766 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23769 - |
*:- |
*:-:* ) # input from stdin
23771 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23772 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23773 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23774 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23775 * ) ac_file_in
=$ac_file.
in ;;
23778 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23779 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23781 X"$ac_file" : 'X\(//\)[^/]' \| \
23782 X"$ac_file" : 'X\(//\)$' \| \
23783 X"$ac_file" : 'X\(/\)' \| \
23784 . : '\(.\)' 2>/dev/null ||
23786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23788 /^X\(\/\/\)$/{ s//\1/; q; }
23789 /^X\(\/\).*/{ s//\1/; q; }
23791 { if $as_mkdir_p; then
23796 while test ! -d "$as_dir"; do
23797 as_dirs
="$as_dir $as_dirs"
23798 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23800 X"$as_dir" : 'X\(//\)[^/]' \| \
23801 X"$as_dir" : 'X\(//\)$' \| \
23802 X"$as_dir" : 'X\(/\)' \| \
23803 . : '\(.\)' 2>/dev/null ||
23805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23807 /^X\(\/\/\)$/{ s//\1/; q; }
23808 /^X\(\/\).*/{ s//\1/; q; }
23811 test ! -n "$as_dirs" || mkdir
$as_dirs
23812 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23813 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23814 { (exit 1); exit 1; }; }; }
23818 if test "$ac_dir" != .
; then
23819 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23820 # A "../" for each directory in $ac_dir_suffix.
23821 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23823 ac_dir_suffix
= ac_top_builddir
=
23827 .
) # No --srcdir option. We are building in place.
23829 if test -z "$ac_top_builddir"; then
23832 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23834 [\\/]* | ?
:[\\/]* ) # Absolute path.
23835 ac_srcdir
=$srcdir$ac_dir_suffix;
23836 ac_top_srcdir
=$srcdir ;;
23837 *) # Relative path.
23838 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23839 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23842 # Do not use `cd foo && pwd` to compute absolute paths, because
23843 # the directories may not exist.
23845 .
) ac_abs_builddir
="$ac_dir";;
23848 .
) ac_abs_builddir
=`pwd`;;
23849 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23850 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23853 case $ac_abs_builddir in
23854 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23856 case ${ac_top_builddir}.
in
23857 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23858 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23859 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23862 case $ac_abs_builddir in
23863 .
) ac_abs_srcdir
=$ac_srcdir;;
23866 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23867 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23868 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23871 case $ac_abs_builddir in
23872 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23874 case $ac_top_srcdir in
23875 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23876 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23877 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23883 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23884 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23887 if test x
"$ac_file" != x-
; then
23888 { echo "$as_me:$LINENO: creating $ac_file" >&5
23889 echo "$as_me: creating $ac_file" >&6;}
23892 # Let's still pretend it is `configure' which instantiates (i.e., don't
23893 # use $as_me), people would be surprised to read:
23894 # /* config.h. Generated by config.status. */
23895 if test x
"$ac_file" = x-
; then
23898 configure_input
="$ac_file. "
23900 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23901 sed 's,.*/,,'` by configure."
23903 # First look for the input files in the build tree, otherwise in the
23905 ac_file_inputs
=`IFS=:
23906 for f in $ac_file_in; do
23908 -) echo $tmp/stdin ;;
23910 # Absolute (can't be DOS-style, as IFS=:)
23911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23912 echo "$as_me: error: cannot find input file: $f" >&2;}
23913 { (exit 1); exit 1; }; }
23916 if test -f "$f"; then
23919 elif test -f "$srcdir/$f"; then
23924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23925 echo "$as_me: error: cannot find input file: $f" >&2;}
23926 { (exit 1); exit 1; }; }
23929 done` ||
{ (exit 1); exit 1; }
23931 cat >>$CONFIG_STATUS <<_ACEOF
23935 cat >>$CONFIG_STATUS <<\_ACEOF
23937 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23938 s
,@configure_input@
,$configure_input,;t t
23939 s
,@srcdir@
,$ac_srcdir,;t t
23940 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23941 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23942 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23943 s
,@builddir@
,$ac_builddir,;t t
23944 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23945 s
,@top_builddir@
,$ac_top_builddir,;t t
23946 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23947 s
,@INSTALL@
,$ac_INSTALL,;t t
23948 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23950 if test x"$ac_file" != x-; then
23951 mv $tmp/out $ac_file
23959 cat >>$CONFIG_STATUS <<\_ACEOF
23962 # CONFIG_HEADER section.
23965 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23966 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23968 # ac_d sets the value in "#define NAME VALUE" lines.
23969 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23970 ac_dB
='[ ].*$,\1#\2'
23973 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23974 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23975 ac_uB
='$,\1#\2define\3'
23979 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23982 - |
*:- |
*:-:* ) # input from stdin
23984 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23985 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23986 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23987 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23988 * ) ac_file_in
=$ac_file.
in ;;
23991 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23992 echo "$as_me: creating $ac_file" >&6;}
23994 # First look for the input files in the build tree, otherwise in the
23996 ac_file_inputs
=`IFS=:
23997 for f in $ac_file_in; do
23999 -) echo $tmp/stdin ;;
24001 # Absolute (can't be DOS-style, as IFS=:)
24002 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24003 echo "$as_me: error: cannot find input file: $f" >&2;}
24004 { (exit 1); exit 1; }; }
24005 # Do quote $f, to prevent DOS paths from being IFS'd.
24008 if test -f "$f"; then
24011 elif test -f "$srcdir/$f"; then
24016 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24017 echo "$as_me: error: cannot find input file: $f" >&2;}
24018 { (exit 1); exit 1; }; }
24021 done` ||
{ (exit 1); exit 1; }
24022 # Remove the trailing spaces.
24023 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24027 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24028 # `conftest.undefs', that substitutes the proper values into
24029 # config.h.in to produce config.h. The first handles `#define'
24030 # templates, and the second `#undef' templates.
24031 # And first: Protect against being on the right side of a sed subst in
24032 # config.status. Protect against being in an unquoted here document
24033 # in config.status.
24034 rm -f conftest.defines conftest.undefs
24035 # Using a here document instead of a string reduces the quoting nightmare.
24036 # Putting comments in sed scripts is not portable.
24038 # `end' is used to avoid that the second main sed command (meant for
24039 # 0-ary CPP macros) applies to n-ary macro definitions.
24040 # See the Autoconf documentation for `clear'.
24041 cat >confdef2sed.
sed <<\_ACEOF
24046 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24048 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24051 # If some macros were called several times there might be several times
24052 # the same #defines, which is useless. Nevertheless, we may not want to
24053 # sort them, since we want the *last* AC-DEFINE to be honored.
24054 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24055 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24056 rm -f confdef2sed.sed
24058 # This sed command replaces #undef with comments. This is necessary, for
24059 # example, in the case of _POSIX_SOURCE, which is predefined and required
24060 # on some systems where configure will not decide to define it.
24061 cat >>conftest.undefs <<\_ACEOF
24062 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24065 # Break up conftest.defines because some shells have a limit on the size
24066 # of here documents, and old seds have small limits too (100 cmds).
24067 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24068 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24069 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24070 echo ' :' >>$CONFIG_STATUS
24071 rm -f conftest.tail
24072 while grep . conftest.defines >/dev/null
24074 # Write a limited-size here document to $tmp/defines.sed.
24075 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24076 # Speed up: don't consider the non `#define' lines.
24077 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24078 # Work around the forget-to-reset-the-flag bug.
24079 echo 't clr' >>$CONFIG_STATUS
24080 echo ': clr' >>$CONFIG_STATUS
24081 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24083 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24085 mv $tmp/out $tmp/in
24087 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24088 rm -f conftest.defines
24089 mv conftest.
tail conftest.defines
24091 rm -f conftest.defines
24092 echo ' fi # grep' >>$CONFIG_STATUS
24093 echo >>$CONFIG_STATUS
24095 # Break up conftest.undefs because some shells have a limit on the size
24096 # of here documents, and old seds have small limits too (100 cmds).
24097 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24098 rm -f conftest.
tail
24099 while grep . conftest.undefs
>/dev
/null
24101 # Write a limited-size here document to $tmp/undefs.sed.
24102 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24103 # Speed up: don't consider the non
`#undef'
24104 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24105 # Work around the forget-to-reset-the-flag bug.
24106 echo 't clr' >>$CONFIG_STATUS
24107 echo ': clr' >>$CONFIG_STATUS
24108 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24110 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24112 mv $tmp/out $tmp/in
24114 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24115 rm -f conftest.undefs
24116 mv conftest.tail conftest.undefs
24118 rm -f conftest.undefs
24120 cat >>$CONFIG_STATUS <<\_ACEOF
24121 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24122 # use $as_me), people would be surprised to read:
24123 # /* config.h. Generated by config.status. */
24124 if test x
"$ac_file" = x-
; then
24125 echo "/* Generated by configure. */" >$tmp/config.h
24127 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24129 cat $tmp/in >>$tmp/config.h
24131 if test x
"$ac_file" != x-
; then
24132 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24133 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24134 echo "$as_me: $ac_file is unchanged" >&6;}
24136 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24138 X"$ac_file" : 'X\(//\)[^/]' \| \
24139 X"$ac_file" : 'X\(//\)$' \| \
24140 X"$ac_file" : 'X\(/\)' \| \
24141 . : '\(.\)' 2>/dev/null ||
24143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24145 /^X\(\/\/\)$/{ s//\1/; q; }
24146 /^X\(\/\).*/{ s//\1/; q; }
24148 { if $as_mkdir_p; then
24153 while test ! -d "$as_dir"; do
24154 as_dirs
="$as_dir $as_dirs"
24155 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24157 X"$as_dir" : 'X\(//\)[^/]' \| \
24158 X"$as_dir" : 'X\(//\)$' \| \
24159 X"$as_dir" : 'X\(/\)' \| \
24160 . : '\(.\)' 2>/dev/null ||
24162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24164 /^X\(\/\/\)$/{ s//\1/; q; }
24165 /^X\(\/\).*/{ s//\1/; q; }
24168 test ! -n "$as_dirs" || mkdir
$as_dirs
24169 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24171 { (exit 1); exit 1; }; }; }
24174 mv $tmp/config.h
$ac_file
24178 rm -f $tmp/config.h
24182 cat >>$CONFIG_STATUS <<\_ACEOF
24185 # CONFIG_COMMANDS section.
24187 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24188 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24189 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24190 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24191 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24192 X"$ac_dest" : 'X\(//\)[^/]' \| \
24193 X"$ac_dest" : 'X\(//\)$' \| \
24194 X"$ac_dest" : 'X\(/\)' \| \
24195 . : '\(.\)' 2>/dev/null ||
24197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24199 /^X\(\/\/\)$/{ s//\1/; q; }
24200 /^X\(\/\).*/{ s//\1/; q; }
24202 { if $as_mkdir_p; then
24207 while test ! -d "$as_dir"; do
24208 as_dirs
="$as_dir $as_dirs"
24209 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24211 X"$as_dir" : 'X\(//\)[^/]' \| \
24212 X"$as_dir" : 'X\(//\)$' \| \
24213 X"$as_dir" : 'X\(/\)' \| \
24214 . : '\(.\)' 2>/dev/null ||
24216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24218 /^X\(\/\/\)$/{ s//\1/; q; }
24219 /^X\(\/\).*/{ s//\1/; q; }
24222 test ! -n "$as_dirs" || mkdir
$as_dirs
24223 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24225 { (exit 1); exit 1; }; }; }
24229 if test "$ac_dir" != .
; then
24230 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24231 # A "../" for each directory in $ac_dir_suffix.
24232 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24234 ac_dir_suffix
= ac_top_builddir
=
24238 .
) # No --srcdir option. We are building in place.
24240 if test -z "$ac_top_builddir"; then
24243 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24245 [\\/]* | ?
:[\\/]* ) # Absolute path.
24246 ac_srcdir
=$srcdir$ac_dir_suffix;
24247 ac_top_srcdir
=$srcdir ;;
24248 *) # Relative path.
24249 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24250 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24253 # Do not use `cd foo && pwd` to compute absolute paths, because
24254 # the directories may not exist.
24256 .
) ac_abs_builddir
="$ac_dir";;
24259 .
) ac_abs_builddir
=`pwd`;;
24260 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24261 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24264 case $ac_abs_builddir in
24265 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24267 case ${ac_top_builddir}.
in
24268 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24269 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24270 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24273 case $ac_abs_builddir in
24274 .
) ac_abs_srcdir
=$ac_srcdir;;
24277 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24278 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24279 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24282 case $ac_abs_builddir in
24283 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24285 case $ac_top_srcdir in
24286 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24287 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24288 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24293 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24294 echo "$as_me: executing $ac_dest commands" >&6;}
24298 ### Make the necessary directories, if they don't exist.
24299 for dir
in etc lisp
; do
24300 test -d ${dir} || mkdir
${dir}
24303 # Build src/Makefile from ${srcdir}/src/Makefile.c
24304 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24305 # This must be done after src/config.h is built, since we rely on that file.
24307 # Now get this: Some word that is part of the ${srcdir} directory name
24308 # or the ${configuration} value might, just might, happen to be an
24309 # identifier like `sun4' or `i386' or something, and be predefined by
24310 # the C preprocessor to some helpful value like 1, or maybe the empty
24311 # string. Needless to say consequent macro substitutions are less
24312 # than conducive to the makefile finding the correct directory.
24313 undefs
="`echo $top_srcdir $configuration $canonical |
24314 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24315 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24318 echo creating src
/epaths.h
24319 ${MAKE-make} epaths-force
24321 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24322 # `..' to `. .' unless invoked with -traditional
24324 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24325 CPPFLAGS
="$CPPFLAGS -traditional"
24328 echo creating lib-src
/Makefile
24330 rm -f junk.c junk1.c junk2.c
24331 sed -e '/start of cpp stuff/q' \
24332 < Makefile.c
> junk1.c
24333 sed -e '1,/start of cpp stuff/d'\
24334 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24335 < Makefile.c
> junk.c
24336 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24337 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24338 cat junk1.c junk2.c
> Makefile.new
24339 rm -f junk.c junk1.c junk2.c
24340 chmod 444 Makefile.new
24341 mv -f Makefile.new Makefile
24344 echo creating src
/Makefile
24346 rm -f junk.c junk1.c junk2.c
24347 sed -e '/start of cpp stuff/q' \
24348 < Makefile.c
> junk1.c
24349 sed -e '1,/start of cpp stuff/d'\
24350 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24351 < Makefile.c
> junk.c
24352 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24353 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24354 cat junk1.c junk2.c
> Makefile.new
24355 rm -f junk.c junk1.c junk2.c
24356 chmod 444 Makefile.new
24357 mv -f Makefile.new Makefile
24360 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24361 echo creating src
/.gdbinit
24362 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24365 # This is how we know whether to re-run configure in certain cases.
24366 touch src
/config.stamp
24373 cat >>$CONFIG_STATUS <<\_ACEOF
24375 { (exit 0); exit 0; }
24377 chmod +x
$CONFIG_STATUS
24378 ac_clean_files
=$ac_clean_files_save
24381 # configure is writing to config.log, and then calls config.status.
24382 # config.status does its own redirection, appending to config.log.
24383 # Unfortunately, on DOS this fails, as config.log is still kept open
24384 # by configure, so config.status won't be able to write to it; its
24385 # output is simply discarded. So we exec the FD to /dev/null,
24386 # effectively closing config.log, so it can be properly (re)opened and
24387 # appended to by config.status. When coming back to configure, we
24388 # need to make the FD available again.
24389 if test "$no_create" != yes; then
24391 ac_config_status_args
=
24392 test "$silent" = yes &&
24393 ac_config_status_args
="$ac_config_status_args --quiet"
24395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24398 # would make configure fail if this is the last instruction.
24399 $ac_cs_success ||
{ (exit 1); exit 1; }