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 i
[3456]86-*-freebsd*) machine
=intel386
;;
1721 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1728 if test -f /usr
/lib
/crti.o
; then
1730 cat >>confdefs.h
<<\_ACEOF
1736 case "${canonical}" in
1737 alpha
*-*-netbsd*) machine
=alpha
;;
1738 i
[3456]86-*-netbsd*) machine
=intel386
;;
1740 # This is somewhat bogus.
1741 machine
=hp9000s300
;;
1742 powerpc-apple-netbsd
*) machine
=macppc
;;
1743 mips-
*-netbsd*) machine
=pmax
;;
1744 mipsel-
*-netbsd*) machine
=pmax
;;
1745 mipseb-
*-netbsd*) machine
=pmax
;;
1746 ns32k-
*-netbsd*) machine
=ns32000
;;
1747 powerpc-
*-netbsd*) machine
=macppc
;;
1748 sparc
*-*-netbsd*) machine
=sparc
;;
1749 vax-
*-netbsd*) machine
=vax
;;
1750 arm-
*-netbsd*) machine
=arm
;;
1757 case "${canonical}" in
1758 alpha
*-*-openbsd*) machine
=alpha
;;
1759 i386-
*-openbsd*) machine
=intel386
;;
1760 m68k-
*-openbsd*) machine
=hp9000s300
;;
1761 mipsel-
*-openbsd*) machine
=pmax
;;
1762 ns32k-
*-openbsd*) machine
=ns32000
;;
1763 sparc-
*-openbsd*) machine
=sparc
;;
1764 vax-
*-openbsd*) machine
=vax
;;
1771 case "${canonical}" in
1772 i
[3456]86-*-lynxos*) machine
=intel386
;;
1773 powerpc-
*-lynxos*) machine
=powerpc
;;
1778 arm-acorn-riscix1.1
* )
1779 machine
=acorn opsys
=riscix1-1
1781 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine
=acorn opsys
=riscix12
1790 case "${canonical}" in
1791 i
[345]86-*-bsdi*) machine
=intel386
;;
1792 sparc-
*-bsdi*) machine
=sparc
;;
1793 powerpc-
*-bsdi*) machine
=macppc
;;
1795 case "${canonical}" in
1796 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1797 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1798 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1799 *-*-bsdi3* ) opsys
=bsdos3
;;
1800 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1811 machine
=alliant4 opsys
=bsd4-2
1814 machine
=alliant-2800 opsys
=bsd4-3
1817 ## Alpha (DEC) machines.
1819 machine
=alpha opsys
=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP
=/usr
/bin
/cpp
1828 case "${canonical}" in
1829 alpha
*-dec-osf[5-9]*)
1834 alpha
*-*-linux-gnu* )
1835 machine
=alpha opsys
=gnu-linux
1839 machine
=arm opsys
=gnu-linux
1844 machine
=altos opsys
=usg5-2
1849 machine
=amdahl opsys
=usg5-2-2
1852 ## Apollo, Domain/OS
1854 machine
=apollo opsys
=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1859 machine
=att3b opsys
=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1864 machine
=7300 opsys
=usg5-2-2
1869 machine
=ibmrs6000 opsys
=aix3-2
1874 machine
=dpx2 opsys
=usg5-3
1879 machine
=sps7 opsys
=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd
* )
1889 machine
=celerity opsys
=bsd4-2
1893 ## What operating systems does this chip run that Emacs has been
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1902 mips-compaq-nonstopux
* )
1903 machine
=nonstopux opsys
=nonstopux
1907 *-convex-bsd* |
*-convex-convexos* )
1908 machine
=convex opsys
=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP
="cc -E -P"
1914 i
[3456]86-cubix-sysv* )
1915 machine
=intel386 opsys
=usg5-3
1919 cydra
*-cydrome-sysv* )
1920 machine
=cydra5 opsys
=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1930 machine
=aviion opsys
=dgux4
1932 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine
=aviion opsys
=dgux5-4-3
1937 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1938 machine
=aviion opsys
=dgux5-4r2
1941 machine
=aviion opsys
=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i
[345]86-dg-dguxR4* )
1948 machine
=aviion-intel opsys
=dgux4
1952 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1953 machine
=pmax opsys
=bsd4-2
1955 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1956 machine
=pmax opsys
=bsd4-3
1959 machine
=pmax opsys
=ultrix4-3
1962 machine
=pmax opsys
=osf1
1964 mips-dec-mach_bsd4.3
* )
1965 machine
=pmax opsys
=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1970 machine
=delta opsys
=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1973 if test -s /etc
/167config
1974 then CC
="gnucc -m68040"
1975 else CC
="gnucc -m68881"
1978 if test -z "`type gcc | grep 'not found'`"
1984 m88k-motorola-sysv4
* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine
=delta88k opsys
=usg5-4-2
1991 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1992 machine
=delta88k opsys
=usg5-3
1997 machine
=dual opsys
=usg5-2
1999 m68
*-dual-uniplus* )
2000 machine
=dual opsys
=unipl5-2
2005 machine
=elxsi opsys
=usg5-2
2010 machine
=ns16000 opsys
=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2018 machine
=gould opsys
=bsd4-2
2021 machine
=gould opsys
=bsd4-3
2024 machine
=gould-np1 opsys
=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2033 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2035 NON_GNU_CPP
="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2039 machine
=nh3000 opsys
=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix
)
2043 machine
=nh6000 opsys
=powerunix
2044 NON_GNU_CPP
="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1
-hitachi-hiuxmpp* )
2048 machine
=sr2k opsys
=hiuxmpp
2050 hppa1.1
-hitachi-hiuxwe2* )
2051 machine
=sr2k opsys
=hiuxwe2
2054 xps
*-honeywell-sysv* )
2055 machine
=xps100 opsys
=usg5-2
2058 ## HP 9000 series 200 or 300
2060 machine
=hp9000s300 opsys
=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2069 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2070 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2071 *) machine
=hp9000s300 opsys
=hpux
;;
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 machine
=hp800 opsys
=hpux
2080 machine
=hp800 opsys
=hpux8
2082 hppa
*-hp-hpux9shr* )
2083 machine
=hp800 opsys
=hpux9shr
2086 machine
=hp800 opsys
=hpux9
2088 hppa
*-hp-hpux10.2
* )
2089 machine
=hp800 opsys
=hpux10-20
2092 machine
=hp800 opsys
=hpux10
2094 hppa
*-hp-hpux1[1-9]* )
2095 machine
=hp800 opsys
=hpux11
2096 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2099 hppa
*-*-linux-gnu* )
2100 machine
=hp800 opsys
=gnu-linux
2103 ## HP 9000 series 700 and 800, running HP/UX
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2111 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2112 *) machine
=hp800 opsys
=hpux10
;;
2116 machine
=hp800 opsys
=nextstep
2121 machine
=orion opsys
=bsd4-2
2123 clipper-orion-bsd
* )
2124 machine
=orion105 opsys
=bsd4-2
2128 i
[3456]86-ibm-aix1.1
* )
2129 machine
=ibmps2-aix opsys
=usg5-2-2
2131 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2132 machine
=ibmps2-aix opsys
=usg5-3
2135 machine
=ibm370aix opsys
=usg5-3
2138 machine
=ibms390 opsys
=gnu-linux
2140 s390x-
*-linux-gnu* )
2141 machine
=ibms390x opsys
=gnu-linux
2143 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2144 machine
=ibmrs6000 opsys
=aix3-1
2146 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2147 machine
=ibmrs6000 opsys
=aix3-2-5
2149 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2150 machine
=ibmrs6000 opsys
=aix4-1
2152 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2153 machine
=ibmrs6000 opsys
=aix4-2
2155 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2156 machine
=ibmrs6000 opsys
=aix4-2
2158 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2159 machine
=ibmrs6000 opsys
=aix4
2161 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2162 machine
=ibmrs6000 opsys
=aix4-1
2164 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2165 machine
=ibmrs6000 opsys
=aix3-2
2168 machine
=ibmrt opsys
=bsd4-3
2171 machine
=ibmrt opsys
=bsd4-2
2174 machine
=ibmrt opsys
=bsd4-3
2177 machine
=ibmrt opsys
=bsd4-2
2180 machine
=ibmrt opsys
=bsd4-3
2183 machine
=ibmrt opsys
=bsd4-3
2186 machine
=ibmrt-aix opsys
=usg5-2-2
2189 ## Integrated Solutions `Optimum V'
2191 machine
=isi-ov opsys
=bsd4-2
2194 machine
=isi-ov opsys
=bsd4-3
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i
[3456]86-intsys-sysv* )
2199 machine
=is386 opsys
=usg5-2-2
2203 i
[3456]86-prime-sysv* )
2204 machine
=i386 opsys
=usg5-3
2207 ## Sequent Symmetry running Dynix
2208 i
[3456]86-sequent-bsd* )
2209 machine
=symmetry opsys
=bsd4-3
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2214 machine
=sequent-ptx opsys
=ptx4
2215 NON_GNU_CPP
=/lib
/cpp
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i
[3456]86-sequent-ptx* )
2221 machine
=sequent-ptx opsys
=ptx
2222 NON_GNU_CPP
="/lib/cpp"
2225 ## ncr machine running svr4.3.
2226 i
[3456]86-ncr-sysv4.3
)
2227 machine
=ncr386 opsys
=usg5-4-3
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i
[3456]86-ncr-sysv* )
2233 machine
=ncr386 opsys
=usg5-4-2
2236 ## Intel Paragon OSF/1
2238 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2243 machine
=i860 opsys
=usg5-4
2244 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2248 ## Macintosh PowerPC
2249 powerpc
*-*-linux-gnu* )
2250 machine
=macppc opsys
=gnu-linux
2253 ## Masscomp machines
2254 m68
*-masscomp-rtu* )
2255 machine
=masscomp opsys
=rtu
2258 ## Megatest machines
2259 m68
*-megatest-bsd* )
2260 machine
=mega68 opsys
=bsd4-2
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2276 ## Fall through to the general code at the bottom to decide on the OS.
2278 mips-mips-riscos4
* )
2279 machine
=mips4 opsys
=bsd4-3
2280 NON_GNU_CC
="cc -systype bsd43"
2281 NON_GNU_CPP
="cc -systype bsd43 -E"
2283 mips-mips-riscos5
* )
2284 machine
=mips4 opsys
=riscos5
2285 NON_GNU_CC
="cc -systype bsd43"
2286 NON_GNU_CPP
="cc -systype bsd43 -E"
2289 machine
=mips opsys
=bsd4-3
2292 machine
=mips opsys
=usg5-2-2
2296 m68
*-next-* | m68k-
*-nextstep* )
2297 machine
=m68k opsys
=nextstep
2300 ## The complete machine from National Semiconductor
2302 machine
=ns32000 opsys
=usg5-2
2306 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2307 machine
=tower32 opsys
=usg5-2-2
2309 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2310 machine
=tower32v3 opsys
=usg5-3
2315 machine
=ews4800 opsys
=ux4800
2318 ## Nixdorf Targon 31
2319 m68
*-nixdorf-sysv* )
2320 machine
=targon31 opsys
=usg5-2-2
2325 machine
=nu opsys
=usg5-2
2330 machine
=plexus opsys
=usg5-2
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd
* )
2337 machine
=pyramid opsys
=bsd4-2
2341 ns32k-sequent-bsd4.2
* )
2342 machine
=sequent opsys
=bsd4-2
2344 ns32k-sequent-bsd4.3
* )
2345 machine
=sequent opsys
=bsd4-3
2349 mips-siemens-sysv
* | mips-sni-sysv
*)
2350 machine
=mips-siemens opsys
=usg5-4
2351 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2352 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2358 machine
=irist opsys
=iris3-5
2360 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2361 machine
=irist opsys
=iris3-6
2365 machine
=iris4d opsys
=irix3-3
2368 machine
=iris4d opsys
=irix4-0
2371 machine
=iris4d opsys
=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2379 machine
=iris4d opsys
=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS
=-32
2386 mips-sgi-irix5.
[01]* )
2387 machine
=iris4d opsys
=irix5-0
2389 mips-sgi-irix5
* | mips-sgi-irix
* )
2390 machine
=iris4d opsys
=irix5-2
2395 machine
=news opsys
=bsd4-2
2398 machine
=news opsys
=bsd4-3
2400 m68
*-sony-newsos3* | m68
*-sony-news3*)
2401 machine
=news opsys
=bsd4-3
2403 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2404 machine
=news-risc opsys
=bsd4-3
2406 mips-sony-newsos6
* )
2407 machine
=news-r6 opsys
=newsos6
2410 machine
=news-risc opsys
=newsos5
2415 machine
=stride opsys
=usg5-2
2419 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2420 machine
=sparc opsys
=gnu-linux
2423 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2424 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2425 | rs6000-
*-solaris2*)
2426 case "${canonical}" in
2427 m68
*-sunos1* ) machine
=sun1
;;
2428 m68
*-sunos2* ) machine
=sun2
;;
2429 m68
* ) machine
=sun3
;;
2430 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2431 i
[3456]86-*-* ) machine
=intel386
;;
2432 powerpcle
* ) machine
=powerpcle
;;
2433 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2434 sparc
* ) machine
=sparc
;;
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2440 *-sunos4.0
* ) opsys
=sunos4-0
;;
2441 *-sunos4.1.
[3-9]*noshare
)
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2445 NON_GNU_CPP
=/usr
/lib
/cpp
2446 NON_GCC_TEST_OPTIONS
=-Bstatic
2447 GCC_TEST_OPTIONS
=-static
2449 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2451 NON_GNU_CPP
=/usr
/lib
/cpp
2453 *-sunos4* |
*-sunos )
2455 NON_GCC_TEST_OPTIONS
=-Bstatic
2456 GCC_TEST_OPTIONS
=-static
2458 *-sunos5.3
* |
*-solaris2.3
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2462 *-sunos5.4
* |
*-solaris2.4
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.5
* |
*-solaris2.5
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5.6
* |
*-solaris2.6
* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2477 *-sunos5* |
*-solaris* )
2479 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* |
*-sunos5* )
2486 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2496 machine
=sparc opsys
=nextstep
2500 m68
*-tadpole-sysv* )
2501 machine
=tad68k opsys
=usg5-3
2505 tahoe-tahoe-bsd4.2
* )
2506 machine
=tahoe opsys
=bsd4-2
2508 tahoe-tahoe-bsd4.3
* )
2509 machine
=tahoe opsys
=bsd4-3
2512 ## Tandem Integrity S2
2514 machine
=tandem-s2 opsys
=usg5-3
2518 m88k-tektronix-sysv3
* )
2519 machine
=tekxd88 opsys
=usg5-3
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd
* )
2524 machine
=ns16000 opsys
=bsd4-2
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68
*-tektronix-bsd* )
2529 machine
=tek4300 opsys
=bsd4-3
2533 ## We seem to have lost the machine-description file titan.h!
2535 machine
=titan opsys
=usg5-3
2538 ## Ustation E30 (SS5E)
2539 m68
*-unisys-uniplus* )
2540 machine
=ustation opsystem
=unipl5-2
2546 case "${canonical}" in
2547 *-bsd4.1
* ) opsys
=bsd4-1
;;
2548 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2549 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2550 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2551 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2552 *-vms* ) opsys
=vms
;;
2558 ns16k-whitechapel-
* )
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2566 machine
=wicat opsys
=usg5-2
2571 machine
=ia64 opsys
=gnu-linux
2574 ## Intel 386 machines where we don't care about the manufacturer
2577 case "${canonical}" in
2578 *-cygwin ) opsys
=cygwin
;;
2579 *-darwin* ) opsys
=darwin
2580 CPP
="${CC-cc} -E -no-cpp-precomp"
2582 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2583 *-isc2.2
* ) opsys
=isc2-2
;;
2584 *-isc4.0
* ) opsys
=isc4-0
;;
2585 *-isc4.
* ) opsys
=isc4-1
2586 GCC_TEST_OPTIONS
=-posix
2587 NON_GCC_TEST_OPTIONS
=-Xp
2589 *-isc* ) opsys
=isc3-0
;;
2590 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2591 *-esix* ) opsys
=esix
;;
2592 *-xenix* ) opsys
=xenix
;;
2593 *-linux-gnu* ) opsys
=gnu-linux
;;
2594 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2595 *-sco3.2v5
* ) opsys
=sco5
2596 NON_GNU_CPP
=/lib
/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS
=" "
2601 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2602 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2603 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2604 *-386bsd* ) opsys
=386bsd
;;
2605 *-nextstep* ) opsys
=nextstep
;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2610 ## m68k Linux-based GNU system
2612 machine
=m68k opsys
=gnu-linux
2615 ## Mips Linux-based GNU system
2616 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2617 machine
=mips opsys
=gnu-linux
2621 sparc-fujitsu-sysv4
* )
2622 machine
=sparc opsys
=uxpds
2623 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2628 f301-fujitsu-uxpv4.1
)
2629 machine
=f301 opsys
=uxpv
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin
* )
2634 machine
=powermac opsys
=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP
="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw
/include
&& test -d /sw
/lib
; then
2639 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2640 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-
*-linux-gnu* )
2647 machine
=amdx86-64 opsys
=gnu-linux
2655 ### If the code above didn't choose an operating system, just choose
2656 ### an operating system based on the configuration name. You really
2657 ### only want to use this when you have no idea what the right
2658 ### operating system is; if you know what operating systems a machine
2659 ### runs, it's cleaner to make it explicit in the case statement
2661 if test x
"${opsys}" = x
; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys
=gnu
;;
2664 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2665 *-bsd4.2
) opsys
=bsd4-2
;;
2666 *-bsd4.3
) opsys
=bsd4-3
;;
2667 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2668 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2669 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2670 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2671 *-sysv4.2uw
* ) opsys
=unixware
;;
2672 *-sysv5uw* ) opsys
=unixware
;;
2673 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2674 *-sysv4.1
* |
*-sysvr4.1
* )
2675 NON_GNU_CPP
=/usr
/lib
/cpp
2677 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2678 if [ x
$NON_GNU_CPP = x
]; then
2679 if [ -f /usr
/ccs
/lib
/cpp
]; then
2680 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2682 NON_GNU_CPP
=/lib
/cpp
2686 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2695 if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697 Check \`etc/MACHINES' for recognized configuration names." >&5
2698 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2703 machfile
="m/${machine}.h"
2704 opsysfile
="s/${opsys}.h"
2707 #### Choose a compiler.
2708 test -n "$CC" && cc_specified
=yes
2710 # Save the value of CFLAGS that the user specified.
2711 SPECIFIED_CFLAGS
="$CFLAGS"
2714 "yes" ) CC
="gcc" GCC
=yes ;;
2715 "no" ) : ${CC=cc} ;;
2719 ac_cpp
='$CPP $CPPFLAGS'
2720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC
="$CC" # Let the user override the test.
2734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir
=.
2739 for ac_exec_ext
in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2760 if test -z "$ac_cv_prog_CC"; then
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc
; ac_word
=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir
=.
2777 for ac_exec_ext
in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC
="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC
="$CC" # Let the user override the test.
2814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir
=.
2819 for ac_exec_ext
in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2840 if test -z "$ac_cv_prog_CC"; then
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc
; ac_word
=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir
=.
2857 for ac_exec_ext
in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC
="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc
; ac_word
=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC
="$CC" # Let the user override the test.
2895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir
=.
2900 for ac_exec_ext
in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected
=yes
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy
$ac_cv_prog_CC
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2922 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC
="$CC" # Let the user override the test.
2951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir
=.
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$CC" && break
2979 if test -z "$CC"; then
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy
$ac_prog; ac_word
=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir
=.
2998 for ac_exec_ext
in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC
="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$ac_ct_CC" && break
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036 ac_compiler
=`set X $ac_compile; echo $2`
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3043 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 ac_clean_files_save
=$ac_clean_files
3069 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3085 # Be careful to initialize this variable, since it used to be cached.
3086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3088 # b.out is created by i960 compilers.
3089 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3091 test -f "$ac_file" ||
continue
3093 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3096 # This is the source file.
3099 # We found the default executable, but exeext='' is most
3103 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.
$ac_ext >&5
3117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3124 ac_exeext
=$ac_cv_exeext
3125 echo "$as_me:$LINENO: result: $ac_file" >&5
3126 echo "${ECHO_T}$ac_file" >&6
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133 # If not cross compiling, check that we can run a simple program.
3134 if test "$cross_compiling" != yes; then
3135 if { ac_try
='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 if test "$cross_compiling" = maybe
; then
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3159 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3160 ac_clean_files
=$ac_clean_files_save
3161 # Check the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166 echo "${ECHO_T}$cross_compiling" >&6
3168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 for ac_file
in conftest.exe conftest conftest.
*; do
3180 test -f "$ac_file" ||
continue
3182 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3183 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3197 rm -f conftest
$ac_cv_exeext
3198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199 echo "${ECHO_T}$ac_cv_exeext" >&6
3201 rm -f conftest.
$ac_ext
3202 EXEEXT
=$ac_cv_exeext
3204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206 if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.o conftest.obj
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3233 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.
$ac_ext >&5
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3248 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251 echo "${ECHO_T}$ac_cv_objext" >&6
3252 OBJEXT
=$ac_cv_objext
3254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 cat >conftest.
$ac_ext <<_ACEOF
3262 cat confdefs.h
>>conftest.
$ac_ext
3263 cat >>conftest.
$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3277 rm -f conftest.
$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try
='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.
$ac_ext >&5
3305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3306 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3309 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3311 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CFLAGS
=${CFLAGS+set}
3313 ac_save_CFLAGS
=$CFLAGS
3315 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3317 if test "${ac_cv_prog_cc_g+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.
$ac_ext <<_ACEOF
3323 cat confdefs.h
>>conftest.
$ac_ext
3324 cat >>conftest.
$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3335 rm -f conftest.
$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3339 grep -v '^ *+' conftest.er1
>conftest.err
3341 cat conftest.err
>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try
='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.
$ac_ext >&5
3363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3367 if test "$ac_test_CFLAGS" = set; then
3368 CFLAGS
=$ac_save_CFLAGS
3369 elif test $ac_cv_prog_cc_g = yes; then
3370 if test "$GCC" = yes; then
3376 if test "$GCC" = yes; then
3382 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3383 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3384 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_prog_cc_stdc
=no
3389 cat >conftest.
$ac_ext <<_ACEOF
3392 cat confdefs.h
>>conftest.
$ac_ext
3393 cat >>conftest.
$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3397 #include <sys/types.h>
3398 #include <sys/stat.h>
3399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3400 struct buf { int x; };
3401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402 static char *e (p, i)
3408 static char *f (char * (*g) (char **, int), char **p, ...)
3413 s = g (p, va_arg (v,int));
3418 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3419 function prototypes and stuff, but not '\xHH' hex character constants.
3420 These don't provoke an error unfortunately, instead are silently treated
3421 as 'x'. The following induces an error, until -std1 is added to get
3422 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3423 array size at least. It's necessary to write '\x00'==0 to get something
3424 that's true only with -std1. */
3425 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 # Don't try gcc -ansi; that turns off useful extensions and
3442 # breaks some systems' header files.
3443 # AIX -qlanglvl=ansi
3444 # Ultrix and OSF/1 -std1
3445 # HP-UX 10.20 and later -Ae
3446 # HP-UX older versions -Aa -D_HPUX_SOURCE
3447 # SVR4 -Xc -D__EXTENSIONS__
3448 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 CC
="$ac_save_CC $ac_arg"
3451 rm -f conftest.
$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1
>conftest.err
3457 cat conftest.err
>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try
='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_prog_cc_stdc
=$ac_arg
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.
$ac_ext >&5
3479 rm -f conftest.err conftest.
$ac_objext
3481 rm -f conftest.
$ac_ext conftest.
$ac_objext
3486 case "x$ac_cv_prog_cc_stdc" in
3488 echo "$as_me:$LINENO: result: none needed" >&5
3489 echo "${ECHO_T}none needed" >&6 ;;
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3492 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3493 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3496 # Some people use a C++ compiler to compile C. Since we use `exit',
3497 # in C++ we need to declare it. In case someone uses the same compiler
3498 # for both compiling C and C++ we need to have the C++ compiler decide
3499 # the declaration of exit, since it's the most demanding environment.
3500 cat >conftest.
$ac_ext <<_ACEOF
3505 rm -f conftest.
$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1
>conftest.err
3511 cat conftest.err
>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try
='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 for ac_declaration
in \
3528 'extern "C" void std::exit (int) throw (); using std::exit;' \
3529 'extern "C" void std::exit (int); using std::exit;' \
3530 'extern "C" void exit (int) throw ();' \
3531 'extern "C" void exit (int);' \
3534 cat >conftest.
$ac_ext <<_ACEOF
3537 cat confdefs.h
>>conftest.
$ac_ext
3538 cat >>conftest.
$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3550 rm -f conftest.
$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3554 grep -v '^ *+' conftest.er1
>conftest.err
3556 cat conftest.err
>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try
='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.
$ac_ext >&5
3578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 rm -f conftest.
$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3598 grep -v '^ *+' conftest.er1
>conftest.err
3600 cat conftest.err
>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; } &&
3609 { ac_try
='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.
$ac_ext >&5
3621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3624 if test -n "$ac_declaration"; then
3625 echo '#ifdef __cplusplus' >>confdefs.h
3626 echo $ac_declaration >>confdefs.h
3627 echo '#endif' >>confdefs.h
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.
$ac_ext >&5
3635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3637 ac_cpp
='$CPP $CPPFLAGS'
3638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3643 # On Suns, sometimes $CPP names a directory.
3644 if test -n "$CPP" && test -d "$CPP"; then
3648 #### Some systems specify a CPP to use unless we are using GCC.
3649 #### Now that we know whether we are using GCC, we can decide whether
3650 #### to use that one.
3651 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3656 #### Some systems specify a CC to use unless we are using GCC.
3657 #### Now that we know whether we are using GCC, we can decide whether
3658 #### to use that one.
3659 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3660 test x
$cc_specified != xyes
3665 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3667 CC
="$CC $GCC_TEST_OPTIONS"
3670 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3672 CC
="$CC $NON_GCC_TEST_OPTIONS"
3677 ac_cpp
='$CPP $CPPFLAGS'
3678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3681 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3682 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3683 # On Suns, sometimes $CPP names a directory.
3684 if test -n "$CPP" && test -d "$CPP"; then
3687 if test -z "$CPP"; then
3688 if test "${ac_cv_prog_CPP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 # Double quotes because CPP needs to be expanded
3692 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3695 for ac_c_preproc_warn_flag
in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.
$ac_ext <<_ACEOF
3706 cat confdefs.h
>>conftest.
$ac_ext
3707 cat >>conftest.
$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3710 # include <limits.h>
3712 # include <assert.h>
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1
>conftest.err
3721 cat conftest.err
>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev
/null
; then
3724 if test -s conftest.err
; then
3725 ac_cpp_err
=$ac_c_preproc_warn_flag
3726 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3733 if test -z "$ac_cpp_err"; then
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.
$ac_ext >&5
3739 # Broken: fails on valid input.
3742 rm -f conftest.err conftest.
$ac_ext
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.
$ac_ext <<_ACEOF
3749 cat confdefs.h
>>conftest.
$ac_ext
3750 cat >>conftest.
$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3757 grep -v '^ *+' conftest.er1
>conftest.err
3759 cat conftest.err
>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev
/null
; then
3762 if test -s conftest.err
; then
3763 ac_cpp_err
=$ac_c_preproc_warn_flag
3764 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.
$ac_ext >&5
3778 # Passes both tests.
3782 rm -f conftest.err conftest.
$ac_ext
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.
$ac_ext
3787 if $ac_preproc_ok; then
3799 echo "$as_me:$LINENO: result: $CPP" >&5
3800 echo "${ECHO_T}$CPP" >&6
3802 for ac_c_preproc_warn_flag
in '' yes
3804 # Use a header file that comes with gcc, so configuring glibc
3805 # with a fresh cross-compiler works.
3806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 # <limits.h> exists even on freestanding compilers.
3808 # On the NeXT, cc -E runs the code through the compiler's parser,
3809 # not just through cpp. "Syntax error" is here to catch this case.
3810 cat >conftest.
$ac_ext <<_ACEOF
3813 cat confdefs.h
>>conftest.
$ac_ext
3814 cat >>conftest.
$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3817 # include <limits.h>
3819 # include <assert.h>
3823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3826 grep -v '^ *+' conftest.er1
>conftest.err
3828 cat conftest.err
>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev
/null
; then
3831 if test -s conftest.err
; then
3832 ac_cpp_err
=$ac_c_preproc_warn_flag
3833 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3840 if test -z "$ac_cpp_err"; then
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.
$ac_ext >&5
3846 # Broken: fails on valid input.
3849 rm -f conftest.err conftest.
$ac_ext
3851 # OK, works on sane cases. Now check whether non-existent headers
3852 # can be detected and how.
3853 cat >conftest.
$ac_ext <<_ACEOF
3856 cat confdefs.h
>>conftest.
$ac_ext
3857 cat >>conftest.
$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1
>conftest.err
3866 cat conftest.err
>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev
/null
; then
3869 if test -s conftest.err
; then
3870 ac_cpp_err
=$ac_c_preproc_warn_flag
3871 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3878 if test -z "$ac_cpp_err"; then
3879 # Broken: success on invalid input.
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.
$ac_ext >&5
3885 # Passes both tests.
3889 rm -f conftest.err conftest.
$ac_ext
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.
$ac_ext
3894 if $ac_preproc_ok; then
3897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; }
3905 ac_cpp
='$CPP $CPPFLAGS'
3906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3911 echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3913 if test "${ac_cv_prog_egrep+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3917 then ac_cv_prog_egrep
='grep -E'
3918 else ac_cv_prog_egrep
='egrep'
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3922 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3923 EGREP
=$ac_cv_prog_egrep
3927 echo "$as_me:$LINENO: checking for AIX" >&5
3928 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3929 cat >conftest.
$ac_ext <<_ACEOF
3932 cat confdefs.h
>>conftest.
$ac_ext
3933 cat >>conftest.
$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "yes" >/dev
/null
2>&1; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6
3944 cat >>confdefs.h
<<\_ACEOF
3945 #define _ALL_SOURCE 1
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3956 cat >>confdefs.h
<<\_ACEOF
3957 #define _GNU_SOURCE 1
3962 ### Use -Wno-pointer-sign if the compiler supports it
3963 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3964 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3965 SAVE_CFLAGS
="$CFLAGS"
3966 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3967 cat >conftest.
$ac_ext <<_ACEOF
3970 cat confdefs.h
>>conftest.
$ac_ext
3971 cat >>conftest.
$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3982 rm -f conftest.
$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3986 grep -v '^ *+' conftest.er1
>conftest.err
3988 cat conftest.err
>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try
='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.
$ac_ext >&5
4010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4011 if test $has_option = yes; then
4012 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4014 echo "$as_me:$LINENO: result: $has_option" >&5
4015 echo "${ECHO_T}$has_option" >&6
4016 CFLAGS
="$SAVE_CFLAGS"
4020 #### Some other nice autoconf tests.
4022 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4023 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4025 if test "$LN_S" = "ln -s"; then
4026 echo "$as_me:$LINENO: result: yes" >&5
4027 echo "${ECHO_T}yes" >&6
4029 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4030 echo "${ECHO_T}no, using $LN_S" >&6
4034 ac_cpp
='$CPP $CPPFLAGS'
4035 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4038 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 # Double quotes because CPP needs to be expanded
4049 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4052 for ac_c_preproc_warn_flag
in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.
$ac_ext <<_ACEOF
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 # include <limits.h>
4069 # include <assert.h>
4073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4076 grep -v '^ *+' conftest.er1
>conftest.err
4078 cat conftest.err
>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } >/dev
/null
; then
4081 if test -s conftest.err
; then
4082 ac_cpp_err
=$ac_c_preproc_warn_flag
4083 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4090 if test -z "$ac_cpp_err"; then
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.
$ac_ext >&5
4096 # Broken: fails on valid input.
4099 rm -f conftest.err conftest.
$ac_ext
4101 # OK, works on sane cases. Now check whether non-existent headers
4102 # can be detected and how.
4103 cat >conftest.
$ac_ext <<_ACEOF
4106 cat confdefs.h
>>conftest.
$ac_ext
4107 cat >>conftest.
$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4112 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4114 grep -v '^ *+' conftest.er1
>conftest.err
4116 cat conftest.err
>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } >/dev
/null
; then
4119 if test -s conftest.err
; then
4120 ac_cpp_err
=$ac_c_preproc_warn_flag
4121 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4128 if test -z "$ac_cpp_err"; then
4129 # Broken: success on invalid input.
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.
$ac_ext >&5
4135 # Passes both tests.
4139 rm -f conftest.err conftest.
$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.
$ac_ext
4144 if $ac_preproc_ok; then
4156 echo "$as_me:$LINENO: result: $CPP" >&5
4157 echo "${ECHO_T}$CPP" >&6
4159 for ac_c_preproc_warn_flag
in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.
$ac_ext <<_ACEOF
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4174 # include <limits.h>
4176 # include <assert.h>
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1
>conftest.err
4185 cat conftest.err
>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev
/null
; then
4188 if test -s conftest.err
; then
4189 ac_cpp_err
=$ac_c_preproc_warn_flag
4190 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4197 if test -z "$ac_cpp_err"; then
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.
$ac_ext >&5
4203 # Broken: fails on valid input.
4206 rm -f conftest.err conftest.
$ac_ext
4208 # OK, works on sane cases. Now check whether non-existent headers
4209 # can be detected and how.
4210 cat >conftest.
$ac_ext <<_ACEOF
4213 cat confdefs.h
>>conftest.
$ac_ext
4214 cat >>conftest.
$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev
/null
; then
4226 if test -s conftest.err
; then
4227 ac_cpp_err
=$ac_c_preproc_warn_flag
4228 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4235 if test -z "$ac_cpp_err"; then
4236 # Broken: success on invalid input.
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.
$ac_ext >&5
4242 # Passes both tests.
4246 rm -f conftest.err conftest.
$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.
$ac_ext
4251 if $ac_preproc_ok; then
4254 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details." >&5
4256 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&2;}
4258 { (exit 1); exit 1; }; }
4262 ac_cpp
='$CPP $CPPFLAGS'
4263 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4267 # Find a good install program. We prefer a C program (faster),
4268 # so one script is as good as another. But avoid the broken or
4269 # incompatible versions:
4270 # SysV /etc/install, /usr/sbin/install
4271 # SunOS /usr/etc/install
4272 # IRIX /sbin/install
4274 # AmigaOS /C/install, which installs bootblocks on floppy discs
4275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4278 # OS/2's system install, which has a completely different semantic
4279 # ./install, which can be erroneously created by make from ./install.sh.
4280 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4281 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4282 if test -z "$INSTALL"; then
4283 if test "${ac_cv_path_install+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir
=.
4291 # Account for people who put trailing slashes in PATH elements.
4293 .
/ | .
// |
/cC
/* | \
4294 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4295 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4298 # OSF1 and SCO ODT 3.0 have their own names for install.
4299 # Don't use installbsd from OSF since it installs stuff as root
4301 for ac_prog
in ginstall scoinst
install; do
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4304 if test $ac_prog = install &&
4305 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4306 # AIX install. It has an incompatible calling convention.
4308 elif test $ac_prog = install &&
4309 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4310 # program-specific install script used by HP pwplus--don't use.
4313 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4325 if test "${ac_cv_path_install+set}" = set; then
4326 INSTALL
=$ac_cv_path_install
4328 # As a last resort, use the slow shell script. We don't cache a
4329 # path for INSTALL within a source directory, because that will
4330 # break other packages using the cache if that directory is
4331 # removed, or if the path is relative.
4332 INSTALL
=$ac_install_sh
4335 echo "$as_me:$LINENO: result: $INSTALL" >&5
4336 echo "${ECHO_T}$INSTALL" >&6
4338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4339 # It thinks the first close brace ends the variable substitution.
4340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4344 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4346 if test "x$RANLIB" = x
; then
4347 if test -n "$ac_tool_prefix"; then
4348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4349 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_RANLIB+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 if test -n "$RANLIB"; then
4356 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir
=.
4363 for ac_exec_ext
in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 RANLIB
=$ac_cv_prog_RANLIB
4375 if test -n "$RANLIB"; then
4376 echo "$as_me:$LINENO: result: $RANLIB" >&5
4377 echo "${ECHO_T}$RANLIB" >&6
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4384 if test -z "$ac_cv_prog_RANLIB"; then
4385 ac_ct_RANLIB
=$RANLIB
4386 # Extract the first word of "ranlib", so it can be a program name with args.
4387 set dummy ranlib
; ac_word
=$2
4388 echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$ac_ct_RANLIB"; then
4394 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir
=.
4401 for ac_exec_ext
in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4413 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4414 if test -n "$ac_ct_RANLIB"; then
4415 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4416 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4418 echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4422 RANLIB
=$ac_ct_RANLIB
4424 RANLIB
="$ac_cv_prog_RANLIB"
4428 # Extract the first word of "install-info", so it can be a program name with args.
4429 set dummy install-info
; ac_word
=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 case $INSTALL_INFO in
4437 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_exec_ext
in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4459 if test -n "$INSTALL_INFO"; then
4460 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4461 echo "${ECHO_T}$INSTALL_INFO" >&6
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4467 # Extract the first word of "install-info", so it can be a program name with args.
4468 set dummy install-info
; ac_word
=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 case $INSTALL_INFO in
4476 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4480 for as_dir
in /usr
/sbin
4483 test -z "$as_dir" && as_dir
=.
4484 for ac_exec_ext
in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4498 if test -n "$INSTALL_INFO"; then
4499 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4500 echo "${ECHO_T}$INSTALL_INFO" >&6
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 # Extract the first word of "install-info", so it can be a program name with args.
4507 set dummy install-info
; ac_word
=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 case $INSTALL_INFO in
4515 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir
=.
4523 for ac_exec_ext
in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4536 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4538 if test -n "$INSTALL_INFO"; then
4539 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4540 echo "${ECHO_T}$INSTALL_INFO" >&6
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4546 # Extract the first word of "gzip", so it can be a program name with args.
4547 set dummy
gzip; ac_word
=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir
=.
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4577 if test -n "$GZIP_PROG"; then
4578 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4579 echo "${ECHO_T}$GZIP_PROG" >&6
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4587 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4589 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4592 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4594 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4598 late_LDFLAGS
=$LDFLAGS
4599 if test "$GCC" = yes; then
4600 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4602 LDFLAGS
="$LDFLAGS -znocombreloc"
4605 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4606 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 rm -f conftest.
$ac_objext conftest
$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1
>conftest.err
4616 cat conftest.err
>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try
='test -s conftest$ac_exeext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 echo "$as_me:$LINENO: result: yes" >&5
4632 echo "${ECHO_T}yes" >&6
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.
$ac_ext >&5
4637 LDFLAGS
=$late_LDFLAGS
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4641 rm -f conftest.err conftest.
$ac_objext \
4642 conftest
$ac_exeext conftest.
$ac_ext
4644 #### Extract some information from the operating system and machine files.
4646 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4647 - which libraries the lib-src programs will want, and
4648 - whether the GNU malloc routines are usable..." >&5
4649 echo "$as_me: checking the machine- and system-dependent files to find out
4650 - which libraries the lib-src programs will want, and
4651 - whether the GNU malloc routines are usable..." >&6;}
4653 ### First figure out CFLAGS (which we use for running the compiler here)
4654 ### and REAL_CFLAGS (which we use for real compilation).
4655 ### The two are the same except on a few systems, where they are made
4656 ### different to work around various lossages. For example,
4657 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4658 ### as implying static linking.
4660 ### If the CFLAGS env var is specified, we use that value
4661 ### instead of the default.
4663 ### It's not important that this name contain the PID; you can't run
4664 ### two configures in the same directory and have anything work
4666 tempcname
="conftest.c"
4669 #include "'${srcdir}'/src/'${opsysfile}'"
4670 #include "'${srcdir}'/src/'${machfile}'"
4671 #ifndef LIBS_MACHINE
4672 #define LIBS_MACHINE
4677 #ifndef C_SWITCH_SYSTEM
4678 #define C_SWITCH_SYSTEM
4680 #ifndef C_SWITCH_MACHINE
4681 #define C_SWITCH_MACHINE
4683 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4684 configure___ c_switch_system=C_SWITCH_SYSTEM
4685 configure___ c_switch_machine=C_SWITCH_MACHINE
4688 #define LIB_X11_LIB -lX11
4691 #ifndef LIBX11_MACHINE
4692 #define LIBX11_MACHINE
4695 #ifndef LIBX11_SYSTEM
4696 #define LIBX11_SYSTEM
4698 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4701 configure___ unexec=UNEXEC
4703 configure___ unexec=unexec.o
4706 #ifdef SYSTEM_MALLOC
4707 configure___ system_malloc=yes
4709 configure___ system_malloc=no
4712 #ifdef USE_MMAP_FOR_BUFFERS
4713 configure___ use_mmap_for_buffers=yes
4715 configure___ use_mmap_for_buffers=no
4718 #ifndef C_DEBUG_SWITCH
4719 #define C_DEBUG_SWITCH -g
4722 #ifndef C_OPTIMIZE_SWITCH
4724 #define C_OPTIMIZE_SWITCH -O2
4726 #define C_OPTIMIZE_SWITCH -O
4730 #ifndef C_WARNINGS_SWITCH
4731 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4734 #ifndef LD_SWITCH_MACHINE
4735 #define LD_SWITCH_MACHINE
4738 #ifndef LD_SWITCH_SYSTEM
4739 #define LD_SWITCH_SYSTEM
4742 #ifndef LD_SWITCH_X_SITE_AUX
4743 #define LD_SWITCH_X_SITE_AUX
4746 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4747 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4749 #ifdef THIS_IS_CONFIGURE
4751 /* Get the CFLAGS for tests in configure. */
4753 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4755 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4758 #else /* not THIS_IS_CONFIGURE */
4760 /* Get the CFLAGS for real compilation. */
4762 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4764 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4767 #endif /* not THIS_IS_CONFIGURE */
4770 # The value of CPP is a quoted variable reference, so we need to do this
4771 # to get its actual value...
4772 CPP
=`eval "echo $CPP"`
4773 eval `${CPP} -Isrc ${tempcname} \
4774 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4775 if test "x$SPECIFIED_CFLAGS" = x
; then
4776 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4777 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4779 REAL_CFLAGS
="$CFLAGS"
4783 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4785 ### Make sure subsequent tests use flags consistent with the build flags.
4787 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4788 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4790 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4795 # Check whether --enable-largefile or --disable-largefile was given.
4796 if test "${enable_largefile+set}" = set; then
4797 enableval
="$enable_largefile"
4800 if test "$enable_largefile" != no
; then
4802 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4803 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4804 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 ac_cv_sys_largefile_CC
=no
4808 if test "$GCC" != yes; then
4811 # IRIX 6.2 and later do not support large files by default,
4812 # so use the C compiler's -n32 option if that helps.
4813 cat >conftest.
$ac_ext <<_ACEOF
4816 cat confdefs.h
>>conftest.
$ac_ext
4817 cat >>conftest.
$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 /* Check that off_t can represent 2**63 - 1 correctly.
4821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4822 since some C++ compilers masquerading as C compilers
4823 incorrectly reject 9223372036854775807. */
4824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4826 && LARGE_OFF_T % 2147483647 == 1)
4836 rm -f conftest.
$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4840 grep -v '^ *+' conftest.er1
>conftest.err
4842 cat conftest.err
>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try
='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4863 rm -f conftest.err conftest.
$ac_objext
4865 rm -f conftest.
$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1
>conftest.err
4871 cat conftest.err
>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sys_largefile_CC
=' -n32'; break
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4892 rm -f conftest.err conftest.
$ac_objext
4896 rm -f conftest.
$ac_ext
4899 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4900 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4901 if test "$ac_cv_sys_largefile_CC" != no
; then
4902 CC
=$CC$ac_cv_sys_largefile_CC
4905 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4906 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4907 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_cv_sys_file_offset_bits
=no
4912 cat >conftest.
$ac_ext <<_ACEOF
4915 cat confdefs.h
>>conftest.
$ac_ext
4916 cat >>conftest.
$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <sys/types.h>
4919 /* Check that off_t can represent 2**63 - 1 correctly.
4920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4921 since some C++ compilers masquerading as C compilers
4922 incorrectly reject 9223372036854775807. */
4923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4925 && LARGE_OFF_T % 2147483647 == 1)
4935 rm -f conftest.
$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4939 grep -v '^ *+' conftest.er1
>conftest.err
4941 cat conftest.err
>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try
='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.
$ac_ext >&5
4962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 cat >conftest.
$ac_ext <<_ACEOF
4966 cat confdefs.h
>>conftest.
$ac_ext
4967 cat >>conftest.
$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #define _FILE_OFFSET_BITS 64
4970 #include <sys/types.h>
4971 /* Check that off_t can represent 2**63 - 1 correctly.
4972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4973 since some C++ compilers masquerading as C compilers
4974 incorrectly reject 9223372036854775807. */
4975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4977 && LARGE_OFF_T % 2147483647 == 1)
4987 rm -f conftest.
$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1
>conftest.err
4993 cat conftest.err
>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try
='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_sys_file_offset_bits
=64; break
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.
$ac_ext >&5
5014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5019 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5020 if test "$ac_cv_sys_file_offset_bits" != no
; then
5022 cat >>confdefs.h
<<_ACEOF
5023 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5028 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5029 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5030 if test "${ac_cv_sys_large_files+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 ac_cv_sys_large_files
=no
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <sys/types.h>
5042 /* Check that off_t can represent 2**63 - 1 correctly.
5043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5044 since some C++ compilers masquerading as C compilers
5045 incorrectly reject 9223372036854775807. */
5046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5048 && LARGE_OFF_T % 2147483647 == 1)
5058 rm -f conftest.
$ac_objext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>conftest.er1
5062 grep -v '^ *+' conftest.er1
>conftest.err
5064 cat conftest.err
>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try
='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.
$ac_ext >&5
5085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5086 cat >conftest.
$ac_ext <<_ACEOF
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #define _LARGE_FILES 1
5093 #include <sys/types.h>
5094 /* Check that off_t can represent 2**63 - 1 correctly.
5095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5096 since some C++ compilers masquerading as C compilers
5097 incorrectly reject 9223372036854775807. */
5098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5100 && LARGE_OFF_T % 2147483647 == 1)
5110 rm -f conftest.
$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1
>conftest.err
5116 cat conftest.err
>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try
='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_sys_large_files
=1; break
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.
$ac_ext >&5
5137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5141 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5142 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5143 if test "$ac_cv_sys_large_files" != no
; then
5145 cat >>confdefs.h
<<_ACEOF
5146 #define _LARGE_FILES $ac_cv_sys_large_files
5158 if test "${with_sound}" != "no"; then
5159 # Sound support for GNU/Linux and the free BSDs.
5160 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5161 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5162 if test "${ac_cv_header_stdc+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 cat >conftest.
$ac_ext <<_ACEOF
5168 cat confdefs.h
>>conftest.
$ac_ext
5169 cat >>conftest.
$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5184 rm -f conftest.
$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5188 grep -v '^ *+' conftest.er1
>conftest.err
5190 cat conftest.err
>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try
='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_header_stdc
=yes
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.
$ac_ext >&5
5210 ac_cv_header_stdc
=no
5212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5214 if test $ac_cv_header_stdc = yes; then
5215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5216 cat >conftest.
$ac_ext <<_ACEOF
5219 cat confdefs.h
>>conftest.
$ac_ext
5220 cat >>conftest.
$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "memchr" >/dev
/null
2>&1; then
5229 ac_cv_header_stdc
=no
5235 if test $ac_cv_header_stdc = yes; then
5236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5237 cat >conftest.
$ac_ext <<_ACEOF
5240 cat confdefs.h
>>conftest.
$ac_ext
5241 cat >>conftest.
$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "free" >/dev
/null
2>&1; then
5250 ac_cv_header_stdc
=no
5256 if test $ac_cv_header_stdc = yes; then
5257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5258 if test "$cross_compiling" = yes; then
5261 cat >conftest.
$ac_ext <<_ACEOF
5264 cat confdefs.h
>>conftest.
$ac_ext
5265 cat >>conftest.
$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5268 #if ((' ' & 0x0FF) == 0x020)
5269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5272 # define ISLOWER(c) \
5273 (('a' <= (c) && (c) <= 'i') \
5274 || ('j' <= (c) && (c) <= 'r') \
5275 || ('s' <= (c) && (c) <= 'z'))
5276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5284 for (i = 0; i < 256; i++)
5285 if (XOR (islower (i), ISLOWER (i))
5286 || toupper (i) != TOUPPER (i))
5291 rm -f conftest
$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5304 echo "$as_me: program exited with status $ac_status" >&5
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.
$ac_ext >&5
5309 ac_cv_header_stdc
=no
5311 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5315 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5316 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5317 if test $ac_cv_header_stdc = yes; then
5319 cat >>confdefs.h
<<\_ACEOF
5320 #define STDC_HEADERS 1
5325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5335 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5336 inttypes.h stdint.h unistd.h
5338 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 echo "$as_me:$LINENO: checking for $ac_header" >&5
5340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 cat >conftest.
$ac_ext <<_ACEOF
5347 cat confdefs.h
>>conftest.
$ac_ext
5348 cat >>conftest.
$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 $ac_includes_default
5352 #include <$ac_header>
5354 rm -f conftest.
$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5358 grep -v '^ *+' conftest.er1
>conftest.err
5360 cat conftest.err
>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try
='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 eval "$as_ac_Header=yes"
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.
$ac_ext >&5
5380 eval "$as_ac_Header=no"
5382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387 cat >>confdefs.h
<<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5399 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5401 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5411 # Is the header compilable?
5412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5414 cat >conftest.
$ac_ext <<_ACEOF
5417 cat confdefs.h
>>conftest.
$ac_ext
5418 cat >>conftest.
$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5421 #include <$ac_header>
5423 rm -f conftest.
$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5427 grep -v '^ *+' conftest.er1
>conftest.err
5429 cat conftest.err
>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try
='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_header_compiler
=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.
$ac_ext >&5
5449 ac_header_compiler
=no
5451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5453 echo "${ECHO_T}$ac_header_compiler" >&6
5455 # Is the header present?
5456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5458 cat >conftest.
$ac_ext <<_ACEOF
5461 cat confdefs.h
>>conftest.
$ac_ext
5462 cat >>conftest.
$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <$ac_header>
5466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5469 grep -v '^ *+' conftest.er1
>conftest.err
5471 cat conftest.err
>&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } >/dev
/null
; then
5474 if test -s conftest.err
; then
5475 ac_cpp_err
=$ac_c_preproc_warn_flag
5476 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5483 if test -z "$ac_cpp_err"; then
5484 ac_header_preproc
=yes
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5489 ac_header_preproc
=no
5491 rm -f conftest.err conftest.
$ac_ext
5492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5493 echo "${ECHO_T}$ac_header_preproc" >&6
5495 # So? What about this header?
5496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5502 ac_header_preproc
=yes
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5519 ## ------------------------------------------ ##
5520 ## Report this to the AC_PACKAGE_NAME lists. ##
5521 ## ------------------------------------------ ##
5524 sed "s/^/$as_me: WARNING: /" >&2
5527 echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 eval "$as_ac_Header=\$ac_header_preproc"
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5539 cat >>confdefs.h
<<_ACEOF
5540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5547 # Emulation library used on NetBSD.
5548 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5549 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5550 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_check_lib_save_LIBS
=$LIBS
5554 LIBS
="-lossaudio $LIBS"
5555 cat >conftest.
$ac_ext <<_ACEOF
5558 cat confdefs.h
>>conftest.
$ac_ext
5559 cat >>conftest.
$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5562 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5577 rm -f conftest.
$ac_objext conftest
$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>conftest.er1
5581 grep -v '^ *+' conftest.er1
>conftest.err
5583 cat conftest.err
>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try
='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_lib_ossaudio__oss_ioctl
=yes
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.
$ac_ext >&5
5603 ac_cv_lib_ossaudio__oss_ioctl
=no
5605 rm -f conftest.err conftest.
$ac_objext \
5606 conftest
$ac_exeext conftest.
$ac_ext
5607 LIBS
=$ac_check_lib_save_LIBS
5609 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5610 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5611 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5620 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5621 if test "X${with_pkg_config_prog}" != X
; then
5622 PKG_CONFIG
="${with_pkg_config_prog}"
5627 if test -z "$PKG_CONFIG"; then
5628 # Extract the first word of "pkg-config", so it can be a program name with args.
5629 set dummy pkg-config
; ac_word
=$2
5630 echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir
=.
5645 for ac_exec_ext
in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5658 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5660 if test -n "$PKG_CONFIG"; then
5661 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5662 echo "${ECHO_T}$PKG_CONFIG" >&6
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5670 if test "$PKG_CONFIG" = "no" ; then
5673 PKG_CONFIG_MIN_VERSION
=0.9.0
5674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5675 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5676 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5678 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5679 echo "$as_me:$LINENO: result: yes" >&5
5680 echo "${ECHO_T}yes" >&6
5683 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5684 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5685 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5686 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5687 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5689 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5690 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5691 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5692 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5693 echo "${ECHO_T}$ALSA_LIBS" >&6
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5699 ## If we have a custom action on failure, don't print errors, but
5700 ## do set a variable so people can do so.
5701 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5708 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5709 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5713 if test $succeeded = yes; then
5719 if test $HAVE_ALSA = yes; then
5720 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5721 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5723 cat >>confdefs.h
<<\_ACEOF
5756 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5757 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5758 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5759 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5762 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5764 echo "$as_me:$LINENO: checking for $ac_header" >&5
5765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5772 # Is the header compilable?
5773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5775 cat >conftest.
$ac_ext <<_ACEOF
5778 cat confdefs.h
>>conftest.
$ac_ext
5779 cat >>conftest.
$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <$ac_header>
5784 rm -f conftest.
$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5788 grep -v '^ *+' conftest.er1
>conftest.err
5790 cat conftest.err
>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try
='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_header_compiler
=yes
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.
$ac_ext >&5
5810 ac_header_compiler
=no
5812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6
5816 # Is the header present?
5817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5819 cat >conftest.
$ac_ext <<_ACEOF
5822 cat confdefs.h
>>conftest.
$ac_ext
5823 cat >>conftest.
$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <$ac_header>
5827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5828 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1
>conftest.err
5832 cat conftest.err
>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev
/null
; then
5835 if test -s conftest.err
; then
5836 ac_cpp_err
=$ac_c_preproc_warn_flag
5837 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5844 if test -z "$ac_cpp_err"; then
5845 ac_header_preproc
=yes
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.
$ac_ext >&5
5850 ac_header_preproc
=no
5852 rm -f conftest.err conftest.
$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5854 echo "${ECHO_T}$ac_header_preproc" >&6
5856 # So? What about this header?
5857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5863 ac_header_preproc
=yes
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5880 ## ------------------------------------------ ##
5881 ## Report this to the AC_PACKAGE_NAME lists. ##
5882 ## ------------------------------------------ ##
5885 sed "s/^/$as_me: WARNING: /" >&2
5888 echo "$as_me:$LINENO: checking for $ac_header" >&5
5889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 eval "$as_ac_Header=\$ac_header_preproc"
5895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5900 cat >>confdefs.h
<<_ACEOF
5901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5910 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 #include <sys/personality.h>
5921 personality (PER_LINUX32)
5926 rm -f conftest.
$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5930 grep -v '^ *+' conftest.er1
>conftest.err
5932 cat conftest.err
>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try
='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 emacs_cv_personality_linux32
=yes
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5952 emacs_cv_personality_linux32
=no
5954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5955 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5956 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5958 if test $emacs_cv_personality_linux32 = yes; then
5960 cat >>confdefs.h
<<\_ACEOF
5961 #define HAVE_PERSONALITY_LINUX32 1
5967 for ac_header
in term.h
5969 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5970 echo "$as_me:$LINENO: checking for $ac_header" >&5
5971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 cat >conftest.
$ac_ext <<_ACEOF
5978 cat confdefs.h
>>conftest.
$ac_ext
5979 cat >>conftest.
$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #include <$ac_header>
5983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5984 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5986 grep -v '^ *+' conftest.er1
>conftest.err
5988 cat conftest.err
>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev
/null
; then
5991 if test -s conftest.err
; then
5992 ac_cpp_err
=$ac_c_preproc_warn_flag
5993 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6000 if test -z "$ac_cpp_err"; then
6001 eval "$as_ac_Header=yes"
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.
$ac_ext >&5
6006 eval "$as_ac_Header=no"
6008 rm -f conftest.err conftest.
$ac_ext
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013 cat >>confdefs.h
<<_ACEOF
6014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6021 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6023 if test "${ac_cv_header_stdc+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.
$ac_ext <<_ACEOF
6029 cat confdefs.h
>>conftest.
$ac_ext
6030 cat >>conftest.
$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6045 rm -f conftest.
$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>conftest.er1
6049 grep -v '^ *+' conftest.er1
>conftest.err
6051 cat conftest.err
>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try
='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_header_stdc
=yes
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.
$ac_ext >&5
6071 ac_cv_header_stdc
=no
6073 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6075 if test $ac_cv_header_stdc = yes; then
6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6077 cat >conftest.
$ac_ext <<_ACEOF
6080 cat confdefs.h
>>conftest.
$ac_ext
6081 cat >>conftest.
$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "memchr" >/dev
/null
2>&1; then
6090 ac_cv_header_stdc
=no
6096 if test $ac_cv_header_stdc = yes; then
6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6098 cat >conftest.
$ac_ext <<_ACEOF
6101 cat confdefs.h
>>conftest.
$ac_ext
6102 cat >>conftest.
$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "free" >/dev
/null
2>&1; then
6111 ac_cv_header_stdc
=no
6117 if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6119 if test "$cross_compiling" = yes; then
6122 cat >conftest.
$ac_ext <<_ACEOF
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 #if ((' ' & 0x0FF) == 0x020)
6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133 # define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6152 rm -f conftest
$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.
$ac_ext >&5
6170 ac_cv_header_stdc
=no
6172 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6176 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6177 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6178 if test $ac_cv_header_stdc = yes; then
6180 cat >>confdefs.h
<<\_ACEOF
6181 #define STDC_HEADERS 1
6186 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6187 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6188 if test "${ac_cv_header_time+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 cat >conftest.
$ac_ext <<_ACEOF
6194 cat confdefs.h
>>conftest.
$ac_ext
6195 cat >>conftest.
$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 #include <sys/time.h>
6204 if ((struct tm *) 0)
6210 rm -f conftest.
$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1
>conftest.err
6216 cat conftest.err
>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try
='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_header_time
=yes
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.
$ac_ext >&5
6236 ac_cv_header_time
=no
6238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6240 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6241 echo "${ECHO_T}$ac_cv_header_time" >&6
6242 if test $ac_cv_header_time = yes; then
6244 cat >>confdefs.h
<<\_ACEOF
6245 #define TIME_WITH_SYS_TIME 1
6250 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6251 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6252 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 cat >conftest.
$ac_ext <<_ACEOF
6258 cat confdefs.h
>>conftest.
$ac_ext
6259 cat >>conftest.
$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 $ac_includes_default
6266 char *p = (char *) sys_siglist;
6273 rm -f conftest.
$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6277 grep -v '^ *+' conftest.er1
>conftest.err
6279 cat conftest.err
>&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try
='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_have_decl_sys_siglist
=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 ac_cv_have_decl_sys_siglist
=no
6301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6304 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6305 if test $ac_cv_have_decl_sys_siglist = yes; then
6307 cat >>confdefs.h
<<_ACEOF
6308 #define HAVE_DECL_SYS_SIGLIST 1
6313 cat >>confdefs.h
<<_ACEOF
6314 #define HAVE_DECL_SYS_SIGLIST 0
6321 if test $ac_cv_have_decl_sys_siglist != yes; then
6322 # For Tru64, at least:
6323 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6324 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6325 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.
$ac_ext <<_ACEOF
6331 cat confdefs.h
>>conftest.
$ac_ext
6332 cat >>conftest.
$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6338 #ifndef __sys_siglist
6339 char *p = (char *) __sys_siglist;
6346 rm -f conftest.
$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6350 grep -v '^ *+' conftest.er1
>conftest.err
6352 cat conftest.err
>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try
='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_have_decl___sys_siglist
=yes
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.
$ac_ext >&5
6372 ac_cv_have_decl___sys_siglist
=no
6374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6376 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6377 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6378 if test $ac_cv_have_decl___sys_siglist = yes; then
6380 cat >>confdefs.h
<<_ACEOF
6381 #define HAVE_DECL___SYS_SIGLIST 1
6386 cat >>confdefs.h
<<_ACEOF
6387 #define HAVE_DECL___SYS_SIGLIST 0
6394 if test $ac_cv_have_decl___sys_siglist = yes; then
6396 cat >>confdefs.h
<<\_ACEOF
6397 #define sys_siglist __sys_siglist
6402 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6403 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 cat >conftest.
$ac_ext <<_ACEOF
6410 cat confdefs.h
>>conftest.
$ac_ext
6411 cat >>conftest.
$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <sys/types.h>
6414 #include <sys/wait.h>
6416 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6419 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6432 rm -f conftest.
$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6436 grep -v '^ *+' conftest.er1
>conftest.err
6438 cat conftest.err
>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try
='test -s conftest.$ac_objext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_header_sys_wait_h
=yes
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.
$ac_ext >&5
6458 ac_cv_header_sys_wait_h
=no
6460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6463 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6464 if test $ac_cv_header_sys_wait_h = yes; then
6466 cat >>confdefs.h
<<\_ACEOF
6467 #define HAVE_SYS_WAIT_H 1
6473 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6474 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6475 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 cat >conftest.
$ac_ext <<_ACEOF
6481 cat confdefs.h
>>conftest.
$ac_ext
6482 cat >>conftest.
$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #ifdef TIME_WITH_SYS_TIME
6485 #include <sys/time.h>
6488 #ifdef HAVE_SYS_TIME_H
6489 #include <sys/time.h>
6500 static struct utimbuf x; x.actime = x.modtime;
6505 rm -f conftest.
$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1
>conftest.err
6511 cat conftest.err
>&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try
='test -s conftest.$ac_objext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 emacs_cv_struct_utimbuf
=yes
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.
$ac_ext >&5
6531 emacs_cv_struct_utimbuf
=no
6533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6536 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6537 if test $emacs_cv_struct_utimbuf = yes; then
6539 cat >>confdefs.h
<<\_ACEOF
6540 #define HAVE_STRUCT_UTIMBUF 1
6545 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6546 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6547 if test "${ac_cv_type_signal+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 cat >conftest.
$ac_ext <<_ACEOF
6553 cat confdefs.h
>>conftest.
$ac_ext
6554 cat >>conftest.
$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <sys/types.h>
6562 extern "C" void (*signal (int, void (*)(int)))(int);
6564 void (*signal ()) ();
6575 rm -f conftest.
$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>conftest.er1
6579 grep -v '^ *+' conftest.er1
>conftest.err
6581 cat conftest.err
>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try
='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_type_signal
=void
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.
$ac_ext >&5
6601 ac_cv_type_signal
=int
6603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6605 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6606 echo "${ECHO_T}$ac_cv_type_signal" >&6
6608 cat >>confdefs.h
<<_ACEOF
6609 #define RETSIGTYPE $ac_cv_type_signal
6614 echo "$as_me:$LINENO: checking for speed_t" >&5
6615 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6616 if test "${emacs_cv_speed_t+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 cat >conftest.
$ac_ext <<_ACEOF
6622 cat confdefs.h
>>conftest.
$ac_ext
6623 cat >>conftest.
$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #include <termios.h>
6634 rm -f conftest.
$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1
>conftest.err
6640 cat conftest.err
>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; } &&
6649 { ac_try
='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 emacs_cv_speed_t
=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.
$ac_ext >&5
6662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6664 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6665 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6666 if test $emacs_cv_speed_t = yes; then
6668 cat >>confdefs.h
<<\_ACEOF
6669 #define HAVE_SPEED_T 1
6674 echo "$as_me:$LINENO: checking for struct timeval" >&5
6675 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6676 if test "${emacs_cv_struct_timeval+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 cat >conftest.
$ac_ext <<_ACEOF
6682 cat confdefs.h
>>conftest.
$ac_ext
6683 cat >>conftest.
$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6685 #ifdef TIME_WITH_SYS_TIME
6686 #include <sys/time.h>
6689 #ifdef HAVE_SYS_TIME_H
6690 #include <sys/time.h>
6698 static struct timeval x; x.tv_sec = x.tv_usec;
6703 rm -f conftest.
$ac_objext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>conftest.er1
6707 grep -v '^ *+' conftest.er1
>conftest.err
6709 cat conftest.err
>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try
='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 emacs_cv_struct_timeval
=yes
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.
$ac_ext >&5
6729 emacs_cv_struct_timeval
=no
6731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6733 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6734 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6735 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6736 if test $emacs_cv_struct_timeval = yes; then
6738 cat >>confdefs.h
<<\_ACEOF
6739 #define HAVE_TIMEVAL 1
6744 echo "$as_me:$LINENO: checking for struct exception" >&5
6745 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6746 if test "${emacs_cv_struct_exception+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.
$ac_ext <<_ACEOF
6752 cat confdefs.h
>>conftest.
$ac_ext
6753 cat >>conftest.
$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6759 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6764 rm -f conftest.
$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1
>conftest.err
6770 cat conftest.err
>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try
='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 emacs_cv_struct_exception
=yes
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.
$ac_ext >&5
6790 emacs_cv_struct_exception
=no
6792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6794 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6795 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6796 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6797 if test $emacs_cv_struct_exception != yes; then
6799 cat >>confdefs.h
<<\_ACEOF
6800 #define NO_MATHERR 1
6806 for ac_header
in sys
/socket.h
6808 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6810 echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6818 # Is the header compilable?
6819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6821 cat >conftest.
$ac_ext <<_ACEOF
6824 cat confdefs.h
>>conftest.
$ac_ext
6825 cat >>conftest.
$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6828 #include <$ac_header>
6830 rm -f conftest.
$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6834 grep -v '^ *+' conftest.er1
>conftest.err
6836 cat conftest.err
>&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try
='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_header_compiler
=yes
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.
$ac_ext >&5
6856 ac_header_compiler
=no
6858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6860 echo "${ECHO_T}$ac_header_compiler" >&6
6862 # Is the header present?
6863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6865 cat >conftest.
$ac_ext <<_ACEOF
6868 cat confdefs.h
>>conftest.
$ac_ext
6869 cat >>conftest.
$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 #include <$ac_header>
6873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6874 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1
>conftest.err
6878 cat conftest.err
>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } >/dev
/null
; then
6881 if test -s conftest.err
; then
6882 ac_cpp_err
=$ac_c_preproc_warn_flag
6883 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6890 if test -z "$ac_cpp_err"; then
6891 ac_header_preproc
=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.
$ac_ext >&5
6896 ac_header_preproc
=no
6898 rm -f conftest.err conftest.
$ac_ext
6899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6900 echo "${ECHO_T}$ac_header_preproc" >&6
6902 # So? What about this header?
6903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6909 ac_header_preproc
=yes
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6926 ## ------------------------------------------ ##
6927 ## Report this to the AC_PACKAGE_NAME lists. ##
6928 ## ------------------------------------------ ##
6931 sed "s/^/$as_me: WARNING: /" >&2
6934 echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 eval "$as_ac_Header=\$ac_header_preproc"
6941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h
<<_ACEOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955 for ac_header
in net
/if.h
6957 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 echo "$as_me:$LINENO: checking for $ac_header" >&5
6959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 cat >conftest.
$ac_ext <<_ACEOF
6966 cat confdefs.h
>>conftest.
$ac_ext
6967 cat >>conftest.
$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 $ac_includes_default
6970 #if HAVE_SYS_SOCKET_H
6971 #include <sys/socket.h>
6974 #include <$ac_header>
6976 rm -f conftest.
$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6980 grep -v '^ *+' conftest.er1
>conftest.err
6982 cat conftest.err
>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try
='test -s conftest.$ac_objext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 eval "$as_ac_Header=yes"
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.
$ac_ext >&5
7002 eval "$as_ac_Header=no"
7004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7009 cat >>confdefs.h
<<_ACEOF
7010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7018 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7019 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7020 if test "${ac_cv_struct_tm+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 cat >conftest.
$ac_ext <<_ACEOF
7026 cat confdefs.h
>>conftest.
$ac_ext
7027 cat >>conftest.
$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <sys/types.h>
7035 struct tm *tp; tp->tm_sec;
7040 rm -f conftest.
$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7044 grep -v '^ *+' conftest.er1
>conftest.err
7046 cat conftest.err
>&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try
='test -s conftest.$ac_objext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_struct_tm
=time.h
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.
$ac_ext >&5
7066 ac_cv_struct_tm
=sys
/time.h
7068 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7070 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7071 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7072 if test $ac_cv_struct_tm = sys
/time.h
; then
7074 cat >>confdefs.h
<<\_ACEOF
7075 #define TM_IN_SYS_TIME 1
7080 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7081 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7082 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 cat >conftest.
$ac_ext <<_ACEOF
7088 cat confdefs.h
>>conftest.
$ac_ext
7089 cat >>conftest.
$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #include <sys/types.h>
7092 #include <$ac_cv_struct_tm>
7098 static struct tm ac_aggr;
7099 if (ac_aggr.tm_zone)
7105 rm -f conftest.
$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1
>conftest.err
7111 cat conftest.err
>&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try
='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_member_struct_tm_tm_zone
=yes
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.
$ac_ext >&5
7131 cat >conftest.
$ac_ext <<_ACEOF
7134 cat confdefs.h
>>conftest.
$ac_ext
7135 cat >>conftest.
$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137 #include <sys/types.h>
7138 #include <$ac_cv_struct_tm>
7144 static struct tm ac_aggr;
7145 if (sizeof ac_aggr.tm_zone)
7151 rm -f conftest.
$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7155 grep -v '^ *+' conftest.er1
>conftest.err
7157 cat conftest.err
>&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try
='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_cv_member_struct_tm_tm_zone
=yes
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.
$ac_ext >&5
7177 ac_cv_member_struct_tm_tm_zone
=no
7179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7184 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7185 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7187 cat >>confdefs.h
<<_ACEOF
7188 #define HAVE_STRUCT_TM_TM_ZONE 1
7194 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7196 cat >>confdefs.h
<<\_ACEOF
7197 #define HAVE_TM_ZONE 1
7201 echo "$as_me:$LINENO: checking for tzname" >&5
7202 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7203 if test "${ac_cv_var_tzname+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 cat >conftest.
$ac_ext <<_ACEOF
7209 cat confdefs.h
>>conftest.
$ac_ext
7210 cat >>conftest.
$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7213 #ifndef tzname /* For SGI. */
7214 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7225 rm -f conftest.
$ac_objext conftest
$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227 (eval $ac_link) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1
>conftest.err
7231 cat conftest.err
>&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try
='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_var_tzname
=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7253 rm -f conftest.err conftest.
$ac_objext \
7254 conftest
$ac_exeext conftest.
$ac_ext
7256 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7257 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7258 if test $ac_cv_var_tzname = yes; then
7260 cat >>confdefs.h
<<\_ACEOF
7261 #define HAVE_TZNAME 1
7267 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7268 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7269 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 cat >conftest.
$ac_ext <<_ACEOF
7275 cat confdefs.h
>>conftest.
$ac_ext
7276 cat >>conftest.
$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7283 static struct tm ac_aggr;
7284 if (ac_aggr.tm_gmtoff)
7290 rm -f conftest.
$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>conftest.er1
7294 grep -v '^ *+' conftest.er1
>conftest.err
7296 cat conftest.err
>&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try
='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_member_struct_tm_tm_gmtoff
=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.
$ac_ext >&5
7316 cat >conftest.
$ac_ext <<_ACEOF
7319 cat confdefs.h
>>conftest.
$ac_ext
7320 cat >>conftest.
$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7327 static struct tm ac_aggr;
7328 if (sizeof ac_aggr.tm_gmtoff)
7334 rm -f conftest.
$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7338 grep -v '^ *+' conftest.er1
>conftest.err
7340 cat conftest.err
>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try
='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_member_struct_tm_tm_gmtoff
=yes
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7360 ac_cv_member_struct_tm_tm_gmtoff
=no
7362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7367 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7368 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7370 cat >>confdefs.h
<<\_ACEOF
7371 #define HAVE_TM_GMTOFF 1
7376 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7377 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7378 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 cat >conftest.
$ac_ext <<_ACEOF
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 #if HAVE_SYS_SOCKET_H
7389 #include <sys/socket.h>
7398 static struct ifreq ac_aggr;
7399 if (ac_aggr.ifr_flags)
7405 rm -f conftest.
$ac_objext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7407 (eval $ac_compile) 2>conftest.er1
7409 grep -v '^ *+' conftest.er1
>conftest.err
7411 cat conftest.err
>&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try
='test -s conftest.$ac_objext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_member_struct_ifreq_ifr_flags
=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.
$ac_ext >&5
7431 cat >conftest.
$ac_ext <<_ACEOF
7434 cat confdefs.h
>>conftest.
$ac_ext
7435 cat >>conftest.
$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 $ac_includes_default
7438 #if HAVE_SYS_SOCKET_H
7439 #include <sys/socket.h>
7448 static struct ifreq ac_aggr;
7449 if (sizeof ac_aggr.ifr_flags)
7455 rm -f conftest.
$ac_objext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7457 (eval $ac_compile) 2>conftest.er1
7459 grep -v '^ *+' conftest.er1
>conftest.err
7461 cat conftest.err
>&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try
='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_member_struct_ifreq_ifr_flags
=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.
$ac_ext >&5
7481 ac_cv_member_struct_ifreq_ifr_flags
=no
7483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7489 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7491 cat >>confdefs.h
<<_ACEOF
7492 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7497 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7498 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7499 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.
$ac_ext <<_ACEOF
7505 cat confdefs.h
>>conftest.
$ac_ext
7506 cat >>conftest.
$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 #if HAVE_SYS_SOCKET_H
7510 #include <sys/socket.h>
7519 static struct ifreq ac_aggr;
7520 if (ac_aggr.ifr_hwaddr)
7526 rm -f conftest.
$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>conftest.er1
7530 grep -v '^ *+' conftest.er1
>conftest.err
7532 cat conftest.err
>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; } &&
7541 { ac_try
='test -s conftest.$ac_objext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.
$ac_ext >&5
7552 cat >conftest.
$ac_ext <<_ACEOF
7555 cat confdefs.h
>>conftest.
$ac_ext
7556 cat >>conftest.
$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 $ac_includes_default
7559 #if HAVE_SYS_SOCKET_H
7560 #include <sys/socket.h>
7569 static struct ifreq ac_aggr;
7570 if (sizeof ac_aggr.ifr_hwaddr)
7576 rm -f conftest.
$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7580 grep -v '^ *+' conftest.er1
>conftest.err
7582 cat conftest.err
>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try
='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.
$ac_ext >&5
7602 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7609 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7610 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7612 cat >>confdefs.h
<<_ACEOF
7613 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7618 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7619 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7620 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.
$ac_ext <<_ACEOF
7626 cat confdefs.h
>>conftest.
$ac_ext
7627 cat >>conftest.
$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7630 #if HAVE_SYS_SOCKET_H
7631 #include <sys/socket.h>
7640 static struct ifreq ac_aggr;
7641 if (ac_aggr.ifr_netmask)
7647 rm -f conftest.
$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7651 grep -v '^ *+' conftest.er1
>conftest.err
7653 cat conftest.err
>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try
='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.
$ac_ext >&5
7673 cat >conftest.
$ac_ext <<_ACEOF
7676 cat confdefs.h
>>conftest.
$ac_ext
7677 cat >>conftest.
$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 #if HAVE_SYS_SOCKET_H
7681 #include <sys/socket.h>
7690 static struct ifreq ac_aggr;
7691 if (sizeof ac_aggr.ifr_netmask)
7697 rm -f conftest.
$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7701 grep -v '^ *+' conftest.er1
>conftest.err
7703 cat conftest.err
>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try
='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.
$ac_ext >&5
7723 ac_cv_member_struct_ifreq_ifr_netmask
=no
7725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7730 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7731 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7733 cat >>confdefs.h
<<_ACEOF
7734 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7739 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7740 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7741 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 cat >conftest.
$ac_ext <<_ACEOF
7747 cat confdefs.h
>>conftest.
$ac_ext
7748 cat >>conftest.
$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 $ac_includes_default
7751 #if HAVE_SYS_SOCKET_H
7752 #include <sys/socket.h>
7761 static struct ifreq ac_aggr;
7762 if (ac_aggr.ifr_broadaddr)
7768 rm -f conftest.
$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7772 grep -v '^ *+' conftest.er1
>conftest.err
7774 cat conftest.err
>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try
='test -s conftest.$ac_objext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.
$ac_ext >&5
7794 cat >conftest.
$ac_ext <<_ACEOF
7797 cat confdefs.h
>>conftest.
$ac_ext
7798 cat >>conftest.
$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 $ac_includes_default
7801 #if HAVE_SYS_SOCKET_H
7802 #include <sys/socket.h>
7811 static struct ifreq ac_aggr;
7812 if (sizeof ac_aggr.ifr_broadaddr)
7818 rm -f conftest.
$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>conftest.er1
7822 grep -v '^ *+' conftest.er1
>conftest.err
7824 cat conftest.err
>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try
='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.
$ac_ext >&5
7844 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7851 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7852 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7854 cat >>confdefs.h
<<_ACEOF
7855 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7860 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7861 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7862 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 cat >conftest.
$ac_ext <<_ACEOF
7868 cat confdefs.h
>>conftest.
$ac_ext
7869 cat >>conftest.
$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7872 #if HAVE_SYS_SOCKET_H
7873 #include <sys/socket.h>
7882 static struct ifreq ac_aggr;
7883 if (ac_aggr.ifr_addr)
7889 rm -f conftest.
$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>conftest.er1
7893 grep -v '^ *+' conftest.er1
>conftest.err
7895 cat conftest.err
>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
7904 { ac_try
='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_member_struct_ifreq_ifr_addr
=yes
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.
$ac_ext >&5
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 (sizeof 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" || test ! -s conftest.err'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try
='test -s conftest.$ac_objext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 ac_cv_member_struct_ifreq_ifr_addr
=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.
$ac_ext >&5
7965 ac_cv_member_struct_ifreq_ifr_addr
=no
7967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7972 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7973 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7975 cat >>confdefs.h
<<_ACEOF
7976 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7984 echo "$as_me:$LINENO: checking for function prototypes" >&5
7985 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7986 if test "$ac_cv_prog_cc_stdc" != no
; then
7987 echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7990 cat >>confdefs.h
<<\_ACEOF
7991 #define PROTOTYPES 1
7995 cat >>confdefs.h
<<\_ACEOF
7996 #define __PROTOTYPES 1
8000 echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8004 echo "$as_me:$LINENO: checking for working volatile" >&5
8005 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8006 if test "${ac_cv_c_volatile+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.
$ac_ext <<_ACEOF
8012 cat confdefs.h
>>conftest.
$ac_ext
8013 cat >>conftest.
$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8026 rm -f conftest.
$ac_objext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8028 (eval $ac_compile) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1
>conftest.err
8032 cat conftest.err
>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try
='test -s conftest.$ac_objext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_c_volatile
=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8056 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8057 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8058 if test $ac_cv_c_volatile = no
; then
8060 cat >>confdefs.h
<<\_ACEOF
8066 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8068 if test "${ac_cv_c_const+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.
$ac_ext <<_ACEOF
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8081 /* FIXME: Include the comments suggested by Paul. */
8083 /* Ultrix mips cc rejects this. */
8084 typedef int charset[2];
8086 /* SunOS 4.1.1 cc rejects this. */
8087 char const *const *ccp;
8089 /* NEC SVR4.0.2 mips cc rejects this. */
8090 struct point {int x, y;};
8091 static struct point const zero = {0,0};
8092 /* AIX XL C 1.02.0.0 rejects this.
8093 It does not let you subtract one const X* pointer from another in
8094 an arm of an if-expression whose if-part is not a constant
8096 const char *g = "string";
8097 ccp = &g + (g ? g-g : 0);
8098 /* HPUX 7.0 cc rejects these. */
8101 ccp = (char const *const *) p;
8102 { /* SCO 3.2v4 cc rejects this. */
8104 char const *s = 0 ? (char *) 0 : (char const *) 0;
8108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8110 const int *foo = &x[0];
8113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8114 typedef const int *iptr;
8118 { /* AIX XL C 1.02.0.0 rejects this saying
8119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8120 struct s { int j; const int *ap[3]; };
8121 struct s *b; b->j = 5;
8123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8132 rm -f conftest.
$ac_objext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134 (eval $ac_compile) 2>conftest.er1
8136 grep -v '^ *+' conftest.er1
>conftest.err
8138 cat conftest.err
>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try
='test -s conftest.$ac_objext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.
$ac_ext >&5
8160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8162 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8163 echo "${ECHO_T}$ac_cv_c_const" >&6
8164 if test $ac_cv_c_const = no
; then
8166 cat >>confdefs.h
<<\_ACEOF
8172 echo "$as_me:$LINENO: checking for void * support" >&5
8173 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8174 if test "${emacs_cv_void_star+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.
$ac_ext <<_ACEOF
8180 cat confdefs.h
>>conftest.
$ac_ext
8181 cat >>conftest.
$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8192 rm -f conftest.
$ac_objext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194 (eval $ac_compile) 2>conftest.er1
8196 grep -v '^ *+' conftest.er1
>conftest.err
8198 cat conftest.err
>&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try
='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 emacs_cv_void_star
=yes
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.
$ac_ext >&5
8218 emacs_cv_void_star
=no
8220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8222 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8223 echo "${ECHO_T}$emacs_cv_void_star" >&6
8224 if test $emacs_cv_void_star = yes; then
8225 cat >>confdefs.h
<<\_ACEOF
8226 #define POINTER_TYPE void
8230 cat >>confdefs.h
<<\_ACEOF
8231 #define POINTER_TYPE char
8240 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8242 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 cat >conftest.
make <<\_ACEOF
8248 @
echo 'ac_maketemp="$(MAKE)"'
8250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8251 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8252 if test -n "$ac_maketemp"; then
8253 eval ac_cv_prog_make_
${ac_make}_set
=yes
8255 eval ac_cv_prog_make_
${ac_make}_set
=no
8259 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8260 echo "$as_me:$LINENO: result: yes" >&5
8261 echo "${ECHO_T}yes" >&6
8264 echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8266 SET_MAKE
="MAKE=${MAKE-make}"
8270 echo "$as_me:$LINENO: checking for long file names" >&5
8271 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8272 if test "${ac_cv_sys_long_file_names+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 ac_cv_sys_long_file_names
=yes
8276 # Test for long file names in all the places we know might matter:
8277 # . the current directory, where building will happen
8278 # $prefix/lib where we will be installing things
8279 # $exec_prefix/lib likewise
8280 # eval it to expand exec_prefix.
8281 # $TMPDIR if set, where it might want to write temporary files
8282 # if $TMPDIR is not set:
8283 # /tmp where it might want to write temporary files
8286 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8289 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8291 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8292 test -d $ac_dir ||
continue
8293 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8294 ac_xdir
=$ac_dir/cf$$
8295 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8296 ac_tf1
=$ac_xdir/conftest9012345
8297 ac_tf2
=$ac_xdir/conftest9012346
8298 (echo 1 >$ac_tf1) 2>/dev
/null
8299 (echo 2 >$ac_tf2) 2>/dev
/null
8300 ac_val
=`cat $ac_tf1 2>/dev/null`
8301 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8302 ac_cv_sys_long_file_names
=no
8303 rm -rf $ac_xdir 2>/dev
/null
8306 rm -rf $ac_xdir 2>/dev
/null
8309 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8310 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8311 if test $ac_cv_sys_long_file_names = yes; then
8313 cat >>confdefs.h
<<\_ACEOF
8314 #define HAVE_LONG_FILE_NAMES 1
8320 #### Choose a window system.
8322 echo "$as_me:$LINENO: checking for X" >&5
8323 echo $ECHO_N "checking for X... $ECHO_C" >&6
8325 ac_path_x_has_been_run
=yes
8327 # Check whether --with-x or --without-x was given.
8328 if test "${with_x+set}" = set; then
8332 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8333 if test "x$with_x" = xno
; then
8334 # The user explicitly disabled X.
8337 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8338 # Both variables are already set.
8341 if test "${ac_cv_have_x+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 # One or both of the vars are not set, and there is no cached value.
8345 ac_x_includes
=no ac_x_libraries
=no
8347 if mkdir conftest.dir
; then
8349 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8350 cat >Imakefile
<<'_ACEOF'
8352 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8354 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8356 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8357 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8358 for ac_extension
in a so sl
; do
8359 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8360 test -f $ac_im_libdir/libX11.
$ac_extension; then
8361 ac_im_usrlibdir
=$ac_im_libdir; break
8364 # Screen out bogus values from the imake configuration. They are
8365 # bogus both because they are the default anyway, and because
8366 # using them would break gcc on systems where it needs fixed includes.
8367 case $ac_im_incroot in
8369 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8371 case $ac_im_usrlibdir in
8373 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8380 # Standard set of common directories for X headers.
8381 # Check X11 before X11Rn because it is often a symlink to the current release.
8393 /usr/local/X11/include
8394 /usr/local/X11R6/include
8395 /usr/local/X11R5/include
8396 /usr/local/X11R4/include
8398 /usr/local/include/X11
8399 /usr/local/include/X11R6
8400 /usr/local/include/X11R5
8401 /usr/local/include/X11R4
8405 /usr/XFree86/include/X11
8409 /usr/unsupported/include
8411 /usr/local/x11r5/include
8412 /usr/lpp/Xamples/include
8414 /usr/openwin/include
8415 /usr/openwin/share/include'
8417 if test "$ac_x_includes" = no
; then
8418 # Guess where to find include files, by looking for a specified header file.
8419 # First, try using that file with no special directory specified.
8420 cat >conftest.
$ac_ext <<_ACEOF
8423 cat confdefs.h
>>conftest.
$ac_ext
8424 cat >>conftest.
$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 #include <X11/Xlib.h>
8428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8429 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1
>conftest.err
8433 cat conftest.err
>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } >/dev
/null
; then
8436 if test -s conftest.err
; then
8437 ac_cpp_err
=$ac_c_preproc_warn_flag
8438 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8445 if test -z "$ac_cpp_err"; then
8446 # We can compile using X headers with no special include directory.
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.
$ac_ext >&5
8452 for ac_dir
in $ac_x_header_dirs; do
8453 if test -r "$ac_dir/X11/Xlib.h"; then
8454 ac_x_includes
=$ac_dir
8459 rm -f conftest.err conftest.
$ac_ext
8460 fi # $ac_x_includes = no
8462 if test "$ac_x_libraries" = no
; then
8463 # Check for the libraries.
8464 # See if we find them without any special options.
8465 # Don't add to $LIBS permanently.
8468 cat >conftest.
$ac_ext <<_ACEOF
8471 cat confdefs.h
>>conftest.
$ac_ext
8472 cat >>conftest.
$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 #include <X11/Xlib.h>
8483 rm -f conftest.
$ac_objext conftest
$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8487 grep -v '^ *+' conftest.er1
>conftest.err
8489 cat conftest.err
>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try
='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8505 # We can link X programs with no special library path.
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.
$ac_ext >&5
8512 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8514 # Don't even attempt the hair of trying to link an X program!
8515 for ac_extension
in a so sl
; do
8516 if test -r $ac_dir/libX11.
$ac_extension; then
8517 ac_x_libraries
=$ac_dir
8523 rm -f conftest.err conftest.
$ac_objext \
8524 conftest
$ac_exeext conftest.
$ac_ext
8525 fi # $ac_x_libraries = no
8527 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8528 # Didn't find X anywhere. Cache the known absence of X.
8529 ac_cv_have_x
="have_x=no"
8531 # Record where we found X for the cache.
8532 ac_cv_have_x
="have_x=yes \
8533 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8538 eval "$ac_cv_have_x"
8541 if test "$have_x" != yes; then
8542 echo "$as_me:$LINENO: result: $have_x" >&5
8543 echo "${ECHO_T}$have_x" >&6
8546 # If each of the values was on the command line, it overrides each guess.
8547 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8548 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8549 # Update the cache value to reflect the command line values.
8550 ac_cv_have_x
="have_x=yes \
8551 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8552 # It might be that x_includes is empty (headers are found in the
8553 # standard search path. Then output the corresponding message
8554 ac_out_x_includes
=$x_includes
8555 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8556 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8557 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8560 if test "$no_x" = yes; then
8566 if test "${x_libraries}" != NONE
; then
8567 if test -n "${x_libraries}"; then
8568 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8569 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8571 x_default_search_path
=""
8572 x_search_path
=${x_libraries}
8573 if test -z "${x_search_path}"; then
8574 x_search_path
=/usr
/lib
8576 for x_library
in `echo ${x_search_path}: | \
8577 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8579 ${x_library}/X11/%L/%T/%N%C%S:\
8580 ${x_library}/X11/%l/%T/%N%C%S:\
8581 ${x_library}/X11/%T/%N%C%S:\
8582 ${x_library}/X11/%L/%T/%N%S:\
8583 ${x_library}/X11/%l/%T/%N%S:\
8584 ${x_library}/X11/%T/%N%S"
8585 if test x
"${x_default_search_path}" = x
; then
8586 x_default_search_path
=${x_search_path}
8588 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8592 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8593 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8596 if test x
"${x_includes}" = x
; then
8597 bitmapdir
=/usr
/include
/X11
/bitmaps
8599 # accumulate include directories that have X11 bitmap subdirectories
8601 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8602 if test -d "${bmd}/X11/bitmaps"; then
8603 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8605 if test -d "${bmd}/bitmaps"; then
8606 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8609 if test ${bmd_acc} != "dummyval"; then
8610 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8615 if test "${with_carbon}" != no
; then
8616 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8617 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8618 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8619 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8625 # Is the header compilable?
8626 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8627 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8628 cat >conftest.
$ac_ext <<_ACEOF
8631 cat confdefs.h
>>conftest.
$ac_ext
8632 cat >>conftest.
$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 $ac_includes_default
8635 #include <Carbon/Carbon.h>
8637 rm -f conftest.
$ac_objext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639 (eval $ac_compile) 2>conftest.er1
8641 grep -v '^ *+' conftest.er1
>conftest.err
8643 cat conftest.err
>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try
='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_header_compiler
=yes
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.
$ac_ext >&5
8663 ac_header_compiler
=no
8665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8667 echo "${ECHO_T}$ac_header_compiler" >&6
8669 # Is the header present?
8670 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8671 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8672 cat >conftest.
$ac_ext <<_ACEOF
8675 cat confdefs.h
>>conftest.
$ac_ext
8676 cat >>conftest.
$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 #include <Carbon/Carbon.h>
8680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8681 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1
>conftest.err
8685 cat conftest.err
>&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } >/dev
/null
; then
8688 if test -s conftest.err
; then
8689 ac_cpp_err
=$ac_c_preproc_warn_flag
8690 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8697 if test -z "$ac_cpp_err"; then
8698 ac_header_preproc
=yes
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.
$ac_ext >&5
8703 ac_header_preproc
=no
8705 rm -f conftest.err conftest.
$ac_ext
8706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8707 echo "${ECHO_T}$ac_header_preproc" >&6
8709 # So? What about this header?
8710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8712 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8713 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8715 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8716 ac_header_preproc
=yes
8719 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8720 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8722 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8724 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8726 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8728 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8730 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8733 ## ------------------------------------------ ##
8734 ## Report this to the AC_PACKAGE_NAME lists. ##
8735 ## ------------------------------------------ ##
8738 sed "s/^/$as_me: WARNING: /" >&2
8741 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8742 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8743 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8748 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8749 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8752 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8758 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8759 if test "${with_carbon+set}" != set \
8760 && test "${carbon_appdir_x+set}" != set; then
8764 if test "${HAVE_CARBON}" = yes; then
8768 case "${window_system}" in
8772 case "${with_x_toolkit}" in
8773 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8774 motif
) USE_X_TOOLKIT
=MOTIF
;;
8776 USE_X_TOOLKIT
=none
;;
8777 no
) USE_X_TOOLKIT
=none
;;
8778 * ) USE_X_TOOLKIT
=maybe
;;
8788 ### If we're using X11, we should use the X menu package.
8791 yes ) HAVE_MENUS
=yes ;;
8794 if test "${opsys}" = "hpux9"; then
8795 case "${x_libraries}" in
8797 opsysfile
="s/hpux9-x11r4.h"
8802 if test "${opsys}" = "hpux9shr"; then
8803 case "${x_libraries}" in
8805 opsysfile
="s/hpux9shxr4.h"
8810 ### Compute the unexec source name from the object name.
8811 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8813 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8814 # Assume not, until told otherwise.
8817 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8818 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8819 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 cat >conftest.
$ac_ext <<_ACEOF
8825 cat confdefs.h
>>conftest.
$ac_ext
8826 cat >>conftest.
$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8830 #define malloc_get_state innocuous_malloc_get_state
8832 /* System header to define __stub macros and hopefully few prototypes,
8833 which can conflict with char malloc_get_state (); below.
8834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8835 <limits.h> exists even on freestanding compilers. */
8838 # include <limits.h>
8840 # include <assert.h>
8843 #undef malloc_get_state
8845 /* Override any gcc2 internal prototype to avoid an error. */
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8852 char malloc_get_state ();
8853 /* The GNU C library defines this for functions which it implements
8854 to always fail with ENOSYS. Some functions are actually named
8855 something starting with __ and the normal name is an alias. */
8856 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8859 char (*f) () = malloc_get_state;
8868 return f != malloc_get_state;
8873 rm -f conftest.
$ac_objext conftest
$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>conftest.er1
8877 grep -v '^ *+' conftest.er1
>conftest.err
8879 cat conftest.err
>&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try
='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_func_malloc_get_state
=yes
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.
$ac_ext >&5
8899 ac_cv_func_malloc_get_state
=no
8901 rm -f conftest.err conftest.
$ac_objext \
8902 conftest
$ac_exeext conftest.
$ac_ext
8904 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8905 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8906 if test $ac_cv_func_malloc_get_state = yes; then
8912 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8913 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8914 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 cat >conftest.
$ac_ext <<_ACEOF
8920 cat confdefs.h
>>conftest.
$ac_ext
8921 cat >>conftest.
$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8925 #define malloc_set_state innocuous_malloc_set_state
8927 /* System header to define __stub macros and hopefully few prototypes,
8928 which can conflict with char malloc_set_state (); below.
8929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8930 <limits.h> exists even on freestanding compilers. */
8933 # include <limits.h>
8935 # include <assert.h>
8938 #undef malloc_set_state
8940 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8947 char malloc_set_state ();
8948 /* The GNU C library defines this for functions which it implements
8949 to always fail with ENOSYS. Some functions are actually named
8950 something starting with __ and the normal name is an alias. */
8951 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8954 char (*f) () = malloc_set_state;
8963 return f != malloc_set_state;
8968 rm -f conftest.
$ac_objext conftest
$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>conftest.er1
8972 grep -v '^ *+' conftest.er1
>conftest.err
8974 cat conftest.err
>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try
='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_func_malloc_set_state
=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.
$ac_ext >&5
8994 ac_cv_func_malloc_set_state
=no
8996 rm -f conftest.err conftest.
$ac_objext \
8997 conftest
$ac_exeext conftest.
$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9000 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9001 if test $ac_cv_func_malloc_set_state = yes; then
9007 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9008 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9009 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 cat >conftest.
$ac_ext <<_ACEOF
9015 cat confdefs.h
>>conftest.
$ac_ext
9016 cat >>conftest.
$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 extern void (* __after_morecore_hook)();
9022 __after_morecore_hook = 0
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" || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try
='test -s conftest$ac_exeext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 emacs_cv_var___after_morecore_hook
=yes
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.
$ac_ext >&5
9053 emacs_cv_var___after_morecore_hook
=no
9055 rm -f conftest.err conftest.
$ac_objext \
9056 conftest
$ac_exeext conftest.
$ac_ext
9058 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9059 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9060 if test $emacs_cv_var___after_morecore_hook = no
; then
9063 if test "${system_malloc}" = "yes"; then
9066 (The GNU allocators don't work with this system configuration.)"
9068 if test "$doug_lea_malloc" = "yes" ; then
9069 if test "$GNU_MALLOC" = yes ; then
9071 (Using Doug Lea's new malloc from the GNU C Library.)"
9074 cat >>confdefs.h
<<\_ACEOF
9075 #define DOUG_LEA_MALLOC 1
9080 if test x
"${REL_ALLOC}" = x
; then
9081 REL_ALLOC
=${GNU_MALLOC}
9087 for ac_header
in stdlib.h unistd.h
9089 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo "$as_me:$LINENO: checking for $ac_header" >&5
9092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9099 # Is the header compilable?
9100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9102 cat >conftest.
$ac_ext <<_ACEOF
9105 cat confdefs.h
>>conftest.
$ac_ext
9106 cat >>conftest.
$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9108 $ac_includes_default
9109 #include <$ac_header>
9111 rm -f conftest.
$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>conftest.er1
9115 grep -v '^ *+' conftest.er1
>conftest.err
9117 cat conftest.err
>&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try
='test -s conftest.$ac_objext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_header_compiler
=yes
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.
$ac_ext >&5
9137 ac_header_compiler
=no
9139 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9141 echo "${ECHO_T}$ac_header_compiler" >&6
9143 # Is the header present?
9144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9146 cat >conftest.
$ac_ext <<_ACEOF
9149 cat confdefs.h
>>conftest.
$ac_ext
9150 cat >>conftest.
$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 #include <$ac_header>
9154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9155 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9157 grep -v '^ *+' conftest.er1
>conftest.err
9159 cat conftest.err
>&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } >/dev
/null
; then
9162 if test -s conftest.err
; then
9163 ac_cpp_err
=$ac_c_preproc_warn_flag
9164 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9171 if test -z "$ac_cpp_err"; then
9172 ac_header_preproc
=yes
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.
$ac_ext >&5
9177 ac_header_preproc
=no
9179 rm -f conftest.err conftest.
$ac_ext
9180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9181 echo "${ECHO_T}$ac_header_preproc" >&6
9183 # So? What about this header?
9184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9190 ac_header_preproc
=yes
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9207 ## ------------------------------------------ ##
9208 ## Report this to the AC_PACKAGE_NAME lists. ##
9209 ## ------------------------------------------ ##
9212 sed "s/^/$as_me: WARNING: /" >&2
9215 echo "$as_me:$LINENO: checking for $ac_header" >&5
9216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 eval "$as_ac_Header=\$ac_header_preproc"
9222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9227 cat >>confdefs.h
<<_ACEOF
9228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9236 for ac_func
in getpagesize
9238 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9239 echo "$as_me:$LINENO: checking for $ac_func" >&5
9240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9241 if eval "test \"\${$as_ac_var+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 cat >conftest.
$ac_ext <<_ACEOF
9247 cat confdefs.h
>>conftest.
$ac_ext
9248 cat >>conftest.
$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9252 #define $ac_func innocuous_$ac_func
9254 /* System header to define __stub macros and hopefully few prototypes,
9255 which can conflict with char $ac_func (); below.
9256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9257 <limits.h> exists even on freestanding compilers. */
9260 # include <limits.h>
9262 # include <assert.h>
9267 /* Override any gcc2 internal prototype to avoid an error. */
9272 /* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9275 /* The GNU C library defines this for functions which it implements
9276 to always fail with ENOSYS. Some functions are actually named
9277 something starting with __ and the normal name is an alias. */
9278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9281 char (*f) () = $ac_func;
9290 return f != $ac_func;
9295 rm -f conftest.
$ac_objext conftest
$ac_exeext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>conftest.er1
9299 grep -v '^ *+' conftest.er1
>conftest.err
9301 cat conftest.err
>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; } &&
9310 { ac_try
='test -s conftest$ac_exeext'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 eval "$as_ac_var=yes"
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.
$ac_ext >&5
9321 eval "$as_ac_var=no"
9323 rm -f conftest.err conftest.
$ac_objext \
9324 conftest
$ac_exeext conftest.
$ac_ext
9326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9328 if test `eval echo '${'$as_ac_var'}'` = yes; then
9329 cat >>confdefs.h
<<_ACEOF
9330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9336 echo "$as_me:$LINENO: checking for working mmap" >&5
9337 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9338 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 if test "$cross_compiling" = yes; then
9342 ac_cv_func_mmap_fixed_mapped
=no
9344 cat >conftest.
$ac_ext <<_ACEOF
9347 cat confdefs.h
>>conftest.
$ac_ext
9348 cat >>conftest.
$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 /* malloc might have been renamed as rpl_malloc. */
9354 /* Thanks to Mike Haertel and Jim Avera for this test.
9355 Here is a matrix of mmap possibilities:
9356 mmap private not fixed
9357 mmap private fixed at somewhere currently unmapped
9358 mmap private fixed at somewhere already mapped
9359 mmap shared not fixed
9360 mmap shared fixed at somewhere currently unmapped
9361 mmap shared fixed at somewhere already mapped
9362 For private mappings, we should verify that changes cannot be read()
9363 back from the file, nor mmap's back from the file at a different
9364 address. (There have been systems where private was not correctly
9365 implemented like the infamous i386 svr4.0, and systems where the
9366 VM page cache was not coherent with the file system buffer cache
9367 like early versions of FreeBSD and possibly contemporary NetBSD.)
9368 For shared mappings, we should conversely verify that changes get
9369 propagated back to all the places they're supposed to be.
9371 Grep wants private fixed already mapped.
9372 The main things grep needs to know about mmap are:
9373 * does it exist and is it safe to write into the mmap'd area
9374 * how to use it (BSD variants) */
9377 #include <sys/mman.h>
9379 #if !STDC_HEADERS && !HAVE_STDLIB_H
9383 /* This mess was copied from the GNU getpagesize.h. */
9384 #if !HAVE_GETPAGESIZE
9385 /* Assume that all systems that can run configure have sys/param.h. */
9386 # if !HAVE_SYS_PARAM_H
9387 # define HAVE_SYS_PARAM_H 1
9390 # ifdef _SC_PAGESIZE
9391 # define getpagesize() sysconf(_SC_PAGESIZE)
9392 # else /* no _SC_PAGESIZE */
9393 # if HAVE_SYS_PARAM_H
9394 # include <sys/param.h>
9395 # ifdef EXEC_PAGESIZE
9396 # define getpagesize() EXEC_PAGESIZE
9397 # else /* no EXEC_PAGESIZE */
9399 # define getpagesize() NBPG * CLSIZE
9402 # endif /* no CLSIZE */
9403 # else /* no NBPG */
9405 # define getpagesize() NBPC
9406 # else /* no NBPC */
9408 # define getpagesize() PAGESIZE
9409 # endif /* PAGESIZE */
9410 # endif /* no NBPC */
9411 # endif /* no NBPG */
9412 # endif /* no EXEC_PAGESIZE */
9413 # else /* no HAVE_SYS_PARAM_H */
9414 # define getpagesize() 8192 /* punt totally */
9415 # endif /* no HAVE_SYS_PARAM_H */
9416 # endif /* no _SC_PAGESIZE */
9418 #endif /* no HAVE_GETPAGESIZE */
9423 char *data, *data2, *data3;
9427 pagesize = getpagesize ();
9429 /* First, make a file with some known garbage in it. */
9430 data = (char *) malloc (pagesize);
9433 for (i = 0; i < pagesize; ++i)
9434 *(data + i) = rand ();
9436 fd = creat ("conftest.mmap", 0600);
9439 if (write (fd, data, pagesize) != pagesize)
9443 /* Next, try to mmap the file at a fixed address which already has
9444 something else allocated at it. If we can, also make sure that
9445 we see the same garbage. */
9446 fd = open ("conftest.mmap", O_RDWR);
9449 data2 = (char *) malloc (2 * pagesize);
9452 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9453 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9454 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9456 for (i = 0; i < pagesize; ++i)
9457 if (*(data + i) != *(data2 + i))
9460 /* Finally, make sure that changes to the mapped area do not
9461 percolate back to the file as seen by read(). (This is a bug on
9462 some variants of i386 svr4.0.) */
9463 for (i = 0; i < pagesize; ++i)
9464 *(data2 + i) = *(data2 + i) + 1;
9465 data3 = (char *) malloc (pagesize);
9468 if (read (fd, data3, pagesize) != pagesize)
9470 for (i = 0; i < pagesize; ++i)
9471 if (*(data + i) != *(data3 + i))
9477 rm -f conftest
$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_func_mmap_fixed_mapped
=yes
9490 echo "$as_me: program exited with status $ac_status" >&5
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.
$ac_ext >&5
9495 ac_cv_func_mmap_fixed_mapped
=no
9497 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9500 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9501 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9502 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9504 cat >>confdefs.h
<<\_ACEOF
9511 if test $use_mmap_for_buffers = yes; then
9515 LIBS
="$libsrc_libs $LIBS"
9518 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9519 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9520 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 ac_check_lib_save_LIBS
=$LIBS
9525 cat >conftest.
$ac_ext <<_ACEOF
9528 cat confdefs.h
>>conftest.
$ac_ext
9529 cat >>conftest.
$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9532 /* Override any gcc2 internal prototype to avoid an error. */
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9547 rm -f conftest.
$ac_objext conftest
$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9551 grep -v '^ *+' conftest.er1
>conftest.err
9553 cat conftest.err
>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try
='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_lib_dnet_dnet_ntoa
=yes
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.
$ac_ext >&5
9573 ac_cv_lib_dnet_dnet_ntoa
=no
9575 rm -f conftest.err conftest.
$ac_objext \
9576 conftest
$ac_exeext conftest.
$ac_ext
9577 LIBS
=$ac_check_lib_save_LIBS
9579 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9580 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9581 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9582 cat >>confdefs.h
<<_ACEOF
9583 #define HAVE_LIBDNET 1
9591 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9592 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9593 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 ac_check_lib_save_LIBS
=$LIBS
9598 cat >conftest.
$ac_ext <<_ACEOF
9601 cat confdefs.h
>>conftest.
$ac_ext
9602 cat >>conftest.
$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9614 rm -f conftest.
$ac_objext conftest
$ac_exeext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616 (eval $ac_link) 2>conftest.er1
9618 grep -v '^ *+' conftest.er1
>conftest.err
9620 cat conftest.err
>&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; } &&
9629 { ac_try
='test -s conftest$ac_exeext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_lib_Xbsd_main
=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.
$ac_ext >&5
9640 ac_cv_lib_Xbsd_main
=no
9642 rm -f conftest.err conftest.
$ac_objext \
9643 conftest
$ac_exeext conftest.
$ac_ext
9644 LIBS
=$ac_check_lib_save_LIBS
9646 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9647 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9648 if test $ac_cv_lib_Xbsd_main = yes; then
9649 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9654 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9655 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9656 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 ac_check_lib_save_LIBS
=$LIBS
9660 LIBS
="-lpthreads $LIBS"
9661 cat >conftest.
$ac_ext <<_ACEOF
9664 cat confdefs.h
>>conftest.
$ac_ext
9665 cat >>conftest.
$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9668 /* Override any gcc2 internal prototype to avoid an error. */
9672 /* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9683 rm -f conftest.
$ac_objext conftest
$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685 (eval $ac_link) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1
>conftest.err
9689 cat conftest.err
>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try
='test -s conftest$ac_exeext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_lib_pthreads_cma_open
=yes
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.
$ac_ext >&5
9709 ac_cv_lib_pthreads_cma_open
=no
9711 rm -f conftest.err conftest.
$ac_objext \
9712 conftest
$ac_exeext conftest.
$ac_ext
9713 LIBS
=$ac_check_lib_save_LIBS
9715 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9716 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9717 if test $ac_cv_lib_pthreads_cma_open = yes; then
9718 cat >>confdefs.h
<<_ACEOF
9719 #define HAVE_LIBPTHREADS 1
9722 LIBS
="-lpthreads $LIBS"
9727 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9728 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9729 if test -d /usr
/X386
/include
; then
9731 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9735 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9736 echo "${ECHO_T}$HAVE_XFREE386" >&6
9741 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9742 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9743 if test "${gdb_cv_bigtoc+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9749 *) gdb_cv_bigtoc
=-bbigtoc ;;
9752 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9753 cat >conftest.
$ac_ext <<_ACEOF
9756 cat confdefs.h
>>conftest.
$ac_ext
9757 cat >>conftest.
$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9768 rm -f conftest.
$ac_objext conftest
$ac_exeext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9770 (eval $ac_link) 2>conftest.er1
9772 grep -v '^ *+' conftest.er1
>conftest.err
9774 cat conftest.err
>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try
='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.
$ac_ext >&5
9796 rm -f conftest.err conftest.
$ac_objext \
9797 conftest
$ac_exeext conftest.
$ac_ext
9800 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9801 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9805 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9806 # used for the tests that follow. We set them back to REAL_CFLAGS and
9807 # REAL_CPPFLAGS later on.
9809 REAL_CPPFLAGS
="$CPPFLAGS"
9811 if test "${HAVE_X11}" = "yes"; then
9812 DEFS
="$C_SWITCH_X_SITE $DEFS"
9813 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9815 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9816 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9818 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9819 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9820 # but it's more convenient here to set LD_RUN_PATH
9821 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9822 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9823 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9827 if test "${opsys}" = "gnu-linux"; then
9828 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9829 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9830 cat >conftest.
$ac_ext <<_ACEOF
9833 cat confdefs.h
>>conftest.
$ac_ext
9834 cat >>conftest.
$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9840 XOpenDisplay ("foo");
9845 rm -f conftest.
$ac_objext conftest
$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9849 grep -v '^ *+' conftest.er1
>conftest.err
9851 cat conftest.err
>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try
='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 xlinux_first_failure
=no
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.
$ac_ext >&5
9871 xlinux_first_failure
=yes
9873 rm -f conftest.err conftest.
$ac_objext \
9874 conftest
$ac_exeext conftest.
$ac_ext
9875 if test "${xlinux_first_failure}" = "yes"; then
9876 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9877 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9878 OLD_CPPFLAGS
="$CPPFLAGS"
9880 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9881 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9882 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9883 LIBS
="$LIBS -b i486-linuxaout"
9884 cat >conftest.
$ac_ext <<_ACEOF
9887 cat confdefs.h
>>conftest.
$ac_ext
9888 cat >>conftest.
$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9894 XOpenDisplay ("foo");
9899 rm -f conftest.
$ac_objext conftest
$ac_exeext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901 (eval $ac_link) 2>conftest.er1
9903 grep -v '^ *+' conftest.er1
>conftest.err
9905 cat conftest.err
>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try
='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 xlinux_second_failure
=no
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.
$ac_ext >&5
9925 xlinux_second_failure
=yes
9927 rm -f conftest.err conftest.
$ac_objext \
9928 conftest
$ac_exeext conftest.
$ac_ext
9929 if test "${xlinux_second_failure}" = "yes"; then
9930 # If we get the same failure with -b, there is no use adding -b.
9931 # So take it out. This plays safe.
9932 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9933 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9934 CPPFLAGS
="$OLD_CPPFLAGS"
9936 echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9939 echo "$as_me:$LINENO: result: yes" >&5
9940 echo "${ECHO_T}yes" >&6
9943 echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6
9948 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9949 # header files included from there.
9950 echo "$as_me:$LINENO: checking for Xkb" >&5
9951 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9952 cat >conftest.
$ac_ext <<_ACEOF
9955 cat confdefs.h
>>conftest.
$ac_ext
9956 cat >>conftest.
$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 #include <X11/Xlib.h>
9959 #include <X11/XKBlib.h>
9963 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9968 rm -f conftest.
$ac_objext conftest
$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>conftest.er1
9972 grep -v '^ *+' conftest.er1
>conftest.err
9974 cat conftest.err
>&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try
='test -z "$ac_c_werror_flag" || 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
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.
$ac_ext >&5
9996 rm -f conftest.err conftest.
$ac_objext \
9997 conftest
$ac_exeext conftest.
$ac_ext
9998 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9999 echo "${ECHO_T}$emacs_xkb" >&6
10000 if test $emacs_xkb = yes; then
10002 cat >>confdefs.h
<<\_ACEOF
10003 #define HAVE_XKBGETKEYBOARD 1
10012 for ac_func
in XrmSetDatabase XScreenResourceString \
10013 XScreenNumberOfScreen XSetWMProtocols
10015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10016 echo "$as_me:$LINENO: checking for $ac_func" >&5
10017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10018 if eval "test \"\${$as_ac_var+set}\" = set"; then
10019 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029 #define $ac_func innocuous_$ac_func
10031 /* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char $ac_func (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10037 # include <limits.h>
10039 # include <assert.h>
10044 /* Override any gcc2 internal prototype to avoid an error. */
10049 /* We use char because int might match the return type of a gcc2
10050 builtin and then its argument prototype would still apply. */
10052 /* The GNU C library defines this for functions which it implements
10053 to always fail with ENOSYS. Some functions are actually named
10054 something starting with __ and the normal name is an alias. */
10055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10058 char (*f) () = $ac_func;
10067 return f != $ac_func;
10072 rm -f conftest.
$ac_objext conftest
$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>conftest.er1
10076 grep -v '^ *+' conftest.er1
>conftest.err
10078 cat conftest.err
>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try
='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 eval "$as_ac_var=yes"
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.
$ac_ext >&5
10098 eval "$as_ac_var=no"
10100 rm -f conftest.err conftest.
$ac_objext \
10101 conftest
$ac_exeext conftest.
$ac_ext
10103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10105 if test `eval echo '${'$as_ac_var'}'` = yes; then
10106 cat >>confdefs.h
<<_ACEOF
10107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10115 if test "${window_system}" = "x11"; then
10116 echo "$as_me:$LINENO: checking X11 version 6" >&5
10117 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10118 if test "${emacs_cv_x11_version_6+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 cat >conftest.
$ac_ext <<_ACEOF
10124 cat confdefs.h
>>conftest.
$ac_ext
10125 cat >>conftest.
$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <X11/Xlib.h>
10131 #if XlibSpecificationRelease < 6
10139 rm -f conftest.
$ac_objext conftest
$ac_exeext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141 (eval $ac_link) 2>conftest.er1
10143 grep -v '^ *+' conftest.er1
>conftest.err
10145 cat conftest.err
>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try
='test -s conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 emacs_cv_x11_version_6
=yes
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.
$ac_ext >&5
10165 emacs_cv_x11_version_6
=no
10167 rm -f conftest.err conftest.
$ac_objext \
10168 conftest
$ac_exeext conftest.
$ac_ext
10171 if test $emacs_cv_x11_version_6 = yes; then
10172 echo "$as_me:$LINENO: result: 6 or newer" >&5
10173 echo "${ECHO_T}6 or newer" >&6
10175 cat >>confdefs.h
<<\_ACEOF
10176 #define HAVE_X11R6 1
10180 echo "$as_me:$LINENO: result: before 6" >&5
10181 echo "${ECHO_T}before 6" >&6
10185 if test "${window_system}" = "x11"; then
10186 echo "$as_me:$LINENO: checking X11 version 5" >&5
10187 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10188 if test "${emacs_cv_x11_version_5+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 cat >conftest.
$ac_ext <<_ACEOF
10194 cat confdefs.h
>>conftest.
$ac_ext
10195 cat >>conftest.
$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 #include <X11/Xlib.h>
10201 #if XlibSpecificationRelease < 5
10209 rm -f conftest.
$ac_objext conftest
$ac_exeext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
10213 grep -v '^ *+' conftest.er1
>conftest.err
10215 cat conftest.err
>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try
='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 emacs_cv_x11_version_5
=yes
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.
$ac_ext >&5
10235 emacs_cv_x11_version_5
=no
10237 rm -f conftest.err conftest.
$ac_objext \
10238 conftest
$ac_exeext conftest.
$ac_ext
10241 if test $emacs_cv_x11_version_5 = yes; then
10242 echo "$as_me:$LINENO: result: 5 or newer" >&5
10243 echo "${ECHO_T}5 or newer" >&6
10246 cat >>confdefs.h
<<\_ACEOF
10247 #define HAVE_X11R5 1
10252 echo "$as_me:$LINENO: result: before 5" >&5
10253 echo "${ECHO_T}before 5" >&6
10258 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10259 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10260 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10261 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10262 { (exit 1); exit 1; }; };
10266 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10268 if test "X${with_pkg_config_prog}" != X
; then
10269 PKG_CONFIG
="${with_pkg_config_prog}"
10274 if test -z "$PKG_CONFIG"; then
10275 # Extract the first word of "pkg-config", so it can be a program name with args.
10276 set dummy pkg-config
; ac_word
=$2
10277 echo "$as_me:$LINENO: checking for $ac_word" >&5
10278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10279 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 case $PKG_CONFIG in
10284 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10288 for as_dir
in $PATH
10291 test -z "$as_dir" && as_dir
=.
10292 for ac_exec_ext
in '' $ac_executable_extensions; do
10293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10305 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10307 if test -n "$PKG_CONFIG"; then
10308 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10309 echo "${ECHO_T}$PKG_CONFIG" >&6
10311 echo "$as_me:$LINENO: result: no" >&5
10312 echo "${ECHO_T}no" >&6
10317 if test "$PKG_CONFIG" = "no" ; then
10318 { { echo "$as_me:$LINENO: error:
10319 *** 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
10320 echo "$as_me: error:
10321 *** 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;}
10322 { (exit 1); exit 1; }; }
10324 PKG_CONFIG_MIN_VERSION
=0.9.0
10325 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10326 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10327 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10329 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10330 echo "$as_me:$LINENO: result: yes" >&5
10331 echo "${ECHO_T}yes" >&6
10334 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10335 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10336 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10337 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10338 echo "${ECHO_T}$GTK_CFLAGS" >&6
10340 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10341 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10342 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10343 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10344 echo "${ECHO_T}$GTK_LIBS" >&6
10346 echo "$as_me:$LINENO: result: no" >&5
10347 echo "${ECHO_T}no" >&6
10350 ## If we have a custom action on failure, don't print errors, but
10351 ## do set a variable so people can do so.
10352 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10353 echo $GTK_PKG_ERRORS
10359 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10360 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10364 if test $succeeded = yes; then
10367 { { 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
10368 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;}
10369 { (exit 1); exit 1; }; }
10374 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10375 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10376 LIBS
="$GTK_LIBS $LIBS"
10379 cat >>confdefs.h
<<\_ACEOF
10385 if test "$with_toolkit_scroll_bars" != no
; then
10386 with_toolkit_scroll_bars
=yes
10389 HAVE_GTK_MULTIDISPLAY
=no
10391 for ac_func
in gdk_display_open
10393 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10394 echo "$as_me:$LINENO: checking for $ac_func" >&5
10395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10396 if eval "test \"\${$as_ac_var+set}\" = set"; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 cat >conftest.
$ac_ext <<_ACEOF
10402 cat confdefs.h
>>conftest.
$ac_ext
10403 cat >>conftest.
$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10407 #define $ac_func innocuous_$ac_func
10409 /* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char $ac_func (); below.
10411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412 <limits.h> exists even on freestanding compilers. */
10415 # include <limits.h>
10417 # include <assert.h>
10422 /* Override any gcc2 internal prototype to avoid an error. */
10427 /* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10430 /* The GNU C library defines this for functions which it implements
10431 to always fail with ENOSYS. Some functions are actually named
10432 something starting with __ and the normal name is an alias. */
10433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10436 char (*f) () = $ac_func;
10445 return f != $ac_func;
10450 rm -f conftest.
$ac_objext conftest
$ac_exeext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>conftest.er1
10454 grep -v '^ *+' conftest.er1
>conftest.err
10456 cat conftest.err
>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try
='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 eval "$as_ac_var=yes"
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.
$ac_ext >&5
10476 eval "$as_ac_var=no"
10478 rm -f conftest.err conftest.
$ac_objext \
10479 conftest
$ac_exeext conftest.
$ac_ext
10481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10483 if test `eval echo '${'$as_ac_var'}'` = yes; then
10484 cat >>confdefs.h
<<_ACEOF
10485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10487 HAVE_GTK_MULTIDISPLAY
=yes
10491 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10493 cat >>confdefs.h
<<\_ACEOF
10494 #define HAVE_GTK_MULTIDISPLAY 1
10498 HAVE_GTK_FILE_SELECTION
=no
10500 for ac_func
in gtk_file_selection_new
10502 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10503 echo "$as_me:$LINENO: checking for $ac_func" >&5
10504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10505 if eval "test \"\${$as_ac_var+set}\" = set"; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 cat >conftest.
$ac_ext <<_ACEOF
10511 cat confdefs.h
>>conftest.
$ac_ext
10512 cat >>conftest.
$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10516 #define $ac_func innocuous_$ac_func
10518 /* System header to define __stub macros and hopefully few prototypes,
10519 which can conflict with char $ac_func (); below.
10520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10521 <limits.h> exists even on freestanding compilers. */
10524 # include <limits.h>
10526 # include <assert.h>
10531 /* Override any gcc2 internal prototype to avoid an error. */
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10539 /* The GNU C library defines this for functions which it implements
10540 to always fail with ENOSYS. Some functions are actually named
10541 something starting with __ and the normal name is an alias. */
10542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10545 char (*f) () = $ac_func;
10554 return f != $ac_func;
10559 rm -f conftest.
$ac_objext conftest
$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10563 grep -v '^ *+' conftest.er1
>conftest.err
10565 cat conftest.err
>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; } &&
10574 { ac_try
='test -s conftest$ac_exeext'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 eval "$as_ac_var=yes"
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.
$ac_ext >&5
10585 eval "$as_ac_var=no"
10587 rm -f conftest.err conftest.
$ac_objext \
10588 conftest
$ac_exeext conftest.
$ac_ext
10590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10592 if test `eval echo '${'$as_ac_var'}'` = yes; then
10593 cat >>confdefs.h
<<_ACEOF
10594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10596 HAVE_GTK_FILE_SELECTION
=yes
10601 HAVE_GTK_FILE_CHOOSER
=no
10603 for ac_func
in gtk_file_chooser_dialog_new
10605 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10606 echo "$as_me:$LINENO: checking for $ac_func" >&5
10607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10608 if eval "test \"\${$as_ac_var+set}\" = set"; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 cat >conftest.
$ac_ext <<_ACEOF
10614 cat confdefs.h
>>conftest.
$ac_ext
10615 cat >>conftest.
$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10619 #define $ac_func innocuous_$ac_func
10621 /* System header to define __stub macros and hopefully few prototypes,
10622 which can conflict with char $ac_func (); below.
10623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10624 <limits.h> exists even on freestanding compilers. */
10627 # include <limits.h>
10629 # include <assert.h>
10634 /* Override any gcc2 internal prototype to avoid an error. */
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10642 /* The GNU C library defines this for functions which it implements
10643 to always fail with ENOSYS. Some functions are actually named
10644 something starting with __ and the normal name is an alias. */
10645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10648 char (*f) () = $ac_func;
10657 return f != $ac_func;
10662 rm -f conftest.
$ac_objext conftest
$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>conftest.er1
10666 grep -v '^ *+' conftest.er1
>conftest.err
10668 cat conftest.err
>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try
='test -s conftest$ac_exeext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 eval "$as_ac_var=yes"
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.
$ac_ext >&5
10688 eval "$as_ac_var=no"
10690 rm -f conftest.err conftest.
$ac_objext \
10691 conftest
$ac_exeext conftest.
$ac_ext
10693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10695 if test `eval echo '${'$as_ac_var'}'` = yes; then
10696 cat >>confdefs.h
<<_ACEOF
10697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10699 HAVE_GTK_FILE_CHOOSER
=yes
10704 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10705 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10707 cat >>confdefs.h
<<\_ACEOF
10708 #define HAVE_GTK_FILE_BOTH 1
10713 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10714 HAVE_GTK_AND_PTHREAD
=no
10716 for ac_header
in pthread.h
10718 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10720 echo "$as_me:$LINENO: checking for $ac_header" >&5
10721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10728 # Is the header compilable?
10729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10731 cat >conftest.
$ac_ext <<_ACEOF
10734 cat confdefs.h
>>conftest.
$ac_ext
10735 cat >>conftest.
$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 $ac_includes_default
10738 #include <$ac_header>
10740 rm -f conftest.
$ac_objext
10741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10742 (eval $ac_compile) 2>conftest.er1
10744 grep -v '^ *+' conftest.er1
>conftest.err
10746 cat conftest.err
>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; } &&
10755 { ac_try
='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_header_compiler
=yes
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.
$ac_ext >&5
10766 ac_header_compiler
=no
10768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10770 echo "${ECHO_T}$ac_header_compiler" >&6
10772 # Is the header present?
10773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10775 cat >conftest.
$ac_ext <<_ACEOF
10778 cat confdefs.h
>>conftest.
$ac_ext
10779 cat >>conftest.
$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <$ac_header>
10783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10786 grep -v '^ *+' conftest.er1
>conftest.err
10788 cat conftest.err
>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev
/null
; then
10791 if test -s conftest.err
; then
10792 ac_cpp_err
=$ac_c_preproc_warn_flag
10793 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10800 if test -z "$ac_cpp_err"; then
10801 ac_header_preproc
=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.
$ac_ext >&5
10806 ac_header_preproc
=no
10808 rm -f conftest.err conftest.
$ac_ext
10809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10810 echo "${ECHO_T}$ac_header_preproc" >&6
10812 # So? What about this header?
10813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10819 ac_header_preproc
=yes
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10836 ## ------------------------------------------ ##
10837 ## Report this to the AC_PACKAGE_NAME lists. ##
10838 ## ------------------------------------------ ##
10841 sed "s/^/$as_me: WARNING: /" >&2
10844 echo "$as_me:$LINENO: checking for $ac_header" >&5
10845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 eval "$as_ac_Header=\$ac_header_preproc"
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856 cat >>confdefs.h
<<_ACEOF
10857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10864 if test "$ac_cv_header_pthread_h"; then
10865 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10866 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10867 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 ac_check_lib_save_LIBS
=$LIBS
10871 LIBS
="-lpthread $LIBS"
10872 cat >conftest.
$ac_ext <<_ACEOF
10875 cat confdefs.h
>>conftest.
$ac_ext
10876 cat >>conftest.
$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10879 /* Override any gcc2 internal prototype to avoid an error. */
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885 char pthread_self ();
10894 rm -f conftest.
$ac_objext conftest
$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10898 grep -v '^ *+' conftest.er1
>conftest.err
10900 cat conftest.err
>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try
='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_lib_pthread_pthread_self
=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.
$ac_ext >&5
10920 ac_cv_lib_pthread_pthread_self
=no
10922 rm -f conftest.err conftest.
$ac_objext \
10923 conftest
$ac_exeext conftest.
$ac_ext
10924 LIBS
=$ac_check_lib_save_LIBS
10926 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10927 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10928 if test $ac_cv_lib_pthread_pthread_self = yes; then
10929 HAVE_GTK_AND_PTHREAD
=yes
10933 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10934 GTK_LIBS
="$GTK_LIBS -lpthread"
10936 cat >>confdefs.h
<<\_ACEOF
10937 #define HAVE_GTK_AND_PTHREAD 1
10944 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10945 if test x
"${HAVE_X11R5}" = xyes
; then
10946 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10947 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10948 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 cat >conftest.
$ac_ext <<_ACEOF
10954 cat confdefs.h
>>conftest.
$ac_ext
10955 cat >>conftest.
$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10958 #include <X11/Intrinsic.h>
10959 #include <X11/Xaw/Simple.h>
10968 rm -f conftest.
$ac_objext conftest
$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970 (eval $ac_link) 2>conftest.er1
10972 grep -v '^ *+' conftest.er1
>conftest.err
10974 cat conftest.err
>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try
='test -s conftest$ac_exeext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 emacs_cv_x11_version_5_with_xaw
=yes
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.
$ac_ext >&5
10994 emacs_cv_x11_version_5_with_xaw
=no
10996 rm -f conftest.err conftest.
$ac_objext \
10997 conftest
$ac_exeext conftest.
$ac_ext
11000 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11001 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11002 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11003 USE_X_TOOLKIT
=LUCID
11005 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11006 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11014 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11016 if test "${USE_X_TOOLKIT}" != "none"; then
11017 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11018 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11019 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 cat >conftest.
$ac_ext <<_ACEOF
11025 cat confdefs.h
>>conftest.
$ac_ext
11026 cat >>conftest.
$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <X11/Intrinsic.h>
11032 #if XtSpecificationRelease < 6
11040 rm -f conftest.
$ac_objext conftest
$ac_exeext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11042 (eval $ac_link) 2>conftest.er1
11044 grep -v '^ *+' conftest.er1
>conftest.err
11046 cat conftest.err
>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try
='test -s conftest$ac_exeext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 emacs_cv_x11_toolkit_version_6
=yes
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.
$ac_ext >&5
11066 emacs_cv_x11_toolkit_version_6
=no
11068 rm -f conftest.err conftest.
$ac_objext \
11069 conftest
$ac_exeext conftest.
$ac_ext
11072 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11073 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11074 echo "$as_me:$LINENO: result: 6 or newer" >&5
11075 echo "${ECHO_T}6 or newer" >&6
11077 cat >>confdefs.h
<<\_ACEOF
11078 #define HAVE_X11XTR6 1
11082 echo "$as_me:$LINENO: result: before 6" >&5
11083 echo "${ECHO_T}before 6" >&6
11087 if test x
$HAVE_X11XTR6 = xyes
; then
11088 LIBS
="-lXt -lSM -lICE $LIBS"
11093 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11094 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11095 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 ac_check_lib_save_LIBS
=$LIBS
11100 cat >conftest.
$ac_ext <<_ACEOF
11103 cat confdefs.h
>>conftest.
$ac_ext
11104 cat >>conftest.
$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11107 /* Override any gcc2 internal prototype to avoid an error. */
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113 char XmuConvertStandardSelection ();
11117 XmuConvertStandardSelection ();
11122 rm -f conftest.
$ac_objext conftest
$ac_exeext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124 (eval $ac_link) 2>conftest.er1
11126 grep -v '^ *+' conftest.er1
>conftest.err
11128 cat conftest.err
>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try
='test -s conftest$ac_exeext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.
$ac_ext >&5
11148 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11150 rm -f conftest.err conftest.
$ac_objext \
11151 conftest
$ac_exeext conftest.
$ac_ext
11152 LIBS
=$ac_check_lib_save_LIBS
11154 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11155 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11156 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11157 cat >>confdefs.h
<<_ACEOF
11158 #define HAVE_LIBXMU 1
11165 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11168 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11169 if test "${HAVE_X11}" = "yes"; then
11170 if test "${USE_X_TOOLKIT}" != "none"; then
11172 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11173 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11174 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 ac_check_lib_save_LIBS
=$LIBS
11178 LIBS
="-lXext $LIBS"
11179 cat >conftest.
$ac_ext <<_ACEOF
11182 cat confdefs.h
>>conftest.
$ac_ext
11183 cat >>conftest.
$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11186 /* Override any gcc2 internal prototype to avoid an error. */
11190 /* We use char because int might match the return type of a gcc2
11191 builtin and then its argument prototype would still apply. */
11192 char XShapeQueryExtension ();
11196 XShapeQueryExtension ();
11201 rm -f conftest.
$ac_objext conftest
$ac_exeext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203 (eval $ac_link) 2>conftest.er1
11205 grep -v '^ *+' conftest.er1
>conftest.err
11207 cat conftest.err
>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try
='test -s conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.
$ac_ext >&5
11227 ac_cv_lib_Xext_XShapeQueryExtension
=no
11229 rm -f conftest.err conftest.
$ac_objext \
11230 conftest
$ac_exeext conftest.
$ac_ext
11231 LIBS
=$ac_check_lib_save_LIBS
11233 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11234 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11235 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11236 cat >>confdefs.h
<<_ACEOF
11237 #define HAVE_LIBXEXT 1
11240 LIBS
="-lXext $LIBS"
11247 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11248 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11249 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11250 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 cat >conftest.
$ac_ext <<_ACEOF
11256 cat confdefs.h
>>conftest.
$ac_ext
11257 cat >>conftest.
$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11263 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11266 Motif version prior to 2.1.
11272 rm -f conftest.
$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1
>conftest.err
11278 cat conftest.err
>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; } &&
11287 { ac_try
='test -s conftest.$ac_objext'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 emacs_cv_motif_version_2_1
=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.
$ac_ext >&5
11298 emacs_cv_motif_version_2_1
=no
11300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11302 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11303 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11304 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11305 if test $emacs_cv_motif_version_2_1 = yes; then
11308 cat >>confdefs.h
<<\_ACEOF
11309 #define HAVE_MOTIF_2_1 1
11312 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11313 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11314 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 ac_check_lib_save_LIBS
=$LIBS
11319 cat >conftest.
$ac_ext <<_ACEOF
11322 cat confdefs.h
>>conftest.
$ac_ext
11323 cat >>conftest.
$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11326 /* Override any gcc2 internal prototype to avoid an error. */
11330 /* We use char because int might match the return type of a gcc2
11331 builtin and then its argument prototype would still apply. */
11332 char XpCreateContext ();
11336 XpCreateContext ();
11341 rm -f conftest.
$ac_objext conftest
$ac_exeext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343 (eval $ac_link) 2>conftest.er1
11345 grep -v '^ *+' conftest.er1
>conftest.err
11347 cat conftest.err
>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; } &&
11356 { ac_try
='test -s conftest$ac_exeext'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_cv_lib_Xp_XpCreateContext
=yes
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.
$ac_ext >&5
11367 ac_cv_lib_Xp_XpCreateContext
=no
11369 rm -f conftest.err conftest.
$ac_objext \
11370 conftest
$ac_exeext conftest.
$ac_ext
11371 LIBS
=$ac_check_lib_save_LIBS
11373 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11374 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11375 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11379 if test ${HAVE_LIBXP} = yes; then
11381 cat >>confdefs.h
<<\_ACEOF
11382 #define HAVE_LIBXP 1
11387 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11388 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11389 if test "${emacs_cv_lesstif+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 # We put this in CFLAGS temporarily to precede other -I options
11393 # that might be in CFLAGS temporarily.
11394 # We put this in CPPFLAGS where it precedes the other -I options.
11395 OLD_CPPFLAGS
=$CPPFLAGS
11397 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11398 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11399 cat >conftest.
$ac_ext <<_ACEOF
11402 cat confdefs.h
>>conftest.
$ac_ext
11403 cat >>conftest.
$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11414 rm -f conftest.
$ac_objext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416 (eval $ac_compile) 2>conftest.er1
11418 grep -v '^ *+' conftest.er1
>conftest.err
11420 cat conftest.err
>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try
='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 emacs_cv_lesstif
=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.
$ac_ext >&5
11440 emacs_cv_lesstif
=no
11442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11444 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11445 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11446 if test $emacs_cv_lesstif = yes; then
11447 # Make sure this -I option remains in CPPFLAGS after it is set
11448 # back to REAL_CPPFLAGS.
11449 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11450 # have those other -I options anyway. Ultimately, having this
11451 # directory ultimately in CPPFLAGS will be enough.
11452 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11453 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11456 CPPFLAGS
=$OLD_CPPFLAGS
11461 ### Is -lXaw3d available?
11463 if test "${HAVE_X11}" = "yes"; then
11464 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11465 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11466 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11467 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 cat >conftest.
$ac_ext <<_ACEOF
11473 cat confdefs.h
>>conftest.
$ac_ext
11474 cat >>conftest.
$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <X11/Xaw3d/Scrollbar.h>
11478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11481 grep -v '^ *+' conftest.er1
>conftest.err
11483 cat conftest.err
>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } >/dev
/null
; then
11486 if test -s conftest.err
; then
11487 ac_cpp_err
=$ac_c_preproc_warn_flag
11488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11495 if test -z "$ac_cpp_err"; then
11496 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.
$ac_ext >&5
11501 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11503 rm -f conftest.err conftest.
$ac_ext
11505 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11506 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11507 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11508 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11509 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11510 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 ac_check_lib_save_LIBS
=$LIBS
11514 LIBS
="-lXaw3d $LIBS"
11515 cat >conftest.
$ac_ext <<_ACEOF
11518 cat confdefs.h
>>conftest.
$ac_ext
11519 cat >>conftest.
$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11522 /* Override any gcc2 internal prototype to avoid an error. */
11526 /* We use char because int might match the return type of a gcc2
11527 builtin and then its argument prototype would still apply. */
11528 char XawScrollbarSetThumb ();
11532 XawScrollbarSetThumb ();
11537 rm -f conftest.
$ac_objext conftest
$ac_exeext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539 (eval $ac_link) 2>conftest.er1
11541 grep -v '^ *+' conftest.er1
>conftest.err
11543 cat conftest.err
>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try
='test -s conftest$ac_exeext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.
$ac_ext >&5
11563 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11565 rm -f conftest.err conftest.
$ac_objext \
11566 conftest
$ac_exeext conftest.
$ac_ext
11567 LIBS
=$ac_check_lib_save_LIBS
11569 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11570 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11571 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11578 if test "${HAVE_XAW3D}" = "yes"; then
11580 cat >>confdefs.h
<<\_ACEOF
11581 #define HAVE_XAW3D 1
11590 USE_TOOLKIT_SCROLL_BARS
=no
11591 if test "${with_toolkit_scroll_bars}" != "no"; then
11592 if test "${USE_X_TOOLKIT}" != "none"; then
11593 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11594 cat >>confdefs.h
<<\_ACEOF
11595 #define USE_TOOLKIT_SCROLL_BARS 1
11599 USE_TOOLKIT_SCROLL_BARS
=yes
11600 elif test "${HAVE_XAW3D}" = "yes"; then
11601 cat >>confdefs.h
<<\_ACEOF
11602 #define USE_TOOLKIT_SCROLL_BARS 1
11605 USE_TOOLKIT_SCROLL_BARS
=yes
11607 elif test "${HAVE_GTK}" = "yes"; then
11608 cat >>confdefs.h
<<\_ACEOF
11609 #define USE_TOOLKIT_SCROLL_BARS 1
11612 USE_TOOLKIT_SCROLL_BARS
=yes
11613 elif test "${HAVE_CARBON}" = "yes"; then
11614 cat >>confdefs.h
<<\_ACEOF
11615 #define USE_TOOLKIT_SCROLL_BARS 1
11618 USE_TOOLKIT_SCROLL_BARS
=yes
11622 cat >conftest.
$ac_ext <<_ACEOF
11625 cat confdefs.h
>>conftest.
$ac_ext
11626 cat >>conftest.
$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11629 #include <X11/Xlib.h>
11630 #include <X11/Xresource.h>
11639 rm -f conftest.
$ac_objext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11641 (eval $ac_compile) 2>conftest.er1
11643 grep -v '^ *+' conftest.er1
>conftest.err
11645 cat conftest.err
>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try
='test -s conftest.$ac_objext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11662 cat >>confdefs.h
<<\_ACEOF
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.
$ac_ext >&5
11672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11675 if test "${with_xim}" != "no"; then
11677 cat >>confdefs.h
<<\_ACEOF
11684 if test "${HAVE_XIM}" != "no"; then
11685 late_CFLAGS
=$CFLAGS
11686 if test "$GCC" = yes; then
11687 CFLAGS
="$CFLAGS --pedantic-errors"
11689 cat >conftest.
$ac_ext <<_ACEOF
11692 cat confdefs.h
>>conftest.
$ac_ext
11693 cat >>conftest.
$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11696 #include <X11/Xlib.h>
11697 #include <X11/Xresource.h>
11706 XPointer *client_data;
11708 /* If we're not using GCC, it's probably not XFree86, and this is
11709 probably right, but we can't use something like --pedantic-errors. */
11710 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11711 char*, XIMProc, XPointer*);
11713 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11719 rm -f conftest.
$ac_objext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11721 (eval $ac_compile) 2>conftest.er1
11723 grep -v '^ *+' conftest.er1
>conftest.err
11725 cat conftest.err
>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try
='test -s conftest.$ac_objext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 emacs_cv_arg6_star
=yes
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.
$ac_ext >&5
11746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11748 if test "$emacs_cv_arg6_star" = yes; then
11749 cat >>confdefs.h
<<\_ACEOF
11750 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11754 cat >>confdefs.h
<<\_ACEOF
11755 #define XRegisterIMInstantiateCallback_arg6 XPointer
11759 CFLAGS
=$late_CFLAGS
11762 ### Use -lXpm if available, unless `--with-xpm=no'.
11764 if test "${HAVE_X11}" = "yes"; then
11765 if test "${with_xpm}" != "no"; then
11766 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11767 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11768 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11769 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11773 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11775 # Is the header compilable?
11776 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11777 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11778 cat >conftest.
$ac_ext <<_ACEOF
11781 cat confdefs.h
>>conftest.
$ac_ext
11782 cat >>conftest.
$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 $ac_includes_default
11785 #include <X11/xpm.h>
11787 rm -f conftest.
$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11791 grep -v '^ *+' conftest.er1
>conftest.err
11793 cat conftest.err
>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try
='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_header_compiler
=yes
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.
$ac_ext >&5
11813 ac_header_compiler
=no
11815 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11817 echo "${ECHO_T}$ac_header_compiler" >&6
11819 # Is the header present?
11820 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11821 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11822 cat >conftest.
$ac_ext <<_ACEOF
11825 cat confdefs.h
>>conftest.
$ac_ext
11826 cat >>conftest.
$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 #include <X11/xpm.h>
11830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11831 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11833 grep -v '^ *+' conftest.er1
>conftest.err
11835 cat conftest.err
>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } >/dev
/null
; then
11838 if test -s conftest.err
; then
11839 ac_cpp_err
=$ac_c_preproc_warn_flag
11840 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11847 if test -z "$ac_cpp_err"; then
11848 ac_header_preproc
=yes
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.
$ac_ext >&5
11853 ac_header_preproc
=no
11855 rm -f conftest.err conftest.
$ac_ext
11856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857 echo "${ECHO_T}$ac_header_preproc" >&6
11859 # So? What about this header?
11860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11863 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11865 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11866 ac_header_preproc
=yes
11869 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11870 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11872 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11874 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11876 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11878 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11880 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11883 ## ------------------------------------------ ##
11884 ## Report this to the AC_PACKAGE_NAME lists. ##
11885 ## ------------------------------------------ ##
11888 sed "s/^/$as_me: WARNING: /" >&2
11891 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11892 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11893 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11898 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11899 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11902 if test $ac_cv_header_X11_xpm_h = yes; then
11903 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11904 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11905 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 ac_check_lib_save_LIBS
=$LIBS
11909 LIBS
="-lXpm -lX11 $LIBS"
11910 cat >conftest.
$ac_ext <<_ACEOF
11913 cat confdefs.h
>>conftest.
$ac_ext
11914 cat >>conftest.
$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11917 /* Override any gcc2 internal prototype to avoid an error. */
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11923 char XpmReadFileToPixmap ();
11927 XpmReadFileToPixmap ();
11932 rm -f conftest.
$ac_objext conftest
$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>conftest.er1
11936 grep -v '^ *+' conftest.er1
>conftest.err
11938 cat conftest.err
>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try
='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.
$ac_ext >&5
11958 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11960 rm -f conftest.err conftest.
$ac_objext \
11961 conftest
$ac_exeext conftest.
$ac_ext
11962 LIBS
=$ac_check_lib_save_LIBS
11964 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11965 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11966 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11973 if test "${HAVE_XPM}" = "yes"; then
11974 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11975 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11976 cat >conftest.
$ac_ext <<_ACEOF
11979 cat confdefs.h
>>conftest.
$ac_ext
11980 cat >>conftest.
$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 #include "X11/xpm.h"
11983 #ifndef XpmReturnAllocPixels
11984 no_return_alloc_pixels
11988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11989 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11997 if test "${HAVE_XPM}" = "yes"; then
11998 echo "$as_me:$LINENO: result: yes" >&5
11999 echo "${ECHO_T}yes" >&6
12001 echo "$as_me:$LINENO: result: no" >&5
12002 echo "${ECHO_T}no" >&6
12007 if test "${HAVE_XPM}" = "yes"; then
12009 cat >>confdefs.h
<<\_ACEOF
12016 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12018 if test "${HAVE_X11}" = "yes"; then
12019 if test "${with_jpeg}" != "no"; then
12020 if test "${ac_cv_header_jerror_h+set}" = set; then
12021 echo "$as_me:$LINENO: checking for jerror.h" >&5
12022 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12023 if test "${ac_cv_header_jerror_h+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12027 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12029 # Is the header compilable?
12030 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12031 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12032 cat >conftest.
$ac_ext <<_ACEOF
12035 cat confdefs.h
>>conftest.
$ac_ext
12036 cat >>conftest.
$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 $ac_includes_default
12039 #include <jerror.h>
12041 rm -f conftest.
$ac_objext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>conftest.er1
12045 grep -v '^ *+' conftest.er1
>conftest.err
12047 cat conftest.err
>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try
='test -s conftest.$ac_objext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_header_compiler
=yes
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.
$ac_ext >&5
12067 ac_header_compiler
=no
12069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071 echo "${ECHO_T}$ac_header_compiler" >&6
12073 # Is the header present?
12074 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12075 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12076 cat >conftest.
$ac_ext <<_ACEOF
12079 cat confdefs.h
>>conftest.
$ac_ext
12080 cat >>conftest.
$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 #include <jerror.h>
12084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12087 grep -v '^ *+' conftest.er1
>conftest.err
12089 cat conftest.err
>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } >/dev
/null
; then
12092 if test -s conftest.err
; then
12093 ac_cpp_err
=$ac_c_preproc_warn_flag
12094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12101 if test -z "$ac_cpp_err"; then
12102 ac_header_preproc
=yes
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.
$ac_ext >&5
12107 ac_header_preproc
=no
12109 rm -f conftest.err conftest.
$ac_ext
12110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12111 echo "${ECHO_T}$ac_header_preproc" >&6
12113 # So? What about this header?
12114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12116 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12117 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12119 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12120 ac_header_preproc
=yes
12123 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12124 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12126 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12128 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12130 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12132 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12134 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12137 ## ------------------------------------------ ##
12138 ## Report this to the AC_PACKAGE_NAME lists. ##
12139 ## ------------------------------------------ ##
12142 sed "s/^/$as_me: WARNING: /" >&2
12145 echo "$as_me:$LINENO: checking for jerror.h" >&5
12146 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12147 if test "${ac_cv_header_jerror_h+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 ac_cv_header_jerror_h
=$ac_header_preproc
12152 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12153 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12156 if test $ac_cv_header_jerror_h = yes; then
12157 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12158 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12159 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 ac_check_lib_save_LIBS
=$LIBS
12163 LIBS
="-ljpeg $LIBS"
12164 cat >conftest.
$ac_ext <<_ACEOF
12167 cat confdefs.h
>>conftest.
$ac_ext
12168 cat >>conftest.
$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12171 /* Override any gcc2 internal prototype to avoid an error. */
12175 /* We use char because int might match the return type of a gcc2
12176 builtin and then its argument prototype would still apply. */
12177 char jpeg_destroy_compress ();
12181 jpeg_destroy_compress ();
12186 rm -f conftest.
$ac_objext conftest
$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>conftest.er1
12190 grep -v '^ *+' conftest.er1
>conftest.err
12192 cat conftest.err
>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try
='test -s conftest$ac_exeext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.
$ac_ext >&5
12212 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12214 rm -f conftest.err conftest.
$ac_objext \
12215 conftest
$ac_exeext conftest.
$ac_ext
12216 LIBS
=$ac_check_lib_save_LIBS
12218 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12219 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12220 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12230 if test "${HAVE_JPEG}" = "yes"; then
12231 cat >>confdefs.h
<<\_ACEOF
12232 #define HAVE_JPEG 1
12235 cat >conftest.
$ac_ext <<_ACEOF
12238 cat confdefs.h
>>conftest.
$ac_ext
12239 cat >>conftest.
$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #include <jpeglib.h>
12242 version=JPEG_LIB_VERSION
12245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12246 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12247 cat >>confdefs.h
<<\_ACEOF
12248 #define HAVE_JPEG 1
12252 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12253 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12261 ### Use -lpng if available, unless `--with-png=no'.
12263 if test "${HAVE_X11}" = "yes"; then
12264 if test "${with_png}" != "no"; then
12265 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12266 # in /usr/include/libpng.
12269 for ac_header
in png.h libpng
/png.h
12271 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12273 echo "$as_me:$LINENO: checking for $ac_header" >&5
12274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12281 # Is the header compilable?
12282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 $ac_includes_default
12291 #include <$ac_header>
12293 rm -f conftest.
$ac_objext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12295 (eval $ac_compile) 2>conftest.er1
12297 grep -v '^ *+' conftest.er1
>conftest.err
12299 cat conftest.err
>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try
='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_header_compiler
=yes
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.
$ac_ext >&5
12319 ac_header_compiler
=no
12321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12323 echo "${ECHO_T}$ac_header_compiler" >&6
12325 # Is the header present?
12326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12328 cat >conftest.
$ac_ext <<_ACEOF
12331 cat confdefs.h
>>conftest.
$ac_ext
12332 cat >>conftest.
$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 #include <$ac_header>
12336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12337 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12339 grep -v '^ *+' conftest.er1
>conftest.err
12341 cat conftest.err
>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } >/dev
/null
; then
12344 if test -s conftest.err
; then
12345 ac_cpp_err
=$ac_c_preproc_warn_flag
12346 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12353 if test -z "$ac_cpp_err"; then
12354 ac_header_preproc
=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.
$ac_ext >&5
12359 ac_header_preproc
=no
12361 rm -f conftest.err conftest.
$ac_ext
12362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12363 echo "${ECHO_T}$ac_header_preproc" >&6
12365 # So? What about this header?
12366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12372 ac_header_preproc
=yes
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12389 ## ------------------------------------------ ##
12390 ## Report this to the AC_PACKAGE_NAME lists. ##
12391 ## ------------------------------------------ ##
12394 sed "s/^/$as_me: WARNING: /" >&2
12397 echo "$as_me:$LINENO: checking for $ac_header" >&5
12398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 eval "$as_ac_Header=\$ac_header_preproc"
12404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12409 cat >>confdefs.h
<<_ACEOF
12410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12417 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12418 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12419 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12420 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 ac_check_lib_save_LIBS
=$LIBS
12424 LIBS
="-lpng -lz -lm $LIBS"
12425 cat >conftest.
$ac_ext <<_ACEOF
12428 cat confdefs.h
>>conftest.
$ac_ext
12429 cat >>conftest.
$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12432 /* Override any gcc2 internal prototype to avoid an error. */
12436 /* We use char because int might match the return type of a gcc2
12437 builtin and then its argument prototype would still apply. */
12438 char png_get_channels ();
12442 png_get_channels ();
12447 rm -f conftest.
$ac_objext conftest
$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449 (eval $ac_link) 2>conftest.er1
12451 grep -v '^ *+' conftest.er1
>conftest.err
12453 cat conftest.err
>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try
='test -s conftest$ac_exeext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_lib_png_png_get_channels
=yes
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.
$ac_ext >&5
12473 ac_cv_lib_png_png_get_channels
=no
12475 rm -f conftest.err conftest.
$ac_objext \
12476 conftest
$ac_exeext conftest.
$ac_ext
12477 LIBS
=$ac_check_lib_save_LIBS
12479 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12480 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12481 if test $ac_cv_lib_png_png_get_channels = yes; then
12488 if test "${HAVE_PNG}" = "yes"; then
12490 cat >>confdefs.h
<<\_ACEOF
12497 ### Use -ltiff if available, unless `--with-tiff=no'.
12499 if test "${HAVE_X11}" = "yes"; then
12500 if test "${with_tiff}" != "no"; then
12501 if test "${ac_cv_header_tiffio_h+set}" = set; then
12502 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12503 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12504 if test "${ac_cv_header_tiffio_h+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12508 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12510 # Is the header compilable?
12511 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12512 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12513 cat >conftest.
$ac_ext <<_ACEOF
12516 cat confdefs.h
>>conftest.
$ac_ext
12517 cat >>conftest.
$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 #include <tiffio.h>
12522 rm -f conftest.
$ac_objext
12523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12526 grep -v '^ *+' conftest.er1
>conftest.err
12528 cat conftest.err
>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try
='test -s conftest.$ac_objext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_header_compiler
=yes
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.
$ac_ext >&5
12548 ac_header_compiler
=no
12550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12552 echo "${ECHO_T}$ac_header_compiler" >&6
12554 # Is the header present?
12555 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12556 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12557 cat >conftest.
$ac_ext <<_ACEOF
12560 cat confdefs.h
>>conftest.
$ac_ext
12561 cat >>conftest.
$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 #include <tiffio.h>
12565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12566 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12568 grep -v '^ *+' conftest.er1
>conftest.err
12570 cat conftest.err
>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } >/dev
/null
; then
12573 if test -s conftest.err
; then
12574 ac_cpp_err
=$ac_c_preproc_warn_flag
12575 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12582 if test -z "$ac_cpp_err"; then
12583 ac_header_preproc
=yes
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.
$ac_ext >&5
12588 ac_header_preproc
=no
12590 rm -f conftest.err conftest.
$ac_ext
12591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12592 echo "${ECHO_T}$ac_header_preproc" >&6
12594 # So? What about this header?
12595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12597 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12598 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12600 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12601 ac_header_preproc
=yes
12604 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12605 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12607 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12609 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12611 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12613 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12614 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12615 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12618 ## ------------------------------------------ ##
12619 ## Report this to the AC_PACKAGE_NAME lists. ##
12620 ## ------------------------------------------ ##
12623 sed "s/^/$as_me: WARNING: /" >&2
12626 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12627 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12628 if test "${ac_cv_header_tiffio_h+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 ac_cv_header_tiffio_h
=$ac_header_preproc
12633 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12634 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12637 if test $ac_cv_header_tiffio_h = yes; then
12639 # At least one tiff package requires the jpeg library.
12640 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12641 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12642 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12643 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 ac_check_lib_save_LIBS
=$LIBS
12647 LIBS
="-ltiff $tifflibs $LIBS"
12648 cat >conftest.
$ac_ext <<_ACEOF
12651 cat confdefs.h
>>conftest.
$ac_ext
12652 cat >>conftest.
$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12655 /* Override any gcc2 internal prototype to avoid an error. */
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12661 char TIFFGetVersion ();
12670 rm -f conftest.
$ac_objext conftest
$ac_exeext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12672 (eval $ac_link) 2>conftest.er1
12674 grep -v '^ *+' conftest.er1
>conftest.err
12676 cat conftest.err
>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try
='test -s conftest$ac_exeext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_cv_lib_tiff_TIFFGetVersion
=yes
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.
$ac_ext >&5
12696 ac_cv_lib_tiff_TIFFGetVersion
=no
12698 rm -f conftest.err conftest.
$ac_objext \
12699 conftest
$ac_exeext conftest.
$ac_ext
12700 LIBS
=$ac_check_lib_save_LIBS
12702 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12703 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12704 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12713 if test "${HAVE_TIFF}" = "yes"; then
12715 cat >>confdefs.h
<<\_ACEOF
12716 #define HAVE_TIFF 1
12722 ### Use -lgif if available, unless `--with-gif=no'.
12724 if test "${HAVE_X11}" = "yes"; then
12725 if test "${with_gif}" != "no"; then
12726 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12727 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12728 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12729 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12733 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12735 # Is the header compilable?
12736 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12737 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12738 cat >conftest.
$ac_ext <<_ACEOF
12741 cat confdefs.h
>>conftest.
$ac_ext
12742 cat >>conftest.
$ac_ext <<_ACEOF
12743 /* end confdefs.h. */
12744 $ac_includes_default
12745 #include <gif_lib.h>
12747 rm -f conftest.
$ac_objext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749 (eval $ac_compile) 2>conftest.er1
12751 grep -v '^ *+' conftest.er1
>conftest.err
12753 cat conftest.err
>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try
='test -s conftest.$ac_objext'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_header_compiler
=yes
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.
$ac_ext >&5
12773 ac_header_compiler
=no
12775 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12777 echo "${ECHO_T}$ac_header_compiler" >&6
12779 # Is the header present?
12780 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12781 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12782 cat >conftest.
$ac_ext <<_ACEOF
12785 cat confdefs.h
>>conftest.
$ac_ext
12786 cat >>conftest.
$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 #include <gif_lib.h>
12790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12791 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12793 grep -v '^ *+' conftest.er1
>conftest.err
12795 cat conftest.err
>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } >/dev
/null
; then
12798 if test -s conftest.err
; then
12799 ac_cpp_err
=$ac_c_preproc_warn_flag
12800 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12807 if test -z "$ac_cpp_err"; then
12808 ac_header_preproc
=yes
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.
$ac_ext >&5
12813 ac_header_preproc
=no
12815 rm -f conftest.err conftest.
$ac_ext
12816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12817 echo "${ECHO_T}$ac_header_preproc" >&6
12819 # So? What about this header?
12820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12822 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12823 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12825 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12826 ac_header_preproc
=yes
12829 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12830 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12832 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12834 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12836 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12838 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12840 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12843 ## ------------------------------------------ ##
12844 ## Report this to the AC_PACKAGE_NAME lists. ##
12845 ## ------------------------------------------ ##
12848 sed "s/^/$as_me: WARNING: /" >&2
12851 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12852 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12853 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 ac_cv_header_gif_lib_h
=$ac_header_preproc
12858 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12859 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12862 if test $ac_cv_header_gif_lib_h = yes; then
12863 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12864 # Earlier versions can crash Emacs.
12865 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12866 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12867 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 ac_check_lib_save_LIBS
=$LIBS
12871 LIBS
="-lungif $LIBS"
12872 cat >conftest.
$ac_ext <<_ACEOF
12875 cat confdefs.h
>>conftest.
$ac_ext
12876 cat >>conftest.
$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12879 /* Override any gcc2 internal prototype to avoid an error. */
12883 /* We use char because int might match the return type of a gcc2
12884 builtin and then its argument prototype would still apply. */
12885 char EGifPutExtensionLast ();
12889 EGifPutExtensionLast ();
12894 rm -f conftest.
$ac_objext conftest
$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896 (eval $ac_link) 2>conftest.er1
12898 grep -v '^ *+' conftest.er1
>conftest.err
12900 cat conftest.err
>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try
='test -s conftest$ac_exeext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.
$ac_ext >&5
12920 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12922 rm -f conftest.err conftest.
$ac_objext \
12923 conftest
$ac_exeext conftest.
$ac_ext
12924 LIBS
=$ac_check_lib_save_LIBS
12926 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12927 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12928 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12937 if test "${HAVE_GIF}" = "yes"; then
12939 cat >>confdefs.h
<<\_ACEOF
12946 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12947 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12948 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12949 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12953 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12955 # Is the header compilable?
12956 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12957 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12958 cat >conftest.
$ac_ext <<_ACEOF
12961 cat confdefs.h
>>conftest.
$ac_ext
12962 cat >>conftest.
$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 $ac_includes_default
12965 #include <malloc/malloc.h>
12967 rm -f conftest.
$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>conftest.er1
12971 grep -v '^ *+' conftest.er1
>conftest.err
12973 cat conftest.err
>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; } &&
12982 { ac_try
='test -s conftest.$ac_objext'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_header_compiler
=yes
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.
$ac_ext >&5
12993 ac_header_compiler
=no
12995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12997 echo "${ECHO_T}$ac_header_compiler" >&6
12999 # Is the header present?
13000 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13001 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13002 cat >conftest.
$ac_ext <<_ACEOF
13005 cat confdefs.h
>>conftest.
$ac_ext
13006 cat >>conftest.
$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 #include <malloc/malloc.h>
13010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13013 grep -v '^ *+' conftest.er1
>conftest.err
13015 cat conftest.err
>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } >/dev
/null
; then
13018 if test -s conftest.err
; then
13019 ac_cpp_err
=$ac_c_preproc_warn_flag
13020 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13027 if test -z "$ac_cpp_err"; then
13028 ac_header_preproc
=yes
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.
$ac_ext >&5
13033 ac_header_preproc
=no
13035 rm -f conftest.err conftest.
$ac_ext
13036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13037 echo "${ECHO_T}$ac_header_preproc" >&6
13039 # So? What about this header?
13040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13042 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13043 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13044 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13045 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13046 ac_header_preproc
=yes
13049 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13050 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13052 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13053 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13054 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13055 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13056 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13057 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13058 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13059 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13060 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13063 ## ------------------------------------------ ##
13064 ## Report this to the AC_PACKAGE_NAME lists. ##
13065 ## ------------------------------------------ ##
13068 sed "s/^/$as_me: WARNING: /" >&2
13071 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13072 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13073 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13078 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13079 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13082 if test $ac_cv_header_malloc_malloc_h = yes; then
13084 cat >>confdefs.h
<<\_ACEOF
13085 #define HAVE_MALLOC_MALLOC_H 1
13092 ### Use Mac OS X Carbon API to implement GUI.
13093 if test "${HAVE_CARBON}" = "yes"; then
13095 cat >>confdefs.h
<<\_ACEOF
13096 #define HAVE_CARBON 1
13099 ## Specify the install directory
13101 if test "${carbon_appdir_x}" != ""; then
13102 case ${carbon_appdir_x} in
13103 y | ye |
yes) carbon_appdir
=/Applications
;;
13104 * ) carbon_appdir
=${carbon_appdir_x} ;;
13107 # We also have mouse menus.
13110 tmp_CFLAGS
="$CFLAGS"
13111 CFLAGS
="$CFLAGS -framework Carbon"
13112 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13113 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13114 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 cat >conftest.
$ac_ext <<_ACEOF
13120 cat confdefs.h
>>conftest.
$ac_ext
13121 cat >>conftest.
$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13125 #define CancelMenuTracking innocuous_CancelMenuTracking
13127 /* System header to define __stub macros and hopefully few prototypes,
13128 which can conflict with char CancelMenuTracking (); below.
13129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13130 <limits.h> exists even on freestanding compilers. */
13133 # include <limits.h>
13135 # include <assert.h>
13138 #undef CancelMenuTracking
13140 /* Override any gcc2 internal prototype to avoid an error. */
13145 /* We use char because int might match the return type of a gcc2
13146 builtin and then its argument prototype would still apply. */
13147 char CancelMenuTracking ();
13148 /* The GNU C library defines this for functions which it implements
13149 to always fail with ENOSYS. Some functions are actually named
13150 something starting with __ and the normal name is an alias. */
13151 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13154 char (*f) () = CancelMenuTracking;
13163 return f != CancelMenuTracking;
13168 rm -f conftest.
$ac_objext conftest
$ac_exeext
13169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13170 (eval $ac_link) 2>conftest.er1
13172 grep -v '^ *+' conftest.er1
>conftest.err
13174 cat conftest.err
>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
13177 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try
='test -s conftest$ac_exeext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_cv_func_CancelMenuTracking
=yes
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.
$ac_ext >&5
13194 ac_cv_func_CancelMenuTracking
=no
13196 rm -f conftest.err conftest.
$ac_objext \
13197 conftest
$ac_exeext conftest.
$ac_ext
13199 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13200 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13201 if test $ac_cv_func_CancelMenuTracking = yes; then
13207 if test "$have_cmt" = yes; then
13209 cat >>confdefs.h
<<\_ACEOF
13210 #define HAVE_CANCELMENUTRACKING 1
13214 CFLAGS
="$tmp_CFLAGS"
13217 ### Use session management (-lSM -lICE) if available
13219 if test "${HAVE_X11}" = "yes"; then
13220 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13221 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13222 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13223 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13227 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13229 # Is the header compilable?
13230 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13231 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13232 cat >conftest.
$ac_ext <<_ACEOF
13235 cat confdefs.h
>>conftest.
$ac_ext
13236 cat >>conftest.
$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 $ac_includes_default
13239 #include <X11/SM/SMlib.h>
13241 rm -f conftest.
$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13245 grep -v '^ *+' conftest.er1
>conftest.err
13247 cat conftest.err
>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13256 { ac_try
='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_header_compiler
=yes
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.
$ac_ext >&5
13267 ac_header_compiler
=no
13269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6
13273 # Is the header present?
13274 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13275 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13276 cat >conftest.
$ac_ext <<_ACEOF
13279 cat confdefs.h
>>conftest.
$ac_ext
13280 cat >>conftest.
$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <X11/SM/SMlib.h>
13284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13285 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13287 grep -v '^ *+' conftest.er1
>conftest.err
13289 cat conftest.err
>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } >/dev
/null
; then
13292 if test -s conftest.err
; then
13293 ac_cpp_err
=$ac_c_preproc_warn_flag
13294 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13301 if test -z "$ac_cpp_err"; then
13302 ac_header_preproc
=yes
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.
$ac_ext >&5
13307 ac_header_preproc
=no
13309 rm -f conftest.err conftest.
$ac_ext
13310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13311 echo "${ECHO_T}$ac_header_preproc" >&6
13313 # So? What about this header?
13314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13316 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13317 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13319 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13320 ac_header_preproc
=yes
13323 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13324 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13326 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13328 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13330 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13332 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13334 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13337 ## ------------------------------------------ ##
13338 ## Report this to the AC_PACKAGE_NAME lists. ##
13339 ## ------------------------------------------ ##
13342 sed "s/^/$as_me: WARNING: /" >&2
13345 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13346 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13347 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13352 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13353 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13356 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13357 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13358 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13359 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_check_lib_save_LIBS
=$LIBS
13363 LIBS
="-lSM -lICE $LIBS"
13364 cat >conftest.
$ac_ext <<_ACEOF
13367 cat confdefs.h
>>conftest.
$ac_ext
13368 cat >>conftest.
$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 /* Override any gcc2 internal prototype to avoid an error. */
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13377 char SmcOpenConnection ();
13381 SmcOpenConnection ();
13386 rm -f conftest.
$ac_objext conftest
$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>conftest.er1
13390 grep -v '^ *+' conftest.er1
>conftest.err
13392 cat conftest.err
>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try
='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_lib_SM_SmcOpenConnection
=yes
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.
$ac_ext >&5
13412 ac_cv_lib_SM_SmcOpenConnection
=no
13414 rm -f conftest.err conftest.
$ac_objext \
13415 conftest
$ac_exeext conftest.
$ac_ext
13416 LIBS
=$ac_check_lib_save_LIBS
13418 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13419 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13420 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13428 if test "${HAVE_X_SM}" = "yes"; then
13430 cat >>confdefs.h
<<\_ACEOF
13431 #define HAVE_X_SM 1
13436 *) LIBS
="-lSM -lICE $LIBS" ;;
13441 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13442 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13443 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13444 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 cat >conftest.
$ac_ext <<_ACEOF
13450 cat confdefs.h
>>conftest.
$ac_ext
13451 cat >>conftest.
$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13462 rm -f conftest.
$ac_objext conftest
$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464 (eval $ac_link) 2>conftest.er1
13466 grep -v '^ *+' conftest.er1
>conftest.err
13468 cat conftest.err
>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try
='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 emacs_cv_netdb_declares_h_errno
=yes
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.
$ac_ext >&5
13488 emacs_cv_netdb_declares_h_errno
=no
13490 rm -f conftest.err conftest.
$ac_objext \
13491 conftest
$ac_exeext conftest.
$ac_ext
13493 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13494 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13495 if test $emacs_cv_netdb_declares_h_errno = yes; then
13497 cat >>confdefs.h
<<\_ACEOF
13498 #define HAVE_H_ERRNO 1
13503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13504 # for constant arguments. Useless!
13505 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13507 if test "${ac_cv_working_alloca_h+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 cat >conftest.
$ac_ext <<_ACEOF
13513 cat confdefs.h
>>conftest.
$ac_ext
13514 cat >>conftest.
$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <alloca.h>
13520 char *p = (char *) alloca (2 * sizeof (int));
13525 rm -f conftest.
$ac_objext conftest
$ac_exeext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13527 (eval $ac_link) 2>conftest.er1
13529 grep -v '^ *+' conftest.er1
>conftest.err
13531 cat conftest.err
>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try
='test -s conftest$ac_exeext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_working_alloca_h
=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.
$ac_ext >&5
13551 ac_cv_working_alloca_h
=no
13553 rm -f conftest.err conftest.
$ac_objext \
13554 conftest
$ac_exeext conftest.
$ac_ext
13556 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13557 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13558 if test $ac_cv_working_alloca_h = yes; then
13560 cat >>confdefs.h
<<\_ACEOF
13561 #define HAVE_ALLOCA_H 1
13566 echo "$as_me:$LINENO: checking for alloca" >&5
13567 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13568 if test "${ac_cv_func_alloca_works+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 cat >conftest.
$ac_ext <<_ACEOF
13574 cat confdefs.h
>>conftest.
$ac_ext
13575 cat >>conftest.
$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13578 # define alloca __builtin_alloca
13581 # include <malloc.h>
13582 # define alloca _alloca
13585 # include <alloca.h>
13590 # ifndef alloca /* predefined by HP cc +Olibcalls */
13601 char *p = (char *) alloca (1);
13606 rm -f conftest.
$ac_objext conftest
$ac_exeext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13608 (eval $ac_link) 2>conftest.er1
13610 grep -v '^ *+' conftest.er1
>conftest.err
13612 cat conftest.err
>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
13615 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try
='test -s conftest$ac_exeext'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_cv_func_alloca_works
=yes
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.
$ac_ext >&5
13632 ac_cv_func_alloca_works
=no
13634 rm -f conftest.err conftest.
$ac_objext \
13635 conftest
$ac_exeext conftest.
$ac_ext
13637 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13638 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13640 if test $ac_cv_func_alloca_works = yes; then
13642 cat >>confdefs.h
<<\_ACEOF
13643 #define HAVE_ALLOCA 1
13647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13648 # that cause trouble. Some versions do not even contain alloca or
13649 # contain a buggy version. If you still want to use their alloca,
13650 # use ar to extract alloca.o from them instead of compiling alloca.c.
13652 ALLOCA
=alloca.
$ac_objext
13654 cat >>confdefs.h
<<\_ACEOF
13659 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13660 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13661 if test "${ac_cv_os_cray+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 cat >conftest.
$ac_ext <<_ACEOF
13667 cat confdefs.h
>>conftest.
$ac_ext
13668 cat >>conftest.
$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 #if defined(CRAY) && ! defined(CRAY2)
13677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13678 $EGREP "webecray" >/dev
/null
2>&1; then
13686 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13687 echo "${ECHO_T}$ac_cv_os_cray" >&6
13688 if test $ac_cv_os_cray = yes; then
13689 for ac_func
in _getb67 GETB67 getb67
; do
13690 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13691 echo "$as_me:$LINENO: checking for $ac_func" >&5
13692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13693 if eval "test \"\${$as_ac_var+set}\" = set"; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 cat >conftest.
$ac_ext <<_ACEOF
13699 cat confdefs.h
>>conftest.
$ac_ext
13700 cat >>conftest.
$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13704 #define $ac_func innocuous_$ac_func
13706 /* System header to define __stub macros and hopefully few prototypes,
13707 which can conflict with char $ac_func (); below.
13708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13709 <limits.h> exists even on freestanding compilers. */
13712 # include <limits.h>
13714 # include <assert.h>
13719 /* Override any gcc2 internal prototype to avoid an error. */
13724 /* We use char because int might match the return type of a gcc2
13725 builtin and then its argument prototype would still apply. */
13727 /* The GNU C library defines this for functions which it implements
13728 to always fail with ENOSYS. Some functions are actually named
13729 something starting with __ and the normal name is an alias. */
13730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13733 char (*f) () = $ac_func;
13742 return f != $ac_func;
13747 rm -f conftest.
$ac_objext conftest
$ac_exeext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749 (eval $ac_link) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1
>conftest.err
13753 cat conftest.err
>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try
='test -s conftest$ac_exeext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 eval "$as_ac_var=yes"
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.
$ac_ext >&5
13773 eval "$as_ac_var=no"
13775 rm -f conftest.err conftest.
$ac_objext \
13776 conftest
$ac_exeext conftest.
$ac_ext
13778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13780 if test `eval echo '${'$as_ac_var'}'` = yes; then
13782 cat >>confdefs.h
<<_ACEOF
13783 #define CRAY_STACKSEG_END $ac_func
13792 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13793 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13794 if test "${ac_cv_c_stack_direction+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 if test "$cross_compiling" = yes; then
13798 ac_cv_c_stack_direction
=0
13800 cat >conftest.
$ac_ext <<_ACEOF
13803 cat confdefs.h
>>conftest.
$ac_ext
13804 cat >>conftest.
$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13807 find_stack_direction ()
13809 static char *addr = 0;
13814 return find_stack_direction ();
13817 return (&dummy > addr) ? 1 : -1;
13823 exit (find_stack_direction () < 0);
13826 rm -f conftest
$ac_exeext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13828 (eval $ac_link) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_c_stack_direction
=1
13839 echo "$as_me: program exited with status $ac_status" >&5
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.
$ac_ext >&5
13843 ( exit $ac_status )
13844 ac_cv_c_stack_direction
=-1
13846 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13849 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13850 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13852 cat >>confdefs.h
<<_ACEOF
13853 #define STACK_DIRECTION $ac_cv_c_stack_direction
13860 # fmod, logb, and frexp are found in -lm on most systems.
13861 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13863 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13864 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13865 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 ac_check_lib_save_LIBS
=$LIBS
13870 cat >conftest.
$ac_ext <<_ACEOF
13873 cat confdefs.h
>>conftest.
$ac_ext
13874 cat >>conftest.
$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13877 /* Override any gcc2 internal prototype to avoid an error. */
13881 /* We use char because int might match the return type of a gcc2
13882 builtin and then its argument prototype would still apply. */
13892 rm -f conftest.
$ac_objext conftest
$ac_exeext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13894 (eval $ac_link) 2>conftest.er1
13896 grep -v '^ *+' conftest.er1
>conftest.err
13898 cat conftest.err
>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try
='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try
='test -s conftest$ac_exeext'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_cv_lib_mail_maillock
=yes
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.
$ac_ext >&5
13994 ac_cv_lib_mail_maillock
=no
13996 rm -f conftest.err conftest.
$ac_objext \
13997 conftest
$ac_exeext conftest.
$ac_ext
13998 LIBS
=$ac_check_lib_save_LIBS
14000 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14001 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14002 if test $ac_cv_lib_mail_maillock = yes; then
14003 cat >>confdefs.h
<<_ACEOF
14004 #define HAVE_LIBMAIL 1
14007 LIBS
="-lmail $LIBS"
14012 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14013 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14014 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 ac_check_lib_save_LIBS
=$LIBS
14018 LIBS
="-llockfile $LIBS"
14019 cat >conftest.
$ac_ext <<_ACEOF
14022 cat confdefs.h
>>conftest.
$ac_ext
14023 cat >>conftest.
$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14026 /* Override any gcc2 internal prototype to avoid an error. */
14030 /* We use char because int might match the return type of a gcc2
14031 builtin and then its argument prototype would still apply. */
14041 rm -f conftest.
$ac_objext conftest
$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>conftest.er1
14045 grep -v '^ *+' conftest.er1
>conftest.err
14047 cat conftest.err
>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
14050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try
='test -s conftest$ac_exeext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_lib_lockfile_maillock
=yes
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.
$ac_ext >&5
14067 ac_cv_lib_lockfile_maillock
=no
14069 rm -f conftest.err conftest.
$ac_objext \
14070 conftest
$ac_exeext conftest.
$ac_ext
14071 LIBS
=$ac_check_lib_save_LIBS
14073 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14074 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14075 if test $ac_cv_lib_lockfile_maillock = yes; then
14076 cat >>confdefs.h
<<_ACEOF
14077 #define HAVE_LIBLOCKFILE 1
14080 LIBS
="-llockfile $LIBS"
14084 # If we have the shared liblockfile, assume we must use it for mail
14085 # locking (e.g. Debian). If we couldn't link against liblockfile
14086 # (no liblockfile.a installed), ensure that we don't need to.
14087 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14088 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14089 set dummy liblockfile.so
; ac_word
=$2
14090 echo "$as_me:$LINENO: checking for $ac_word" >&5
14091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14092 if test "${ac_cv_prog_liblockfile+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 if test -n "$liblockfile"; then
14096 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14099 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14100 for as_dir
in $as_dummy
14103 test -z "$as_dir" && as_dir
=.
14104 for ac_exec_ext
in '' $ac_executable_extensions; do
14105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14106 ac_cv_prog_liblockfile
="yes"
14107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14113 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14116 liblockfile
=$ac_cv_prog_liblockfile
14117 if test -n "$liblockfile"; then
14118 echo "$as_me:$LINENO: result: $liblockfile" >&5
14119 echo "${ECHO_T}$liblockfile" >&6
14121 echo "$as_me:$LINENO: result: no" >&5
14122 echo "${ECHO_T}no" >&6
14125 if test $ac_cv_prog_liblockfile = yes; then
14126 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14127 This probably means that movemail could lose mail.
14128 There may be a \`development' package to install containing liblockfile." >&5
14129 echo "$as_me: error: Shared liblockfile found but can't link against it.
14130 This probably means that movemail could lose mail.
14131 There may be a \`development' package to install containing liblockfile." >&2;}
14132 { (exit 1); exit 1; }; }
14137 for ac_func
in touchlock
14139 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14140 echo "$as_me:$LINENO: checking for $ac_func" >&5
14141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_var+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 cat >conftest.
$ac_ext <<_ACEOF
14148 cat confdefs.h
>>conftest.
$ac_ext
14149 cat >>conftest.
$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14153 #define $ac_func innocuous_$ac_func
14155 /* System header to define __stub macros and hopefully few prototypes,
14156 which can conflict with char $ac_func (); below.
14157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158 <limits.h> exists even on freestanding compilers. */
14161 # include <limits.h>
14163 # include <assert.h>
14168 /* Override any gcc2 internal prototype to avoid an error. */
14173 /* We use char because int might match the return type of a gcc2
14174 builtin and then its argument prototype would still apply. */
14176 /* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14182 char (*f) () = $ac_func;
14191 return f != $ac_func;
14196 rm -f conftest.
$ac_objext conftest
$ac_exeext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>conftest.er1
14200 grep -v '^ *+' conftest.er1
>conftest.err
14202 cat conftest.err
>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try
='test -s conftest$ac_exeext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 eval "$as_ac_var=yes"
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.
$ac_ext >&5
14222 eval "$as_ac_var=no"
14224 rm -f conftest.err conftest.
$ac_objext \
14225 conftest
$ac_exeext conftest.
$ac_ext
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14229 if test `eval echo '${'$as_ac_var'}'` = yes; then
14230 cat >>confdefs.h
<<_ACEOF
14231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14238 for ac_header
in maillock.h
14240 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14242 echo "$as_me:$LINENO: checking for $ac_header" >&5
14243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14250 # Is the header compilable?
14251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14253 cat >conftest.
$ac_ext <<_ACEOF
14256 cat confdefs.h
>>conftest.
$ac_ext
14257 cat >>conftest.
$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 $ac_includes_default
14260 #include <$ac_header>
14262 rm -f conftest.
$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>conftest.er1
14266 grep -v '^ *+' conftest.er1
>conftest.err
14268 cat conftest.err
>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; } &&
14277 { ac_try
='test -s conftest.$ac_objext'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }; then
14283 ac_header_compiler
=yes
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.
$ac_ext >&5
14288 ac_header_compiler
=no
14290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14292 echo "${ECHO_T}$ac_header_compiler" >&6
14294 # Is the header present?
14295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14297 cat >conftest.
$ac_ext <<_ACEOF
14300 cat confdefs.h
>>conftest.
$ac_ext
14301 cat >>conftest.
$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <$ac_header>
14305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14306 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14308 grep -v '^ *+' conftest.er1
>conftest.err
14310 cat conftest.err
>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } >/dev
/null
; then
14313 if test -s conftest.err
; then
14314 ac_cpp_err
=$ac_c_preproc_warn_flag
14315 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14322 if test -z "$ac_cpp_err"; then
14323 ac_header_preproc
=yes
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.
$ac_ext >&5
14328 ac_header_preproc
=no
14330 rm -f conftest.err conftest.
$ac_ext
14331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6
14334 # So? What about this header?
14335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14341 ac_header_preproc
=yes
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14358 ## ------------------------------------------ ##
14359 ## Report this to the AC_PACKAGE_NAME lists. ##
14360 ## ------------------------------------------ ##
14363 sed "s/^/$as_me: WARNING: /" >&2
14366 echo "$as_me:$LINENO: checking for $ac_header" >&5
14367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 eval "$as_ac_Header=\$ac_header_preproc"
14373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14378 cat >>confdefs.h
<<_ACEOF
14379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14455 for ac_func
in gethostname getdomainname dup2 \
14456 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14457 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14458 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14459 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14460 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14461 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14462 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14463 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14465 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14466 echo "$as_me:$LINENO: checking for $ac_func" >&5
14467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14468 if eval "test \"\${$as_ac_var+set}\" = set"; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 cat >conftest.
$ac_ext <<_ACEOF
14474 cat confdefs.h
>>conftest.
$ac_ext
14475 cat >>conftest.
$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14479 #define $ac_func innocuous_$ac_func
14481 /* System header to define __stub macros and hopefully few prototypes,
14482 which can conflict with char $ac_func (); below.
14483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14484 <limits.h> exists even on freestanding compilers. */
14487 # include <limits.h>
14489 # include <assert.h>
14494 /* Override any gcc2 internal prototype to avoid an error. */
14499 /* We use char because int might match the return type of a gcc2
14500 builtin and then its argument prototype would still apply. */
14502 /* The GNU C library defines this for functions which it implements
14503 to always fail with ENOSYS. Some functions are actually named
14504 something starting with __ and the normal name is an alias. */
14505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14508 char (*f) () = $ac_func;
14517 return f != $ac_func;
14522 rm -f conftest.
$ac_objext conftest
$ac_exeext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14524 (eval $ac_link) 2>conftest.er1
14526 grep -v '^ *+' conftest.er1
>conftest.err
14528 cat conftest.err
>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try
='test -s conftest$ac_exeext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 eval "$as_ac_var=yes"
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.
$ac_ext >&5
14548 eval "$as_ac_var=no"
14550 rm -f conftest.err conftest.
$ac_objext \
14551 conftest
$ac_exeext conftest.
$ac_ext
14553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14555 if test `eval echo '${'$as_ac_var'}'` = yes; then
14556 cat >>confdefs.h
<<_ACEOF
14557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14565 for ac_header
in sys
/un.h
14567 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14569 echo "$as_me:$LINENO: checking for $ac_header" >&5
14570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14577 # Is the header compilable?
14578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14580 cat >conftest.
$ac_ext <<_ACEOF
14583 cat confdefs.h
>>conftest.
$ac_ext
14584 cat >>conftest.
$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 $ac_includes_default
14587 #include <$ac_header>
14589 rm -f conftest.
$ac_objext
14590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14591 (eval $ac_compile) 2>conftest.er1
14593 grep -v '^ *+' conftest.er1
>conftest.err
14595 cat conftest.err
>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
14610 ac_header_compiler
=yes
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.
$ac_ext >&5
14615 ac_header_compiler
=no
14617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14619 echo "${ECHO_T}$ac_header_compiler" >&6
14621 # Is the header present?
14622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14624 cat >conftest.
$ac_ext <<_ACEOF
14627 cat confdefs.h
>>conftest.
$ac_ext
14628 cat >>conftest.
$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 #include <$ac_header>
14632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14633 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14635 grep -v '^ *+' conftest.er1
>conftest.err
14637 cat conftest.err
>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } >/dev
/null
; then
14640 if test -s conftest.err
; then
14641 ac_cpp_err
=$ac_c_preproc_warn_flag
14642 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14649 if test -z "$ac_cpp_err"; then
14650 ac_header_preproc
=yes
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.
$ac_ext >&5
14655 ac_header_preproc
=no
14657 rm -f conftest.err conftest.
$ac_ext
14658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14659 echo "${ECHO_T}$ac_header_preproc" >&6
14661 # So? What about this header?
14662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14668 ac_header_preproc
=yes
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14685 ## ------------------------------------------ ##
14686 ## Report this to the AC_PACKAGE_NAME lists. ##
14687 ## ------------------------------------------ ##
14690 sed "s/^/$as_me: WARNING: /" >&2
14693 echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 eval "$as_ac_Header=\$ac_header_preproc"
14700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14705 cat >>confdefs.h
<<_ACEOF
14706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14717 for ac_header
in stdlib.h sys
/time.h unistd.h
14719 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14721 echo "$as_me:$LINENO: checking for $ac_header" >&5
14722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14729 # Is the header compilable?
14730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14732 cat >conftest.
$ac_ext <<_ACEOF
14735 cat confdefs.h
>>conftest.
$ac_ext
14736 cat >>conftest.
$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 $ac_includes_default
14739 #include <$ac_header>
14741 rm -f conftest.
$ac_objext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>conftest.er1
14745 grep -v '^ *+' conftest.er1
>conftest.err
14747 cat conftest.err
>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try
='test -s conftest.$ac_objext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_header_compiler
=yes
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.
$ac_ext >&5
14767 ac_header_compiler
=no
14769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771 echo "${ECHO_T}$ac_header_compiler" >&6
14773 # Is the header present?
14774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14776 cat >conftest.
$ac_ext <<_ACEOF
14779 cat confdefs.h
>>conftest.
$ac_ext
14780 cat >>conftest.
$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 #include <$ac_header>
14784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14787 grep -v '^ *+' conftest.er1
>conftest.err
14789 cat conftest.err
>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } >/dev
/null
; then
14792 if test -s conftest.err
; then
14793 ac_cpp_err
=$ac_c_preproc_warn_flag
14794 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14801 if test -z "$ac_cpp_err"; then
14802 ac_header_preproc
=yes
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.
$ac_ext >&5
14807 ac_header_preproc
=no
14809 rm -f conftest.err conftest.
$ac_ext
14810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14811 echo "${ECHO_T}$ac_header_preproc" >&6
14813 # So? What about this header?
14814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14820 ac_header_preproc
=yes
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14837 ## ------------------------------------------ ##
14838 ## Report this to the AC_PACKAGE_NAME lists. ##
14839 ## ------------------------------------------ ##
14842 sed "s/^/$as_me: WARNING: /" >&2
14845 echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 eval "$as_ac_Header=\$ac_header_preproc"
14852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14857 cat >>confdefs.h
<<_ACEOF
14858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14866 for ac_func
in alarm
14868 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14869 echo "$as_me:$LINENO: checking for $ac_func" >&5
14870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14871 if eval "test \"\${$as_ac_var+set}\" = set"; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 cat >conftest.
$ac_ext <<_ACEOF
14877 cat confdefs.h
>>conftest.
$ac_ext
14878 cat >>conftest.
$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14882 #define $ac_func innocuous_$ac_func
14884 /* System header to define __stub macros and hopefully few prototypes,
14885 which can conflict with char $ac_func (); below.
14886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14887 <limits.h> exists even on freestanding compilers. */
14890 # include <limits.h>
14892 # include <assert.h>
14897 /* Override any gcc2 internal prototype to avoid an error. */
14902 /* We use char because int might match the return type of a gcc2
14903 builtin and then its argument prototype would still apply. */
14905 /* The GNU C library defines this for functions which it implements
14906 to always fail with ENOSYS. Some functions are actually named
14907 something starting with __ and the normal name is an alias. */
14908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14911 char (*f) () = $ac_func;
14920 return f != $ac_func;
14925 rm -f conftest.
$ac_objext conftest
$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927 (eval $ac_link) 2>conftest.er1
14929 grep -v '^ *+' conftest.er1
>conftest.err
14931 cat conftest.err
>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try
='test -s conftest$ac_exeext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946 eval "$as_ac_var=yes"
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.
$ac_ext >&5
14951 eval "$as_ac_var=no"
14953 rm -f conftest.err conftest.
$ac_objext \
14954 conftest
$ac_exeext conftest.
$ac_ext
14956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14958 if test `eval echo '${'$as_ac_var'}'` = yes; then
14959 cat >>confdefs.h
<<_ACEOF
14960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14966 echo "$as_me:$LINENO: checking for working mktime" >&5
14967 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14968 if test "${ac_cv_func_working_mktime+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 if test "$cross_compiling" = yes; then
14972 ac_cv_func_working_mktime
=no
14974 cat >conftest.
$ac_ext <<_ACEOF
14977 cat confdefs.h
>>conftest.
$ac_ext
14978 cat >>conftest.
$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 /* Test program from Paul Eggert and Tony Leneis. */
14981 #if TIME_WITH_SYS_TIME
14982 # include <sys/time.h>
14985 # if HAVE_SYS_TIME_H
14986 # include <sys/time.h>
14993 # include <stdlib.h>
14997 # include <unistd.h>
15001 # define alarm(X) /* empty */
15004 /* Work around redefinition to rpl_putenv by other config tests. */
15007 static time_t time_t_max;
15008 static time_t time_t_min;
15010 /* Values we'll use to set the TZ environment variable. */
15011 static char *tz_strings[] = {
15012 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15013 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15015 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15017 /* Fail if mktime fails to convert a date in the spring-forward gap.
15018 Based on a problem report from Andreas Jaeger. */
15020 spring_forward_gap ()
15022 /* glibc (up to about 1998-10-07) failed this test. */
15025 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15026 instead of "TZ=America/Vancouver" in order to detect the bug even
15027 on systems that don't support the Olson extension, or don't have the
15028 full zoneinfo tables installed. */
15029 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15038 if (mktime (&tm) == (time_t)-1)
15047 if ((lt = localtime (&now)) && mktime (lt) != now)
15055 mktime_test1 (now);
15056 mktime_test1 ((time_t) (time_t_max - now));
15057 mktime_test1 ((time_t) (time_t_min + now));
15063 /* Based on code from Ariel Faigon. */
15073 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15083 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15084 now = mktime (&tm);
15085 if (now != (time_t) -1)
15087 struct tm *lt = localtime (&now);
15089 && lt->tm_year == tm.tm_year
15090 && lt->tm_mon == tm.tm_mon
15091 && lt->tm_mday == tm.tm_mday
15092 && lt->tm_hour == tm.tm_hour
15093 && lt->tm_min == tm.tm_min
15094 && lt->tm_sec == tm.tm_sec
15095 && lt->tm_yday == tm.tm_yday
15096 && lt->tm_wday == tm.tm_wday
15097 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15098 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15109 /* This test makes some buggy mktime implementations loop.
15110 Give up after 60 seconds; a mktime slower than that
15111 isn't worth using anyway. */
15114 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15117 if ((time_t) -1 < 0)
15118 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15120 delta = time_t_max / 997; /* a suitable prime number */
15121 for (i = 0; i < N_STRINGS; i++)
15124 putenv (tz_strings[i]);
15126 for (t = 0; t <= time_t_max - delta; t += delta)
15128 mktime_test ((time_t) 1);
15129 mktime_test ((time_t) (60 * 60));
15130 mktime_test ((time_t) (60 * 60 * 24));
15132 for (j = 1; 0 < j; j *= 2)
15134 bigtime_test (j - 1);
15137 spring_forward_gap ();
15141 rm -f conftest
$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_cv_func_working_mktime
=yes
15154 echo "$as_me: program exited with status $ac_status" >&5
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.
$ac_ext >&5
15158 ( exit $ac_status )
15159 ac_cv_func_working_mktime
=no
15161 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15164 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15165 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15166 if test $ac_cv_func_working_mktime = no
; then
15168 "mktime.$ac_objext" | \
15169 *" mktime.$ac_objext" | \
15170 "mktime.$ac_objext "* | \
15171 *" mktime.$ac_objext "* ) ;;
15172 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15177 if test "$ac_cv_func_working_mktime" = no
; then
15179 cat >>confdefs.h
<<\_ACEOF
15180 #define BROKEN_MKTIME 1
15185 ac_have_func
=no
# yes means we've found a way to get the load average.
15187 # Make sure getloadavg.c is where it belongs, at configure-time.
15188 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15189 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15190 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15191 { (exit 1); exit 1; }; }
15195 # Check for getloadavg, but be sure not to touch the cache variable.
15196 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15197 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15198 if test "${ac_cv_func_getloadavg+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 cat >conftest.
$ac_ext <<_ACEOF
15204 cat confdefs.h
>>conftest.
$ac_ext
15205 cat >>conftest.
$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15209 #define getloadavg innocuous_getloadavg
15211 /* System header to define __stub macros and hopefully few prototypes,
15212 which can conflict with char getloadavg (); below.
15213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15214 <limits.h> exists even on freestanding compilers. */
15217 # include <limits.h>
15219 # include <assert.h>
15224 /* Override any gcc2 internal prototype to avoid an error. */
15229 /* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */
15231 char getloadavg ();
15232 /* The GNU C library defines this for functions which it implements
15233 to always fail with ENOSYS. Some functions are actually named
15234 something starting with __ and the normal name is an alias. */
15235 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15238 char (*f) () = getloadavg;
15247 return f != getloadavg;
15252 rm -f conftest.
$ac_objext conftest
$ac_exeext
15253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15254 (eval $ac_link) 2>conftest.er1
15256 grep -v '^ *+' conftest.er1
>conftest.err
15258 cat conftest.err
>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try
='test -s conftest$ac_exeext'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 ac_cv_func_getloadavg
=yes
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.
$ac_ext >&5
15278 ac_cv_func_getloadavg
=no
15280 rm -f conftest.err conftest.
$ac_objext \
15281 conftest
$ac_exeext conftest.
$ac_ext
15283 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15284 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15285 if test $ac_cv_func_getloadavg = yes; then
15290 ) && ac_have_func
=yes
15292 # On HPUX9, an unprivileged user can get load averages through this function.
15294 for ac_func
in pstat_getdynamic
15296 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15297 echo "$as_me:$LINENO: checking for $ac_func" >&5
15298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_var+set}\" = set"; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 cat >conftest.
$ac_ext <<_ACEOF
15305 cat confdefs.h
>>conftest.
$ac_ext
15306 cat >>conftest.
$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15310 #define $ac_func innocuous_$ac_func
15312 /* System header to define __stub macros and hopefully few prototypes,
15313 which can conflict with char $ac_func (); below.
15314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15315 <limits.h> exists even on freestanding compilers. */
15318 # include <limits.h>
15320 # include <assert.h>
15325 /* Override any gcc2 internal prototype to avoid an error. */
15330 /* We use char because int might match the return type of a gcc2
15331 builtin and then its argument prototype would still apply. */
15333 /* The GNU C library defines this for functions which it implements
15334 to always fail with ENOSYS. Some functions are actually named
15335 something starting with __ and the normal name is an alias. */
15336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15339 char (*f) () = $ac_func;
15348 return f != $ac_func;
15353 rm -f conftest.
$ac_objext conftest
$ac_exeext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15355 (eval $ac_link) 2>conftest.er1
15357 grep -v '^ *+' conftest.er1
>conftest.err
15359 cat conftest.err
>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; } &&
15368 { ac_try
='test -s conftest$ac_exeext'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 eval "$as_ac_var=yes"
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.
$ac_ext >&5
15379 eval "$as_ac_var=no"
15381 rm -f conftest.err conftest.
$ac_objext \
15382 conftest
$ac_exeext conftest.
$ac_ext
15384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15386 if test `eval echo '${'$as_ac_var'}'` = yes; then
15387 cat >>confdefs.h
<<_ACEOF
15388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15395 # Solaris has libkstat which does not require root.
15397 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15398 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15399 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 ac_check_lib_save_LIBS
=$LIBS
15403 LIBS
="-lkstat $LIBS"
15404 cat >conftest.
$ac_ext <<_ACEOF
15407 cat confdefs.h
>>conftest.
$ac_ext
15408 cat >>conftest.
$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15411 /* Override any gcc2 internal prototype to avoid an error. */
15415 /* We use char because int might match the return type of a gcc2
15416 builtin and then its argument prototype would still apply. */
15417 char kstat_open ();
15426 rm -f conftest.
$ac_objext conftest
$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>conftest.er1
15430 grep -v '^ *+' conftest.er1
>conftest.err
15432 cat conftest.err
>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try
='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_cv_lib_kstat_kstat_open
=yes
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.
$ac_ext >&5
15452 ac_cv_lib_kstat_kstat_open
=no
15454 rm -f conftest.err conftest.
$ac_objext \
15455 conftest
$ac_exeext conftest.
$ac_ext
15456 LIBS
=$ac_check_lib_save_LIBS
15458 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15459 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15460 if test $ac_cv_lib_kstat_kstat_open = yes; then
15461 cat >>confdefs.h
<<_ACEOF
15462 #define HAVE_LIBKSTAT 1
15465 LIBS
="-lkstat $LIBS"
15469 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15471 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15472 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15473 # to get the right answer into the cache.
15474 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15475 if test $ac_have_func = no
; then
15476 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15477 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15478 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 ac_check_lib_save_LIBS
=$LIBS
15483 cat >conftest.
$ac_ext <<_ACEOF
15486 cat confdefs.h
>>conftest.
$ac_ext
15487 cat >>conftest.
$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15490 /* Override any gcc2 internal prototype to avoid an error. */
15494 /* We use char because int might match the return type of a gcc2
15495 builtin and then its argument prototype would still apply. */
15505 rm -f conftest.
$ac_objext conftest
$ac_exeext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507 (eval $ac_link) 2>conftest.er1
15509 grep -v '^ *+' conftest.er1
>conftest.err
15511 cat conftest.err
>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try
='test -s conftest$ac_exeext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_cv_lib_elf_elf_begin
=yes
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.
$ac_ext >&5
15531 ac_cv_lib_elf_elf_begin
=no
15533 rm -f conftest.err conftest.
$ac_objext \
15534 conftest
$ac_exeext conftest.
$ac_ext
15535 LIBS
=$ac_check_lib_save_LIBS
15537 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15538 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15539 if test $ac_cv_lib_elf_elf_begin = yes; then
15544 if test $ac_have_func = no
; then
15545 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15546 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15547 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 ac_check_lib_save_LIBS
=$LIBS
15552 cat >conftest.
$ac_ext <<_ACEOF
15555 cat confdefs.h
>>conftest.
$ac_ext
15556 cat >>conftest.
$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15559 /* Override any gcc2 internal prototype to avoid an error. */
15563 /* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15574 rm -f conftest.
$ac_objext conftest
$ac_exeext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15576 (eval $ac_link) 2>conftest.er1
15578 grep -v '^ *+' conftest.er1
>conftest.err
15580 cat conftest.err
>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try
='test -s conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_lib_kvm_kvm_open
=yes
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.
$ac_ext >&5
15600 ac_cv_lib_kvm_kvm_open
=no
15602 rm -f conftest.err conftest.
$ac_objext \
15603 conftest
$ac_exeext conftest.
$ac_ext
15604 LIBS
=$ac_check_lib_save_LIBS
15606 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15607 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15608 if test $ac_cv_lib_kvm_kvm_open = yes; then
15612 # Check for the 4.4BSD definition of getloadavg.
15613 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15614 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15615 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 ac_check_lib_save_LIBS
=$LIBS
15619 LIBS
="-lutil $LIBS"
15620 cat >conftest.
$ac_ext <<_ACEOF
15623 cat confdefs.h
>>conftest.
$ac_ext
15624 cat >>conftest.
$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any gcc2 internal prototype to avoid an error. */
15631 /* We use char because int might match the return type of a gcc2
15632 builtin and then its argument prototype would still apply. */
15633 char getloadavg ();
15642 rm -f conftest.
$ac_objext conftest
$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644 (eval $ac_link) 2>conftest.er1
15646 grep -v '^ *+' conftest.er1
>conftest.err
15648 cat conftest.err
>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try
='test -s conftest$ac_exeext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_cv_lib_util_getloadavg
=yes
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.
$ac_ext >&5
15668 ac_cv_lib_util_getloadavg
=no
15670 rm -f conftest.err conftest.
$ac_objext \
15671 conftest
$ac_exeext conftest.
$ac_ext
15672 LIBS
=$ac_check_lib_save_LIBS
15674 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15675 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15676 if test $ac_cv_lib_util_getloadavg = yes; then
15677 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15682 if test $ac_have_func = no
; then
15683 # There is a commonly available library for RS/6000 AIX.
15684 # Since it is not a standard part of AIX, it might be installed locally.
15685 ac_getloadavg_LIBS
=$LIBS
15686 LIBS
="-L/usr/local/lib $LIBS"
15687 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15688 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15689 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 ac_check_lib_save_LIBS
=$LIBS
15693 LIBS
="-lgetloadavg $LIBS"
15694 cat >conftest.
$ac_ext <<_ACEOF
15697 cat confdefs.h
>>conftest.
$ac_ext
15698 cat >>conftest.
$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15701 /* Override any gcc2 internal prototype to avoid an error. */
15705 /* We use char because int might match the return type of a gcc2
15706 builtin and then its argument prototype would still apply. */
15707 char getloadavg ();
15716 rm -f conftest.
$ac_objext conftest
$ac_exeext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>conftest.er1
15720 grep -v '^ *+' conftest.er1
>conftest.err
15722 cat conftest.err
>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try
='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_getloadavg_getloadavg
=yes
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.
$ac_ext >&5
15742 ac_cv_lib_getloadavg_getloadavg
=no
15744 rm -f conftest.err conftest.
$ac_objext \
15745 conftest
$ac_exeext conftest.
$ac_ext
15746 LIBS
=$ac_check_lib_save_LIBS
15748 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15749 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15750 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15751 LIBS
="-lgetloadavg $LIBS"
15753 LIBS
=$ac_getloadavg_LIBS
15758 # Make sure it is really in the library, if we think we found it,
15759 # otherwise set up the replacement function.
15761 for ac_func
in getloadavg
15763 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15764 echo "$as_me:$LINENO: checking for $ac_func" >&5
15765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15766 if eval "test \"\${$as_ac_var+set}\" = set"; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 cat >conftest.
$ac_ext <<_ACEOF
15772 cat confdefs.h
>>conftest.
$ac_ext
15773 cat >>conftest.
$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15777 #define $ac_func innocuous_$ac_func
15779 /* System header to define __stub macros and hopefully few prototypes,
15780 which can conflict with char $ac_func (); below.
15781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782 <limits.h> exists even on freestanding compilers. */
15785 # include <limits.h>
15787 # include <assert.h>
15792 /* Override any gcc2 internal prototype to avoid an error. */
15797 /* We use char because int might match the return type of a gcc2
15798 builtin and then its argument prototype would still apply. */
15800 /* The GNU C library defines this for functions which it implements
15801 to always fail with ENOSYS. Some functions are actually named
15802 something starting with __ and the normal name is an alias. */
15803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15806 char (*f) () = $ac_func;
15815 return f != $ac_func;
15820 rm -f conftest.
$ac_objext conftest
$ac_exeext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15822 (eval $ac_link) 2>conftest.er1
15824 grep -v '^ *+' conftest.er1
>conftest.err
15826 cat conftest.err
>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try
='test -s conftest$ac_exeext'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 eval "$as_ac_var=yes"
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.
$ac_ext >&5
15846 eval "$as_ac_var=no"
15848 rm -f conftest.err conftest.
$ac_objext \
15849 conftest
$ac_exeext conftest.
$ac_ext
15851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15853 if test `eval echo '${'$as_ac_var'}'` = yes; then
15854 cat >>confdefs.h
<<_ACEOF
15855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15860 "getloadavg.$ac_objext" | \
15861 *" getloadavg.$ac_objext" | \
15862 "getloadavg.$ac_objext "* | \
15863 *" getloadavg.$ac_objext "* ) ;;
15864 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15868 cat >>confdefs.h
<<\_ACEOF
15869 #define C_GETLOADAVG 1
15872 # Figure out what our getloadavg.c needs.
15874 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15875 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15876 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15877 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15881 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15883 # Is the header compilable?
15884 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15885 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15886 cat >conftest.
$ac_ext <<_ACEOF
15889 cat confdefs.h
>>conftest.
$ac_ext
15890 cat >>conftest.
$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <sys/dg_sys_info.h>
15895 rm -f conftest.
$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897 (eval $ac_compile) 2>conftest.er1
15899 grep -v '^ *+' conftest.er1
>conftest.err
15901 cat conftest.err
>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try
='test -s conftest.$ac_objext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_header_compiler
=yes
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.
$ac_ext >&5
15921 ac_header_compiler
=no
15923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6
15927 # Is the header present?
15928 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15929 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15930 cat >conftest.
$ac_ext <<_ACEOF
15933 cat confdefs.h
>>conftest.
$ac_ext
15934 cat >>conftest.
$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <sys/dg_sys_info.h>
15938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15941 grep -v '^ *+' conftest.er1
>conftest.err
15943 cat conftest.err
>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } >/dev
/null
; then
15946 if test -s conftest.err
; then
15947 ac_cpp_err
=$ac_c_preproc_warn_flag
15948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15955 if test -z "$ac_cpp_err"; then
15956 ac_header_preproc
=yes
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.
$ac_ext >&5
15961 ac_header_preproc
=no
15963 rm -f conftest.err conftest.
$ac_ext
15964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15965 echo "${ECHO_T}$ac_header_preproc" >&6
15967 # So? What about this header?
15968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15970 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15971 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15973 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15974 ac_header_preproc
=yes
15977 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15978 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15980 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15982 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15984 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15986 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15988 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15991 ## ------------------------------------------ ##
15992 ## Report this to the AC_PACKAGE_NAME lists. ##
15993 ## ------------------------------------------ ##
15996 sed "s/^/$as_me: WARNING: /" >&2
15999 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16000 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16001 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16006 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16007 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16010 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16013 cat >>confdefs.h
<<\_ACEOF
16018 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16019 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16020 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 ac_check_lib_save_LIBS
=$LIBS
16025 cat >conftest.
$ac_ext <<_ACEOF
16028 cat confdefs.h
>>conftest.
$ac_ext
16029 cat >>conftest.
$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16032 /* Override any gcc2 internal prototype to avoid an error. */
16036 /* We use char because int might match the return type of a gcc2
16037 builtin and then its argument prototype would still apply. */
16038 char dg_sys_info ();
16047 rm -f conftest.
$ac_objext conftest
$ac_exeext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 (eval $ac_link) 2>conftest.er1
16051 grep -v '^ *+' conftest.er1
>conftest.err
16053 cat conftest.err
>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } &&
16056 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; } &&
16062 { ac_try
='test -s conftest$ac_exeext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_cv_lib_dgc_dg_sys_info
=yes
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.
$ac_ext >&5
16073 ac_cv_lib_dgc_dg_sys_info
=no
16075 rm -f conftest.err conftest.
$ac_objext \
16076 conftest
$ac_exeext conftest.
$ac_ext
16077 LIBS
=$ac_check_lib_save_LIBS
16079 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16080 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16081 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16082 cat >>confdefs.h
<<_ACEOF
16083 #define HAVE_LIBDGC 1
16094 if test "${ac_cv_header_locale_h+set}" = set; then
16095 echo "$as_me:$LINENO: checking for locale.h" >&5
16096 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16097 if test "${ac_cv_header_locale_h+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16101 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16103 # Is the header compilable?
16104 echo "$as_me:$LINENO: checking locale.h usability" >&5
16105 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16106 cat >conftest.
$ac_ext <<_ACEOF
16109 cat confdefs.h
>>conftest.
$ac_ext
16110 cat >>conftest.
$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 $ac_includes_default
16113 #include <locale.h>
16115 rm -f conftest.
$ac_objext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117 (eval $ac_compile) 2>conftest.er1
16119 grep -v '^ *+' conftest.er1
>conftest.err
16121 cat conftest.err
>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try
='test -s conftest.$ac_objext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_header_compiler
=yes
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.
$ac_ext >&5
16141 ac_header_compiler
=no
16143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6
16147 # Is the header present?
16148 echo "$as_me:$LINENO: checking locale.h presence" >&5
16149 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16150 cat >conftest.
$ac_ext <<_ACEOF
16153 cat confdefs.h
>>conftest.
$ac_ext
16154 cat >>conftest.
$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <locale.h>
16158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16159 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16161 grep -v '^ *+' conftest.er1
>conftest.err
16163 cat conftest.err
>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } >/dev
/null
; then
16166 if test -s conftest.err
; then
16167 ac_cpp_err
=$ac_c_preproc_warn_flag
16168 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16175 if test -z "$ac_cpp_err"; then
16176 ac_header_preproc
=yes
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.
$ac_ext >&5
16181 ac_header_preproc
=no
16183 rm -f conftest.err conftest.
$ac_ext
16184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16185 echo "${ECHO_T}$ac_header_preproc" >&6
16187 # So? What about this header?
16188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16191 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16193 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16194 ac_header_preproc
=yes
16197 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16198 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16200 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16201 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16202 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16204 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16206 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16207 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16208 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16211 ## ------------------------------------------ ##
16212 ## Report this to the AC_PACKAGE_NAME lists. ##
16213 ## ------------------------------------------ ##
16216 sed "s/^/$as_me: WARNING: /" >&2
16219 echo "$as_me:$LINENO: checking for locale.h" >&5
16220 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16221 if test "${ac_cv_header_locale_h+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 ac_cv_header_locale_h
=$ac_header_preproc
16226 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16227 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16233 for ac_func
in setlocale
16235 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16236 echo "$as_me:$LINENO: checking for $ac_func" >&5
16237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16238 if eval "test \"\${$as_ac_var+set}\" = set"; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 cat >conftest.
$ac_ext <<_ACEOF
16244 cat confdefs.h
>>conftest.
$ac_ext
16245 cat >>conftest.
$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16249 #define $ac_func innocuous_$ac_func
16251 /* System header to define __stub macros and hopefully few prototypes,
16252 which can conflict with char $ac_func (); below.
16253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16254 <limits.h> exists even on freestanding compilers. */
16257 # include <limits.h>
16259 # include <assert.h>
16264 /* Override any gcc2 internal prototype to avoid an error. */
16269 /* We use char because int might match the return type of a gcc2
16270 builtin and then its argument prototype would still apply. */
16272 /* The GNU C library defines this for functions which it implements
16273 to always fail with ENOSYS. Some functions are actually named
16274 something starting with __ and the normal name is an alias. */
16275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16278 char (*f) () = $ac_func;
16287 return f != $ac_func;
16292 rm -f conftest.
$ac_objext conftest
$ac_exeext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16294 (eval $ac_link) 2>conftest.er1
16296 grep -v '^ *+' conftest.er1
>conftest.err
16298 cat conftest.err
>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try
='test -s conftest$ac_exeext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 eval "$as_ac_var=yes"
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.
$ac_ext >&5
16318 eval "$as_ac_var=no"
16320 rm -f conftest.err conftest.
$ac_objext \
16321 conftest
$ac_exeext conftest.
$ac_ext
16323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16325 if test `eval echo '${'$as_ac_var'}'` = yes; then
16326 cat >>confdefs.h
<<_ACEOF
16327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16334 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16335 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16336 # Irix 4.0.5F has the header but not the library.
16337 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16340 cat >>confdefs.h
<<\_ACEOF
16346 if test $ac_have_func = no
; then
16347 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16348 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16349 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16350 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16354 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16356 # Is the header compilable?
16357 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16358 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16359 cat >conftest.
$ac_ext <<_ACEOF
16362 cat confdefs.h
>>conftest.
$ac_ext
16363 cat >>conftest.
$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 $ac_includes_default
16366 #include <inq_stats/cpustats.h>
16368 rm -f conftest.
$ac_objext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16370 (eval $ac_compile) 2>conftest.er1
16372 grep -v '^ *+' conftest.er1
>conftest.err
16374 cat conftest.err
>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try
='test -s conftest.$ac_objext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_header_compiler
=yes
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.
$ac_ext >&5
16394 ac_header_compiler
=no
16396 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16398 echo "${ECHO_T}$ac_header_compiler" >&6
16400 # Is the header present?
16401 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16402 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16403 cat >conftest.
$ac_ext <<_ACEOF
16406 cat confdefs.h
>>conftest.
$ac_ext
16407 cat >>conftest.
$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 #include <inq_stats/cpustats.h>
16411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16412 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16414 grep -v '^ *+' conftest.er1
>conftest.err
16416 cat conftest.err
>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } >/dev
/null
; then
16419 if test -s conftest.err
; then
16420 ac_cpp_err
=$ac_c_preproc_warn_flag
16421 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16428 if test -z "$ac_cpp_err"; then
16429 ac_header_preproc
=yes
16431 echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.
$ac_ext >&5
16434 ac_header_preproc
=no
16436 rm -f conftest.err conftest.
$ac_ext
16437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6
16440 # So? What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16443 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc
=yes
16450 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16464 ## ------------------------------------------ ##
16465 ## Report this to the AC_PACKAGE_NAME lists. ##
16466 ## ------------------------------------------ ##
16469 sed "s/^/$as_me: WARNING: /" >&2
16472 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16473 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16474 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16479 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16480 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16483 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16486 cat >>confdefs.h
<<\_ACEOF
16491 cat >>confdefs.h
<<\_ACEOF
16500 if test $ac_have_func = no
; then
16501 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16502 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16503 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16504 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16508 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16510 # Is the header compilable?
16511 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16512 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16513 cat >conftest.
$ac_ext <<_ACEOF
16516 cat confdefs.h
>>conftest.
$ac_ext
16517 cat >>conftest.
$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 $ac_includes_default
16520 #include <sys/cpustats.h>
16522 rm -f conftest.
$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524 (eval $ac_compile) 2>conftest.er1
16526 grep -v '^ *+' conftest.er1
>conftest.err
16528 cat conftest.err
>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
16531 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; } &&
16537 { ac_try
='test -s conftest.$ac_objext'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_header_compiler
=yes
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.
$ac_ext >&5
16548 ac_header_compiler
=no
16550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 echo "${ECHO_T}$ac_header_compiler" >&6
16554 # Is the header present?
16555 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16556 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16557 cat >conftest.
$ac_ext <<_ACEOF
16560 cat confdefs.h
>>conftest.
$ac_ext
16561 cat >>conftest.
$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <sys/cpustats.h>
16565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16566 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16568 grep -v '^ *+' conftest.er1
>conftest.err
16570 cat conftest.err
>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } >/dev
/null
; then
16573 if test -s conftest.err
; then
16574 ac_cpp_err
=$ac_c_preproc_warn_flag
16575 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16582 if test -z "$ac_cpp_err"; then
16583 ac_header_preproc
=yes
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.
$ac_ext >&5
16588 ac_header_preproc
=no
16590 rm -f conftest.err conftest.
$ac_ext
16591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16592 echo "${ECHO_T}$ac_header_preproc" >&6
16594 # So? What about this header?
16595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16597 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16598 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16599 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16600 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16601 ac_header_preproc
=yes
16604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16605 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16607 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16609 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16611 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16613 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16615 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16618 ## ------------------------------------------ ##
16619 ## Report this to the AC_PACKAGE_NAME lists. ##
16620 ## ------------------------------------------ ##
16623 sed "s/^/$as_me: WARNING: /" >&2
16626 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16627 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16628 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16633 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16634 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16637 if test $ac_cv_header_sys_cpustats_h = yes; then
16638 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16647 if test $ac_have_func = no
; then
16649 for ac_header
in mach
/mach.h
16651 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16653 echo "$as_me:$LINENO: checking for $ac_header" >&5
16654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16661 # Is the header compilable?
16662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16664 cat >conftest.
$ac_ext <<_ACEOF
16667 cat confdefs.h
>>conftest.
$ac_ext
16668 cat >>conftest.
$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16671 #include <$ac_header>
16673 rm -f conftest.
$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675 (eval $ac_compile) 2>conftest.er1
16677 grep -v '^ *+' conftest.er1
>conftest.err
16679 cat conftest.err
>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try
='test -s conftest.$ac_objext'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_header_compiler
=yes
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.
$ac_ext >&5
16699 ac_header_compiler
=no
16701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16703 echo "${ECHO_T}$ac_header_compiler" >&6
16705 # Is the header present?
16706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16708 cat >conftest.
$ac_ext <<_ACEOF
16711 cat confdefs.h
>>conftest.
$ac_ext
16712 cat >>conftest.
$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #include <$ac_header>
16716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16719 grep -v '^ *+' conftest.er1
>conftest.err
16721 cat conftest.err
>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } >/dev
/null
; then
16724 if test -s conftest.err
; then
16725 ac_cpp_err
=$ac_c_preproc_warn_flag
16726 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16733 if test -z "$ac_cpp_err"; then
16734 ac_header_preproc
=yes
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.
$ac_ext >&5
16739 ac_header_preproc
=no
16741 rm -f conftest.err conftest.
$ac_ext
16742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16743 echo "${ECHO_T}$ac_header_preproc" >&6
16745 # So? What about this header?
16746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16752 ac_header_preproc
=yes
16755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16769 ## ------------------------------------------ ##
16770 ## Report this to the AC_PACKAGE_NAME lists. ##
16771 ## ------------------------------------------ ##
16774 sed "s/^/$as_me: WARNING: /" >&2
16777 echo "$as_me:$LINENO: checking for $ac_header" >&5
16778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 eval "$as_ac_Header=\$ac_header_preproc"
16784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16789 cat >>confdefs.h
<<_ACEOF
16790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16800 for ac_header
in nlist.h
16802 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16804 echo "$as_me:$LINENO: checking for $ac_header" >&5
16805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16812 # Is the header compilable?
16813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16815 cat >conftest.
$ac_ext <<_ACEOF
16818 cat confdefs.h
>>conftest.
$ac_ext
16819 cat >>conftest.
$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16822 #include <$ac_header>
16824 rm -f conftest.
$ac_objext
16825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16826 (eval $ac_compile) 2>conftest.er1
16828 grep -v '^ *+' conftest.er1
>conftest.err
16830 cat conftest.err
>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try
='test -s conftest.$ac_objext'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_header_compiler
=yes
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.
$ac_ext >&5
16850 ac_header_compiler
=no
16852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16854 echo "${ECHO_T}$ac_header_compiler" >&6
16856 # Is the header present?
16857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16859 cat >conftest.
$ac_ext <<_ACEOF
16862 cat confdefs.h
>>conftest.
$ac_ext
16863 cat >>conftest.
$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <$ac_header>
16867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16870 grep -v '^ *+' conftest.er1
>conftest.err
16872 cat conftest.err
>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } >/dev
/null
; then
16875 if test -s conftest.err
; then
16876 ac_cpp_err
=$ac_c_preproc_warn_flag
16877 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16884 if test -z "$ac_cpp_err"; then
16885 ac_header_preproc
=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.
$ac_ext >&5
16890 ac_header_preproc
=no
16892 rm -f conftest.err conftest.
$ac_ext
16893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16894 echo "${ECHO_T}$ac_header_preproc" >&6
16896 # So? What about this header?
16897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16903 ac_header_preproc
=yes
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16920 ## ------------------------------------------ ##
16921 ## Report this to the AC_PACKAGE_NAME lists. ##
16922 ## ------------------------------------------ ##
16925 sed "s/^/$as_me: WARNING: /" >&2
16928 echo "$as_me:$LINENO: checking for $ac_header" >&5
16929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 eval "$as_ac_Header=\$ac_header_preproc"
16935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16940 cat >>confdefs.h
<<_ACEOF
16941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16943 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16944 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16945 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 cat >conftest.
$ac_ext <<_ACEOF
16951 cat confdefs.h
>>conftest.
$ac_ext
16952 cat >>conftest.
$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16959 static struct nlist ac_aggr;
16960 if (ac_aggr.n_un.n_name)
16966 rm -f conftest.
$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968 (eval $ac_compile) 2>conftest.er1
16970 grep -v '^ *+' conftest.er1
>conftest.err
16972 cat conftest.err
>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try
='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_member_struct_nlist_n_un_n_name
=yes
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.
$ac_ext >&5
16992 cat >conftest.
$ac_ext <<_ACEOF
16995 cat confdefs.h
>>conftest.
$ac_ext
16996 cat >>conftest.
$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
17003 static struct nlist ac_aggr;
17004 if (sizeof ac_aggr.n_un.n_name)
17010 rm -f conftest.
$ac_objext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17012 (eval $ac_compile) 2>conftest.er1
17014 grep -v '^ *+' conftest.er1
>conftest.err
17016 cat conftest.err
>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try
='test -s conftest.$ac_objext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_member_struct_nlist_n_un_n_name
=yes
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.
$ac_ext >&5
17036 ac_cv_member_struct_nlist_n_un_n_name
=no
17038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17043 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17044 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17046 cat >>confdefs.h
<<_ACEOF
17047 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17051 cat >>confdefs.h
<<\_ACEOF
17052 #define NLIST_NAME_UNION 1
17066 # Some definitions of getloadavg require that the program be installed setgid.
17067 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17068 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17069 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 cat >conftest.
$ac_ext <<_ACEOF
17075 cat confdefs.h
>>conftest.
$ac_ext
17076 cat >>conftest.
$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17079 #ifdef LDAV_PRIVILEGED
17080 Yowza Am I SETGID yet
17083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17084 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17085 ac_cv_func_getloadavg_setgid
=yes
17087 ac_cv_func_getloadavg_setgid
=no
17092 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17093 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17094 if test $ac_cv_func_getloadavg_setgid = yes; then
17097 cat >>confdefs.h
<<\_ACEOF
17098 #define GETLOADAVG_PRIVILEGED 1
17105 if test $ac_cv_func_getloadavg_setgid = yes; then
17106 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17107 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17108 if test "${ac_cv_group_kmem+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17112 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17113 # If we got an error (system does not support symlinks), try without -L.
17114 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17115 ac_cv_group_kmem
=`echo $ac_ls_output \
17116 | sed -ne 's/[ ][ ]*/ /g;
17117 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17121 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17122 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17123 KMEM_GROUP
=$ac_cv_group_kmem
17125 if test "x$ac_save_LIBS" = x
; then
17126 GETLOADAVG_LIBS
=$LIBS
17128 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17134 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17135 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17136 if test "${ac_cv_sys_largefile_source+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 ac_cv_sys_largefile_source
=no
17141 cat >conftest.
$ac_ext <<_ACEOF
17144 cat confdefs.h
>>conftest.
$ac_ext
17145 cat >>conftest.
$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17156 rm -f conftest.
$ac_objext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158 (eval $ac_compile) 2>conftest.er1
17160 grep -v '^ *+' conftest.er1
>conftest.err
17162 cat conftest.err
>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try
='test -s conftest.$ac_objext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.
$ac_ext >&5
17183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17184 cat >conftest.
$ac_ext <<_ACEOF
17187 cat confdefs.h
>>conftest.
$ac_ext
17188 cat >>conftest.
$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 #define _LARGEFILE_SOURCE 1
17200 rm -f conftest.
$ac_objext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17202 (eval $ac_compile) 2>conftest.er1
17204 grep -v '^ *+' conftest.er1
>conftest.err
17206 cat conftest.err
>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try
='test -s conftest.$ac_objext'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_sys_largefile_source
=1; break
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.
$ac_ext >&5
17227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17231 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17232 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17233 if test "$ac_cv_sys_largefile_source" != no
; then
17235 cat >>confdefs.h
<<_ACEOF
17236 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17242 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17243 # in glibc 2.1.3, but that breaks too many other things.
17244 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17245 echo "$as_me:$LINENO: checking for fseeko" >&5
17246 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17247 if test "${ac_cv_func_fseeko+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 cat >conftest.
$ac_ext <<_ACEOF
17253 cat confdefs.h
>>conftest.
$ac_ext
17254 cat >>conftest.
$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17260 return fseeko && fseeko (stdin, 0, 0);
17265 rm -f conftest.
$ac_objext conftest
$ac_exeext
17266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17267 (eval $ac_link) 2>conftest.er1
17269 grep -v '^ *+' conftest.er1
>conftest.err
17271 cat conftest.err
>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; } &&
17280 { ac_try
='test -s conftest$ac_exeext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_cv_func_fseeko
=yes
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.
$ac_ext >&5
17291 ac_cv_func_fseeko
=no
17293 rm -f conftest.err conftest.
$ac_objext \
17294 conftest
$ac_exeext conftest.
$ac_ext
17296 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17297 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17298 if test $ac_cv_func_fseeko = yes; then
17300 cat >>confdefs.h
<<\_ACEOF
17301 #define HAVE_FSEEKO 1
17307 # Configure getopt.
17308 # getopt.m4 serial 10
17310 # The getopt module assume you want GNU getopt, with getopt_long etc,
17311 # rather than vanilla POSIX getopt. This means your your code should
17312 # always include <getopt.h> for the getopt prototypes.
17324 # Prerequisites of lib/getopt*.
17331 for ac_header
in getopt.h
17333 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17335 echo "$as_me:$LINENO: checking for $ac_header" >&5
17336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17343 # Is the header compilable?
17344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17346 cat >conftest.
$ac_ext <<_ACEOF
17349 cat confdefs.h
>>conftest.
$ac_ext
17350 cat >>conftest.
$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17352 $ac_includes_default
17353 #include <$ac_header>
17355 rm -f conftest.
$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357 (eval $ac_compile) 2>conftest.er1
17359 grep -v '^ *+' conftest.er1
>conftest.err
17361 cat conftest.err
>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try
='test -s conftest.$ac_objext'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_header_compiler
=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.
$ac_ext >&5
17381 ac_header_compiler
=no
17383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17385 echo "${ECHO_T}$ac_header_compiler" >&6
17387 # Is the header present?
17388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17390 cat >conftest.
$ac_ext <<_ACEOF
17393 cat confdefs.h
>>conftest.
$ac_ext
17394 cat >>conftest.
$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 #include <$ac_header>
17398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17401 grep -v '^ *+' conftest.er1
>conftest.err
17403 cat conftest.err
>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } >/dev
/null
; then
17406 if test -s conftest.err
; then
17407 ac_cpp_err
=$ac_c_preproc_warn_flag
17408 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17415 if test -z "$ac_cpp_err"; then
17416 ac_header_preproc
=yes
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.
$ac_ext >&5
17421 ac_header_preproc
=no
17423 rm -f conftest.err conftest.
$ac_ext
17424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17425 echo "${ECHO_T}$ac_header_preproc" >&6
17427 # So? What about this header?
17428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17434 ac_header_preproc
=yes
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17451 ## ------------------------------------------ ##
17452 ## Report this to the AC_PACKAGE_NAME lists. ##
17453 ## ------------------------------------------ ##
17456 sed "s/^/$as_me: WARNING: /" >&2
17459 echo "$as_me:$LINENO: checking for $ac_header" >&5
17460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 eval "$as_ac_Header=\$ac_header_preproc"
17466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17471 cat >>confdefs.h
<<_ACEOF
17472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17481 if test -z "$GETOPT_H"; then
17483 for ac_func
in getopt_long_only
17485 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486 echo "$as_me:$LINENO: checking for $ac_func" >&5
17487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17488 if eval "test \"\${$as_ac_var+set}\" = set"; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.
$ac_ext <<_ACEOF
17494 cat confdefs.h
>>conftest.
$ac_ext
17495 cat >>conftest.
$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499 #define $ac_func innocuous_$ac_func
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17507 # include <limits.h>
17509 # include <assert.h>
17514 /* Override any gcc2 internal prototype to avoid an error. */
17519 /* We use char because int might match the return type of a gcc2
17520 builtin and then its argument prototype would still apply. */
17522 /* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17528 char (*f) () = $ac_func;
17537 return f != $ac_func;
17542 rm -f conftest.
$ac_objext conftest
$ac_exeext
17543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17544 (eval $ac_link) 2>conftest.er1
17546 grep -v '^ *+' conftest.er1
>conftest.err
17548 cat conftest.err
>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try
='test -s conftest$ac_exeext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 eval "$as_ac_var=yes"
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.
$ac_ext >&5
17568 eval "$as_ac_var=no"
17570 rm -f conftest.err conftest.
$ac_objext \
17571 conftest
$ac_exeext conftest.
$ac_ext
17573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576 cat >>confdefs.h
<<_ACEOF
17577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17587 if test -z "$GETOPT_H"; then
17588 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17589 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17590 if test "${ac_cv_have_decl_optreset+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.
$ac_ext <<_ACEOF
17596 cat confdefs.h
>>conftest.
$ac_ext
17597 cat >>conftest.
$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 #include <getopt.h>
17605 char *p = (char *) optreset;
17612 rm -f conftest.
$ac_objext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17614 (eval $ac_compile) 2>conftest.er1
17616 grep -v '^ *+' conftest.er1
>conftest.err
17618 cat conftest.err
>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try
='test -s conftest.$ac_objext'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_cv_have_decl_optreset
=yes
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.
$ac_ext >&5
17638 ac_cv_have_decl_optreset
=no
17640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17642 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17643 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17644 if test $ac_cv_have_decl_optreset = yes; then
17650 if test -z "$GETOPT_H"; then
17651 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17652 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17653 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 if test "$cross_compiling" = yes; then
17657 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17658 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17659 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 cat >conftest.
$ac_ext <<_ACEOF
17665 cat confdefs.h
>>conftest.
$ac_ext
17666 cat >>conftest.
$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 #include <getopt.h>
17673 #ifndef getopt_clip
17674 char *p = (char *) getopt_clip;
17681 rm -f conftest.
$ac_objext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17683 (eval $ac_compile) 2>conftest.er1
17685 grep -v '^ *+' conftest.er1
>conftest.err
17687 cat conftest.err
>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } &&
17690 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try
='test -s conftest.$ac_objext'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 ac_cv_have_decl_getopt_clip
=yes
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.
$ac_ext >&5
17707 ac_cv_have_decl_getopt_clip
=no
17709 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17711 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17712 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17713 if test $ac_cv_have_decl_getopt_clip = yes; then
17714 gl_cv_func_gnu_getopt
=no
17716 gl_cv_func_gnu_getopt
=yes
17720 cat >conftest.
$ac_ext <<_ACEOF
17723 cat confdefs.h
>>conftest.
$ac_ext
17724 cat >>conftest.
$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <getopt.h>
17732 myargv[0] = "conftest";
17735 return getopt (2, myargv, "+a") != '?';
17741 rm -f conftest
$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 gl_cv_func_gnu_getopt
=yes
17754 echo "$as_me: program exited with status $ac_status" >&5
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.
$ac_ext >&5
17758 ( exit $ac_status )
17759 gl_cv_func_gnu_getopt
=no
17761 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17764 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17765 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17766 if test "$gl_cv_func_gnu_getopt" = "no"; then
17773 if test -n "$GETOPT_H"; then
17778 cat >>confdefs.h
<<\_ACEOF
17779 #define __GETOPT_PREFIX rpl_
17785 GETOPTOBJS
='getopt.o getopt1.o'
17792 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17793 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17794 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 # Use it with a single arg.
17798 cat >conftest.
$ac_ext <<_ACEOF
17801 cat confdefs.h
>>conftest.
$ac_ext
17802 cat >>conftest.
$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 $ac_includes_default
17813 rm -f conftest.
$ac_objext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815 (eval $ac_compile) 2>conftest.er1
17817 grep -v '^ *+' conftest.er1
>conftest.err
17819 cat conftest.err
>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try
='test -s conftest.$ac_objext'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_cv_func_getpgrp_void
=no
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.
$ac_ext >&5
17839 ac_cv_func_getpgrp_void
=yes
17841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17844 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17845 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17846 if test $ac_cv_func_getpgrp_void = yes; then
17848 cat >>confdefs.h
<<\_ACEOF
17849 #define GETPGRP_VOID 1
17856 for ac_func
in strftime
17858 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17859 echo "$as_me:$LINENO: checking for $ac_func" >&5
17860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17861 if eval "test \"\${$as_ac_var+set}\" = set"; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 cat >conftest.
$ac_ext <<_ACEOF
17867 cat confdefs.h
>>conftest.
$ac_ext
17868 cat >>conftest.
$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17872 #define $ac_func innocuous_$ac_func
17874 /* System header to define __stub macros and hopefully few prototypes,
17875 which can conflict with char $ac_func (); below.
17876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17877 <limits.h> exists even on freestanding compilers. */
17880 # include <limits.h>
17882 # include <assert.h>
17887 /* Override any gcc2 internal prototype to avoid an error. */
17892 /* We use char because int might match the return type of a gcc2
17893 builtin and then its argument prototype would still apply. */
17895 /* The GNU C library defines this for functions which it implements
17896 to always fail with ENOSYS. Some functions are actually named
17897 something starting with __ and the normal name is an alias. */
17898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17901 char (*f) () = $ac_func;
17910 return f != $ac_func;
17915 rm -f conftest.
$ac_objext conftest
$ac_exeext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17917 (eval $ac_link) 2>conftest.er1
17919 grep -v '^ *+' conftest.er1
>conftest.err
17921 cat conftest.err
>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try
='test -s conftest$ac_exeext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 eval "$as_ac_var=yes"
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.
$ac_ext >&5
17941 eval "$as_ac_var=no"
17943 rm -f conftest.err conftest.
$ac_objext \
17944 conftest
$ac_exeext conftest.
$ac_ext
17946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17948 if test `eval echo '${'$as_ac_var'}'` = yes; then
17949 cat >>confdefs.h
<<_ACEOF
17950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17954 # strftime is in -lintl on SCO UNIX.
17955 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17956 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17957 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 ac_check_lib_save_LIBS
=$LIBS
17961 LIBS
="-lintl $LIBS"
17962 cat >conftest.
$ac_ext <<_ACEOF
17965 cat confdefs.h
>>conftest.
$ac_ext
17966 cat >>conftest.
$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17969 /* Override any gcc2 internal prototype to avoid an error. */
17973 /* We use char because int might match the return type of a gcc2
17974 builtin and then its argument prototype would still apply. */
17984 rm -f conftest.
$ac_objext conftest
$ac_exeext
17985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17986 (eval $ac_link) 2>conftest.er1
17988 grep -v '^ *+' conftest.er1
>conftest.err
17990 cat conftest.err
>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try
='test -s conftest$ac_exeext'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_cv_lib_intl_strftime
=yes
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.
$ac_ext >&5
18010 ac_cv_lib_intl_strftime
=no
18012 rm -f conftest.err conftest.
$ac_objext \
18013 conftest
$ac_exeext conftest.
$ac_ext
18014 LIBS
=$ac_check_lib_save_LIBS
18016 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18017 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18018 if test $ac_cv_lib_intl_strftime = yes; then
18019 cat >>confdefs.h
<<\_ACEOF
18020 #define HAVE_STRFTIME 1
18023 LIBS
="-lintl $LIBS"
18032 for ac_func
in grantpt
18034 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18037 if eval "test \"\${$as_ac_var+set}\" = set"; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 cat >conftest.
$ac_ext <<_ACEOF
18043 cat confdefs.h
>>conftest.
$ac_ext
18044 cat >>conftest.
$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18048 #define $ac_func innocuous_$ac_func
18050 /* System header to define __stub macros and hopefully few prototypes,
18051 which can conflict with char $ac_func (); below.
18052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053 <limits.h> exists even on freestanding compilers. */
18056 # include <limits.h>
18058 # include <assert.h>
18063 /* Override any gcc2 internal prototype to avoid an error. */
18068 /* We use char because int might match the return type of a gcc2
18069 builtin and then its argument prototype would still apply. */
18071 /* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18077 char (*f) () = $ac_func;
18086 return f != $ac_func;
18091 rm -f conftest.
$ac_objext conftest
$ac_exeext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>conftest.er1
18095 grep -v '^ *+' conftest.er1
>conftest.err
18097 cat conftest.err
>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try
='test -s conftest$ac_exeext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 eval "$as_ac_var=yes"
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.
$ac_ext >&5
18117 eval "$as_ac_var=no"
18119 rm -f conftest.err conftest.
$ac_objext \
18120 conftest
$ac_exeext conftest.
$ac_ext
18122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18124 if test `eval echo '${'$as_ac_var'}'` = yes; then
18125 cat >>confdefs.h
<<_ACEOF
18126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18133 # PTY-related GNU extensions.
18135 for ac_func
in getpt
18137 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18138 echo "$as_me:$LINENO: checking for $ac_func" >&5
18139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18140 if eval "test \"\${$as_ac_var+set}\" = set"; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 cat >conftest.
$ac_ext <<_ACEOF
18146 cat confdefs.h
>>conftest.
$ac_ext
18147 cat >>conftest.
$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18151 #define $ac_func innocuous_$ac_func
18153 /* System header to define __stub macros and hopefully few prototypes,
18154 which can conflict with char $ac_func (); below.
18155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156 <limits.h> exists even on freestanding compilers. */
18159 # include <limits.h>
18161 # include <assert.h>
18166 /* Override any gcc2 internal prototype to avoid an error. */
18171 /* We use char because int might match the return type of a gcc2
18172 builtin and then its argument prototype would still apply. */
18174 /* The GNU C library defines this for functions which it implements
18175 to always fail with ENOSYS. Some functions are actually named
18176 something starting with __ and the normal name is an alias. */
18177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18180 char (*f) () = $ac_func;
18189 return f != $ac_func;
18194 rm -f conftest.
$ac_objext conftest
$ac_exeext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196 (eval $ac_link) 2>conftest.er1
18198 grep -v '^ *+' conftest.er1
>conftest.err
18200 cat conftest.err
>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; } &&
18209 { ac_try
='test -s conftest$ac_exeext'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 eval "$as_ac_var=yes"
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.
$ac_ext >&5
18220 eval "$as_ac_var=no"
18222 rm -f conftest.err conftest.
$ac_objext \
18223 conftest
$ac_exeext conftest.
$ac_ext
18225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18227 if test `eval echo '${'$as_ac_var'}'` = yes; then
18228 cat >>confdefs.h
<<_ACEOF
18229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18236 # Check this now, so that we will NOT find the above functions in ncurses.
18237 # That is because we have not set up to link ncurses in lib-src.
18238 # It's better to believe a function is not available
18239 # than to expect to find it in ncurses.
18241 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18242 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18243 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 ac_check_lib_save_LIBS
=$LIBS
18247 LIBS
="-lncurses $LIBS"
18248 cat >conftest.
$ac_ext <<_ACEOF
18251 cat confdefs.h
>>conftest.
$ac_ext
18252 cat >>conftest.
$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18255 /* Override any gcc2 internal prototype to avoid an error. */
18259 /* We use char because int might match the return type of a gcc2
18260 builtin and then its argument prototype would still apply. */
18270 rm -f conftest.
$ac_objext conftest
$ac_exeext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>conftest.er1
18274 grep -v '^ *+' conftest.er1
>conftest.err
18276 cat conftest.err
>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try
='test -s conftest$ac_exeext'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_lib_ncurses_tparm
=yes
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.
$ac_ext >&5
18296 ac_cv_lib_ncurses_tparm
=no
18298 rm -f conftest.err conftest.
$ac_objext \
18299 conftest
$ac_exeext conftest.
$ac_ext
18300 LIBS
=$ac_check_lib_save_LIBS
18302 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18303 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18304 if test $ac_cv_lib_ncurses_tparm = yes; then
18305 cat >>confdefs.h
<<_ACEOF
18306 #define HAVE_LIBNCURSES 1
18309 LIBS
="-lncurses $LIBS"
18314 # Do we need the Hesiod library to provide the support routines?
18315 if test "$with_hesiod" = yes ; then
18316 # Don't set $LIBS here -- see comments above.
18318 echo "$as_me:$LINENO: checking for res_send" >&5
18319 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18320 if test "${ac_cv_func_res_send+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 cat >conftest.
$ac_ext <<_ACEOF
18326 cat confdefs.h
>>conftest.
$ac_ext
18327 cat >>conftest.
$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18331 #define res_send innocuous_res_send
18333 /* System header to define __stub macros and hopefully few prototypes,
18334 which can conflict with char res_send (); below.
18335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18336 <limits.h> exists even on freestanding compilers. */
18339 # include <limits.h>
18341 # include <assert.h>
18346 /* Override any gcc2 internal prototype to avoid an error. */
18351 /* We use char because int might match the return type of a gcc2
18352 builtin and then its argument prototype would still apply. */
18354 /* The GNU C library defines this for functions which it implements
18355 to always fail with ENOSYS. Some functions are actually named
18356 something starting with __ and the normal name is an alias. */
18357 #if defined (__stub_res_send) || defined (__stub___res_send)
18360 char (*f) () = res_send;
18369 return f != res_send;
18374 rm -f conftest.
$ac_objext conftest
$ac_exeext
18375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18376 (eval $ac_link) 2>conftest.er1
18378 grep -v '^ *+' conftest.er1
>conftest.err
18380 cat conftest.err
>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
18383 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try
='test -s conftest$ac_exeext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_cv_func_res_send
=yes
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.
$ac_ext >&5
18400 ac_cv_func_res_send
=no
18402 rm -f conftest.err conftest.
$ac_objext \
18403 conftest
$ac_exeext conftest.
$ac_ext
18405 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18406 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18407 if test $ac_cv_func_res_send = yes; then
18410 echo "$as_me:$LINENO: checking for __res_send" >&5
18411 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18412 if test "${ac_cv_func___res_send+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 cat >conftest.
$ac_ext <<_ACEOF
18418 cat confdefs.h
>>conftest.
$ac_ext
18419 cat >>conftest.
$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18423 #define __res_send innocuous___res_send
18425 /* System header to define __stub macros and hopefully few prototypes,
18426 which can conflict with char __res_send (); below.
18427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18428 <limits.h> exists even on freestanding compilers. */
18431 # include <limits.h>
18433 # include <assert.h>
18438 /* Override any gcc2 internal prototype to avoid an error. */
18443 /* We use char because int might match the return type of a gcc2
18444 builtin and then its argument prototype would still apply. */
18445 char __res_send ();
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined (__stub___res_send) || defined (__stub_____res_send)
18452 char (*f) () = __res_send;
18461 return f != __res_send;
18466 rm -f conftest.
$ac_objext conftest
$ac_exeext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18468 (eval $ac_link) 2>conftest.er1
18470 grep -v '^ *+' conftest.er1
>conftest.err
18472 cat conftest.err
>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try
='test -s conftest$ac_exeext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_cv_func___res_send
=yes
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.
$ac_ext >&5
18492 ac_cv_func___res_send
=no
18494 rm -f conftest.err conftest.
$ac_objext \
18495 conftest
$ac_exeext conftest.
$ac_ext
18497 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18498 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18499 if test $ac_cv_func___res_send = yes; then
18502 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18503 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18504 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 ac_check_lib_save_LIBS
=$LIBS
18508 LIBS
="-lresolv $LIBS"
18509 cat >conftest.
$ac_ext <<_ACEOF
18512 cat confdefs.h
>>conftest.
$ac_ext
18513 cat >>conftest.
$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18516 /* Override any gcc2 internal prototype to avoid an error. */
18520 /* We use char because int might match the return type of a gcc2
18521 builtin and then its argument prototype would still apply. */
18531 rm -f conftest.
$ac_objext conftest
$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533 (eval $ac_link) 2>conftest.er1
18535 grep -v '^ *+' conftest.er1
>conftest.err
18537 cat conftest.err
>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try
='test -s conftest$ac_exeext'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 ac_cv_lib_resolv_res_send
=yes
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.
$ac_ext >&5
18557 ac_cv_lib_resolv_res_send
=no
18559 rm -f conftest.err conftest.
$ac_objext \
18560 conftest
$ac_exeext conftest.
$ac_ext
18561 LIBS
=$ac_check_lib_save_LIBS
18563 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18564 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18565 if test $ac_cv_lib_resolv_res_send = yes; then
18568 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18569 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18570 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 ac_check_lib_save_LIBS
=$LIBS
18574 LIBS
="-lresolv $LIBS"
18575 cat >conftest.
$ac_ext <<_ACEOF
18578 cat confdefs.h
>>conftest.
$ac_ext
18579 cat >>conftest.
$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18582 /* Override any gcc2 internal prototype to avoid an error. */
18586 /* We use char because int might match the return type of a gcc2
18587 builtin and then its argument prototype would still apply. */
18588 char __res_send ();
18597 rm -f conftest.
$ac_objext conftest
$ac_exeext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18599 (eval $ac_link) 2>conftest.er1
18601 grep -v '^ *+' conftest.er1
>conftest.err
18603 cat conftest.err
>&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try
='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_lib_resolv___res_send
=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.
$ac_ext >&5
18623 ac_cv_lib_resolv___res_send
=no
18625 rm -f conftest.err conftest.
$ac_objext \
18626 conftest
$ac_exeext conftest.
$ac_ext
18627 LIBS
=$ac_check_lib_save_LIBS
18629 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18630 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18631 if test $ac_cv_lib_resolv___res_send = yes; then
18641 if test "$resolv" = yes ; then
18644 cat >>confdefs.h
<<\_ACEOF
18645 #define HAVE_LIBRESOLV 1
18651 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18652 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18653 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 cat >conftest.
$ac_ext <<_ACEOF
18659 cat confdefs.h
>>conftest.
$ac_ext
18660 cat >>conftest.
$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18664 #define hes_getmailhost innocuous_hes_getmailhost
18666 /* System header to define __stub macros and hopefully few prototypes,
18667 which can conflict with char hes_getmailhost (); below.
18668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18669 <limits.h> exists even on freestanding compilers. */
18672 # include <limits.h>
18674 # include <assert.h>
18677 #undef hes_getmailhost
18679 /* Override any gcc2 internal prototype to avoid an error. */
18684 /* We use char because int might match the return type of a gcc2
18685 builtin and then its argument prototype would still apply. */
18686 char hes_getmailhost ();
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18693 char (*f) () = hes_getmailhost;
18702 return f != hes_getmailhost;
18707 rm -f conftest.
$ac_objext conftest
$ac_exeext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18709 (eval $ac_link) 2>conftest.er1
18711 grep -v '^ *+' conftest.er1
>conftest.err
18713 cat conftest.err
>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try
='test -s conftest$ac_exeext'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_cv_func_hes_getmailhost
=yes
18730 echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.
$ac_ext >&5
18733 ac_cv_func_hes_getmailhost
=no
18735 rm -f conftest.err conftest.
$ac_objext \
18736 conftest
$ac_exeext conftest.
$ac_ext
18738 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18739 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18740 if test $ac_cv_func_hes_getmailhost = yes; then
18743 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18744 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18745 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 ac_check_lib_save_LIBS
=$LIBS
18749 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18750 cat >conftest.
$ac_ext <<_ACEOF
18753 cat confdefs.h
>>conftest.
$ac_ext
18754 cat >>conftest.
$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18757 /* Override any gcc2 internal prototype to avoid an error. */
18761 /* We use char because int might match the return type of a gcc2
18762 builtin and then its argument prototype would still apply. */
18763 char hes_getmailhost ();
18767 hes_getmailhost ();
18772 rm -f conftest.
$ac_objext conftest
$ac_exeext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>conftest.er1
18776 grep -v '^ *+' conftest.er1
>conftest.err
18778 cat conftest.err
>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try
='test -s conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_lib_hesiod_hes_getmailhost
=yes
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.
$ac_ext >&5
18798 ac_cv_lib_hesiod_hes_getmailhost
=no
18800 rm -f conftest.err conftest.
$ac_objext \
18801 conftest
$ac_exeext conftest.
$ac_ext
18802 LIBS
=$ac_check_lib_save_LIBS
18804 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18805 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18806 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18808 cat >>confdefs.h
<<\_ACEOF
18809 #define HAVE_LIBHESIOD 1
18820 # These tell us which Kerberos-related libraries to use.
18821 if test "${with_kerberos+set}" = set; then
18823 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18824 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18825 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 ac_check_lib_save_LIBS
=$LIBS
18829 LIBS
="-lcom_err $LIBS"
18830 cat >conftest.
$ac_ext <<_ACEOF
18833 cat confdefs.h
>>conftest.
$ac_ext
18834 cat >>conftest.
$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18837 /* Override any gcc2 internal prototype to avoid an error. */
18841 /* We use char because int might match the return type of a gcc2
18842 builtin and then its argument prototype would still apply. */
18852 rm -f conftest.
$ac_objext conftest
$ac_exeext
18853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18854 (eval $ac_link) 2>conftest.er1
18856 grep -v '^ *+' conftest.er1
>conftest.err
18858 cat conftest.err
>&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try
='test -s conftest$ac_exeext'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_cv_lib_com_err_com_err
=yes
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.
$ac_ext >&5
18878 ac_cv_lib_com_err_com_err
=no
18880 rm -f conftest.err conftest.
$ac_objext \
18881 conftest
$ac_exeext conftest.
$ac_ext
18882 LIBS
=$ac_check_lib_save_LIBS
18884 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18885 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18886 if test $ac_cv_lib_com_err_com_err = yes; then
18887 cat >>confdefs.h
<<_ACEOF
18888 #define HAVE_LIBCOM_ERR 1
18891 LIBS
="-lcom_err $LIBS"
18896 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18897 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18898 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 ac_check_lib_save_LIBS
=$LIBS
18902 LIBS
="-lk5crypto $LIBS"
18903 cat >conftest.
$ac_ext <<_ACEOF
18906 cat confdefs.h
>>conftest.
$ac_ext
18907 cat >>conftest.
$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18910 /* Override any gcc2 internal prototype to avoid an error. */
18914 /* We use char because int might match the return type of a gcc2
18915 builtin and then its argument prototype would still apply. */
18916 char mit_des_cbc_encrypt ();
18920 mit_des_cbc_encrypt ();
18925 rm -f conftest.
$ac_objext conftest
$ac_exeext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18927 (eval $ac_link) 2>conftest.er1
18929 grep -v '^ *+' conftest.er1
>conftest.err
18931 cat conftest.err
>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try
='test -s conftest$ac_exeext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.
$ac_ext >&5
18951 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18953 rm -f conftest.err conftest.
$ac_objext \
18954 conftest
$ac_exeext conftest.
$ac_ext
18955 LIBS
=$ac_check_lib_save_LIBS
18957 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18958 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18959 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18960 cat >>confdefs.h
<<_ACEOF
18961 #define HAVE_LIBK5CRYPTO 1
18964 LIBS
="-lk5crypto $LIBS"
18969 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18970 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18971 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 ac_check_lib_save_LIBS
=$LIBS
18975 LIBS
="-lcrypto $LIBS"
18976 cat >conftest.
$ac_ext <<_ACEOF
18979 cat confdefs.h
>>conftest.
$ac_ext
18980 cat >>conftest.
$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18983 /* Override any gcc2 internal prototype to avoid an error. */
18987 /* We use char because int might match the return type of a gcc2
18988 builtin and then its argument prototype would still apply. */
18989 char mit_des_cbc_encrypt ();
18993 mit_des_cbc_encrypt ();
18998 rm -f conftest.
$ac_objext conftest
$ac_exeext
18999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19000 (eval $ac_link) 2>conftest.er1
19002 grep -v '^ *+' conftest.er1
>conftest.err
19004 cat conftest.err
>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
19007 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try
='test -s conftest$ac_exeext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.
$ac_ext >&5
19024 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19026 rm -f conftest.err conftest.
$ac_objext \
19027 conftest
$ac_exeext conftest.
$ac_ext
19028 LIBS
=$ac_check_lib_save_LIBS
19030 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19031 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19032 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19033 cat >>confdefs.h
<<_ACEOF
19034 #define HAVE_LIBCRYPTO 1
19037 LIBS
="-lcrypto $LIBS"
19042 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19043 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19044 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 ac_check_lib_save_LIBS
=$LIBS
19048 LIBS
="-lkrb5 $LIBS"
19049 cat >conftest.
$ac_ext <<_ACEOF
19052 cat confdefs.h
>>conftest.
$ac_ext
19053 cat >>conftest.
$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19056 /* Override any gcc2 internal prototype to avoid an error. */
19060 /* We use char because int might match the return type of a gcc2
19061 builtin and then its argument prototype would still apply. */
19062 char krb5_init_context ();
19066 krb5_init_context ();
19071 rm -f conftest.
$ac_objext conftest
$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073 (eval $ac_link) 2>conftest.er1
19075 grep -v '^ *+' conftest.er1
>conftest.err
19077 cat conftest.err
>&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; } &&
19086 { ac_try
='test -s conftest$ac_exeext'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 ac_cv_lib_krb5_krb5_init_context
=yes
19094 echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.
$ac_ext >&5
19097 ac_cv_lib_krb5_krb5_init_context
=no
19099 rm -f conftest.err conftest.
$ac_objext \
19100 conftest
$ac_exeext conftest.
$ac_ext
19101 LIBS
=$ac_check_lib_save_LIBS
19103 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19104 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19105 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19106 cat >>confdefs.h
<<_ACEOF
19107 #define HAVE_LIBKRB5 1
19110 LIBS
="-lkrb5 $LIBS"
19114 if test "${with_kerberos5+set}" != set; then
19116 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19117 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19118 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 ac_check_lib_save_LIBS
=$LIBS
19122 LIBS
="-ldes425 $LIBS"
19123 cat >conftest.
$ac_ext <<_ACEOF
19126 cat confdefs.h
>>conftest.
$ac_ext
19127 cat >>conftest.
$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19130 /* Override any gcc2 internal prototype to avoid an error. */
19134 /* We use char because int might match the return type of a gcc2
19135 builtin and then its argument prototype would still apply. */
19136 char des_cbc_encrypt ();
19140 des_cbc_encrypt ();
19145 rm -f conftest.
$ac_objext conftest
$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147 (eval $ac_link) 2>conftest.er1
19149 grep -v '^ *+' conftest.er1
>conftest.err
19151 cat conftest.err
>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try
='test -s conftest$ac_exeext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_lib_des425_des_cbc_encrypt
=yes
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.
$ac_ext >&5
19171 ac_cv_lib_des425_des_cbc_encrypt
=no
19173 rm -f conftest.err conftest.
$ac_objext \
19174 conftest
$ac_exeext conftest.
$ac_ext
19175 LIBS
=$ac_check_lib_save_LIBS
19177 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19178 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19179 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19180 cat >>confdefs.h
<<_ACEOF
19181 #define HAVE_LIBDES425 1
19184 LIBS
="-ldes425 $LIBS"
19188 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19189 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19190 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 ac_check_lib_save_LIBS
=$LIBS
19195 cat >conftest.
$ac_ext <<_ACEOF
19198 cat confdefs.h
>>conftest.
$ac_ext
19199 cat >>conftest.
$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19202 /* Override any gcc2 internal prototype to avoid an error. */
19206 /* We use char because int might match the return type of a gcc2
19207 builtin and then its argument prototype would still apply. */
19208 char des_cbc_encrypt ();
19212 des_cbc_encrypt ();
19217 rm -f conftest.
$ac_objext conftest
$ac_exeext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219 (eval $ac_link) 2>conftest.er1
19221 grep -v '^ *+' conftest.er1
>conftest.err
19223 cat conftest.err
>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try
='test -s conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_lib_des_des_cbc_encrypt
=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.
$ac_ext >&5
19243 ac_cv_lib_des_des_cbc_encrypt
=no
19245 rm -f conftest.err conftest.
$ac_objext \
19246 conftest
$ac_exeext conftest.
$ac_ext
19247 LIBS
=$ac_check_lib_save_LIBS
19249 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19250 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19251 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19252 cat >>confdefs.h
<<_ACEOF
19253 #define HAVE_LIBDES 1
19263 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19264 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19265 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 ac_check_lib_save_LIBS
=$LIBS
19269 LIBS
="-lkrb4 $LIBS"
19270 cat >conftest.
$ac_ext <<_ACEOF
19273 cat confdefs.h
>>conftest.
$ac_ext
19274 cat >>conftest.
$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19277 /* Override any gcc2 internal prototype to avoid an error. */
19281 /* We use char because int might match the return type of a gcc2
19282 builtin and then its argument prototype would still apply. */
19283 char krb_get_cred ();
19292 rm -f conftest.
$ac_objext conftest
$ac_exeext
19293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19294 (eval $ac_link) 2>conftest.er1
19296 grep -v '^ *+' conftest.er1
>conftest.err
19298 cat conftest.err
>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } &&
19301 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try
='test -s conftest$ac_exeext'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 ac_cv_lib_krb4_krb_get_cred
=yes
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.
$ac_ext >&5
19318 ac_cv_lib_krb4_krb_get_cred
=no
19320 rm -f conftest.err conftest.
$ac_objext \
19321 conftest
$ac_exeext conftest.
$ac_ext
19322 LIBS
=$ac_check_lib_save_LIBS
19324 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19325 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19326 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19327 cat >>confdefs.h
<<_ACEOF
19328 #define HAVE_LIBKRB4 1
19331 LIBS
="-lkrb4 $LIBS"
19335 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19336 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19337 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 ac_check_lib_save_LIBS
=$LIBS
19342 cat >conftest.
$ac_ext <<_ACEOF
19345 cat confdefs.h
>>conftest.
$ac_ext
19346 cat >>conftest.
$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19349 /* Override any gcc2 internal prototype to avoid an error. */
19353 /* We use char because int might match the return type of a gcc2
19354 builtin and then its argument prototype would still apply. */
19355 char krb_get_cred ();
19364 rm -f conftest.
$ac_objext conftest
$ac_exeext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19366 (eval $ac_link) 2>conftest.er1
19368 grep -v '^ *+' conftest.er1
>conftest.err
19370 cat conftest.err
>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try
='test -s conftest$ac_exeext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_lib_krb_krb_get_cred
=yes
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.
$ac_ext >&5
19390 ac_cv_lib_krb_krb_get_cred
=no
19392 rm -f conftest.err conftest.
$ac_objext \
19393 conftest
$ac_exeext conftest.
$ac_ext
19394 LIBS
=$ac_check_lib_save_LIBS
19396 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19397 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19398 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19399 cat >>confdefs.h
<<_ACEOF
19400 #define HAVE_LIBKRB 1
19411 if test "${with_kerberos5+set}" = set; then
19413 for ac_header
in krb5.h
19415 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19417 echo "$as_me:$LINENO: checking for $ac_header" >&5
19418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19425 # Is the header compilable?
19426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19428 cat >conftest.
$ac_ext <<_ACEOF
19431 cat confdefs.h
>>conftest.
$ac_ext
19432 cat >>conftest.
$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19434 $ac_includes_default
19435 #include <$ac_header>
19437 rm -f conftest.
$ac_objext
19438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19439 (eval $ac_compile) 2>conftest.er1
19441 grep -v '^ *+' conftest.er1
>conftest.err
19443 cat conftest.err
>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try
='test -s conftest.$ac_objext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_header_compiler
=yes
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.
$ac_ext >&5
19463 ac_header_compiler
=no
19465 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19467 echo "${ECHO_T}$ac_header_compiler" >&6
19469 # Is the header present?
19470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19472 cat >conftest.
$ac_ext <<_ACEOF
19475 cat confdefs.h
>>conftest.
$ac_ext
19476 cat >>conftest.
$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19478 #include <$ac_header>
19480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19481 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19483 grep -v '^ *+' conftest.er1
>conftest.err
19485 cat conftest.err
>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } >/dev
/null
; then
19488 if test -s conftest.err
; then
19489 ac_cpp_err
=$ac_c_preproc_warn_flag
19490 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19497 if test -z "$ac_cpp_err"; then
19498 ac_header_preproc
=yes
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.
$ac_ext >&5
19503 ac_header_preproc
=no
19505 rm -f conftest.err conftest.
$ac_ext
19506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19507 echo "${ECHO_T}$ac_header_preproc" >&6
19509 # So? What about this header?
19510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19516 ac_header_preproc
=yes
19519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19533 ## ------------------------------------------ ##
19534 ## Report this to the AC_PACKAGE_NAME lists. ##
19535 ## ------------------------------------------ ##
19538 sed "s/^/$as_me: WARNING: /" >&2
19541 echo "$as_me:$LINENO: checking for $ac_header" >&5
19542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 eval "$as_ac_Header=\$ac_header_preproc"
19548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19553 cat >>confdefs.h
<<_ACEOF
19554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19563 for ac_header
in des.h
19565 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19567 echo "$as_me:$LINENO: checking for $ac_header" >&5
19568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19575 # Is the header compilable?
19576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19578 cat >conftest.
$ac_ext <<_ACEOF
19581 cat confdefs.h
>>conftest.
$ac_ext
19582 cat >>conftest.
$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 $ac_includes_default
19585 #include <$ac_header>
19587 rm -f conftest.
$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1
>conftest.err
19593 cat conftest.err
>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try
='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_header_compiler
=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.
$ac_ext >&5
19613 ac_header_compiler
=no
19615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19617 echo "${ECHO_T}$ac_header_compiler" >&6
19619 # Is the header present?
19620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19622 cat >conftest.
$ac_ext <<_ACEOF
19625 cat confdefs.h
>>conftest.
$ac_ext
19626 cat >>conftest.
$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 #include <$ac_header>
19630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19633 grep -v '^ *+' conftest.er1
>conftest.err
19635 cat conftest.err
>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } >/dev
/null
; then
19638 if test -s conftest.err
; then
19639 ac_cpp_err
=$ac_c_preproc_warn_flag
19640 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19647 if test -z "$ac_cpp_err"; then
19648 ac_header_preproc
=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.
$ac_ext >&5
19653 ac_header_preproc
=no
19655 rm -f conftest.err conftest.
$ac_ext
19656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19657 echo "${ECHO_T}$ac_header_preproc" >&6
19659 # So? What about this header?
19660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19666 ac_header_preproc
=yes
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19683 ## ------------------------------------------ ##
19684 ## Report this to the AC_PACKAGE_NAME lists. ##
19685 ## ------------------------------------------ ##
19688 sed "s/^/$as_me: WARNING: /" >&2
19691 echo "$as_me:$LINENO: checking for $ac_header" >&5
19692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 eval "$as_ac_Header=\$ac_header_preproc"
19698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19703 cat >>confdefs.h
<<_ACEOF
19704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19709 for ac_header
in kerberosIV
/des.h
19711 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19713 echo "$as_me:$LINENO: checking for $ac_header" >&5
19714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19721 # Is the header compilable?
19722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19724 cat >conftest.
$ac_ext <<_ACEOF
19727 cat confdefs.h
>>conftest.
$ac_ext
19728 cat >>conftest.
$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 $ac_includes_default
19731 #include <$ac_header>
19733 rm -f conftest.
$ac_objext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19735 (eval $ac_compile) 2>conftest.er1
19737 grep -v '^ *+' conftest.er1
>conftest.err
19739 cat conftest.err
>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
19742 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try
='test -s conftest.$ac_objext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_header_compiler
=yes
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.
$ac_ext >&5
19759 ac_header_compiler
=no
19761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19763 echo "${ECHO_T}$ac_header_compiler" >&6
19765 # Is the header present?
19766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19768 cat >conftest.
$ac_ext <<_ACEOF
19771 cat confdefs.h
>>conftest.
$ac_ext
19772 cat >>conftest.
$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 #include <$ac_header>
19776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19777 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19779 grep -v '^ *+' conftest.er1
>conftest.err
19781 cat conftest.err
>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } >/dev
/null
; then
19784 if test -s conftest.err
; then
19785 ac_cpp_err
=$ac_c_preproc_warn_flag
19786 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19793 if test -z "$ac_cpp_err"; then
19794 ac_header_preproc
=yes
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.
$ac_ext >&5
19799 ac_header_preproc
=no
19801 rm -f conftest.err conftest.
$ac_ext
19802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19803 echo "${ECHO_T}$ac_header_preproc" >&6
19805 # So? What about this header?
19806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19812 ac_header_preproc
=yes
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19829 ## ------------------------------------------ ##
19830 ## Report this to the AC_PACKAGE_NAME lists. ##
19831 ## ------------------------------------------ ##
19834 sed "s/^/$as_me: WARNING: /" >&2
19837 echo "$as_me:$LINENO: checking for $ac_header" >&5
19838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 eval "$as_ac_Header=\$ac_header_preproc"
19844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19849 cat >>confdefs.h
<<_ACEOF
19850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19855 for ac_header
in kerberos
/des.h
19857 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19859 echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19867 # Is the header compilable?
19868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19870 cat >conftest.
$ac_ext <<_ACEOF
19873 cat confdefs.h
>>conftest.
$ac_ext
19874 cat >>conftest.
$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 $ac_includes_default
19877 #include <$ac_header>
19879 rm -f conftest.
$ac_objext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>conftest.er1
19883 grep -v '^ *+' conftest.er1
>conftest.err
19885 cat conftest.err
>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try
='test -s conftest.$ac_objext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_header_compiler
=yes
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.
$ac_ext >&5
19905 ac_header_compiler
=no
19907 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19909 echo "${ECHO_T}$ac_header_compiler" >&6
19911 # Is the header present?
19912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19914 cat >conftest.
$ac_ext <<_ACEOF
19917 cat confdefs.h
>>conftest.
$ac_ext
19918 cat >>conftest.
$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 #include <$ac_header>
19922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19923 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19925 grep -v '^ *+' conftest.er1
>conftest.err
19927 cat conftest.err
>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } >/dev
/null
; then
19930 if test -s conftest.err
; then
19931 ac_cpp_err
=$ac_c_preproc_warn_flag
19932 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19939 if test -z "$ac_cpp_err"; then
19940 ac_header_preproc
=yes
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.
$ac_ext >&5
19945 ac_header_preproc
=no
19947 rm -f conftest.err conftest.
$ac_ext
19948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19949 echo "${ECHO_T}$ac_header_preproc" >&6
19951 # So? What about this header?
19952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19958 ac_header_preproc
=yes
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19975 ## ------------------------------------------ ##
19976 ## Report this to the AC_PACKAGE_NAME lists. ##
19977 ## ------------------------------------------ ##
19980 sed "s/^/$as_me: WARNING: /" >&2
19983 echo "$as_me:$LINENO: checking for $ac_header" >&5
19984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 eval "$as_ac_Header=\$ac_header_preproc"
19990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19995 cat >>confdefs.h
<<_ACEOF
19996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20012 for ac_header
in krb.h
20014 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016 echo "$as_me:$LINENO: checking for $ac_header" >&5
20017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20024 # Is the header compilable?
20025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20027 cat >conftest.
$ac_ext <<_ACEOF
20030 cat confdefs.h
>>conftest.
$ac_ext
20031 cat >>conftest.
$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 $ac_includes_default
20034 #include <$ac_header>
20036 rm -f conftest.
$ac_objext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038 (eval $ac_compile) 2>conftest.er1
20040 grep -v '^ *+' conftest.er1
>conftest.err
20042 cat conftest.err
>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try
='test -s conftest.$ac_objext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_header_compiler
=yes
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.
$ac_ext >&5
20062 ac_header_compiler
=no
20064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20066 echo "${ECHO_T}$ac_header_compiler" >&6
20068 # Is the header present?
20069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20071 cat >conftest.
$ac_ext <<_ACEOF
20074 cat confdefs.h
>>conftest.
$ac_ext
20075 cat >>conftest.
$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 #include <$ac_header>
20079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20082 grep -v '^ *+' conftest.er1
>conftest.err
20084 cat conftest.err
>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } >/dev
/null
; then
20087 if test -s conftest.err
; then
20088 ac_cpp_err
=$ac_c_preproc_warn_flag
20089 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20096 if test -z "$ac_cpp_err"; then
20097 ac_header_preproc
=yes
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.
$ac_ext >&5
20102 ac_header_preproc
=no
20104 rm -f conftest.err conftest.
$ac_ext
20105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20106 echo "${ECHO_T}$ac_header_preproc" >&6
20108 # So? What about this header?
20109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20115 ac_header_preproc
=yes
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20132 ## ------------------------------------------ ##
20133 ## Report this to the AC_PACKAGE_NAME lists. ##
20134 ## ------------------------------------------ ##
20137 sed "s/^/$as_me: WARNING: /" >&2
20140 echo "$as_me:$LINENO: checking for $ac_header" >&5
20141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 eval "$as_ac_Header=\$ac_header_preproc"
20147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20152 cat >>confdefs.h
<<_ACEOF
20153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20158 for ac_header
in kerberosIV
/krb.h
20160 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20162 echo "$as_me:$LINENO: checking for $ac_header" >&5
20163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20170 # Is the header compilable?
20171 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20173 cat >conftest.
$ac_ext <<_ACEOF
20176 cat confdefs.h
>>conftest.
$ac_ext
20177 cat >>conftest.
$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 $ac_includes_default
20180 #include <$ac_header>
20182 rm -f conftest.
$ac_objext
20183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20184 (eval $ac_compile) 2>conftest.er1
20186 grep -v '^ *+' conftest.er1
>conftest.err
20188 cat conftest.err
>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
20191 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try
='test -s conftest.$ac_objext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 ac_header_compiler
=yes
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.
$ac_ext >&5
20208 ac_header_compiler
=no
20210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20212 echo "${ECHO_T}$ac_header_compiler" >&6
20214 # Is the header present?
20215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20217 cat >conftest.
$ac_ext <<_ACEOF
20220 cat confdefs.h
>>conftest.
$ac_ext
20221 cat >>conftest.
$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 #include <$ac_header>
20225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20228 grep -v '^ *+' conftest.er1
>conftest.err
20230 cat conftest.err
>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } >/dev
/null
; then
20233 if test -s conftest.err
; then
20234 ac_cpp_err
=$ac_c_preproc_warn_flag
20235 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20242 if test -z "$ac_cpp_err"; then
20243 ac_header_preproc
=yes
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.
$ac_ext >&5
20248 ac_header_preproc
=no
20250 rm -f conftest.err conftest.
$ac_ext
20251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20252 echo "${ECHO_T}$ac_header_preproc" >&6
20254 # So? What about this header?
20255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20261 ac_header_preproc
=yes
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20278 ## ------------------------------------------ ##
20279 ## Report this to the AC_PACKAGE_NAME lists. ##
20280 ## ------------------------------------------ ##
20283 sed "s/^/$as_me: WARNING: /" >&2
20286 echo "$as_me:$LINENO: checking for $ac_header" >&5
20287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 eval "$as_ac_Header=\$ac_header_preproc"
20293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20298 cat >>confdefs.h
<<_ACEOF
20299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20304 for ac_header
in kerberos
/krb.h
20306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20308 echo "$as_me:$LINENO: checking for $ac_header" >&5
20309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20316 # Is the header compilable?
20317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20319 cat >conftest.
$ac_ext <<_ACEOF
20322 cat confdefs.h
>>conftest.
$ac_ext
20323 cat >>conftest.
$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 $ac_includes_default
20326 #include <$ac_header>
20328 rm -f conftest.
$ac_objext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20330 (eval $ac_compile) 2>conftest.er1
20332 grep -v '^ *+' conftest.er1
>conftest.err
20334 cat conftest.err
>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
20337 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try
='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_header_compiler
=yes
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.
$ac_ext >&5
20354 ac_header_compiler
=no
20356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20358 echo "${ECHO_T}$ac_header_compiler" >&6
20360 # Is the header present?
20361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20363 cat >conftest.
$ac_ext <<_ACEOF
20366 cat confdefs.h
>>conftest.
$ac_ext
20367 cat >>conftest.
$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 #include <$ac_header>
20371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20374 grep -v '^ *+' conftest.er1
>conftest.err
20376 cat conftest.err
>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } >/dev
/null
; then
20379 if test -s conftest.err
; then
20380 ac_cpp_err
=$ac_c_preproc_warn_flag
20381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20388 if test -z "$ac_cpp_err"; then
20389 ac_header_preproc
=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.
$ac_ext >&5
20394 ac_header_preproc
=no
20396 rm -f conftest.err conftest.
$ac_ext
20397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398 echo "${ECHO_T}$ac_header_preproc" >&6
20400 # So? What about this header?
20401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20407 ac_header_preproc
=yes
20410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20424 ## ------------------------------------------ ##
20425 ## Report this to the AC_PACKAGE_NAME lists. ##
20426 ## ------------------------------------------ ##
20429 sed "s/^/$as_me: WARNING: /" >&2
20432 echo "$as_me:$LINENO: checking for $ac_header" >&5
20433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 eval "$as_ac_Header=\$ac_header_preproc"
20439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20444 cat >>confdefs.h
<<_ACEOF
20445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20462 for ac_header
in com_err.h
20464 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20466 echo "$as_me:$LINENO: checking for $ac_header" >&5
20467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20474 # Is the header compilable?
20475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20477 cat >conftest.
$ac_ext <<_ACEOF
20480 cat confdefs.h
>>conftest.
$ac_ext
20481 cat >>conftest.
$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20484 #include <$ac_header>
20486 rm -f conftest.
$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>conftest.er1
20490 grep -v '^ *+' conftest.er1
>conftest.err
20492 cat conftest.err
>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try
='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_header_compiler
=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.
$ac_ext >&5
20512 ac_header_compiler
=no
20514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20516 echo "${ECHO_T}$ac_header_compiler" >&6
20518 # Is the header present?
20519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20521 cat >conftest.
$ac_ext <<_ACEOF
20524 cat confdefs.h
>>conftest.
$ac_ext
20525 cat >>conftest.
$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20527 #include <$ac_header>
20529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20532 grep -v '^ *+' conftest.er1
>conftest.err
20534 cat conftest.err
>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } >/dev
/null
; then
20537 if test -s conftest.err
; then
20538 ac_cpp_err
=$ac_c_preproc_warn_flag
20539 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20546 if test -z "$ac_cpp_err"; then
20547 ac_header_preproc
=yes
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.
$ac_ext >&5
20552 ac_header_preproc
=no
20554 rm -f conftest.err conftest.
$ac_ext
20555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20556 echo "${ECHO_T}$ac_header_preproc" >&6
20558 # So? What about this header?
20559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20565 ac_header_preproc
=yes
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20582 ## ------------------------------------------ ##
20583 ## Report this to the AC_PACKAGE_NAME lists. ##
20584 ## ------------------------------------------ ##
20587 sed "s/^/$as_me: WARNING: /" >&2
20590 echo "$as_me:$LINENO: checking for $ac_header" >&5
20591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 eval "$as_ac_Header=\$ac_header_preproc"
20597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20602 cat >>confdefs.h
<<_ACEOF
20603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20612 # Solaris requires -lintl if you want strerror (which calls dgettext)
20613 # to return localized messages.
20615 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20616 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20617 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 ac_check_lib_save_LIBS
=$LIBS
20621 LIBS
="-lintl $LIBS"
20622 cat >conftest.
$ac_ext <<_ACEOF
20625 cat confdefs.h
>>conftest.
$ac_ext
20626 cat >>conftest.
$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20629 /* Override any gcc2 internal prototype to avoid an error. */
20633 /* We use char because int might match the return type of a gcc2
20634 builtin and then its argument prototype would still apply. */
20644 rm -f conftest.
$ac_objext conftest
$ac_exeext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20646 (eval $ac_link) 2>conftest.er1
20648 grep -v '^ *+' conftest.er1
>conftest.err
20650 cat conftest.err
>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try
='test -s conftest$ac_exeext'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_lib_intl_dgettext
=yes
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.
$ac_ext >&5
20670 ac_cv_lib_intl_dgettext
=no
20672 rm -f conftest.err conftest.
$ac_objext \
20673 conftest
$ac_exeext conftest.
$ac_ext
20674 LIBS
=$ac_check_lib_save_LIBS
20676 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20677 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20678 if test $ac_cv_lib_intl_dgettext = yes; then
20679 cat >>confdefs.h
<<_ACEOF
20680 #define HAVE_LIBINTL 1
20683 LIBS
="-lintl $LIBS"
20688 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20689 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20690 if test "${emacs_cv_localtime_cache+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 if test x
$ac_cv_func_tzset = xyes
; then
20694 if test "$cross_compiling" = yes; then
20695 # If we have tzset, assume the worst when cross-compiling.
20696 emacs_cv_localtime_cache
=yes
20698 cat >conftest.
$ac_ext <<_ACEOF
20701 cat confdefs.h
>>conftest.
$ac_ext
20702 cat >>conftest.
$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 extern char **environ;
20709 for (to = from = environ; (*to = *from); from++)
20710 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20713 char TZ_GMT0[] = "TZ=GMT0";
20714 char TZ_PST8[] = "TZ=PST8";
20717 time_t now = time ((time_t *) 0);
20718 int hour_GMT0, hour_unset;
20719 if (putenv (TZ_GMT0) != 0)
20721 hour_GMT0 = localtime (&now)->tm_hour;
20723 hour_unset = localtime (&now)->tm_hour;
20724 if (putenv (TZ_PST8) != 0)
20726 if (localtime (&now)->tm_hour == hour_GMT0)
20729 if (localtime (&now)->tm_hour != hour_unset)
20734 rm -f conftest
$ac_exeext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20736 (eval $ac_link) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
20745 emacs_cv_localtime_cache
=no
20747 echo "$as_me: program exited with status $ac_status" >&5
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.
$ac_ext >&5
20751 ( exit $ac_status )
20752 emacs_cv_localtime_cache
=yes
20754 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20757 # If we lack tzset, report that localtime does not cache TZ,
20758 # since we can't invalidate the cache if we don't have tzset.
20759 emacs_cv_localtime_cache
=no
20762 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20763 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20764 if test $emacs_cv_localtime_cache = yes; then
20766 cat >>confdefs.h
<<\_ACEOF
20767 #define LOCALTIME_CACHE 1
20772 if test "x$HAVE_TIMEVAL" = xyes
; then
20774 for ac_func
in gettimeofday
20776 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20777 echo "$as_me:$LINENO: checking for $ac_func" >&5
20778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20779 if eval "test \"\${$as_ac_var+set}\" = set"; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 cat >conftest.
$ac_ext <<_ACEOF
20785 cat confdefs.h
>>conftest.
$ac_ext
20786 cat >>conftest.
$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20790 #define $ac_func innocuous_$ac_func
20792 /* System header to define __stub macros and hopefully few prototypes,
20793 which can conflict with char $ac_func (); below.
20794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20795 <limits.h> exists even on freestanding compilers. */
20798 # include <limits.h>
20800 # include <assert.h>
20805 /* Override any gcc2 internal prototype to avoid an error. */
20810 /* We use char because int might match the return type of a gcc2
20811 builtin and then its argument prototype would still apply. */
20813 /* The GNU C library defines this for functions which it implements
20814 to always fail with ENOSYS. Some functions are actually named
20815 something starting with __ and the normal name is an alias. */
20816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20819 char (*f) () = $ac_func;
20828 return f != $ac_func;
20833 rm -f conftest.
$ac_objext conftest
$ac_exeext
20834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20835 (eval $ac_link) 2>conftest.er1
20837 grep -v '^ *+' conftest.er1
>conftest.err
20839 cat conftest.err
>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
20842 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; } &&
20848 { ac_try
='test -s conftest$ac_exeext'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 eval "$as_ac_var=yes"
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.
$ac_ext >&5
20859 eval "$as_ac_var=no"
20861 rm -f conftest.err conftest.
$ac_objext \
20862 conftest
$ac_exeext conftest.
$ac_ext
20864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20866 if test `eval echo '${'$as_ac_var'}'` = yes; then
20867 cat >>confdefs.h
<<_ACEOF
20868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20874 if test $ac_cv_func_gettimeofday = yes; then
20875 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20876 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20877 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20880 cat >conftest.
$ac_ext <<_ACEOF
20883 cat confdefs.h
>>conftest.
$ac_ext
20884 cat >>conftest.
$ac_ext <<_ACEOF
20885 /* end confdefs.h. */
20887 #ifdef TIME_WITH_SYS_TIME
20888 #include <sys/time.h>
20891 #ifdef HAVE_SYS_TIME_H
20892 #include <sys/time.h>
20900 struct timeval time;
20901 gettimeofday (&time, 0);
20906 rm -f conftest.
$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20910 grep -v '^ *+' conftest.er1
>conftest.err
20912 cat conftest.err
>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try
='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 emacs_cv_gettimeofday_two_arguments
=yes
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.
$ac_ext >&5
20932 emacs_cv_gettimeofday_two_arguments
=no
20934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20936 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20937 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20938 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20940 cat >>confdefs.h
<<\_ACEOF
20941 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20948 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20949 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20950 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20951 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 cat >conftest.
$ac_ext <<_ACEOF
20957 cat confdefs.h
>>conftest.
$ac_ext
20958 cat >>conftest.
$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <sys/types.h>
20961 #include <$ac_cv_struct_tm>
20967 static struct tm ac_aggr;
20968 if (ac_aggr.tm_zone)
20974 rm -f conftest.
$ac_objext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976 (eval $ac_compile) 2>conftest.er1
20978 grep -v '^ *+' conftest.er1
>conftest.err
20980 cat conftest.err
>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
20983 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try
='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_member_struct_tm_tm_zone
=yes
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.
$ac_ext >&5
21000 cat >conftest.
$ac_ext <<_ACEOF
21003 cat confdefs.h
>>conftest.
$ac_ext
21004 cat >>conftest.
$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <sys/types.h>
21007 #include <$ac_cv_struct_tm>
21013 static struct tm ac_aggr;
21014 if (sizeof ac_aggr.tm_zone)
21020 rm -f conftest.
$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022 (eval $ac_compile) 2>conftest.er1
21024 grep -v '^ *+' conftest.er1
>conftest.err
21026 cat conftest.err
>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; } &&
21035 { ac_try
='test -s conftest.$ac_objext'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
21041 ac_cv_member_struct_tm_tm_zone
=yes
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.
$ac_ext >&5
21046 ac_cv_member_struct_tm_tm_zone
=no
21048 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21052 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21053 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21054 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21056 cat >>confdefs.h
<<_ACEOF
21057 #define HAVE_STRUCT_TM_TM_ZONE 1
21063 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21065 cat >>confdefs.h
<<\_ACEOF
21066 #define HAVE_TM_ZONE 1
21070 echo "$as_me:$LINENO: checking for tzname" >&5
21071 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21072 if test "${ac_cv_var_tzname+set}" = set; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21075 cat >conftest.
$ac_ext <<_ACEOF
21078 cat confdefs.h
>>conftest.
$ac_ext
21079 cat >>conftest.
$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21082 #ifndef tzname /* For SGI. */
21083 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21094 rm -f conftest.
$ac_objext conftest
$ac_exeext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21096 (eval $ac_link) 2>conftest.er1
21098 grep -v '^ *+' conftest.er1
>conftest.err
21100 cat conftest.err
>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; } &&
21109 { ac_try
='test -s conftest$ac_exeext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_cv_var_tzname
=yes
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.
$ac_ext >&5
21120 ac_cv_var_tzname
=no
21122 rm -f conftest.err conftest.
$ac_objext \
21123 conftest
$ac_exeext conftest.
$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21126 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21127 if test $ac_cv_var_tzname = yes; then
21129 cat >>confdefs.h
<<\_ACEOF
21130 #define HAVE_TZNAME 1
21137 if test "$ac_cv_func_gettimeofday" = yes; then
21138 echo "$as_me:$LINENO: checking for struct timezone" >&5
21139 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21140 if test "${emacs_cv_struct_timezone+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 cat >conftest.
$ac_ext <<_ACEOF
21146 cat confdefs.h
>>conftest.
$ac_ext
21147 cat >>conftest.
$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <sys/time.h>
21153 struct timezone tz;
21158 rm -f conftest.
$ac_objext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160 (eval $ac_compile) 2>conftest.er1
21162 grep -v '^ *+' conftest.er1
>conftest.err
21164 cat conftest.err
>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; } &&
21173 { ac_try
='test -s conftest.$ac_objext'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 if test "$cross_compiling" = yes; then
21180 emacs_cv_struct_timezone
=yes
21182 cat >conftest.
$ac_ext <<_ACEOF
21185 cat confdefs.h
>>conftest.
$ac_ext
21186 cat >>conftest.
$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21189 #ifdef TIME_WITH_SYS_TIME
21190 #include <sys/time.h>
21193 #ifdef HAVE_SYS_TIME_H
21194 #include <sys/time.h>
21200 struct timeval time;
21201 struct timezone dummy;
21202 exit (gettimeofday (&time, &dummy));
21205 rm -f conftest
$ac_exeext
21206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21207 (eval $ac_link) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; }; then
21216 emacs_cv_struct_timezone
=yes
21218 echo "$as_me: program exited with status $ac_status" >&5
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.
$ac_ext >&5
21222 ( exit $ac_status )
21223 emacs_cv_struct_timezone
=no
21225 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.
$ac_ext >&5
21231 emacs_cv_struct_timezone
=no
21233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21235 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21236 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21240 echo "$as_me:$LINENO: checking for socket" >&5
21241 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21242 if test "${ac_cv_func_socket+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 cat >conftest.
$ac_ext <<_ACEOF
21248 cat confdefs.h
>>conftest.
$ac_ext
21249 cat >>conftest.
$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21253 #define socket innocuous_socket
21255 /* System header to define __stub macros and hopefully few prototypes,
21256 which can conflict with char socket (); below.
21257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21258 <limits.h> exists even on freestanding compilers. */
21261 # include <limits.h>
21263 # include <assert.h>
21268 /* Override any gcc2 internal prototype to avoid an error. */
21273 /* We use char because int might match the return type of a gcc2
21274 builtin and then its argument prototype would still apply. */
21276 /* The GNU C library defines this for functions which it implements
21277 to always fail with ENOSYS. Some functions are actually named
21278 something starting with __ and the normal name is an alias. */
21279 #if defined (__stub_socket) || defined (__stub___socket)
21282 char (*f) () = socket;
21291 return f != socket;
21296 rm -f conftest.
$ac_objext conftest
$ac_exeext
21297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21298 (eval $ac_link) 2>conftest.er1
21300 grep -v '^ *+' conftest.er1
>conftest.err
21302 cat conftest.err
>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } &&
21305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; } &&
21311 { ac_try
='test -s conftest$ac_exeext'
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; }; then
21317 ac_cv_func_socket
=yes
21319 echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.
$ac_ext >&5
21322 ac_cv_func_socket
=no
21324 rm -f conftest.err conftest.
$ac_objext \
21325 conftest
$ac_exeext conftest.
$ac_ext
21327 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21328 echo "${ECHO_T}$ac_cv_func_socket" >&6
21329 if test $ac_cv_func_socket = yes; then
21335 if test $ok_so_far = yes; then
21336 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21337 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21338 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21339 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21342 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21343 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21345 # Is the header compilable?
21346 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21347 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21348 cat >conftest.
$ac_ext <<_ACEOF
21351 cat confdefs.h
>>conftest.
$ac_ext
21352 cat >>conftest.
$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 $ac_includes_default
21355 #include <netinet/in.h>
21357 rm -f conftest.
$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>conftest.er1
21361 grep -v '^ *+' conftest.er1
>conftest.err
21363 cat conftest.err
>&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
21366 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } &&
21372 { ac_try
='test -s conftest.$ac_objext'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ac_header_compiler
=yes
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.
$ac_ext >&5
21383 ac_header_compiler
=no
21385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21387 echo "${ECHO_T}$ac_header_compiler" >&6
21389 # Is the header present?
21390 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21391 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21392 cat >conftest.
$ac_ext <<_ACEOF
21395 cat confdefs.h
>>conftest.
$ac_ext
21396 cat >>conftest.
$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <netinet/in.h>
21400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21403 grep -v '^ *+' conftest.er1
>conftest.err
21405 cat conftest.err
>&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } >/dev
/null
; then
21408 if test -s conftest.err
; then
21409 ac_cpp_err
=$ac_c_preproc_warn_flag
21410 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21417 if test -z "$ac_cpp_err"; then
21418 ac_header_preproc
=yes
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.
$ac_ext >&5
21423 ac_header_preproc
=no
21425 rm -f conftest.err conftest.
$ac_ext
21426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21427 echo "${ECHO_T}$ac_header_preproc" >&6
21429 # So? What about this header?
21430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21432 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21433 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21434 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21435 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21436 ac_header_preproc
=yes
21439 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21440 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21442 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21444 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21446 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21448 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21450 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21453 ## ------------------------------------------ ##
21454 ## Report this to the AC_PACKAGE_NAME lists. ##
21455 ## ------------------------------------------ ##
21458 sed "s/^/$as_me: WARNING: /" >&2
21461 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21462 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21463 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21466 ac_cv_header_netinet_in_h
=$ac_header_preproc
21468 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21469 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21472 if test $ac_cv_header_netinet_in_h = yes; then
21480 if test $ok_so_far = yes; then
21481 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21482 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21483 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21484 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21488 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21490 # Is the header compilable?
21491 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21492 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21493 cat >conftest.
$ac_ext <<_ACEOF
21496 cat confdefs.h
>>conftest.
$ac_ext
21497 cat >>conftest.
$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 $ac_includes_default
21500 #include <arpa/inet.h>
21502 rm -f conftest.
$ac_objext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>conftest.er1
21506 grep -v '^ *+' conftest.er1
>conftest.err
21508 cat conftest.err
>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
21511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try
='test -s conftest.$ac_objext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_header_compiler
=yes
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.
$ac_ext >&5
21528 ac_header_compiler
=no
21530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21532 echo "${ECHO_T}$ac_header_compiler" >&6
21534 # Is the header present?
21535 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21536 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21537 cat >conftest.
$ac_ext <<_ACEOF
21540 cat confdefs.h
>>conftest.
$ac_ext
21541 cat >>conftest.
$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 #include <arpa/inet.h>
21545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21546 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21548 grep -v '^ *+' conftest.er1
>conftest.err
21550 cat conftest.err
>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } >/dev
/null
; then
21553 if test -s conftest.err
; then
21554 ac_cpp_err
=$ac_c_preproc_warn_flag
21555 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21562 if test -z "$ac_cpp_err"; then
21563 ac_header_preproc
=yes
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.
$ac_ext >&5
21568 ac_header_preproc
=no
21570 rm -f conftest.err conftest.
$ac_ext
21571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21572 echo "${ECHO_T}$ac_header_preproc" >&6
21574 # So? What about this header?
21575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21577 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21578 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21580 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21581 ac_header_preproc
=yes
21584 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21585 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21587 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21589 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21591 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21593 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21595 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21598 ## ------------------------------------------ ##
21599 ## Report this to the AC_PACKAGE_NAME lists. ##
21600 ## ------------------------------------------ ##
21603 sed "s/^/$as_me: WARNING: /" >&2
21606 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21607 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21608 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21613 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21614 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21617 if test $ac_cv_header_arpa_inet_h = yes; then
21625 if test $ok_so_far = yes; then
21627 cat >>confdefs.h
<<\_ACEOF
21628 #define HAVE_INET_SOCKETS 1
21634 for ac_header
in sys
/ioctl.h
21636 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21638 echo "$as_me:$LINENO: checking for $ac_header" >&5
21639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21646 # Is the header compilable?
21647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21649 cat >conftest.
$ac_ext <<_ACEOF
21652 cat confdefs.h
>>conftest.
$ac_ext
21653 cat >>conftest.
$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 #include <$ac_header>
21658 rm -f conftest.
$ac_objext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660 (eval $ac_compile) 2>conftest.er1
21662 grep -v '^ *+' conftest.er1
>conftest.err
21664 cat conftest.err
>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; } &&
21673 { ac_try
='test -s conftest.$ac_objext'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; }; then
21679 ac_header_compiler
=yes
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.
$ac_ext >&5
21684 ac_header_compiler
=no
21686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21688 echo "${ECHO_T}$ac_header_compiler" >&6
21690 # Is the header present?
21691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21693 cat >conftest.
$ac_ext <<_ACEOF
21696 cat confdefs.h
>>conftest.
$ac_ext
21697 cat >>conftest.
$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 #include <$ac_header>
21701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21704 grep -v '^ *+' conftest.er1
>conftest.err
21706 cat conftest.err
>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } >/dev
/null
; then
21709 if test -s conftest.err
; then
21710 ac_cpp_err
=$ac_c_preproc_warn_flag
21711 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21718 if test -z "$ac_cpp_err"; then
21719 ac_header_preproc
=yes
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.
$ac_ext >&5
21724 ac_header_preproc
=no
21726 rm -f conftest.err conftest.
$ac_ext
21727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21728 echo "${ECHO_T}$ac_header_preproc" >&6
21730 # So? What about this header?
21731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21737 ac_header_preproc
=yes
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21754 ## ------------------------------------------ ##
21755 ## Report this to the AC_PACKAGE_NAME lists. ##
21756 ## ------------------------------------------ ##
21759 sed "s/^/$as_me: WARNING: /" >&2
21762 echo "$as_me:$LINENO: checking for $ac_header" >&5
21763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 eval "$as_ac_Header=\$ac_header_preproc"
21769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21774 cat >>confdefs.h
<<_ACEOF
21775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21783 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21785 cat >>confdefs.h
<<\_ACEOF
21786 #define HAVE_AIX_SMT_EXP 1
21791 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21792 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21793 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21794 echo "$as_me:$LINENO: result: yes" >&5
21795 echo "${ECHO_T}yes" >&6
21797 cat >>confdefs.h
<<\_ACEOF
21798 #define HAVE_DEV_PTMX 1
21802 echo "$as_me:$LINENO: result: no" >&5
21803 echo "${ECHO_T}no" >&6
21806 echo "$as_me:$LINENO: checking for pid_t" >&5
21807 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21808 if test "${ac_cv_type_pid_t+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 cat >conftest.
$ac_ext <<_ACEOF
21814 cat confdefs.h
>>conftest.
$ac_ext
21815 cat >>conftest.
$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 $ac_includes_default
21823 if (sizeof (pid_t))
21829 rm -f conftest.
$ac_objext
21830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21831 (eval $ac_compile) 2>conftest.er1
21833 grep -v '^ *+' conftest.er1
>conftest.err
21835 cat conftest.err
>&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
21838 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try
='test -s conftest.$ac_objext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ac_cv_type_pid_t
=yes
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.
$ac_ext >&5
21855 ac_cv_type_pid_t
=no
21857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21859 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21860 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21861 if test $ac_cv_type_pid_t = yes; then
21865 cat >>confdefs.h
<<_ACEOF
21873 for ac_header
in unistd.h vfork.h
21875 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21877 echo "$as_me:$LINENO: checking for $ac_header" >&5
21878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21885 # Is the header compilable?
21886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21888 cat >conftest.
$ac_ext <<_ACEOF
21891 cat confdefs.h
>>conftest.
$ac_ext
21892 cat >>conftest.
$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 $ac_includes_default
21895 #include <$ac_header>
21897 rm -f conftest.
$ac_objext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21899 (eval $ac_compile) 2>conftest.er1
21901 grep -v '^ *+' conftest.er1
>conftest.err
21903 cat conftest.err
>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try
='test -s conftest.$ac_objext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ac_header_compiler
=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.
$ac_ext >&5
21923 ac_header_compiler
=no
21925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21927 echo "${ECHO_T}$ac_header_compiler" >&6
21929 # Is the header present?
21930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21932 cat >conftest.
$ac_ext <<_ACEOF
21935 cat confdefs.h
>>conftest.
$ac_ext
21936 cat >>conftest.
$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21938 #include <$ac_header>
21940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21941 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21943 grep -v '^ *+' conftest.er1
>conftest.err
21945 cat conftest.err
>&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } >/dev
/null
; then
21948 if test -s conftest.err
; then
21949 ac_cpp_err
=$ac_c_preproc_warn_flag
21950 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21957 if test -z "$ac_cpp_err"; then
21958 ac_header_preproc
=yes
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.
$ac_ext >&5
21963 ac_header_preproc
=no
21965 rm -f conftest.err conftest.
$ac_ext
21966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21967 echo "${ECHO_T}$ac_header_preproc" >&6
21969 # So? What about this header?
21970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21976 ac_header_preproc
=yes
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21993 ## ------------------------------------------ ##
21994 ## Report this to the AC_PACKAGE_NAME lists. ##
21995 ## ------------------------------------------ ##
21998 sed "s/^/$as_me: WARNING: /" >&2
22001 echo "$as_me:$LINENO: checking for $ac_header" >&5
22002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 eval "$as_ac_Header=\$ac_header_preproc"
22008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22013 cat >>confdefs.h
<<_ACEOF
22014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22023 for ac_func
in fork vfork
22025 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22026 echo "$as_me:$LINENO: checking for $ac_func" >&5
22027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22028 if eval "test \"\${$as_ac_var+set}\" = set"; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 cat >conftest.
$ac_ext <<_ACEOF
22034 cat confdefs.h
>>conftest.
$ac_ext
22035 cat >>conftest.
$ac_ext <<_ACEOF
22036 /* end confdefs.h. */
22037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22039 #define $ac_func innocuous_$ac_func
22041 /* System header to define __stub macros and hopefully few prototypes,
22042 which can conflict with char $ac_func (); below.
22043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22044 <limits.h> exists even on freestanding compilers. */
22047 # include <limits.h>
22049 # include <assert.h>
22054 /* Override any gcc2 internal prototype to avoid an error. */
22059 /* We use char because int might match the return type of a gcc2
22060 builtin and then its argument prototype would still apply. */
22062 /* The GNU C library defines this for functions which it implements
22063 to always fail with ENOSYS. Some functions are actually named
22064 something starting with __ and the normal name is an alias. */
22065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22068 char (*f) () = $ac_func;
22077 return f != $ac_func;
22082 rm -f conftest.
$ac_objext conftest
$ac_exeext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22084 (eval $ac_link) 2>conftest.er1
22086 grep -v '^ *+' conftest.er1
>conftest.err
22088 cat conftest.err
>&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
22091 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; } &&
22097 { ac_try
='test -s conftest$ac_exeext'
22098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; }; then
22103 eval "$as_ac_var=yes"
22105 echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.
$ac_ext >&5
22108 eval "$as_ac_var=no"
22110 rm -f conftest.err conftest.
$ac_objext \
22111 conftest
$ac_exeext conftest.
$ac_ext
22113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22115 if test `eval echo '${'$as_ac_var'}'` = yes; then
22116 cat >>confdefs.h
<<_ACEOF
22117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22123 if test "x$ac_cv_func_fork" = xyes
; then
22124 echo "$as_me:$LINENO: checking for working fork" >&5
22125 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22126 if test "${ac_cv_func_fork_works+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 if test "$cross_compiling" = yes; then
22130 ac_cv_func_fork_works
=cross
22132 cat >conftest.
$ac_ext <<_ACEOF
22135 cat confdefs.h
>>conftest.
$ac_ext
22136 cat >>conftest.
$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 $ac_includes_default
22143 /* By Ruediger Kuhlmann. */
22152 rm -f conftest
$ac_exeext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22154 (eval $ac_link) 2>&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 ac_cv_func_fork_works
=yes
22165 echo "$as_me: program exited with status $ac_status" >&5
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.
$ac_ext >&5
22169 ( exit $ac_status )
22170 ac_cv_func_fork_works
=no
22172 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22175 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22176 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22179 ac_cv_func_fork_works
=$ac_cv_func_fork
22181 if test "x$ac_cv_func_fork_works" = xcross
; then
22183 *-*-amigaos* |
*-*-msdosdjgpp*)
22184 # Override, as these systems have only a dummy fork() stub
22185 ac_cv_func_fork_works
=no
22188 ac_cv_func_fork_works
=yes
22191 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22192 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22194 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22195 if test "x$ac_cv_func_vfork" = xyes
; then
22196 echo "$as_me:$LINENO: checking for working vfork" >&5
22197 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22198 if test "${ac_cv_func_vfork_works+set}" = set; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
22201 if test "$cross_compiling" = yes; then
22202 ac_cv_func_vfork_works
=cross
22204 cat >conftest.
$ac_ext <<_ACEOF
22207 cat confdefs.h
>>conftest.
$ac_ext
22208 cat >>conftest.
$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 /* Thanks to Paul Eggert for this test. */
22212 #include <stdlib.h>
22213 #include <sys/types.h>
22214 #include <sys/stat.h>
22215 #include <sys/wait.h>
22217 # include <unistd.h>
22220 # include <vfork.h>
22222 /* On some sparc systems, changes by the child to local and incoming
22223 argument registers are propagated back to the parent. The compiler
22224 is told about this with #include <vfork.h>, but some compilers
22225 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22226 static variable whose address is put into a register that is
22227 clobbered by the vfork. */
22230 sparc_address_test (int arg)
22232 sparc_address_test (arg) int arg;
22235 static pid_t child;
22253 pid_t parent = getpid ();
22256 sparc_address_test (0);
22261 /* Here is another test for sparc vfork register problems. This
22262 test uses lots of local variables, at least as many local
22263 variables as main has allocated so far including compiler
22264 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22265 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22266 reuse the register of parent for one of the local variables,
22267 since it will think that parent can't possibly be used any more
22268 in this routine. Assigning to the local variable will thus
22269 munge parent in the parent process. */
22271 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22272 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22273 /* Convince the compiler that p..p7 are live; otherwise, it might
22274 use the same hardware register for all 8 local variables. */
22275 if (p != p1 || p != p2 || p != p3 || p != p4
22276 || p != p5 || p != p6 || p != p7)
22279 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22280 from child file descriptors. If the child closes a descriptor
22281 before it execs or exits, this munges the parent's descriptor
22282 as well. Test for this by closing stdout in the child. */
22283 _exit(close(fileno(stdout)) != 0);
22288 while (wait(&status) != child)
22291 /* Was there some problem with vforking? */
22294 /* Did the child fail? (This shouldn't happen.) */
22297 /* Did the vfork/compiler bug occur? */
22298 || parent != getpid()
22300 /* Did the file descriptor bug occur? */
22301 || fstat(fileno(stdout), &st) != 0
22306 rm -f conftest
$ac_exeext
22307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22308 (eval $ac_link) 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; }; then
22317 ac_cv_func_vfork_works
=yes
22319 echo "$as_me: program exited with status $ac_status" >&5
22320 echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.
$ac_ext >&5
22323 ( exit $ac_status )
22324 ac_cv_func_vfork_works
=no
22326 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22329 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22330 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22333 if test "x$ac_cv_func_fork_works" = xcross
; then
22334 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22335 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22336 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22339 if test "x$ac_cv_func_vfork_works" = xyes
; then
22341 cat >>confdefs.h
<<\_ACEOF
22342 #define HAVE_WORKING_VFORK 1
22347 cat >>confdefs.h
<<\_ACEOF
22352 if test "x$ac_cv_func_fork_works" = xyes
; then
22354 cat >>confdefs.h
<<\_ACEOF
22355 #define HAVE_WORKING_FORK 1
22361 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22362 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22363 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 cat >conftest.
$ac_ext <<_ACEOF
22369 cat confdefs.h
>>conftest.
$ac_ext
22370 cat >>conftest.
$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 #include <langinfo.h>
22376 char* cs = nl_langinfo(CODESET);
22381 rm -f conftest.
$ac_objext conftest
$ac_exeext
22382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22383 (eval $ac_link) 2>conftest.er1
22385 grep -v '^ *+' conftest.er1
>conftest.err
22387 cat conftest.err
>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } &&
22390 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; } &&
22396 { ac_try
='test -s conftest$ac_exeext'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
22402 emacs_cv_langinfo_codeset
=yes
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.
$ac_ext >&5
22407 emacs_cv_langinfo_codeset
=no
22409 rm -f conftest.err conftest.
$ac_objext \
22410 conftest
$ac_exeext conftest.
$ac_ext
22413 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22414 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22415 if test $emacs_cv_langinfo_codeset = yes; then
22417 cat >>confdefs.h
<<\_ACEOF
22418 #define HAVE_LANGINFO_CODESET 1
22423 echo "$as_me:$LINENO: checking for size_t" >&5
22424 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22425 if test "${ac_cv_type_size_t+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 cat >conftest.
$ac_ext <<_ACEOF
22431 cat confdefs.h
>>conftest.
$ac_ext
22432 cat >>conftest.
$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22434 $ac_includes_default
22440 if (sizeof (size_t))
22446 rm -f conftest.
$ac_objext
22447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22448 (eval $ac_compile) 2>conftest.er1
22450 grep -v '^ *+' conftest.er1
>conftest.err
22452 cat conftest.err
>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } &&
22455 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; } &&
22461 { ac_try
='test -s conftest.$ac_objext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ac_cv_type_size_t
=yes
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.
$ac_ext >&5
22472 ac_cv_type_size_t
=no
22474 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22476 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22477 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22478 if test $ac_cv_type_size_t = yes; then
22480 cat >>confdefs.h
<<_ACEOF
22481 #define HAVE_SIZE_T 1
22488 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22489 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22490 if test "${ac_cv_type_mbstate_t+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22493 cat >conftest.
$ac_ext <<_ACEOF
22496 cat confdefs.h
>>conftest.
$ac_ext
22497 cat >>conftest.
$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22499 $ac_includes_default
22500 # include <wchar.h>
22504 mbstate_t x; return sizeof x;
22509 rm -f conftest.
$ac_objext
22510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22511 (eval $ac_compile) 2>conftest.er1
22513 grep -v '^ *+' conftest.er1
>conftest.err
22515 cat conftest.err
>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } &&
22518 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520 (eval $ac_try) 2>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; } &&
22524 { ac_try
='test -s conftest.$ac_objext'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; }; then
22530 ac_cv_type_mbstate_t
=yes
22532 echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.
$ac_ext >&5
22535 ac_cv_type_mbstate_t
=no
22537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22539 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22540 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22541 if test $ac_cv_type_mbstate_t = yes; then
22543 cat >>confdefs.h
<<\_ACEOF
22544 #define HAVE_MBSTATE_T 1
22549 cat >>confdefs.h
<<\_ACEOF
22550 #define mbstate_t int
22555 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22556 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22557 if test "${emacs_cv_c_restrict+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22560 cat >conftest.
$ac_ext <<_ACEOF
22563 cat confdefs.h
>>conftest.
$ac_ext
22564 cat >>conftest.
$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 void fred (int *restrict x);
22575 rm -f conftest.
$ac_objext
22576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22577 (eval $ac_compile) 2>conftest.er1
22579 grep -v '^ *+' conftest.er1
>conftest.err
22581 cat conftest.err
>&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); } &&
22584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; } &&
22590 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
22596 emacs_cv_c_restrict
=yes
22598 echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.
$ac_ext >&5
22601 cat >conftest.
$ac_ext <<_ACEOF
22604 cat confdefs.h
>>conftest.
$ac_ext
22605 cat >>conftest.
$ac_ext <<_ACEOF
22606 /* end confdefs.h. */
22607 void fred (int *__restrict x);
22616 rm -f conftest.
$ac_objext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22618 (eval $ac_compile) 2>conftest.er1
22620 grep -v '^ *+' conftest.er1
>conftest.err
22622 cat conftest.err
>&5
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } &&
22625 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627 (eval $ac_try) 2>&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }; } &&
22631 { ac_try
='test -s conftest.$ac_objext'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; }; then
22637 emacs_cv_c_restrict
=__restrict
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.
$ac_ext >&5
22642 emacs_cv_c_restrict
=no
22644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22648 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22649 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22650 case "$emacs_cv_c_restrict" in
22651 yes) emacs_restrict
=restrict
;;
22652 no
) emacs_restrict
="";;
22653 *) emacs_restrict
="$emacs_cv_c_restrict";;
22655 if test "$emacs_restrict" != __restrict
; then
22657 cat >>confdefs.h
<<_ACEOF
22658 #define __restrict $emacs_restrict
22663 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22664 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22665 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 cat >conftest.
$ac_ext <<_ACEOF
22671 cat confdefs.h
>>conftest.
$ac_ext
22672 cat >>conftest.
$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 void fred (int x[__restrict]);
22683 rm -f conftest.
$ac_objext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22685 (eval $ac_compile) 2>conftest.er1
22687 grep -v '^ *+' conftest.er1
>conftest.err
22689 cat conftest.err
>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; } &&
22698 { ac_try
='test -s conftest.$ac_objext'
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; }; then
22704 emacs_cv_c_restrict_arr
=yes
22706 echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.
$ac_ext >&5
22709 emacs_cv_c_restrict_arr
=no
22711 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22713 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22714 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22715 if test "$emacs_cv_c_restrict_arr" = yes; then
22717 cat >>confdefs.h
<<\_ACEOF
22718 #define __restrict_arr __restrict
22725 # Set up the CFLAGS for real compilation, so we can substitute it.
22726 CFLAGS
="$REAL_CFLAGS"
22727 CPPFLAGS
="$REAL_CPPFLAGS"
22729 #### Find out which version of Emacs this is.
22730 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22731 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22732 if test x
"${version}" = x
; then
22733 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22734 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22735 { (exit 1); exit 1; }; }
22738 ### Specify what sort of things we'll be editing into Makefile and config.h.
22739 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22775 cat >>confdefs.h
<<_ACEOF
22776 #define EMACS_CONFIGURATION "${canonical}"
22780 cat >>confdefs.h
<<_ACEOF
22781 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22785 cat >>confdefs.h
<<_ACEOF
22786 #define config_machfile "${machfile}"
22790 cat >>confdefs.h
<<_ACEOF
22791 #define config_opsysfile "${opsysfile}"
22795 cat >>confdefs.h
<<_ACEOF
22796 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22800 cat >>confdefs.h
<<_ACEOF
22801 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22805 cat >>confdefs.h
<<_ACEOF
22806 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22810 cat >>confdefs.h
<<_ACEOF
22811 #define UNEXEC_SRC ${UNEXEC_SRC}
22815 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22817 cat >>confdefs.h
<<\_ACEOF
22818 #define HAVE_X_WINDOWS 1
22822 if test "${USE_X_TOOLKIT}" != "none" ; then
22824 cat >>confdefs.h
<<\_ACEOF
22825 #define USE_X_TOOLKIT 1
22829 if test "${HAVE_X11}" = "yes" ; then
22831 cat >>confdefs.h
<<\_ACEOF
22836 if test "${HAVE_XFREE386}" = "yes" ; then
22838 cat >>confdefs.h
<<\_ACEOF
22839 #define HAVE_XFREE386 1
22843 if test "${HAVE_MENUS}" = "yes" ; then
22845 cat >>confdefs.h
<<\_ACEOF
22846 #define HAVE_MENUS 1
22850 if test "${GNU_MALLOC}" = "yes" ; then
22852 cat >>confdefs.h
<<\_ACEOF
22853 #define GNU_MALLOC 1
22857 if test "${REL_ALLOC}" = "yes" ; then
22859 cat >>confdefs.h
<<\_ACEOF
22860 #define REL_ALLOC 1
22869 #### Report on what we decided to do.
22870 #### Report GTK as a toolkit, even if it doesn't use Xt.
22871 #### It makes printing result more understandable as using GTK sets
22872 #### toolkit_scroll_bars to yes by default.
22873 if test "${HAVE_GTK}" = "yes"; then
22878 Configured for \`${canonical}'.
22880 Where should the build process find the source code? ${srcdir}
22881 What operating system and machine description files should Emacs use?
22882 \`${opsysfile}' and \`${machfile}'
22883 What compiler should emacs be built with? ${CC} ${CFLAGS}
22884 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22885 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22886 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22887 What window system should Emacs use? ${window_system}
22888 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22890 if test -n "${x_includes}"; then
22891 echo " Where do we find X Windows header files? ${x_includes}"
22893 echo " Where do we find X Windows header files? Standard dirs"
22895 if test -n "${x_libraries}"; then
22896 echo " Where do we find X Windows libraries? ${x_libraries}"
22898 echo " Where do we find X Windows libraries? Standard dirs"
22901 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22902 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22903 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22904 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22905 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22906 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22907 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22910 if test $USE_XASSERTS = yes; then
22911 echo " Compiling with asserts turned on."
22912 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22918 # Remove any trailing slashes in these variables.
22919 test "${prefix}" != NONE
&&
22920 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22921 test "${exec_prefix}" != NONE
&&
22922 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22924 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22925 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22926 ## from Makefile.c can correctly provide the arg `-traditional' to the
22929 cat >conftest.
$ac_ext <<_ACEOF
22932 cat confdefs.h
>>conftest.
$ac_ext
22933 cat >>conftest.
$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22938 $EGREP "yes..yes" >/dev
/null
2>&1; then
22939 CPP_NEED_TRADITIONAL
=no
22941 CPP_NEED_TRADITIONAL
=yes
22946 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"
22947 ac_config_commands
="$ac_config_commands default"
22948 cat >confcache
<<\_ACEOF
22949 # This file is a shell script that caches the results of configure
22950 # tests run on this system so they can be shared between configure
22951 # scripts and configure runs, see configure's option --config-cache.
22952 # It is not useful on other systems. If it contains results you don't
22953 # want to keep, you may remove or edit it.
22955 # config.status only pays attention to the cache file if you give it
22956 # the --recheck option to rerun configure.
22958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22960 # following values.
22964 # The following way of writing the cache mishandles newlines in values,
22965 # but we know of no workaround that is simple, portable, and efficient.
22966 # So, don't put newlines in cache variables' values.
22967 # Ultrix sh set writes to stderr and can't be redirected directly,
22968 # and sets the high bit in the cache file unless we assign to the vars.
22971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22973 # `set' does not quote correctly, so add quotes (double-quote
22974 # substitution turns \\\\ into \\, and sed turns \\ into \).
22977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22980 # `set' quotes correctly as required by POSIX, so do not add quotes.
22982 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22989 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22991 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22993 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22994 if test -w $cache_file; then
22995 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22996 cat confcache
>$cache_file
22998 echo "not updating unwritable cache $cache_file"
23003 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23004 # Let make expand exec_prefix.
23005 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23007 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23008 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23009 # trailing colons and then remove the whole line if VPATH becomes empty
23010 # (actually we leave an empty line to preserve line numbers).
23011 if test "x$srcdir" = x.
; then
23012 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23013 s/:*\$(srcdir):*/:/;
23014 s/:*\${srcdir}:*/:/;
23016 s/^\([^=]*=[ ]*\):*/\1/;
23022 DEFS
=-DHAVE_CONFIG_H
23026 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23027 # 1. Remove the extension, and $U if already installed.
23028 ac_i
=`echo "$ac_i" |
23029 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23031 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23032 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23034 LIBOBJS
=$ac_libobjs
23036 LTLIBOBJS
=$ac_ltlibobjs
23040 : ${CONFIG_STATUS=./config.status}
23041 ac_clean_files_save
=$ac_clean_files
23042 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23043 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23044 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23045 cat >$CONFIG_STATUS <<_ACEOF
23047 # Generated by $as_me.
23048 # Run this file to recreate the current configuration.
23049 # Compiler output produced by configure, useful for debugging
23050 # configure, is in config.log if it exists.
23053 ac_cs_recheck=false
23055 SHELL=\${CONFIG_SHELL-$SHELL}
23058 cat >>$CONFIG_STATUS <<\_ACEOF
23059 ## --------------------- ##
23060 ## M4sh Initialization. ##
23061 ## --------------------- ##
23063 # Be Bourne compatible
23064 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23067 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23068 # is contrary to our usage. Disable this feature.
23069 alias -g '${1+"$@"}'='"$@"'
23070 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23073 DUALCASE
=1; export DUALCASE
# for MKS sh
23075 # Support unset when possible.
23076 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23083 # Work around bugs in pre-3.0 UWIN ksh.
23084 $as_unset ENV MAIL MAILPATH
23091 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23092 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23093 LC_TELEPHONE LC_TIME
23095 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23096 eval $as_var=C
; export $as_var
23102 # Required to use basename.
23103 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23109 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23110 as_basename
=basename
23116 # Name of the executable.
23117 as_me
=`$as_basename "$0" ||
23118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23119 X"$0" : 'X\(//\)$' \| \
23120 X"$0" : 'X\(/\)$' \| \
23121 . : '\(.\)' 2>/dev/null ||
23123 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23124 /^X\/\(\/\/\)$/{ s//\1/; q; }
23125 /^X\/\(\/\).*/{ s//\1/; q; }
23129 # PATH needs CR, and LINENO needs CR and PATH.
23130 # Avoid depending upon Character Ranges.
23131 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23132 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23133 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23134 as_cr_digits
='0123456789'
23135 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23137 # The user is always right.
23138 if test "${PATH_SEPARATOR+set}" != set; then
23139 echo "#! /bin/sh" >conf$$.sh
23140 echo "exit 0" >>conf$$.sh
23142 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23151 as_lineno_1
=$LINENO
23152 as_lineno_2
=$LINENO
23153 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23154 test "x$as_lineno_1" != "x$as_lineno_2" &&
23155 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23156 # Find who we are. Look in the path if we contain no path at all
23159 *[\\/]* ) as_myself
=$0 ;;
23160 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23161 for as_dir
in $PATH
23164 test -z "$as_dir" && as_dir
=.
23165 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23170 # We did not find ourselves, most probably we were run as `sh COMMAND'
23171 # in which case we are not to be found in the path.
23172 if test "x$as_myself" = x
; then
23175 if test ! -f "$as_myself"; then
23176 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23177 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23178 { (exit 1); exit 1; }; }
23180 case $CONFIG_SHELL in
23182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23186 test -z "$as_dir" && as_dir
=.
23187 for as_base
in sh bash ksh sh5
; do
23190 if ("$as_dir/$as_base" -c '
23191 as_lineno_1=$LINENO
23192 as_lineno_2=$LINENO
23193 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23194 test "x$as_lineno_1" != "x$as_lineno_2" &&
23195 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23196 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23197 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23198 CONFIG_SHELL
=$as_dir/$as_base
23199 export CONFIG_SHELL
23200 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23208 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23209 # uniformly replaced by the line number. The first 'sed' inserts a
23210 # line-number line before each line; the second 'sed' does the real
23211 # work. The second script uses 'N' to pair each line-number line
23212 # with the numbered line, and appends trailing '-' during
23213 # substitution so that $LINENO is not a special case at line end.
23214 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23215 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23216 sed '=' <$as_myself |
23221 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23224 s,^['$as_cr_digits']*\n,,
23225 ' >$as_me.lineno
&&
23226 chmod +x
$as_me.lineno ||
23227 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23228 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23229 { (exit 1); exit 1; }; }
23231 # Don't try to exec as it changes $[0], causing all sort of problems
23232 # (the dirname of $[0] is not the place where we might find the
23233 # original and so on. Autoconf is especially sensible to this).
23235 # Exit status is that of the last command.
23240 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23241 *c
*,-n*) ECHO_N
= ECHO_C
='
23243 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23244 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23247 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23253 rm -f conf$$ conf$$.exe conf$$.
file
23255 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23256 # We could just check for DJGPP; but this test a) works b) is more generic
23257 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23258 if test -f conf$$.exe
; then
23259 # Don't use ln at all; we don't have any links
23264 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23269 rm -f conf$$ conf$$.exe conf$$.
file
23271 if mkdir
-p .
2>/dev
/null
; then
23274 test -d .
/-p && rmdir .
/-p
23278 as_executable_p
="test -f"
23280 # Sed expression to map a string onto a valid CPP name.
23281 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23283 # Sed expression to map a string onto a valid variable name.
23284 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23288 # We need space, tab and new line, in precisely that order.
23298 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23299 # report actual input values of CONFIG_FILES etc. instead of their
23300 # values after options handling. Logging --version etc. is OK.
23304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23305 ## Running $as_me. ##
23310 This file was extended by $as_me, which was
23311 generated by GNU Autoconf 2.59. Invocation command line was
23313 CONFIG_FILES = $CONFIG_FILES
23314 CONFIG_HEADERS = $CONFIG_HEADERS
23315 CONFIG_LINKS = $CONFIG_LINKS
23316 CONFIG_COMMANDS = $CONFIG_COMMANDS
23320 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23324 # Files that config.status was made for.
23325 if test -n "$ac_config_files"; then
23326 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23329 if test -n "$ac_config_headers"; then
23330 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23333 if test -n "$ac_config_links"; then
23334 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23337 if test -n "$ac_config_commands"; then
23338 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23341 cat >>$CONFIG_STATUS <<\_ACEOF
23344 \`$as_me' instantiates files from templates according to the
23345 current configuration.
23347 Usage: $0 [OPTIONS] [FILE]...
23349 -h, --help print this help, then exit
23350 -V, --version print version number, then exit
23351 -q, --quiet do not print progress messages
23352 -d, --debug don't remove temporary files
23353 --recheck update $as_me by reconfiguring in the same conditions
23354 --file=FILE[:TEMPLATE]
23355 instantiate the configuration file FILE
23356 --header=FILE[:TEMPLATE]
23357 instantiate the configuration header FILE
23359 Configuration files:
23362 Configuration headers:
23365 Configuration commands:
23368 Report bugs to <bug-autoconf@gnu.org>."
23371 cat >>$CONFIG_STATUS <<_ACEOF
23374 configured by $0, generated by GNU Autoconf 2.59,
23375 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23377 Copyright (C) 2003 Free Software Foundation, Inc.
23378 This config.status script is free software; the Free Software Foundation
23379 gives unlimited permission to copy, distribute and modify it."
23384 cat >>$CONFIG_STATUS <<\_ACEOF
23385 # If no file are specified by the user, then we need to provide default
23386 # value. By we need to know if files were specified by the user.
23392 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23393 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23401 *) # This is not an option, so the user has probably given explicit
23404 ac_need_defaults
=false
;;
23408 # Handling of the options.
23410 cat >>$CONFIG_STATUS <<\_ACEOF
23411 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23413 --version |
--vers* |
-V )
23414 echo "$ac_cs_version"; exit 0 ;;
23416 # Conflict between --help and --header
23417 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23418 Try \`$0 --help' for more information." >&5
23419 echo "$as_me: error: ambiguous option: $1
23420 Try \`$0 --help' for more information." >&2;}
23421 { (exit 1); exit 1; }; };;
23422 --help |
--hel |
-h )
23423 echo "$ac_cs_usage"; exit 0 ;;
23424 --debug |
--d* |
-d )
23426 --file |
--fil |
--fi |
--f )
23428 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23429 ac_need_defaults
=false
;;
23430 --header |
--heade |
--head |
--hea )
23432 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23433 ac_need_defaults
=false
;;
23434 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23435 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23438 # This is an error.
23439 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23440 Try \`$0 --help' for more information." >&5
23441 echo "$as_me: error: unrecognized option: $1
23442 Try \`$0 --help' for more information." >&2;}
23443 { (exit 1); exit 1; }; } ;;
23445 *) ac_config_targets
="$ac_config_targets $1" ;;
23451 ac_configure_extra_args
=
23453 if $ac_cs_silent; then
23455 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23459 cat >>$CONFIG_STATUS <<_ACEOF
23460 if \$ac_cs_recheck; then
23461 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23462 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23467 cat >>$CONFIG_STATUS <<_ACEOF
23469 # INIT-COMMANDS section.
23472 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23478 cat >>$CONFIG_STATUS <<\_ACEOF
23479 for ac_config_target
in $ac_config_targets
23481 case "$ac_config_target" in
23482 # Handling of arguments.
23483 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23484 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23485 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23486 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23487 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23488 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23489 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23490 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23491 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23492 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23493 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23494 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23495 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23496 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23497 { (exit 1); exit 1; }; };;
23501 # If the user did not use the arguments to specify the items to instantiate,
23502 # then the envvar interface is used. Set only those that are not.
23503 # We use the long form for the default assignment because of an extremely
23504 # bizarre bug on SunOS 4.1.3.
23505 if $ac_need_defaults; then
23506 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23507 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23511 # Have a temporary directory for convenience. Make it in the build tree
23512 # simply because there is no reason to put it here, and in addition,
23513 # creating and moving files from /tmp can sometimes cause problems.
23514 # Create a temporary directory, and hook for its removal unless debugging.
23517 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23518 trap '{ (exit 1); exit 1; }' 1 2 13 15
23521 # Create a (secure) tmp directory for tmp files.
23524 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23525 test -n "$tmp" && test -d "$tmp"
23528 tmp
=.
/confstat$$
-$RANDOM
23529 (umask 077 && mkdir
$tmp)
23532 echo "$me: cannot create a temporary directory in ." >&2
23533 { (exit 1); exit 1; }
23538 cat >>$CONFIG_STATUS <<_ACEOF
23541 # CONFIG_FILES section.
23544 # No need to generate the scripts if there are no CONFIG_FILES.
23545 # This happens for instance when ./config.status config.h
23546 if test -n "\$CONFIG_FILES"; then
23547 # Protect against being on the right side of a sed subst in config.status.
23548 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23549 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23550 s,@SHELL@,$SHELL,;t t
23551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23557 s,@exec_prefix@,$exec_prefix,;t t
23558 s,@prefix@,$prefix,;t t
23559 s,@program_transform_name@,$program_transform_name,;t t
23560 s,@bindir@,$bindir,;t t
23561 s,@sbindir@,$sbindir,;t t
23562 s,@libexecdir@,$libexecdir,;t t
23563 s,@datadir@,$datadir,;t t
23564 s,@sysconfdir@,$sysconfdir,;t t
23565 s,@sharedstatedir@,$sharedstatedir,;t t
23566 s,@localstatedir@,$localstatedir,;t t
23567 s,@libdir@,$libdir,;t t
23568 s,@includedir@,$includedir,;t t
23569 s,@oldincludedir@,$oldincludedir,;t t
23570 s,@infodir@,$infodir,;t t
23571 s,@mandir@,$mandir,;t t
23572 s,@build_alias@,$build_alias,;t t
23573 s,@host_alias@,$host_alias,;t t
23574 s,@target_alias@,$target_alias,;t t
23575 s,@DEFS@,$DEFS,;t t
23576 s,@ECHO_C@,$ECHO_C,;t t
23577 s,@ECHO_N@,$ECHO_N,;t t
23578 s,@ECHO_T@,$ECHO_T,;t t
23579 s,@LIBS@,$LIBS,;t t
23580 s,@MAINT@,$MAINT,;t t
23581 s,@build@,$build,;t t
23582 s,@build_cpu@,$build_cpu,;t t
23583 s,@build_vendor@,$build_vendor,;t t
23584 s,@build_os@,$build_os,;t t
23585 s,@host@,$host,;t t
23586 s,@host_cpu@,$host_cpu,;t t
23587 s,@host_vendor@,$host_vendor,;t t
23588 s,@host_os@,$host_os,;t t
23590 s,@CFLAGS@,$CFLAGS,;t t
23591 s,@LDFLAGS@,$LDFLAGS,;t t
23592 s,@CPPFLAGS@,$CPPFLAGS,;t t
23593 s,@ac_ct_CC@,$ac_ct_CC,;t t
23594 s,@EXEEXT@,$EXEEXT,;t t
23595 s,@OBJEXT@,$OBJEXT,;t t
23597 s,@EGREP@,$EGREP,;t t
23598 s,@LN_S@,$LN_S,;t t
23599 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23600 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23601 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23602 s,@RANLIB@,$RANLIB,;t t
23603 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23604 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23605 s,@GZIP_PROG@,$GZIP_PROG,;t t
23606 s,@LIBSOUND@,$LIBSOUND,;t t
23607 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23608 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23609 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23610 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23611 s,@SET_MAKE@,$SET_MAKE,;t t
23612 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23613 s,@GTK_LIBS@,$GTK_LIBS,;t t
23614 s,@ALLOCA@,$ALLOCA,;t t
23615 s,@liblockfile@,$liblockfile,;t t
23616 s,@LIBOBJS@,$LIBOBJS,;t t
23617 s,@NEED_SETGID@,$NEED_SETGID,;t t
23618 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23619 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23620 s,@GETOPT_H@,$GETOPT_H,;t t
23621 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23622 s,@version@,$version,;t t
23623 s,@configuration@,$configuration,;t t
23624 s,@canonical@,$canonical,;t t
23625 s,@srcdir@,$srcdir,;t t
23626 s,@lispdir@,$lispdir,;t t
23627 s,@locallisppath@,$locallisppath,;t t
23628 s,@lisppath@,$lisppath,;t t
23629 s,@x_default_search_path@,$x_default_search_path,;t t
23630 s,@etcdir@,$etcdir,;t t
23631 s,@archlibdir@,$archlibdir,;t t
23632 s,@docdir@,$docdir,;t t
23633 s,@bitmapdir@,$bitmapdir,;t t
23634 s,@gamedir@,$gamedir,;t t
23635 s,@gameuser@,$gameuser,;t t
23636 s,@c_switch_system@,$c_switch_system,;t t
23637 s,@c_switch_machine@,$c_switch_machine,;t t
23638 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23639 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23640 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23641 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23642 s,@machfile@,$machfile,;t t
23643 s,@opsysfile@,$opsysfile,;t t
23644 s,@carbon_appdir@,$carbon_appdir,;t t
23645 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651 # Split the substitutions into bite-sized pieces for seds with
23652 # small command number limits, like on Digital OSF/1 and HP-UX.
23653 ac_max_sed_lines
=48
23654 ac_sed_frag
=1 # Number of current file.
23655 ac_beg
=1 # First line for current file.
23656 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23659 while $ac_more_lines; do
23660 if test $ac_beg -gt 1; then
23661 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23663 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23665 if test ! -s $tmp/subs.frag
; then
23666 ac_more_lines
=false
23668 # The purpose of the label and of the branching condition is to
23669 # speed up the sed processing (if there are no `@' at all, there
23670 # is no need to browse any of the substitutions).
23671 # These are the two extra sed commands mentioned above.
23673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23674 if test -z "$ac_sed_cmds"; then
23675 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23677 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23679 ac_sed_frag
=`expr $ac_sed_frag + 1`
23681 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23684 if test -z "$ac_sed_cmds"; then
23687 fi # test -n "$CONFIG_FILES"
23690 cat >>$CONFIG_STATUS <<\_ACEOF
23691 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23692 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23694 - |
*:- |
*:-:* ) # input from stdin
23696 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23697 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23698 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23699 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23700 * ) ac_file_in
=$ac_file.
in ;;
23703 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23704 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23706 X"$ac_file" : 'X\(//\)[^/]' \| \
23707 X"$ac_file" : 'X\(//\)$' \| \
23708 X"$ac_file" : 'X\(/\)' \| \
23709 . : '\(.\)' 2>/dev/null ||
23711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23713 /^X\(\/\/\)$/{ s//\1/; q; }
23714 /^X\(\/\).*/{ s//\1/; q; }
23716 { if $as_mkdir_p; then
23721 while test ! -d "$as_dir"; do
23722 as_dirs
="$as_dir $as_dirs"
23723 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23725 X"$as_dir" : 'X\(//\)[^/]' \| \
23726 X"$as_dir" : 'X\(//\)$' \| \
23727 X"$as_dir" : 'X\(/\)' \| \
23728 . : '\(.\)' 2>/dev/null ||
23730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23732 /^X\(\/\/\)$/{ s//\1/; q; }
23733 /^X\(\/\).*/{ s//\1/; q; }
23736 test ! -n "$as_dirs" || mkdir
$as_dirs
23737 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23739 { (exit 1); exit 1; }; }; }
23743 if test "$ac_dir" != .
; then
23744 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23745 # A "../" for each directory in $ac_dir_suffix.
23746 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23748 ac_dir_suffix
= ac_top_builddir
=
23752 .
) # No --srcdir option. We are building in place.
23754 if test -z "$ac_top_builddir"; then
23757 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23759 [\\/]* | ?
:[\\/]* ) # Absolute path.
23760 ac_srcdir
=$srcdir$ac_dir_suffix;
23761 ac_top_srcdir
=$srcdir ;;
23762 *) # Relative path.
23763 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23764 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23767 # Do not use `cd foo && pwd` to compute absolute paths, because
23768 # the directories may not exist.
23770 .
) ac_abs_builddir
="$ac_dir";;
23773 .
) ac_abs_builddir
=`pwd`;;
23774 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23775 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23778 case $ac_abs_builddir in
23779 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23781 case ${ac_top_builddir}.
in
23782 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23783 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23784 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23787 case $ac_abs_builddir in
23788 .
) ac_abs_srcdir
=$ac_srcdir;;
23791 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23792 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23793 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23796 case $ac_abs_builddir in
23797 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23799 case $ac_top_srcdir in
23800 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23801 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23802 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23808 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23809 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23812 # Let's still pretend it is `configure' which instantiates (i.e., don't
23813 # use $as_me), people would be surprised to read:
23814 # /* config.h. Generated by config.status. */
23815 if test x
"$ac_file" = x-
; then
23818 configure_input
="$ac_file. "
23820 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23821 sed 's,.*/,,'` by configure."
23823 # First look for the input files in the build tree, otherwise in the
23825 ac_file_inputs
=`IFS=:
23826 for f in $ac_file_in; do
23828 -) echo $tmp/stdin ;;
23830 # Absolute (can't be DOS-style, as IFS=:)
23831 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23832 echo "$as_me: error: cannot find input file: $f" >&2;}
23833 { (exit 1); exit 1; }; }
23836 if test -f "$f"; then
23839 elif test -f "$srcdir/$f"; then
23844 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23845 echo "$as_me: error: cannot find input file: $f" >&2;}
23846 { (exit 1); exit 1; }; }
23849 done` ||
{ (exit 1); exit 1; }
23851 if test x
"$ac_file" != x-
; then
23852 { echo "$as_me:$LINENO: creating $ac_file" >&5
23853 echo "$as_me: creating $ac_file" >&6;}
23857 cat >>$CONFIG_STATUS <<_ACEOF
23861 cat >>$CONFIG_STATUS <<\_ACEOF
23863 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23864 s
,@configure_input@
,$configure_input,;t t
23865 s
,@srcdir@
,$ac_srcdir,;t t
23866 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23867 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23868 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23869 s
,@builddir@
,$ac_builddir,;t t
23870 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23871 s
,@top_builddir@
,$ac_top_builddir,;t t
23872 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23873 s
,@INSTALL@
,$ac_INSTALL,;t t
23874 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23876 if test x"$ac_file" != x-; then
23877 mv $tmp/out $ac_file
23885 cat >>$CONFIG_STATUS <<\_ACEOF
23888 # CONFIG_HEADER section.
23891 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23892 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23894 # ac_d sets the value in "#define NAME VALUE" lines.
23895 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23896 ac_dB
='[ ].*$,\1#\2'
23899 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23900 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23901 ac_uB
='$,\1#\2define\3'
23905 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23908 - |
*:- |
*:-:* ) # input from stdin
23910 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23911 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23912 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23913 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23914 * ) ac_file_in
=$ac_file.
in ;;
23917 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23918 echo "$as_me: creating $ac_file" >&6;}
23920 # First look for the input files in the build tree, otherwise in the
23922 ac_file_inputs
=`IFS=:
23923 for f in $ac_file_in; do
23925 -) echo $tmp/stdin ;;
23927 # Absolute (can't be DOS-style, as IFS=:)
23928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23929 echo "$as_me: error: cannot find input file: $f" >&2;}
23930 { (exit 1); exit 1; }; }
23931 # Do quote $f, to prevent DOS paths from being IFS'd.
23934 if test -f "$f"; then
23937 elif test -f "$srcdir/$f"; then
23942 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23943 echo "$as_me: error: cannot find input file: $f" >&2;}
23944 { (exit 1); exit 1; }; }
23947 done` ||
{ (exit 1); exit 1; }
23948 # Remove the trailing spaces.
23949 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23953 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23954 # `conftest.undefs', that substitutes the proper values into
23955 # config.h.in to produce config.h. The first handles `#define'
23956 # templates, and the second `#undef' templates.
23957 # And first: Protect against being on the right side of a sed subst in
23958 # config.status. Protect against being in an unquoted here document
23959 # in config.status.
23960 rm -f conftest.defines conftest.undefs
23961 # Using a here document instead of a string reduces the quoting nightmare.
23962 # Putting comments in sed scripts is not portable.
23964 # `end' is used to avoid that the second main sed command (meant for
23965 # 0-ary CPP macros) applies to n-ary macro definitions.
23966 # See the Autoconf documentation for `clear'.
23967 cat >confdef2sed.
sed <<\_ACEOF
23972 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23974 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23977 # If some macros were called several times there might be several times
23978 # the same #defines, which is useless. Nevertheless, we may not want to
23979 # sort them, since we want the *last* AC-DEFINE to be honored.
23980 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23981 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23982 rm -f confdef2sed.sed
23984 # This sed command replaces #undef with comments. This is necessary, for
23985 # example, in the case of _POSIX_SOURCE, which is predefined and required
23986 # on some systems where configure will not decide to define it.
23987 cat >>conftest.undefs <<\_ACEOF
23988 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23991 # Break up conftest.defines because some shells have a limit on the size
23992 # of here documents, and old seds have small limits too (100 cmds).
23993 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23994 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23995 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23996 echo ' :' >>$CONFIG_STATUS
23997 rm -f conftest.tail
23998 while grep . conftest.defines >/dev/null
24000 # Write a limited-size here document to $tmp/defines.sed.
24001 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24002 # Speed up: don't consider the non `#define' lines.
24003 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24004 # Work around the forget-to-reset-the-flag bug.
24005 echo 't clr' >>$CONFIG_STATUS
24006 echo ': clr' >>$CONFIG_STATUS
24007 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24009 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24011 mv $tmp/out $tmp/in
24013 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24014 rm -f conftest.defines
24015 mv conftest.
tail conftest.defines
24017 rm -f conftest.defines
24018 echo ' fi # grep' >>$CONFIG_STATUS
24019 echo >>$CONFIG_STATUS
24021 # Break up conftest.undefs because some shells have a limit on the size
24022 # of here documents, and old seds have small limits too (100 cmds).
24023 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24024 rm -f conftest.
tail
24025 while grep . conftest.undefs
>/dev
/null
24027 # Write a limited-size here document to $tmp/undefs.sed.
24028 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24029 # Speed up: don't consider the non
`#undef'
24030 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24031 # Work around the forget-to-reset-the-flag bug.
24032 echo 't clr' >>$CONFIG_STATUS
24033 echo ': clr' >>$CONFIG_STATUS
24034 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24036 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24038 mv $tmp/out $tmp/in
24040 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24041 rm -f conftest.undefs
24042 mv conftest.tail conftest.undefs
24044 rm -f conftest.undefs
24046 cat >>$CONFIG_STATUS <<\_ACEOF
24047 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24048 # use $as_me), people would be surprised to read:
24049 # /* config.h. Generated by config.status. */
24050 if test x
"$ac_file" = x-
; then
24051 echo "/* Generated by configure. */" >$tmp/config.h
24053 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24055 cat $tmp/in >>$tmp/config.h
24057 if test x
"$ac_file" != x-
; then
24058 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24059 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24060 echo "$as_me: $ac_file is unchanged" >&6;}
24062 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24064 X"$ac_file" : 'X\(//\)[^/]' \| \
24065 X"$ac_file" : 'X\(//\)$' \| \
24066 X"$ac_file" : 'X\(/\)' \| \
24067 . : '\(.\)' 2>/dev/null ||
24069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24071 /^X\(\/\/\)$/{ s//\1/; q; }
24072 /^X\(\/\).*/{ s//\1/; q; }
24074 { if $as_mkdir_p; then
24079 while test ! -d "$as_dir"; do
24080 as_dirs
="$as_dir $as_dirs"
24081 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24083 X"$as_dir" : 'X\(//\)[^/]' \| \
24084 X"$as_dir" : 'X\(//\)$' \| \
24085 X"$as_dir" : 'X\(/\)' \| \
24086 . : '\(.\)' 2>/dev/null ||
24088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24090 /^X\(\/\/\)$/{ s//\1/; q; }
24091 /^X\(\/\).*/{ s//\1/; q; }
24094 test ! -n "$as_dirs" || mkdir
$as_dirs
24095 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24096 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24097 { (exit 1); exit 1; }; }; }
24100 mv $tmp/config.h
$ac_file
24104 rm -f $tmp/config.h
24108 cat >>$CONFIG_STATUS <<\_ACEOF
24111 # CONFIG_COMMANDS section.
24113 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24114 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24115 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24116 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24117 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24118 X"$ac_dest" : 'X\(//\)[^/]' \| \
24119 X"$ac_dest" : 'X\(//\)$' \| \
24120 X"$ac_dest" : 'X\(/\)' \| \
24121 . : '\(.\)' 2>/dev/null ||
24123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24125 /^X\(\/\/\)$/{ s//\1/; q; }
24126 /^X\(\/\).*/{ s//\1/; q; }
24128 { if $as_mkdir_p; then
24133 while test ! -d "$as_dir"; do
24134 as_dirs
="$as_dir $as_dirs"
24135 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24137 X"$as_dir" : 'X\(//\)[^/]' \| \
24138 X"$as_dir" : 'X\(//\)$' \| \
24139 X"$as_dir" : 'X\(/\)' \| \
24140 . : '\(.\)' 2>/dev/null ||
24142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24144 /^X\(\/\/\)$/{ s//\1/; q; }
24145 /^X\(\/\).*/{ s//\1/; q; }
24148 test ! -n "$as_dirs" || mkdir
$as_dirs
24149 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24151 { (exit 1); exit 1; }; }; }
24155 if test "$ac_dir" != .
; then
24156 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24157 # A "../" for each directory in $ac_dir_suffix.
24158 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24160 ac_dir_suffix
= ac_top_builddir
=
24164 .
) # No --srcdir option. We are building in place.
24166 if test -z "$ac_top_builddir"; then
24169 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24171 [\\/]* | ?
:[\\/]* ) # Absolute path.
24172 ac_srcdir
=$srcdir$ac_dir_suffix;
24173 ac_top_srcdir
=$srcdir ;;
24174 *) # Relative path.
24175 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24176 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24179 # Do not use `cd foo && pwd` to compute absolute paths, because
24180 # the directories may not exist.
24182 .
) ac_abs_builddir
="$ac_dir";;
24185 .
) ac_abs_builddir
=`pwd`;;
24186 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24187 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24190 case $ac_abs_builddir in
24191 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24193 case ${ac_top_builddir}.
in
24194 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24195 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24196 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24199 case $ac_abs_builddir in
24200 .
) ac_abs_srcdir
=$ac_srcdir;;
24203 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24204 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24205 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24208 case $ac_abs_builddir in
24209 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24211 case $ac_top_srcdir in
24212 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24213 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24214 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24219 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24220 echo "$as_me: executing $ac_dest commands" >&6;}
24224 ### Make the necessary directories, if they don't exist.
24225 for dir
in etc lisp
; do
24226 test -d ${dir} || mkdir
${dir}
24229 # Build src/Makefile from ${srcdir}/src/Makefile.c
24230 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24231 # This must be done after src/config.h is built, since we rely on that file.
24233 # Now get this: Some word that is part of the ${srcdir} directory name
24234 # or the ${configuration} value might, just might, happen to be an
24235 # identifier like `sun4' or `i386' or something, and be predefined by
24236 # the C preprocessor to some helpful value like 1, or maybe the empty
24237 # string. Needless to say consequent macro substitutions are less
24238 # than conducive to the makefile finding the correct directory.
24239 undefs
="`echo $top_srcdir $configuration $canonical |
24240 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24241 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24244 echo creating src
/epaths.h
24245 ${MAKE-make} epaths-force
24247 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24248 # `..' to `. .' unless invoked with -traditional
24250 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24251 CPPFLAGS
="$CPPFLAGS -traditional"
24254 echo creating lib-src
/Makefile
24256 rm -f junk.c junk1.c junk2.c
24257 sed -e '/start of cpp stuff/q' \
24258 < Makefile.c
> junk1.c
24259 sed -e '1,/start of cpp stuff/d'\
24260 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24261 < Makefile.c
> junk.c
24262 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24263 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24264 cat junk1.c junk2.c
> Makefile.new
24265 rm -f junk.c junk1.c junk2.c
24266 chmod 444 Makefile.new
24267 mv -f Makefile.new Makefile
24270 echo creating src
/Makefile
24272 rm -f junk.c junk1.c junk2.c
24273 sed -e '/start of cpp stuff/q' \
24274 < Makefile.c
> junk1.c
24275 sed -e '1,/start of cpp stuff/d'\
24276 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24277 < Makefile.c
> junk.c
24278 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24279 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24280 cat junk1.c junk2.c
> Makefile.new
24281 rm -f junk.c junk1.c junk2.c
24282 chmod 444 Makefile.new
24283 mv -f Makefile.new Makefile
24286 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24287 echo creating src
/.gdbinit
24288 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24291 # This is how we know whether to re-run configure in certain cases.
24292 touch src
/config.stamp
24299 cat >>$CONFIG_STATUS <<\_ACEOF
24301 { (exit 0); exit 0; }
24303 chmod +x
$CONFIG_STATUS
24304 ac_clean_files
=$ac_clean_files_save
24307 # configure is writing to config.log, and then calls config.status.
24308 # config.status does its own redirection, appending to config.log.
24309 # Unfortunately, on DOS this fails, as config.log is still kept open
24310 # by configure, so config.status won't be able to write to it; its
24311 # output is simply discarded. So we exec the FD to /dev/null,
24312 # effectively closing config.log, so it can be properly (re)opened and
24313 # appended to by config.status. When coming back to configure, we
24314 # need to make the FD available again.
24315 if test "$no_create" != yes; then
24317 ac_config_status_args
=
24318 test "$silent" = yes &&
24319 ac_config_status_args
="$ac_config_status_args --quiet"
24321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24324 # would make configure fail if this is the last instruction.
24325 $ac_cs_success ||
{ (exit 1); exit 1; }