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"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try
='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.
$ac_ext >&5
3306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3307 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3310 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3313 ac_test_CFLAGS
=${CFLAGS+set}
3314 ac_save_CFLAGS
=$CFLAGS
3316 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318 if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 cat >conftest.
$ac_ext <<_ACEOF
3324 cat confdefs.h
>>conftest.
$ac_ext
3325 cat >>conftest.
$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try
='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try
='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3369 if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS
=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3378 if test "$GCC" = yes; then
3384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 ac_cv_prog_cc_stdc
=no
3391 cat >conftest.
$ac_ext <<_ACEOF
3394 cat confdefs.h
>>conftest.
$ac_ext
3395 cat >>conftest.
$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3415 s = g (p, va_arg (v,int));
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std1 is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std1. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3443 # Don't try gcc -ansi; that turns off useful extensions and
3444 # breaks some systems' header files.
3445 # AIX -qlanglvl=ansi
3446 # Ultrix and OSF/1 -std1
3447 # HP-UX 10.20 and later -Ae
3448 # HP-UX older versions -Aa -D_HPUX_SOURCE
3449 # SVR4 -Xc -D__EXTENSIONS__
3450 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 CC
="$ac_save_CC $ac_arg"
3453 rm -f conftest.
$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3457 grep -v '^ *+' conftest.er1
>conftest.err
3459 cat conftest.err
>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try
='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_prog_cc_stdc
=$ac_arg
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.
$ac_ext >&5
3482 rm -f conftest.err conftest.
$ac_objext
3484 rm -f conftest.
$ac_ext conftest.
$ac_objext
3489 case "x$ac_cv_prog_cc_stdc" in
3491 echo "$as_me:$LINENO: result: none needed" >&5
3492 echo "${ECHO_T}none needed" >&6 ;;
3494 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3496 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3499 # Some people use a C++ compiler to compile C. Since we use `exit',
3500 # in C++ we need to declare it. In case someone uses the same compiler
3501 # for both compiling C and C++ we need to have the C++ compiler decide
3502 # the declaration of exit, since it's the most demanding environment.
3503 cat >conftest.
$ac_ext <<_ACEOF
3508 rm -f conftest.
$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1
>conftest.err
3514 cat conftest.err
>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try
='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try
='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 for ac_declaration
in \
3532 'extern "C" void std::exit (int) throw (); using std::exit;' \
3533 'extern "C" void std::exit (int); using std::exit;' \
3534 'extern "C" void exit (int) throw ();' \
3535 'extern "C" void exit (int);' \
3538 cat >conftest.
$ac_ext <<_ACEOF
3541 cat confdefs.h
>>conftest.
$ac_ext
3542 cat >>conftest.
$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3554 rm -f conftest.
$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3558 grep -v '^ *+' conftest.er1
>conftest.err
3560 cat conftest.err
>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try
='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try
='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.
$ac_ext >&5
3583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3584 cat >conftest.
$ac_ext <<_ACEOF
3587 cat confdefs.h
>>conftest.
$ac_ext
3588 cat >>conftest.
$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3599 rm -f conftest.
$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1
>conftest.err
3605 cat conftest.err
>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try
='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try
='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.
$ac_ext >&5
3627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3630 if test -n "$ac_declaration"; then
3631 echo '#ifdef __cplusplus' >>confdefs.h
3632 echo $ac_declaration >>confdefs.h
3633 echo '#endif' >>confdefs.h
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.
$ac_ext >&5
3641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 ac_cpp
='$CPP $CPPFLAGS'
3644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3649 # On Suns, sometimes $CPP names a directory.
3650 if test -n "$CPP" && test -d "$CPP"; then
3654 #### Some systems specify a CPP to use unless we are using GCC.
3655 #### Now that we know whether we are using GCC, we can decide whether
3656 #### to use that one.
3657 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3662 #### Some systems specify a CC to use unless we are using GCC.
3663 #### Now that we know whether we are using GCC, we can decide whether
3664 #### to use that one.
3665 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3666 test x
$cc_specified != xyes
3671 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3673 CC
="$CC $GCC_TEST_OPTIONS"
3676 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3678 CC
="$CC $NON_GCC_TEST_OPTIONS"
3683 ac_cpp
='$CPP $CPPFLAGS'
3684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3687 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3688 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3689 # On Suns, sometimes $CPP names a directory.
3690 if test -n "$CPP" && test -d "$CPP"; then
3693 if test -z "$CPP"; then
3694 if test "${ac_cv_prog_CPP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 # Double quotes because CPP needs to be expanded
3698 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3701 for ac_c_preproc_warn_flag
in '' yes
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.
$ac_ext <<_ACEOF
3712 cat confdefs.h
>>conftest.
$ac_ext
3713 cat >>conftest.
$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3716 # include <limits.h>
3718 # include <assert.h>
3722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3725 grep -v '^ *+' conftest.er1
>conftest.err
3727 cat conftest.err
>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev
/null
; then
3730 if test -s conftest.err
; then
3731 ac_cpp_err
=$ac_c_preproc_warn_flag
3732 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3739 if test -z "$ac_cpp_err"; then
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.
$ac_ext >&5
3745 # Broken: fails on valid input.
3748 rm -f conftest.err conftest.
$ac_ext
3750 # OK, works on sane cases. Now check whether non-existent headers
3751 # can be detected and how.
3752 cat >conftest.
$ac_ext <<_ACEOF
3755 cat confdefs.h
>>conftest.
$ac_ext
3756 cat >>conftest.
$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3761 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3763 grep -v '^ *+' conftest.er1
>conftest.err
3765 cat conftest.err
>&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev
/null
; then
3768 if test -s conftest.err
; then
3769 ac_cpp_err
=$ac_c_preproc_warn_flag
3770 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3777 if test -z "$ac_cpp_err"; then
3778 # Broken: success on invalid input.
3781 echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.
$ac_ext >&5
3784 # Passes both tests.
3788 rm -f conftest.err conftest.
$ac_ext
3791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792 rm -f conftest.err conftest.
$ac_ext
3793 if $ac_preproc_ok; then
3805 echo "$as_me:$LINENO: result: $CPP" >&5
3806 echo "${ECHO_T}$CPP" >&6
3808 for ac_c_preproc_warn_flag
in '' yes
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat >conftest.
$ac_ext <<_ACEOF
3819 cat confdefs.h
>>conftest.
$ac_ext
3820 cat >>conftest.
$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 # include <limits.h>
3825 # include <assert.h>
3829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3832 grep -v '^ *+' conftest.er1
>conftest.err
3834 cat conftest.err
>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev
/null
; then
3837 if test -s conftest.err
; then
3838 ac_cpp_err
=$ac_c_preproc_warn_flag
3839 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3846 if test -z "$ac_cpp_err"; then
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.
$ac_ext >&5
3852 # Broken: fails on valid input.
3855 rm -f conftest.err conftest.
$ac_ext
3857 # OK, works on sane cases. Now check whether non-existent headers
3858 # can be detected and how.
3859 cat >conftest.
$ac_ext <<_ACEOF
3862 cat confdefs.h
>>conftest.
$ac_ext
3863 cat >>conftest.
$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <ac_nonexistent.h>
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3870 grep -v '^ *+' conftest.er1
>conftest.err
3872 cat conftest.err
>&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev
/null
; then
3875 if test -s conftest.err
; then
3876 ac_cpp_err
=$ac_c_preproc_warn_flag
3877 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3884 if test -z "$ac_cpp_err"; then
3885 # Broken: success on invalid input.
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.
$ac_ext >&5
3891 # Passes both tests.
3895 rm -f conftest.err conftest.
$ac_ext
3898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899 rm -f conftest.err conftest.
$ac_ext
3900 if $ac_preproc_ok; then
3903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3904 See \`config.log' for more details." >&5
3905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3906 See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }
3911 ac_cpp
='$CPP $CPPFLAGS'
3912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3917 echo "$as_me:$LINENO: checking for egrep" >&5
3918 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3919 if test "${ac_cv_prog_egrep+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3923 then ac_cv_prog_egrep
='grep -E'
3924 else ac_cv_prog_egrep
='egrep'
3927 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3928 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3929 EGREP
=$ac_cv_prog_egrep
3933 echo "$as_me:$LINENO: checking for AIX" >&5
3934 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3935 cat >conftest.
$ac_ext <<_ACEOF
3938 cat confdefs.h
>>conftest.
$ac_ext
3939 cat >>conftest.
$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev
/null
2>&1; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 cat >>confdefs.h
<<\_ACEOF
3951 #define _ALL_SOURCE 1
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3962 cat >>confdefs.h
<<\_ACEOF
3963 #define _GNU_SOURCE 1
3968 ### Use -Wno-pointer-sign if the compiler supports it
3969 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3970 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3971 SAVE_CFLAGS
="$CFLAGS"
3972 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3973 cat >conftest.
$ac_ext <<_ACEOF
3976 cat confdefs.h
>>conftest.
$ac_ext
3977 cat >>conftest.
$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3988 rm -f conftest.
$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>conftest.er1
3992 grep -v '^ *+' conftest.er1
>conftest.err
3994 cat conftest.err
>&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try
='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try
='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.
$ac_ext >&5
4017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4018 if test $has_option = yes; then
4019 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4021 echo "$as_me:$LINENO: result: $has_option" >&5
4022 echo "${ECHO_T}$has_option" >&6
4023 CFLAGS
="$SAVE_CFLAGS"
4027 #### Some other nice autoconf tests.
4029 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4030 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4032 if test "$LN_S" = "ln -s"; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034 echo "${ECHO_T}yes" >&6
4036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4037 echo "${ECHO_T}no, using $LN_S" >&6
4041 ac_cpp
='$CPP $CPPFLAGS'
4042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4045 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4047 # On Suns, sometimes $CPP names a directory.
4048 if test -n "$CPP" && test -d "$CPP"; then
4051 if test -z "$CPP"; then
4052 if test "${ac_cv_prog_CPP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 # Double quotes because CPP needs to be expanded
4056 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4059 for ac_c_preproc_warn_flag
in '' yes
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
4067 cat >conftest.
$ac_ext <<_ACEOF
4070 cat confdefs.h
>>conftest.
$ac_ext
4071 cat >>conftest.
$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4074 # include <limits.h>
4076 # include <assert.h>
4080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1
>conftest.err
4085 cat conftest.err
>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev
/null
; then
4088 if test -s conftest.err
; then
4089 ac_cpp_err
=$ac_c_preproc_warn_flag
4090 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4097 if test -z "$ac_cpp_err"; then
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.
$ac_ext >&5
4103 # Broken: fails on valid input.
4106 rm -f conftest.err conftest.
$ac_ext
4108 # OK, works on sane cases. Now check whether non-existent headers
4109 # can be detected and how.
4110 cat >conftest.
$ac_ext <<_ACEOF
4113 cat confdefs.h
>>conftest.
$ac_ext
4114 cat >>conftest.
$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4121 grep -v '^ *+' conftest.er1
>conftest.err
4123 cat conftest.err
>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev
/null
; then
4126 if test -s conftest.err
; then
4127 ac_cpp_err
=$ac_c_preproc_warn_flag
4128 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4135 if test -z "$ac_cpp_err"; then
4136 # Broken: success on invalid input.
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.
$ac_ext >&5
4142 # Passes both tests.
4146 rm -f conftest.err conftest.
$ac_ext
4149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150 rm -f conftest.err conftest.
$ac_ext
4151 if $ac_preproc_ok; then
4163 echo "$as_me:$LINENO: result: $CPP" >&5
4164 echo "${ECHO_T}$CPP" >&6
4166 for ac_c_preproc_warn_flag
in '' yes
4168 # Use a header file that comes with gcc, so configuring glibc
4169 # with a fresh cross-compiler works.
4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4171 # <limits.h> exists even on freestanding compilers.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat >conftest.
$ac_ext <<_ACEOF
4177 cat confdefs.h
>>conftest.
$ac_ext
4178 cat >>conftest.
$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4181 # include <limits.h>
4183 # include <assert.h>
4187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1
>conftest.err
4192 cat conftest.err
>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev
/null
; then
4195 if test -s conftest.err
; then
4196 ac_cpp_err
=$ac_c_preproc_warn_flag
4197 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4204 if test -z "$ac_cpp_err"; then
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.
$ac_ext >&5
4210 # Broken: fails on valid input.
4213 rm -f conftest.err conftest.
$ac_ext
4215 # OK, works on sane cases. Now check whether non-existent headers
4216 # can be detected and how.
4217 cat >conftest.
$ac_ext <<_ACEOF
4220 cat confdefs.h
>>conftest.
$ac_ext
4221 cat >>conftest.
$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4228 grep -v '^ *+' conftest.er1
>conftest.err
4230 cat conftest.err
>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev
/null
; then
4233 if test -s conftest.err
; then
4234 ac_cpp_err
=$ac_c_preproc_warn_flag
4235 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4242 if test -z "$ac_cpp_err"; then
4243 # Broken: success on invalid input.
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.
$ac_ext >&5
4249 # Passes both tests.
4253 rm -f conftest.err conftest.
$ac_ext
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.
$ac_ext
4258 if $ac_preproc_ok; then
4261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details." >&5
4263 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264 See \`config.log' for more details." >&2;}
4265 { (exit 1); exit 1; }; }
4269 ac_cpp
='$CPP $CPPFLAGS'
4270 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4274 # Find a good install program. We prefer a C program (faster),
4275 # so one script is as good as another. But avoid the broken or
4276 # incompatible versions:
4277 # SysV /etc/install, /usr/sbin/install
4278 # SunOS /usr/etc/install
4279 # IRIX /sbin/install
4281 # AmigaOS /C/install, which installs bootblocks on floppy discs
4282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4285 # OS/2's system install, which has a completely different semantic
4286 # ./install, which can be erroneously created by make from ./install.sh.
4287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4289 if test -z "$INSTALL"; then
4290 if test "${ac_cv_path_install+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir
=.
4298 # Account for people who put trailing slashes in PATH elements.
4300 .
/ | .
// |
/cC
/* | \
4301 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4302 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4305 # OSF1 and SCO ODT 3.0 have their own names for install.
4306 # Don't use installbsd from OSF since it installs stuff as root
4308 for ac_prog
in ginstall scoinst
install; do
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4311 if test $ac_prog = install &&
4312 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4313 # AIX install. It has an incompatible calling convention.
4315 elif test $ac_prog = install &&
4316 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4317 # program-specific install script used by HP pwplus--don't use.
4320 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4332 if test "${ac_cv_path_install+set}" = set; then
4333 INSTALL
=$ac_cv_path_install
4335 # As a last resort, use the slow shell script. We don't cache a
4336 # path for INSTALL within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the path is relative.
4339 INSTALL
=$ac_install_sh
4342 echo "$as_me:$LINENO: result: $INSTALL" >&5
4343 echo "${ECHO_T}$INSTALL" >&6
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4351 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4353 if test "x$RANLIB" = x
; then
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4356 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4357 echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359 if test "${ac_cv_prog_RANLIB+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 if test -n "$RANLIB"; then
4363 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir
=.
4370 for ac_exec_ext
in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 RANLIB
=$ac_cv_prog_RANLIB
4382 if test -n "$RANLIB"; then
4383 echo "$as_me:$LINENO: result: $RANLIB" >&5
4384 echo "${ECHO_T}$RANLIB" >&6
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -z "$ac_cv_prog_RANLIB"; then
4392 ac_ct_RANLIB
=$RANLIB
4393 # Extract the first word of "ranlib", so it can be a program name with args.
4394 set dummy ranlib
; ac_word
=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$ac_ct_RANLIB"; then
4401 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4421 if test -n "$ac_ct_RANLIB"; then
4422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4429 RANLIB
=$ac_ct_RANLIB
4431 RANLIB
="$ac_cv_prog_RANLIB"
4435 # Extract the first word of "install-info", so it can be a program name with args.
4436 set dummy install-info
; ac_word
=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 case $INSTALL_INFO in
4444 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4466 if test -n "$INSTALL_INFO"; then
4467 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4468 echo "${ECHO_T}$INSTALL_INFO" >&6
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4474 # Extract the first word of "install-info", so it can be a program name with args.
4475 set dummy install-info
; ac_word
=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 case $INSTALL_INFO in
4483 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4487 for as_dir
in /usr
/sbin
4490 test -z "$as_dir" && as_dir
=.
4491 for ac_exec_ext
in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4505 if test -n "$INSTALL_INFO"; then
4506 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4507 echo "${ECHO_T}$INSTALL_INFO" >&6
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4513 # Extract the first word of "install-info", so it can be a program name with args.
4514 set dummy install-info
; ac_word
=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 case $INSTALL_INFO in
4522 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir
=.
4530 for ac_exec_ext
in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4543 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4545 if test -n "$INSTALL_INFO"; then
4546 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4547 echo "${ECHO_T}$INSTALL_INFO" >&6
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4553 # Extract the first word of "gzip", so it can be a program name with args.
4554 set dummy
gzip; ac_word
=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir
=.
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4584 if test -n "$GZIP_PROG"; then
4585 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4586 echo "${ECHO_T}$GZIP_PROG" >&6
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4594 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4596 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4599 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4601 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4605 late_LDFLAGS
=$LDFLAGS
4606 if test "$GCC" = yes; then
4607 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4609 LDFLAGS
="$LDFLAGS -znocombreloc"
4612 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4613 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 rm -f conftest.
$ac_objext conftest
$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>conftest.er1
4621 grep -v '^ *+' conftest.er1
>conftest.err
4623 cat conftest.err
>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try
='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try
='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.
$ac_ext >&5
4645 LDFLAGS
=$late_LDFLAGS
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4649 rm -f conftest.err conftest.
$ac_objext \
4650 conftest
$ac_exeext conftest.
$ac_ext
4652 #### Extract some information from the operating system and machine files.
4654 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4655 - which libraries the lib-src programs will want, and
4656 - whether the GNU malloc routines are usable..." >&5
4657 echo "$as_me: checking the machine- and system-dependent files to find out
4658 - which libraries the lib-src programs will want, and
4659 - whether the GNU malloc routines are usable..." >&6;}
4661 ### First figure out CFLAGS (which we use for running the compiler here)
4662 ### and REAL_CFLAGS (which we use for real compilation).
4663 ### The two are the same except on a few systems, where they are made
4664 ### different to work around various lossages. For example,
4665 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4666 ### as implying static linking.
4668 ### If the CFLAGS env var is specified, we use that value
4669 ### instead of the default.
4671 ### It's not important that this name contain the PID; you can't run
4672 ### two configures in the same directory and have anything work
4674 tempcname
="conftest.c"
4677 #include "'${srcdir}'/src/'${opsysfile}'"
4678 #include "'${srcdir}'/src/'${machfile}'"
4679 #ifndef LIBS_MACHINE
4680 #define LIBS_MACHINE
4685 #ifndef C_SWITCH_SYSTEM
4686 #define C_SWITCH_SYSTEM
4688 #ifndef C_SWITCH_MACHINE
4689 #define C_SWITCH_MACHINE
4691 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4692 configure___ c_switch_system=C_SWITCH_SYSTEM
4693 configure___ c_switch_machine=C_SWITCH_MACHINE
4696 #define LIB_X11_LIB -lX11
4699 #ifndef LIBX11_MACHINE
4700 #define LIBX11_MACHINE
4703 #ifndef LIBX11_SYSTEM
4704 #define LIBX11_SYSTEM
4706 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4709 configure___ unexec=UNEXEC
4711 configure___ unexec=unexec.o
4714 #ifdef SYSTEM_MALLOC
4715 configure___ system_malloc=yes
4717 configure___ system_malloc=no
4720 #ifdef USE_MMAP_FOR_BUFFERS
4721 configure___ use_mmap_for_buffers=yes
4723 configure___ use_mmap_for_buffers=no
4726 #ifndef C_DEBUG_SWITCH
4727 #define C_DEBUG_SWITCH -g
4730 #ifndef C_OPTIMIZE_SWITCH
4732 #define C_OPTIMIZE_SWITCH -O2
4734 #define C_OPTIMIZE_SWITCH -O
4738 #ifndef C_WARNINGS_SWITCH
4739 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4742 #ifndef LD_SWITCH_MACHINE
4743 #define LD_SWITCH_MACHINE
4746 #ifndef LD_SWITCH_SYSTEM
4747 #define LD_SWITCH_SYSTEM
4750 #ifndef LD_SWITCH_X_SITE_AUX
4751 #define LD_SWITCH_X_SITE_AUX
4754 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4755 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4757 #ifdef THIS_IS_CONFIGURE
4759 /* Get the CFLAGS for tests in configure. */
4761 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4763 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4766 #else /* not THIS_IS_CONFIGURE */
4768 /* Get the CFLAGS for real compilation. */
4770 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4772 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4775 #endif /* not THIS_IS_CONFIGURE */
4778 # The value of CPP is a quoted variable reference, so we need to do this
4779 # to get its actual value...
4780 CPP
=`eval "echo $CPP"`
4781 eval `${CPP} -Isrc ${tempcname} \
4782 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4783 if test "x$SPECIFIED_CFLAGS" = x
; then
4784 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4785 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4787 REAL_CFLAGS
="$CFLAGS"
4791 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4793 ### Make sure subsequent tests use flags consistent with the build flags.
4795 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4796 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4798 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4803 # Check whether --enable-largefile or --disable-largefile was given.
4804 if test "${enable_largefile+set}" = set; then
4805 enableval
="$enable_largefile"
4808 if test "$enable_largefile" != no
; then
4810 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4811 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4812 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 ac_cv_sys_largefile_CC
=no
4816 if test "$GCC" != yes; then
4819 # IRIX 6.2 and later do not support large files by default,
4820 # so use the C compiler's -n32 option if that helps.
4821 cat >conftest.
$ac_ext <<_ACEOF
4824 cat confdefs.h
>>conftest.
$ac_ext
4825 cat >>conftest.
$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <sys/types.h>
4828 /* Check that off_t can represent 2**63 - 1 correctly.
4829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4830 since some C++ compilers masquerading as C compilers
4831 incorrectly reject 9223372036854775807. */
4832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4834 && LARGE_OFF_T % 2147483647 == 1)
4844 rm -f conftest.
$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1
>conftest.err
4850 cat conftest.err
>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try
='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try
='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.
$ac_ext >&5
4872 rm -f conftest.err conftest.
$ac_objext
4874 rm -f conftest.
$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4878 grep -v '^ *+' conftest.er1
>conftest.err
4880 cat conftest.err
>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try
='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try
='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_sys_largefile_CC
=' -n32'; break
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.
$ac_ext >&5
4902 rm -f conftest.err conftest.
$ac_objext
4906 rm -f conftest.
$ac_ext
4909 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4910 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4911 if test "$ac_cv_sys_largefile_CC" != no
; then
4912 CC
=$CC$ac_cv_sys_largefile_CC
4915 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4916 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4917 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 ac_cv_sys_file_offset_bits
=no
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931 since some C++ compilers masquerading as C compilers
4932 incorrectly reject 9223372036854775807. */
4933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935 && LARGE_OFF_T % 2147483647 == 1)
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4949 grep -v '^ *+' conftest.er1
>conftest.err
4951 cat conftest.err
>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try
='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try
='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.
$ac_ext >&5
4973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4974 cat >conftest.
$ac_ext <<_ACEOF
4977 cat confdefs.h
>>conftest.
$ac_ext
4978 cat >>conftest.
$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #define _FILE_OFFSET_BITS 64
4981 #include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984 since some C++ compilers masquerading as C compilers
4985 incorrectly reject 9223372036854775807. */
4986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988 && LARGE_OFF_T % 2147483647 == 1)
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_sys_file_offset_bits
=64; break
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5030 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5031 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5032 if test "$ac_cv_sys_file_offset_bits" != no
; then
5034 cat >>confdefs.h
<<_ACEOF
5035 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5040 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5041 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5042 if test "${ac_cv_sys_large_files+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 ac_cv_sys_large_files
=no
5047 cat >conftest.
$ac_ext <<_ACEOF
5050 cat confdefs.h
>>conftest.
$ac_ext
5051 cat >>conftest.
$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 /* Check that off_t can represent 2**63 - 1 correctly.
5055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5056 since some C++ compilers masquerading as C compilers
5057 incorrectly reject 9223372036854775807. */
5058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5060 && LARGE_OFF_T % 2147483647 == 1)
5070 rm -f conftest.
$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5074 grep -v '^ *+' conftest.er1
>conftest.err
5076 cat conftest.err
>&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try
='test -z "$ac_c_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try
='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.
$ac_ext >&5
5098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 cat >conftest.
$ac_ext <<_ACEOF
5102 cat confdefs.h
>>conftest.
$ac_ext
5103 cat >>conftest.
$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #define _LARGE_FILES 1
5106 #include <sys/types.h>
5107 /* Check that off_t can represent 2**63 - 1 correctly.
5108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5109 since some C++ compilers masquerading as C compilers
5110 incorrectly reject 9223372036854775807. */
5111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5113 && LARGE_OFF_T % 2147483647 == 1)
5123 rm -f conftest.
$ac_objext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1
>conftest.err
5129 cat conftest.err
>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try
='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try
='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_sys_large_files
=1; break
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.
$ac_ext >&5
5151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5156 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5157 if test "$ac_cv_sys_large_files" != no
; then
5159 cat >>confdefs.h
<<_ACEOF
5160 #define _LARGE_FILES $ac_cv_sys_large_files
5172 if test "${with_sound}" != "no"; then
5173 # Sound support for GNU/Linux and the free BSDs.
5174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5176 if test "${ac_cv_header_stdc+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cat >conftest.
$ac_ext <<_ACEOF
5182 cat confdefs.h
>>conftest.
$ac_ext
5183 cat >>conftest.
$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5198 rm -f conftest.
$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1
>conftest.err
5204 cat conftest.err
>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try
='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try
='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5220 ac_cv_header_stdc
=yes
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.
$ac_ext >&5
5225 ac_cv_header_stdc
=no
5227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5229 if test $ac_cv_header_stdc = yes; then
5230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5231 cat >conftest.
$ac_ext <<_ACEOF
5234 cat confdefs.h
>>conftest.
$ac_ext
5235 cat >>conftest.
$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 $EGREP "memchr" >/dev
/null
2>&1; then
5244 ac_cv_header_stdc
=no
5250 if test $ac_cv_header_stdc = yes; then
5251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5252 cat >conftest.
$ac_ext <<_ACEOF
5255 cat confdefs.h
>>conftest.
$ac_ext
5256 cat >>conftest.
$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "free" >/dev
/null
2>&1; then
5265 ac_cv_header_stdc
=no
5271 if test $ac_cv_header_stdc = yes; then
5272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5273 if test "$cross_compiling" = yes; then
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5283 #if ((' ' & 0x0FF) == 0x020)
5284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5287 # define ISLOWER(c) \
5288 (('a' <= (c) && (c) <= 'i') \
5289 || ('j' <= (c) && (c) <= 'r') \
5290 || ('s' <= (c) && (c) <= 'z'))
5291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5299 for (i = 0; i < 256; i++)
5300 if (XOR (islower (i), ISLOWER (i))
5301 || toupper (i) != TOUPPER (i))
5306 rm -f conftest
$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308 (eval $ac_link) 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5319 echo "$as_me: program exited with status $ac_status" >&5
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.
$ac_ext >&5
5324 ac_cv_header_stdc
=no
5326 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5330 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5331 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5332 if test $ac_cv_header_stdc = yes; then
5334 cat >>confdefs.h
<<\_ACEOF
5335 #define STDC_HEADERS 1
5340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5351 inttypes.h stdint.h unistd.h
5353 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_header" >&5
5355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 cat >conftest.
$ac_ext <<_ACEOF
5362 cat confdefs.h
>>conftest.
$ac_ext
5363 cat >>conftest.
$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5367 #include <$ac_header>
5369 rm -f conftest.
$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1
>conftest.err
5375 cat conftest.err
>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try
='test -z "$ac_c_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try
='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 eval "$as_ac_Header=yes"
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5396 eval "$as_ac_Header=no"
5398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5403 cat >>confdefs.h
<<_ACEOF
5404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5415 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5417 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for $ac_header" >&5
5420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 # Is the header compilable?
5428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5430 cat >conftest.
$ac_ext <<_ACEOF
5433 cat confdefs.h
>>conftest.
$ac_ext
5434 cat >>conftest.
$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 #include <$ac_header>
5439 rm -f conftest.
$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>conftest.er1
5443 grep -v '^ *+' conftest.er1
>conftest.err
5445 cat conftest.err
>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try
='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try
='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_header_compiler
=yes
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.
$ac_ext >&5
5466 ac_header_compiler
=no
5468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5470 echo "${ECHO_T}$ac_header_compiler" >&6
5472 # Is the header present?
5473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5475 cat >conftest.
$ac_ext <<_ACEOF
5478 cat confdefs.h
>>conftest.
$ac_ext
5479 cat >>conftest.
$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <$ac_header>
5483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5486 grep -v '^ *+' conftest.er1
>conftest.err
5488 cat conftest.err
>&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } >/dev
/null
; then
5491 if test -s conftest.err
; then
5492 ac_cpp_err
=$ac_c_preproc_warn_flag
5493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5500 if test -z "$ac_cpp_err"; then
5501 ac_header_preproc
=yes
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.
$ac_ext >&5
5506 ac_header_preproc
=no
5508 rm -f conftest.err conftest.
$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5510 echo "${ECHO_T}$ac_header_preproc" >&6
5512 # So? What about this header?
5513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5519 ac_header_preproc
=yes
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5536 ## ------------------------------------------ ##
5537 ## Report this to the AC_PACKAGE_NAME lists. ##
5538 ## ------------------------------------------ ##
5541 sed "s/^/$as_me: WARNING: /" >&2
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 eval "$as_ac_Header=\$ac_header_preproc"
5551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556 cat >>confdefs.h
<<_ACEOF
5557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5564 # Emulation library used on NetBSD.
5565 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5566 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5567 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_check_lib_save_LIBS
=$LIBS
5571 LIBS
="-lossaudio $LIBS"
5572 cat >conftest.
$ac_ext <<_ACEOF
5575 cat confdefs.h
>>conftest.
$ac_ext
5576 cat >>conftest.
$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 /* Override any gcc2 internal prototype to avoid an error. */
5583 /* We use char because int might match the return type of a gcc2
5584 builtin and then its argument prototype would still apply. */
5594 rm -f conftest.
$ac_objext conftest
$ac_exeext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1
>conftest.err
5600 cat conftest.err
>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try
='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try
='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_lib_ossaudio__oss_ioctl
=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.
$ac_ext >&5
5621 ac_cv_lib_ossaudio__oss_ioctl
=no
5623 rm -f conftest.err conftest.
$ac_objext \
5624 conftest
$ac_exeext conftest.
$ac_ext
5625 LIBS
=$ac_check_lib_save_LIBS
5627 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5628 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5629 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5638 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5639 if test "X${with_pkg_config_prog}" != X
; then
5640 PKG_CONFIG
="${with_pkg_config_prog}"
5645 if test -z "$PKG_CONFIG"; then
5646 # Extract the first word of "pkg-config", so it can be a program name with args.
5647 set dummy pkg-config
; ac_word
=$2
5648 echo "$as_me:$LINENO: checking for $ac_word" >&5
5649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5650 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir
=.
5663 for ac_exec_ext
in '' $ac_executable_extensions; do
5664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5676 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5678 if test -n "$PKG_CONFIG"; then
5679 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5680 echo "${ECHO_T}$PKG_CONFIG" >&6
5682 echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6
5688 if test "$PKG_CONFIG" = "no" ; then
5691 PKG_CONFIG_MIN_VERSION
=0.9.0
5692 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5693 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5694 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5696 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698 echo "${ECHO_T}yes" >&6
5701 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5702 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5703 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5704 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5705 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5707 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5708 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5709 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5710 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5711 echo "${ECHO_T}$ALSA_LIBS" >&6
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 ## If we have a custom action on failure, don't print errors, but
5718 ## do set a variable so people can do so.
5719 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5731 if test $succeeded = yes; then
5737 if test $HAVE_ALSA = yes; then
5738 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5739 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5741 cat >>confdefs.h
<<\_ACEOF
5774 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5775 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5776 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5777 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5780 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5782 echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5790 # Is the header compilable?
5791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5793 cat >conftest.
$ac_ext <<_ACEOF
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5800 #include <$ac_header>
5802 rm -f conftest.
$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1
>conftest.err
5808 cat conftest.err
>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try
='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try
='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_header_compiler
=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.
$ac_ext >&5
5829 ac_header_compiler
=no
5831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6
5835 # Is the header present?
5836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5838 cat >conftest.
$ac_ext <<_ACEOF
5841 cat confdefs.h
>>conftest.
$ac_ext
5842 cat >>conftest.
$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <$ac_header>
5846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5847 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5849 grep -v '^ *+' conftest.er1
>conftest.err
5851 cat conftest.err
>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev
/null
; then
5854 if test -s conftest.err
; then
5855 ac_cpp_err
=$ac_c_preproc_warn_flag
5856 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5863 if test -z "$ac_cpp_err"; then
5864 ac_header_preproc
=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.
$ac_ext >&5
5869 ac_header_preproc
=no
5871 rm -f conftest.err conftest.
$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5873 echo "${ECHO_T}$ac_header_preproc" >&6
5875 # So? What about this header?
5876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5882 ac_header_preproc
=yes
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5899 ## ------------------------------------------ ##
5900 ## Report this to the AC_PACKAGE_NAME lists. ##
5901 ## ------------------------------------------ ##
5904 sed "s/^/$as_me: WARNING: /" >&2
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 eval "$as_ac_Header=\$ac_header_preproc"
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919 cat >>confdefs.h
<<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5928 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5929 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5930 cat >conftest.
$ac_ext <<_ACEOF
5933 cat confdefs.h
>>conftest.
$ac_ext
5934 cat >>conftest.
$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <sys/personality.h>
5940 personality (PER_LINUX32)
5945 rm -f conftest.
$ac_objext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>conftest.er1
5949 grep -v '^ *+' conftest.er1
>conftest.err
5951 cat conftest.err
>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try
='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try
='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 emacs_cv_personality_linux32
=yes
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.
$ac_ext >&5
5972 emacs_cv_personality_linux32
=no
5974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5975 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5976 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5978 if test $emacs_cv_personality_linux32 = yes; then
5980 cat >>confdefs.h
<<\_ACEOF
5981 #define HAVE_PERSONALITY_LINUX32 1
5987 for ac_header
in term.h
5989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 echo "$as_me:$LINENO: checking for $ac_header" >&5
5991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <$ac_header>
6003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6006 grep -v '^ *+' conftest.er1
>conftest.err
6008 cat conftest.err
>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev
/null
; then
6011 if test -s conftest.err
; then
6012 ac_cpp_err
=$ac_c_preproc_warn_flag
6013 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6020 if test -z "$ac_cpp_err"; then
6021 eval "$as_ac_Header=yes"
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.
$ac_ext >&5
6026 eval "$as_ac_Header=no"
6028 rm -f conftest.err conftest.
$ac_ext
6030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6033 cat >>confdefs.h
<<_ACEOF
6034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6043 if test "${ac_cv_header_stdc+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 cat >conftest.
$ac_ext <<_ACEOF
6049 cat confdefs.h
>>conftest.
$ac_ext
6050 cat >>conftest.
$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6065 rm -f conftest.
$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>conftest.er1
6069 grep -v '^ *+' conftest.er1
>conftest.err
6071 cat conftest.err
>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try
='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try
='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_header_stdc
=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.
$ac_ext >&5
6092 ac_cv_header_stdc
=no
6094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6096 if test $ac_cv_header_stdc = yes; then
6097 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev
/null
2>&1; then
6111 ac_cv_header_stdc
=no
6117 if test $ac_cv_header_stdc = yes; then
6118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6119 cat >conftest.
$ac_ext <<_ACEOF
6122 cat confdefs.h
>>conftest.
$ac_ext
6123 cat >>conftest.
$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "free" >/dev
/null
2>&1; then
6132 ac_cv_header_stdc
=no
6138 if test $ac_cv_header_stdc = yes; then
6139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6140 if test "$cross_compiling" = yes; then
6143 cat >conftest.
$ac_ext <<_ACEOF
6146 cat confdefs.h
>>conftest.
$ac_ext
6147 cat >>conftest.
$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6150 #if ((' ' & 0x0FF) == 0x020)
6151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6154 # define ISLOWER(c) \
6155 (('a' <= (c) && (c) <= 'i') \
6156 || ('j' <= (c) && (c) <= 'r') \
6157 || ('s' <= (c) && (c) <= 'z'))
6158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6166 for (i = 0; i < 256; i++)
6167 if (XOR (islower (i), ISLOWER (i))
6168 || toupper (i) != TOUPPER (i))
6173 rm -f conftest
$ac_exeext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6186 echo "$as_me: program exited with status $ac_status" >&5
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.
$ac_ext >&5
6191 ac_cv_header_stdc
=no
6193 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6199 if test $ac_cv_header_stdc = yes; then
6201 cat >>confdefs.h
<<\_ACEOF
6202 #define STDC_HEADERS 1
6207 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6208 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6209 if test "${ac_cv_header_time+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 cat >conftest.
$ac_ext <<_ACEOF
6215 cat confdefs.h
>>conftest.
$ac_ext
6216 cat >>conftest.
$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <sys/types.h>
6219 #include <sys/time.h>
6225 if ((struct tm *) 0)
6231 rm -f conftest.
$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6235 grep -v '^ *+' conftest.er1
>conftest.err
6237 cat conftest.err
>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try
='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try
='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_header_time
=yes
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.
$ac_ext >&5
6258 ac_cv_header_time
=no
6260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6263 echo "${ECHO_T}$ac_cv_header_time" >&6
6264 if test $ac_cv_header_time = yes; then
6266 cat >>confdefs.h
<<\_ACEOF
6267 #define TIME_WITH_SYS_TIME 1
6272 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6273 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6274 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6288 char *p = (char *) sys_siglist;
6295 rm -f conftest.
$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>conftest.er1
6299 grep -v '^ *+' conftest.er1
>conftest.err
6301 cat conftest.err
>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try
='test -z "$ac_c_werror_flag"
6305 || test ! -s conftest.err'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; } &&
6311 { ac_try
='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_have_decl_sys_siglist
=yes
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.
$ac_ext >&5
6322 ac_cv_have_decl_sys_siglist
=no
6324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6327 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6328 if test $ac_cv_have_decl_sys_siglist = yes; then
6330 cat >>confdefs.h
<<_ACEOF
6331 #define HAVE_DECL_SYS_SIGLIST 1
6336 cat >>confdefs.h
<<_ACEOF
6337 #define HAVE_DECL_SYS_SIGLIST 0
6344 if test $ac_cv_have_decl_sys_siglist != yes; then
6345 # For Tru64, at least:
6346 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6347 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6348 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 cat >conftest.
$ac_ext <<_ACEOF
6354 cat confdefs.h
>>conftest.
$ac_ext
6355 cat >>conftest.
$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6361 #ifndef __sys_siglist
6362 char *p = (char *) __sys_siglist;
6369 rm -f conftest.
$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6373 grep -v '^ *+' conftest.er1
>conftest.err
6375 cat conftest.err
>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try
='test -z "$ac_c_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try
='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_have_decl___sys_siglist
=yes
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.
$ac_ext >&5
6396 ac_cv_have_decl___sys_siglist
=no
6398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6401 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6402 if test $ac_cv_have_decl___sys_siglist = yes; then
6404 cat >>confdefs.h
<<_ACEOF
6405 #define HAVE_DECL___SYS_SIGLIST 1
6410 cat >>confdefs.h
<<_ACEOF
6411 #define HAVE_DECL___SYS_SIGLIST 0
6418 if test $ac_cv_have_decl___sys_siglist = yes; then
6420 cat >>confdefs.h
<<\_ACEOF
6421 #define sys_siglist __sys_siglist
6426 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6427 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6428 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 cat >conftest.
$ac_ext <<_ACEOF
6434 cat confdefs.h
>>conftest.
$ac_ext
6435 cat >>conftest.
$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <sys/types.h>
6438 #include <sys/wait.h>
6440 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6443 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6451 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6456 rm -f conftest.
$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1
>conftest.err
6462 cat conftest.err
>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try
='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try
='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_header_sys_wait_h
=yes
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.
$ac_ext >&5
6483 ac_cv_header_sys_wait_h
=no
6485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6489 if test $ac_cv_header_sys_wait_h = yes; then
6491 cat >>confdefs.h
<<\_ACEOF
6492 #define HAVE_SYS_WAIT_H 1
6498 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6499 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6500 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cat >conftest.
$ac_ext <<_ACEOF
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #ifdef TIME_WITH_SYS_TIME
6510 #include <sys/time.h>
6513 #ifdef HAVE_SYS_TIME_H
6514 #include <sys/time.h>
6525 static struct utimbuf x; x.actime = x.modtime;
6530 rm -f conftest.
$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>conftest.er1
6534 grep -v '^ *+' conftest.er1
>conftest.err
6536 cat conftest.err
>&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try
='test -z "$ac_c_werror_flag"
6540 || test ! -s conftest.err'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; } &&
6546 { ac_try
='test -s conftest.$ac_objext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 emacs_cv_struct_utimbuf
=yes
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.
$ac_ext >&5
6557 emacs_cv_struct_utimbuf
=no
6559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6561 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6562 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6563 if test $emacs_cv_struct_utimbuf = yes; then
6565 cat >>confdefs.h
<<\_ACEOF
6566 #define HAVE_STRUCT_UTIMBUF 1
6571 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6572 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6573 if test "${ac_cv_type_signal+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 cat >conftest.
$ac_ext <<_ACEOF
6579 cat confdefs.h
>>conftest.
$ac_ext
6580 cat >>conftest.
$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <sys/types.h>
6588 extern "C" void (*signal (int, void (*)(int)))(int);
6590 void (*signal ()) ();
6601 rm -f conftest.
$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try
='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try
='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_type_signal
=void
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.
$ac_ext >&5
6628 ac_cv_type_signal
=int
6630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6632 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6633 echo "${ECHO_T}$ac_cv_type_signal" >&6
6635 cat >>confdefs.h
<<_ACEOF
6636 #define RETSIGTYPE $ac_cv_type_signal
6641 echo "$as_me:$LINENO: checking for speed_t" >&5
6642 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6643 if test "${emacs_cv_speed_t+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 cat >conftest.
$ac_ext <<_ACEOF
6649 cat confdefs.h
>>conftest.
$ac_ext
6650 cat >>conftest.
$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <termios.h>
6661 rm -f conftest.
$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6665 grep -v '^ *+' conftest.er1
>conftest.err
6667 cat conftest.err
>&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try
='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try
='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 emacs_cv_speed_t
=yes
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6692 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6693 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6694 if test $emacs_cv_speed_t = yes; then
6696 cat >>confdefs.h
<<\_ACEOF
6697 #define HAVE_SPEED_T 1
6702 echo "$as_me:$LINENO: checking for struct timeval" >&5
6703 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6704 if test "${emacs_cv_struct_timeval+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.
$ac_ext <<_ACEOF
6710 cat confdefs.h
>>conftest.
$ac_ext
6711 cat >>conftest.
$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #ifdef TIME_WITH_SYS_TIME
6714 #include <sys/time.h>
6717 #ifdef HAVE_SYS_TIME_H
6718 #include <sys/time.h>
6726 static struct timeval x; x.tv_sec = x.tv_usec;
6731 rm -f conftest.
$ac_objext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733 (eval $ac_compile) 2>conftest.er1
6735 grep -v '^ *+' conftest.er1
>conftest.err
6737 cat conftest.err
>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try
='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try
='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 emacs_cv_struct_timeval
=yes
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.
$ac_ext >&5
6758 emacs_cv_struct_timeval
=no
6760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6762 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6763 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6764 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6765 if test $emacs_cv_struct_timeval = yes; then
6767 cat >>confdefs.h
<<\_ACEOF
6768 #define HAVE_TIMEVAL 1
6773 echo "$as_me:$LINENO: checking for struct exception" >&5
6774 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6775 if test "${emacs_cv_struct_exception+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 cat >conftest.
$ac_ext <<_ACEOF
6781 cat confdefs.h
>>conftest.
$ac_ext
6782 cat >>conftest.
$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6788 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6793 rm -f conftest.
$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>conftest.er1
6797 grep -v '^ *+' conftest.er1
>conftest.err
6799 cat conftest.err
>&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try
='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try
='test -s conftest.$ac_objext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 emacs_cv_struct_exception
=yes
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.
$ac_ext >&5
6820 emacs_cv_struct_exception
=no
6822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6824 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6825 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6826 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6827 if test $emacs_cv_struct_exception != yes; then
6829 cat >>confdefs.h
<<\_ACEOF
6830 #define NO_MATHERR 1
6836 for ac_header
in sys
/socket.h
6838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6840 echo "$as_me:$LINENO: checking for $ac_header" >&5
6841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6848 # Is the header compilable?
6849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6851 cat >conftest.
$ac_ext <<_ACEOF
6854 cat confdefs.h
>>conftest.
$ac_ext
6855 cat >>conftest.
$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6858 #include <$ac_header>
6860 rm -f conftest.
$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try
='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try
='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_header_compiler
=yes
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.
$ac_ext >&5
6887 ac_header_compiler
=no
6889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6891 echo "${ECHO_T}$ac_header_compiler" >&6
6893 # Is the header present?
6894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6896 cat >conftest.
$ac_ext <<_ACEOF
6899 cat confdefs.h
>>conftest.
$ac_ext
6900 cat >>conftest.
$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <$ac_header>
6904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6907 grep -v '^ *+' conftest.er1
>conftest.err
6909 cat conftest.err
>&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } >/dev
/null
; then
6912 if test -s conftest.err
; then
6913 ac_cpp_err
=$ac_c_preproc_warn_flag
6914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6921 if test -z "$ac_cpp_err"; then
6922 ac_header_preproc
=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6927 ac_header_preproc
=no
6929 rm -f conftest.err conftest.
$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6931 echo "${ECHO_T}$ac_header_preproc" >&6
6933 # So? What about this header?
6934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6940 ac_header_preproc
=yes
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6957 ## ------------------------------------------ ##
6958 ## Report this to the AC_PACKAGE_NAME lists. ##
6959 ## ------------------------------------------ ##
6962 sed "s/^/$as_me: WARNING: /" >&2
6965 echo "$as_me:$LINENO: checking for $ac_header" >&5
6966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 eval "$as_ac_Header=\$ac_header_preproc"
6972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6977 cat >>confdefs.h
<<_ACEOF
6978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6986 for ac_header
in net
/if.h
6988 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989 echo "$as_me:$LINENO: checking for $ac_header" >&5
6990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 cat >conftest.
$ac_ext <<_ACEOF
6997 cat confdefs.h
>>conftest.
$ac_ext
6998 cat >>conftest.
$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 #if HAVE_SYS_SOCKET_H
7002 #include <sys/socket.h>
7005 #include <$ac_header>
7007 rm -f conftest.
$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>conftest.er1
7011 grep -v '^ *+' conftest.er1
>conftest.err
7013 cat conftest.err
>&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try
='test -z "$ac_c_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try
='test -s conftest.$ac_objext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 eval "$as_ac_Header=yes"
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.
$ac_ext >&5
7034 eval "$as_ac_Header=no"
7036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7041 cat >>confdefs.h
<<_ACEOF
7042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7050 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7051 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7052 if test "${ac_cv_struct_tm+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 cat >conftest.
$ac_ext <<_ACEOF
7058 cat confdefs.h
>>conftest.
$ac_ext
7059 cat >>conftest.
$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #include <sys/types.h>
7067 struct tm *tp; tp->tm_sec;
7072 rm -f conftest.
$ac_objext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074 (eval $ac_compile) 2>conftest.er1
7076 grep -v '^ *+' conftest.er1
>conftest.err
7078 cat conftest.err
>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try
='test -z "$ac_c_werror_flag"
7082 || test ! -s conftest.err'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try
='test -s conftest.$ac_objext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_struct_tm
=time.h
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.
$ac_ext >&5
7099 ac_cv_struct_tm
=sys
/time.h
7101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7104 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7105 if test $ac_cv_struct_tm = sys
/time.h
; then
7107 cat >>confdefs.h
<<\_ACEOF
7108 #define TM_IN_SYS_TIME 1
7113 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7114 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7115 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.
$ac_ext <<_ACEOF
7121 cat confdefs.h
>>conftest.
$ac_ext
7122 cat >>conftest.
$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <sys/types.h>
7125 #include <$ac_cv_struct_tm>
7131 static struct tm ac_aggr;
7132 if (ac_aggr.tm_zone)
7138 rm -f conftest.
$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7142 grep -v '^ *+' conftest.er1
>conftest.err
7144 cat conftest.err
>&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try
='test -z "$ac_c_werror_flag"
7148 || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try
='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_cv_member_struct_tm_tm_zone
=yes
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.
$ac_ext >&5
7165 cat >conftest.
$ac_ext <<_ACEOF
7168 cat confdefs.h
>>conftest.
$ac_ext
7169 cat >>conftest.
$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <sys/types.h>
7172 #include <$ac_cv_struct_tm>
7178 static struct tm ac_aggr;
7179 if (sizeof ac_aggr.tm_zone)
7185 rm -f conftest.
$ac_objext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>conftest.er1
7189 grep -v '^ *+' conftest.er1
>conftest.err
7191 cat conftest.err
>&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try
='test -z "$ac_c_werror_flag"
7195 || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try
='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_member_struct_tm_tm_zone
=yes
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.
$ac_ext >&5
7212 ac_cv_member_struct_tm_tm_zone
=no
7214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7219 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7220 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7222 cat >>confdefs.h
<<_ACEOF
7223 #define HAVE_STRUCT_TM_TM_ZONE 1
7229 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7231 cat >>confdefs.h
<<\_ACEOF
7232 #define HAVE_TM_ZONE 1
7236 echo "$as_me:$LINENO: checking for tzname" >&5
7237 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7238 if test "${ac_cv_var_tzname+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 cat >conftest.
$ac_ext <<_ACEOF
7244 cat confdefs.h
>>conftest.
$ac_ext
7245 cat >>conftest.
$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7248 #ifndef tzname /* For SGI. */
7249 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7260 rm -f conftest.
$ac_objext conftest
$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7264 grep -v '^ *+' conftest.er1
>conftest.err
7266 cat conftest.err
>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try
='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try
='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_var_tzname
=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.
$ac_ext >&5
7289 rm -f conftest.err conftest.
$ac_objext \
7290 conftest
$ac_exeext conftest.
$ac_ext
7292 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7293 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7294 if test $ac_cv_var_tzname = yes; then
7296 cat >>confdefs.h
<<\_ACEOF
7297 #define HAVE_TZNAME 1
7303 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7304 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7305 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 cat >conftest.
$ac_ext <<_ACEOF
7311 cat confdefs.h
>>conftest.
$ac_ext
7312 cat >>conftest.
$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7319 static struct tm ac_aggr;
7320 if (ac_aggr.tm_gmtoff)
7326 rm -f conftest.
$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7330 grep -v '^ *+' conftest.er1
>conftest.err
7332 cat conftest.err
>&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try
='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try
='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 ac_cv_member_struct_tm_tm_gmtoff
=yes
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.
$ac_ext >&5
7353 cat >conftest.
$ac_ext <<_ACEOF
7356 cat confdefs.h
>>conftest.
$ac_ext
7357 cat >>conftest.
$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7364 static struct tm ac_aggr;
7365 if (sizeof ac_aggr.tm_gmtoff)
7371 rm -f conftest.
$ac_objext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>conftest.er1
7375 grep -v '^ *+' conftest.er1
>conftest.err
7377 cat conftest.err
>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try
='test -z "$ac_c_werror_flag"
7381 || test ! -s conftest.err'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try
='test -s conftest.$ac_objext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_member_struct_tm_tm_gmtoff
=yes
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.
$ac_ext >&5
7398 ac_cv_member_struct_tm_tm_gmtoff
=no
7400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7405 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7406 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7408 cat >>confdefs.h
<<\_ACEOF
7409 #define HAVE_TM_GMTOFF 1
7414 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7415 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7416 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 cat >conftest.
$ac_ext <<_ACEOF
7422 cat confdefs.h
>>conftest.
$ac_ext
7423 cat >>conftest.
$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 $ac_includes_default
7426 #if HAVE_SYS_SOCKET_H
7427 #include <sys/socket.h>
7436 static struct ifreq ac_aggr;
7437 if (ac_aggr.ifr_flags)
7443 rm -f conftest.
$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7447 grep -v '^ *+' conftest.er1
>conftest.err
7449 cat conftest.err
>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try
='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try
='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_member_struct_ifreq_ifr_flags
=yes
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.
$ac_ext >&5
7470 cat >conftest.
$ac_ext <<_ACEOF
7473 cat confdefs.h
>>conftest.
$ac_ext
7474 cat >>conftest.
$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7477 #if HAVE_SYS_SOCKET_H
7478 #include <sys/socket.h>
7487 static struct ifreq ac_aggr;
7488 if (sizeof ac_aggr.ifr_flags)
7494 rm -f conftest.
$ac_objext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>conftest.er1
7498 grep -v '^ *+' conftest.er1
>conftest.err
7500 cat conftest.err
>&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try
='test -z "$ac_c_werror_flag"
7504 || test ! -s conftest.err'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try
='test -s conftest.$ac_objext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 ac_cv_member_struct_ifreq_ifr_flags
=yes
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.
$ac_ext >&5
7521 ac_cv_member_struct_ifreq_ifr_flags
=no
7523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7527 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7528 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7529 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7531 cat >>confdefs.h
<<_ACEOF
7532 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7537 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7538 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7539 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 cat >conftest.
$ac_ext <<_ACEOF
7545 cat confdefs.h
>>conftest.
$ac_ext
7546 cat >>conftest.
$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 $ac_includes_default
7549 #if HAVE_SYS_SOCKET_H
7550 #include <sys/socket.h>
7559 static struct ifreq ac_aggr;
7560 if (ac_aggr.ifr_hwaddr)
7566 rm -f conftest.
$ac_objext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568 (eval $ac_compile) 2>conftest.er1
7570 grep -v '^ *+' conftest.er1
>conftest.err
7572 cat conftest.err
>&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try
='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try
='test -s conftest.$ac_objext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.
$ac_ext >&5
7593 cat >conftest.
$ac_ext <<_ACEOF
7596 cat confdefs.h
>>conftest.
$ac_ext
7597 cat >>conftest.
$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7600 #if HAVE_SYS_SOCKET_H
7601 #include <sys/socket.h>
7610 static struct ifreq ac_aggr;
7611 if (sizeof ac_aggr.ifr_hwaddr)
7617 rm -f conftest.
$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>conftest.er1
7621 grep -v '^ *+' conftest.er1
>conftest.err
7623 cat conftest.err
>&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try
='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try
='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7650 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7651 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7652 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7654 cat >>confdefs.h
<<_ACEOF
7655 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7660 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7661 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7662 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 cat >conftest.
$ac_ext <<_ACEOF
7668 cat confdefs.h
>>conftest.
$ac_ext
7669 cat >>conftest.
$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7672 #if HAVE_SYS_SOCKET_H
7673 #include <sys/socket.h>
7682 static struct ifreq ac_aggr;
7683 if (ac_aggr.ifr_netmask)
7689 rm -f conftest.
$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7693 grep -v '^ *+' conftest.er1
>conftest.err
7695 cat conftest.err
>&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try
='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try
='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.
$ac_ext >&5
7716 cat >conftest.
$ac_ext <<_ACEOF
7719 cat confdefs.h
>>conftest.
$ac_ext
7720 cat >>conftest.
$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 $ac_includes_default
7723 #if HAVE_SYS_SOCKET_H
7724 #include <sys/socket.h>
7733 static struct ifreq ac_aggr;
7734 if (sizeof ac_aggr.ifr_netmask)
7740 rm -f conftest.
$ac_objext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>conftest.er1
7744 grep -v '^ *+' conftest.er1
>conftest.err
7746 cat conftest.err
>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try
='test -s conftest.$ac_objext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.
$ac_ext >&5
7767 ac_cv_member_struct_ifreq_ifr_netmask
=no
7769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7773 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7774 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7775 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7777 cat >>confdefs.h
<<_ACEOF
7778 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7783 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7784 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7785 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 cat >conftest.
$ac_ext <<_ACEOF
7791 cat confdefs.h
>>conftest.
$ac_ext
7792 cat >>conftest.
$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 #if HAVE_SYS_SOCKET_H
7796 #include <sys/socket.h>
7805 static struct ifreq ac_aggr;
7806 if (ac_aggr.ifr_broadaddr)
7812 rm -f conftest.
$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>conftest.er1
7816 grep -v '^ *+' conftest.er1
>conftest.err
7818 cat conftest.err
>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try
='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try
='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.
$ac_ext >&5
7839 cat >conftest.
$ac_ext <<_ACEOF
7842 cat confdefs.h
>>conftest.
$ac_ext
7843 cat >>conftest.
$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 #if HAVE_SYS_SOCKET_H
7847 #include <sys/socket.h>
7856 static struct ifreq ac_aggr;
7857 if (sizeof ac_aggr.ifr_broadaddr)
7863 rm -f conftest.
$ac_objext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7865 (eval $ac_compile) 2>conftest.er1
7867 grep -v '^ *+' conftest.er1
>conftest.err
7869 cat conftest.err
>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try
='test -z "$ac_c_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try
='test -s conftest.$ac_objext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.
$ac_ext >&5
7890 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7892 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7896 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7897 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7898 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7900 cat >>confdefs.h
<<_ACEOF
7901 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7906 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7907 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7908 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 cat >conftest.
$ac_ext <<_ACEOF
7914 cat confdefs.h
>>conftest.
$ac_ext
7915 cat >>conftest.
$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 $ac_includes_default
7918 #if HAVE_SYS_SOCKET_H
7919 #include <sys/socket.h>
7928 static struct ifreq ac_aggr;
7929 if (ac_aggr.ifr_addr)
7935 rm -f conftest.
$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7939 grep -v '^ *+' conftest.er1
>conftest.err
7941 cat conftest.err
>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try
='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try
='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_member_struct_ifreq_ifr_addr
=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.
$ac_ext >&5
7962 cat >conftest.
$ac_ext <<_ACEOF
7965 cat confdefs.h
>>conftest.
$ac_ext
7966 cat >>conftest.
$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #if HAVE_SYS_SOCKET_H
7970 #include <sys/socket.h>
7979 static struct ifreq ac_aggr;
7980 if (sizeof ac_aggr.ifr_addr)
7986 rm -f conftest.
$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7990 grep -v '^ *+' conftest.er1
>conftest.err
7992 cat conftest.err
>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try
='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try
='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_member_struct_ifreq_ifr_addr
=yes
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.
$ac_ext >&5
8013 ac_cv_member_struct_ifreq_ifr_addr
=no
8015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8019 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8020 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8021 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8023 cat >>confdefs.h
<<_ACEOF
8024 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8032 echo "$as_me:$LINENO: checking for function prototypes" >&5
8033 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8034 if test "$ac_cv_prog_cc_stdc" != no
; then
8035 echo "$as_me:$LINENO: result: yes" >&5
8036 echo "${ECHO_T}yes" >&6
8038 cat >>confdefs.h
<<\_ACEOF
8039 #define PROTOTYPES 1
8043 cat >>confdefs.h
<<\_ACEOF
8044 #define __PROTOTYPES 1
8048 echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8052 echo "$as_me:$LINENO: checking for working volatile" >&5
8053 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8054 if test "${ac_cv_c_volatile+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 cat >conftest.
$ac_ext <<_ACEOF
8060 cat confdefs.h
>>conftest.
$ac_ext
8061 cat >>conftest.
$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8074 rm -f conftest.
$ac_objext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076 (eval $ac_compile) 2>conftest.er1
8078 grep -v '^ *+' conftest.er1
>conftest.err
8080 cat conftest.err
>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try
='test -z "$ac_c_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try
='test -s conftest.$ac_objext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 ac_cv_c_volatile
=yes
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.
$ac_ext >&5
8103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8105 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8106 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8107 if test $ac_cv_c_volatile = no
; then
8109 cat >>confdefs.h
<<\_ACEOF
8115 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8116 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8117 if test "${ac_cv_c_const+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.
$ac_ext <<_ACEOF
8123 cat confdefs.h
>>conftest.
$ac_ext
8124 cat >>conftest.
$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8130 /* FIXME: Include the comments suggested by Paul. */
8132 /* Ultrix mips cc rejects this. */
8133 typedef int charset[2];
8135 /* SunOS 4.1.1 cc rejects this. */
8136 char const *const *ccp;
8138 /* NEC SVR4.0.2 mips cc rejects this. */
8139 struct point {int x, y;};
8140 static struct point const zero = {0,0};
8141 /* AIX XL C 1.02.0.0 rejects this.
8142 It does not let you subtract one const X* pointer from another in
8143 an arm of an if-expression whose if-part is not a constant
8145 const char *g = "string";
8146 ccp = &g + (g ? g-g : 0);
8147 /* HPUX 7.0 cc rejects these. */
8150 ccp = (char const *const *) p;
8151 { /* SCO 3.2v4 cc rejects this. */
8153 char const *s = 0 ? (char *) 0 : (char const *) 0;
8157 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8159 const int *foo = &x[0];
8162 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8163 typedef const int *iptr;
8167 { /* AIX XL C 1.02.0.0 rejects this saying
8168 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8169 struct s { int j; const int *ap[3]; };
8170 struct s *b; b->j = 5;
8172 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8181 rm -f conftest.
$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8185 grep -v '^ *+' conftest.er1
>conftest.err
8187 cat conftest.err
>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try
='test -z "$ac_c_werror_flag"
8191 || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try
='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.
$ac_ext >&5
8210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8212 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8213 echo "${ECHO_T}$ac_cv_c_const" >&6
8214 if test $ac_cv_c_const = no
; then
8216 cat >>confdefs.h
<<\_ACEOF
8222 echo "$as_me:$LINENO: checking for void * support" >&5
8223 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8224 if test "${emacs_cv_void_star+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 cat >conftest.
$ac_ext <<_ACEOF
8230 cat confdefs.h
>>conftest.
$ac_ext
8231 cat >>conftest.
$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8242 rm -f conftest.
$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try
='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 emacs_cv_void_star
=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 emacs_cv_void_star
=no
8271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8273 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8274 echo "${ECHO_T}$emacs_cv_void_star" >&6
8275 if test $emacs_cv_void_star = yes; then
8276 cat >>confdefs.h
<<\_ACEOF
8277 #define POINTER_TYPE void
8281 cat >>confdefs.h
<<\_ACEOF
8282 #define POINTER_TYPE char
8291 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8292 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8293 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8294 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 cat >conftest.
make <<\_ACEOF
8299 @
echo 'ac_maketemp="$(MAKE)"'
8301 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8302 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8303 if test -n "$ac_maketemp"; then
8304 eval ac_cv_prog_make_
${ac_make}_set
=yes
8306 eval ac_cv_prog_make_
${ac_make}_set
=no
8310 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8311 echo "$as_me:$LINENO: result: yes" >&5
8312 echo "${ECHO_T}yes" >&6
8315 echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6
8317 SET_MAKE
="MAKE=${MAKE-make}"
8321 echo "$as_me:$LINENO: checking for long file names" >&5
8322 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8323 if test "${ac_cv_sys_long_file_names+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 ac_cv_sys_long_file_names
=yes
8327 # Test for long file names in all the places we know might matter:
8328 # . the current directory, where building will happen
8329 # $prefix/lib where we will be installing things
8330 # $exec_prefix/lib likewise
8331 # eval it to expand exec_prefix.
8332 # $TMPDIR if set, where it might want to write temporary files
8333 # if $TMPDIR is not set:
8334 # /tmp where it might want to write temporary files
8337 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8340 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8342 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8343 test -d $ac_dir ||
continue
8344 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8345 ac_xdir
=$ac_dir/cf$$
8346 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8347 ac_tf1
=$ac_xdir/conftest9012345
8348 ac_tf2
=$ac_xdir/conftest9012346
8349 (echo 1 >$ac_tf1) 2>/dev
/null
8350 (echo 2 >$ac_tf2) 2>/dev
/null
8351 ac_val
=`cat $ac_tf1 2>/dev/null`
8352 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8353 ac_cv_sys_long_file_names
=no
8354 rm -rf $ac_xdir 2>/dev
/null
8357 rm -rf $ac_xdir 2>/dev
/null
8360 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8361 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8362 if test $ac_cv_sys_long_file_names = yes; then
8364 cat >>confdefs.h
<<\_ACEOF
8365 #define HAVE_LONG_FILE_NAMES 1
8371 #### Choose a window system.
8373 echo "$as_me:$LINENO: checking for X" >&5
8374 echo $ECHO_N "checking for X... $ECHO_C" >&6
8377 # Check whether --with-x or --without-x was given.
8378 if test "${with_x+set}" = set; then
8382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8383 if test "x$with_x" = xno
; then
8384 # The user explicitly disabled X.
8387 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8388 # Both variables are already set.
8391 if test "${ac_cv_have_x+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 # One or both of the vars are not set, and there is no cached value.
8395 ac_x_includes
=no ac_x_libraries
=no
8397 if mkdir conftest.dir
; then
8399 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8400 cat >Imakefile
<<'_ACEOF'
8402 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8404 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8406 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8408 for ac_extension
in a so sl
; do
8409 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8410 test -f $ac_im_libdir/libX11.
$ac_extension; then
8411 ac_im_usrlibdir
=$ac_im_libdir; break
8414 # Screen out bogus values from the imake configuration. They are
8415 # bogus both because they are the default anyway, and because
8416 # using them would break gcc on systems where it needs fixed includes.
8417 case $ac_im_incroot in
8419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8421 case $ac_im_usrlibdir in
8423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8430 # Standard set of common directories for X headers.
8431 # Check X11 before X11Rn because it is often a symlink to the current release.
8443 /usr/local/X11/include
8444 /usr/local/X11R6/include
8445 /usr/local/X11R5/include
8446 /usr/local/X11R4/include
8448 /usr/local/include/X11
8449 /usr/local/include/X11R6
8450 /usr/local/include/X11R5
8451 /usr/local/include/X11R4
8455 /usr/XFree86/include/X11
8459 /usr/unsupported/include
8461 /usr/local/x11r5/include
8462 /usr/lpp/Xamples/include
8464 /usr/openwin/include
8465 /usr/openwin/share/include'
8467 if test "$ac_x_includes" = no
; then
8468 # Guess where to find include files, by looking for Intrinsic.h.
8469 # First, try using that file with no special directory specified.
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <X11/Intrinsic.h>
8478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8481 grep -v '^ *+' conftest.er1
>conftest.err
8483 cat conftest.err
>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } >/dev
/null
; then
8486 if test -s conftest.err
; then
8487 ac_cpp_err
=$ac_c_preproc_warn_flag
8488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8495 if test -z "$ac_cpp_err"; then
8496 # We can compile using X headers with no special include directory.
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.
$ac_ext >&5
8502 for ac_dir
in $ac_x_header_dirs; do
8503 if test -r "$ac_dir/X11/Intrinsic.h"; then
8504 ac_x_includes
=$ac_dir
8509 rm -f conftest.err conftest.
$ac_ext
8510 fi # $ac_x_includes = no
8512 if test "$ac_x_libraries" = no
; then
8513 # Check for the libraries.
8514 # See if we find them without any special options.
8515 # Don't add to $LIBS permanently.
8518 cat >conftest.
$ac_ext <<_ACEOF
8521 cat confdefs.h
>>conftest.
$ac_ext
8522 cat >>conftest.
$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <X11/Intrinsic.h>
8533 rm -f conftest.
$ac_objext conftest
$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>conftest.er1
8537 grep -v '^ *+' conftest.er1
>conftest.err
8539 cat conftest.err
>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try
='test -z "$ac_c_werror_flag"
8543 || test ! -s conftest.err'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try
='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8556 # We can link X programs with no special library path.
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.
$ac_ext >&5
8563 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8565 # Don't even attempt the hair of trying to link an X program!
8566 for ac_extension
in a so sl
; do
8567 if test -r $ac_dir/libXt.
$ac_extension; then
8568 ac_x_libraries
=$ac_dir
8574 rm -f conftest.err conftest.
$ac_objext \
8575 conftest
$ac_exeext conftest.
$ac_ext
8576 fi # $ac_x_libraries = no
8578 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8579 # Didn't find X anywhere. Cache the known absence of X.
8580 ac_cv_have_x
="have_x=no"
8582 # Record where we found X for the cache.
8583 ac_cv_have_x
="have_x=yes \
8584 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8589 eval "$ac_cv_have_x"
8592 if test "$have_x" != yes; then
8593 echo "$as_me:$LINENO: result: $have_x" >&5
8594 echo "${ECHO_T}$have_x" >&6
8597 # If each of the values was on the command line, it overrides each guess.
8598 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8599 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8600 # Update the cache value to reflect the command line values.
8601 ac_cv_have_x
="have_x=yes \
8602 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8603 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8604 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8607 if test "$no_x" = yes; then
8613 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8614 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8615 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8616 x_default_search_path
=""
8617 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8619 ${x_library}/X11/%L/%T/%N%C%S:\
8620 ${x_library}/X11/%l/%T/%N%C%S:\
8621 ${x_library}/X11/%T/%N%C%S:\
8622 ${x_library}/X11/%L/%T/%N%S:\
8623 ${x_library}/X11/%l/%T/%N%S:\
8624 ${x_library}/X11/%T/%N%S"
8625 if test x
"${x_default_search_path}" = x
; then
8626 x_default_search_path
=${x_search_path}
8628 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8632 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8633 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8636 if test x
"${x_includes}" = x
; then
8637 bitmapdir
=/usr
/include
/X11
/bitmaps
8639 # accumulate include directories that have X11 bitmap subdirectories
8641 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8642 if test -d "${bmd}/X11/bitmaps"; then
8643 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8645 if test -d "${bmd}/bitmaps"; then
8646 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8649 if test ${bmd_acc} != "dummyval"; then
8650 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8655 if test "${with_carbon}" != no
; then
8656 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8657 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8658 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8659 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8663 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8665 # Is the header compilable?
8666 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8667 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #include <Carbon/Carbon.h>
8677 rm -f conftest.
$ac_objext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8679 (eval $ac_compile) 2>conftest.er1
8681 grep -v '^ *+' conftest.er1
>conftest.err
8683 cat conftest.err
>&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try
='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try
='test -s conftest.$ac_objext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_header_compiler
=yes
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.
$ac_ext >&5
8704 ac_header_compiler
=no
8706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8708 echo "${ECHO_T}$ac_header_compiler" >&6
8710 # Is the header present?
8711 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8712 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8713 cat >conftest.
$ac_ext <<_ACEOF
8716 cat confdefs.h
>>conftest.
$ac_ext
8717 cat >>conftest.
$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <Carbon/Carbon.h>
8721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8722 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8724 grep -v '^ *+' conftest.er1
>conftest.err
8726 cat conftest.err
>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } >/dev
/null
; then
8729 if test -s conftest.err
; then
8730 ac_cpp_err
=$ac_c_preproc_warn_flag
8731 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8738 if test -z "$ac_cpp_err"; then
8739 ac_header_preproc
=yes
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.
$ac_ext >&5
8744 ac_header_preproc
=no
8746 rm -f conftest.err conftest.
$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 echo "${ECHO_T}$ac_header_preproc" >&6
8750 # So? What about this header?
8751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8754 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8756 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8757 ac_header_preproc
=yes
8760 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8761 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8763 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8765 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8767 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8769 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8771 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8774 ## ------------------------------------------ ##
8775 ## Report this to the AC_PACKAGE_NAME lists. ##
8776 ## ------------------------------------------ ##
8779 sed "s/^/$as_me: WARNING: /" >&2
8782 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8783 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8784 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8789 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8790 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8793 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8799 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8800 if test "${with_carbon+set}" != set \
8801 && test "${carbon_appdir_x+set}" != set; then
8805 if test "${HAVE_CARBON}" = yes; then
8809 case "${window_system}" in
8813 case "${with_x_toolkit}" in
8814 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8815 motif
) USE_X_TOOLKIT
=MOTIF
;;
8817 USE_X_TOOLKIT
=none
;;
8818 no
) USE_X_TOOLKIT
=none
;;
8819 * ) USE_X_TOOLKIT
=maybe
;;
8829 ### If we're using X11, we should use the X menu package.
8832 yes ) HAVE_MENUS
=yes ;;
8835 if test "${opsys}" = "hpux9"; then
8836 case "${x_libraries}" in
8838 opsysfile
="s/hpux9-x11r4.h"
8843 if test "${opsys}" = "hpux9shr"; then
8844 case "${x_libraries}" in
8846 opsysfile
="s/hpux9shxr4.h"
8851 ### Compute the unexec source name from the object name.
8852 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8854 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8855 # Assume not, until told otherwise.
8858 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8859 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8860 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 cat >conftest.
$ac_ext <<_ACEOF
8866 cat confdefs.h
>>conftest.
$ac_ext
8867 cat >>conftest.
$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8871 #define malloc_get_state innocuous_malloc_get_state
8873 /* System header to define __stub macros and hopefully few prototypes,
8874 which can conflict with char malloc_get_state (); below.
8875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876 <limits.h> exists even on freestanding compilers. */
8879 # include <limits.h>
8881 # include <assert.h>
8884 #undef malloc_get_state
8886 /* Override any gcc2 internal prototype to avoid an error. */
8891 /* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893 char malloc_get_state ();
8894 /* The GNU C library defines this for functions which it implements
8895 to always fail with ENOSYS. Some functions are actually named
8896 something starting with __ and the normal name is an alias. */
8897 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8900 char (*f) () = malloc_get_state;
8909 return f != malloc_get_state;
8914 rm -f conftest.
$ac_objext conftest
$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8918 grep -v '^ *+' conftest.er1
>conftest.err
8920 cat conftest.err
>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try
='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try
='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_func_malloc_get_state
=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.
$ac_ext >&5
8941 ac_cv_func_malloc_get_state
=no
8943 rm -f conftest.err conftest.
$ac_objext \
8944 conftest
$ac_exeext conftest.
$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8947 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8948 if test $ac_cv_func_malloc_get_state = yes; then
8954 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8955 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8956 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 cat >conftest.
$ac_ext <<_ACEOF
8962 cat confdefs.h
>>conftest.
$ac_ext
8963 cat >>conftest.
$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8967 #define malloc_set_state innocuous_malloc_set_state
8969 /* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char malloc_set_state (); below.
8971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8972 <limits.h> exists even on freestanding compilers. */
8975 # include <limits.h>
8977 # include <assert.h>
8980 #undef malloc_set_state
8982 /* Override any gcc2 internal prototype to avoid an error. */
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8989 char malloc_set_state ();
8990 /* The GNU C library defines this for functions which it implements
8991 to always fail with ENOSYS. Some functions are actually named
8992 something starting with __ and the normal name is an alias. */
8993 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8996 char (*f) () = malloc_set_state;
9005 return f != malloc_set_state;
9010 rm -f conftest.
$ac_objext conftest
$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9014 grep -v '^ *+' conftest.er1
>conftest.err
9016 cat conftest.err
>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try
='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try
='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_func_malloc_set_state
=yes
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.
$ac_ext >&5
9037 ac_cv_func_malloc_set_state
=no
9039 rm -f conftest.err conftest.
$ac_objext \
9040 conftest
$ac_exeext conftest.
$ac_ext
9042 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9043 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9044 if test $ac_cv_func_malloc_set_state = yes; then
9050 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9051 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9052 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 cat >conftest.
$ac_ext <<_ACEOF
9058 cat confdefs.h
>>conftest.
$ac_ext
9059 cat >>conftest.
$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 extern void (* __after_morecore_hook)();
9065 __after_morecore_hook = 0
9070 rm -f conftest.
$ac_objext conftest
$ac_exeext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9072 (eval $ac_link) 2>conftest.er1
9074 grep -v '^ *+' conftest.er1
>conftest.err
9076 cat conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try
='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try
='test -s conftest$ac_exeext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 emacs_cv_var___after_morecore_hook
=yes
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.
$ac_ext >&5
9097 emacs_cv_var___after_morecore_hook
=no
9099 rm -f conftest.err conftest.
$ac_objext \
9100 conftest
$ac_exeext conftest.
$ac_ext
9102 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9103 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9104 if test $emacs_cv_var___after_morecore_hook = no
; then
9107 if test "${system_malloc}" = "yes"; then
9110 (The GNU allocators don't work with this system configuration.)"
9112 if test "$doug_lea_malloc" = "yes" ; then
9113 if test "$GNU_MALLOC" = yes ; then
9115 (Using Doug Lea's new malloc from the GNU C Library.)"
9118 cat >>confdefs.h
<<\_ACEOF
9119 #define DOUG_LEA_MALLOC 1
9124 if test x
"${REL_ALLOC}" = x
; then
9125 REL_ALLOC
=${GNU_MALLOC}
9131 for ac_header
in stdlib.h unistd.h
9133 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9135 echo "$as_me:$LINENO: checking for $ac_header" >&5
9136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9143 # Is the header compilable?
9144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9145 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9153 #include <$ac_header>
9155 rm -f conftest.
$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9159 grep -v '^ *+' conftest.er1
>conftest.err
9161 cat conftest.err
>&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try
='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try
='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_header_compiler
=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.
$ac_ext >&5
9182 ac_header_compiler
=no
9184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186 echo "${ECHO_T}$ac_header_compiler" >&6
9188 # Is the header present?
9189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9191 cat >conftest.
$ac_ext <<_ACEOF
9194 cat confdefs.h
>>conftest.
$ac_ext
9195 cat >>conftest.
$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 #include <$ac_header>
9199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9202 grep -v '^ *+' conftest.er1
>conftest.err
9204 cat conftest.err
>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev
/null
; then
9207 if test -s conftest.err
; then
9208 ac_cpp_err
=$ac_c_preproc_warn_flag
9209 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9216 if test -z "$ac_cpp_err"; then
9217 ac_header_preproc
=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.
$ac_ext >&5
9222 ac_header_preproc
=no
9224 rm -f conftest.err conftest.
$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9226 echo "${ECHO_T}$ac_header_preproc" >&6
9228 # So? What about this header?
9229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9235 ac_header_preproc
=yes
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9252 ## ------------------------------------------ ##
9253 ## Report this to the AC_PACKAGE_NAME lists. ##
9254 ## ------------------------------------------ ##
9257 sed "s/^/$as_me: WARNING: /" >&2
9260 echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 eval "$as_ac_Header=\$ac_header_preproc"
9267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9272 cat >>confdefs.h
<<_ACEOF
9273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9281 for ac_func
in getpagesize
9283 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9284 echo "$as_me:$LINENO: checking for $ac_func" >&5
9285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9286 if eval "test \"\${$as_ac_var+set}\" = set"; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 cat >conftest.
$ac_ext <<_ACEOF
9292 cat confdefs.h
>>conftest.
$ac_ext
9293 cat >>conftest.
$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9297 #define $ac_func innocuous_$ac_func
9299 /* System header to define __stub macros and hopefully few prototypes,
9300 which can conflict with char $ac_func (); below.
9301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9302 <limits.h> exists even on freestanding compilers. */
9305 # include <limits.h>
9307 # include <assert.h>
9312 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9320 /* The GNU C library defines this for functions which it implements
9321 to always fail with ENOSYS. Some functions are actually named
9322 something starting with __ and the normal name is an alias. */
9323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9326 char (*f) () = $ac_func;
9335 return f != $ac_func;
9340 rm -f conftest.
$ac_objext conftest
$ac_exeext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9342 (eval $ac_link) 2>conftest.er1
9344 grep -v '^ *+' conftest.er1
>conftest.err
9346 cat conftest.err
>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try
='test -z "$ac_c_werror_flag"
9350 || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try
='test -s conftest$ac_exeext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 eval "$as_ac_var=yes"
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.
$ac_ext >&5
9367 eval "$as_ac_var=no"
9369 rm -f conftest.err conftest.
$ac_objext \
9370 conftest
$ac_exeext conftest.
$ac_ext
9372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9374 if test `eval echo '${'$as_ac_var'}'` = yes; then
9375 cat >>confdefs.h
<<_ACEOF
9376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9382 echo "$as_me:$LINENO: checking for working mmap" >&5
9383 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9384 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 if test "$cross_compiling" = yes; then
9388 ac_cv_func_mmap_fixed_mapped
=no
9390 cat >conftest.
$ac_ext <<_ACEOF
9393 cat confdefs.h
>>conftest.
$ac_ext
9394 cat >>conftest.
$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 /* malloc might have been renamed as rpl_malloc. */
9400 /* Thanks to Mike Haertel and Jim Avera for this test.
9401 Here is a matrix of mmap possibilities:
9402 mmap private not fixed
9403 mmap private fixed at somewhere currently unmapped
9404 mmap private fixed at somewhere already mapped
9405 mmap shared not fixed
9406 mmap shared fixed at somewhere currently unmapped
9407 mmap shared fixed at somewhere already mapped
9408 For private mappings, we should verify that changes cannot be read()
9409 back from the file, nor mmap's back from the file at a different
9410 address. (There have been systems where private was not correctly
9411 implemented like the infamous i386 svr4.0, and systems where the
9412 VM page cache was not coherent with the file system buffer cache
9413 like early versions of FreeBSD and possibly contemporary NetBSD.)
9414 For shared mappings, we should conversely verify that changes get
9415 propagated back to all the places they're supposed to be.
9417 Grep wants private fixed already mapped.
9418 The main things grep needs to know about mmap are:
9419 * does it exist and is it safe to write into the mmap'd area
9420 * how to use it (BSD variants) */
9423 #include <sys/mman.h>
9425 #if !STDC_HEADERS && !HAVE_STDLIB_H
9429 /* This mess was copied from the GNU getpagesize.h. */
9430 #if !HAVE_GETPAGESIZE
9431 /* Assume that all systems that can run configure have sys/param.h. */
9432 # if !HAVE_SYS_PARAM_H
9433 # define HAVE_SYS_PARAM_H 1
9436 # ifdef _SC_PAGESIZE
9437 # define getpagesize() sysconf(_SC_PAGESIZE)
9438 # else /* no _SC_PAGESIZE */
9439 # if HAVE_SYS_PARAM_H
9440 # include <sys/param.h>
9441 # ifdef EXEC_PAGESIZE
9442 # define getpagesize() EXEC_PAGESIZE
9443 # else /* no EXEC_PAGESIZE */
9445 # define getpagesize() NBPG * CLSIZE
9448 # endif /* no CLSIZE */
9449 # else /* no NBPG */
9451 # define getpagesize() NBPC
9452 # else /* no NBPC */
9454 # define getpagesize() PAGESIZE
9455 # endif /* PAGESIZE */
9456 # endif /* no NBPC */
9457 # endif /* no NBPG */
9458 # endif /* no EXEC_PAGESIZE */
9459 # else /* no HAVE_SYS_PARAM_H */
9460 # define getpagesize() 8192 /* punt totally */
9461 # endif /* no HAVE_SYS_PARAM_H */
9462 # endif /* no _SC_PAGESIZE */
9464 #endif /* no HAVE_GETPAGESIZE */
9469 char *data, *data2, *data3;
9473 pagesize = getpagesize ();
9475 /* First, make a file with some known garbage in it. */
9476 data = (char *) malloc (pagesize);
9479 for (i = 0; i < pagesize; ++i)
9480 *(data + i) = rand ();
9482 fd = creat ("conftest.mmap", 0600);
9485 if (write (fd, data, pagesize) != pagesize)
9489 /* Next, try to mmap the file at a fixed address which already has
9490 something else allocated at it. If we can, also make sure that
9491 we see the same garbage. */
9492 fd = open ("conftest.mmap", O_RDWR);
9495 data2 = (char *) malloc (2 * pagesize);
9498 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9499 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9500 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9502 for (i = 0; i < pagesize; ++i)
9503 if (*(data + i) != *(data2 + i))
9506 /* Finally, make sure that changes to the mapped area do not
9507 percolate back to the file as seen by read(). (This is a bug on
9508 some variants of i386 svr4.0.) */
9509 for (i = 0; i < pagesize; ++i)
9510 *(data2 + i) = *(data2 + i) + 1;
9511 data3 = (char *) malloc (pagesize);
9514 if (read (fd, data3, pagesize) != pagesize)
9516 for (i = 0; i < pagesize; ++i)
9517 if (*(data + i) != *(data3 + i))
9523 rm -f conftest
$ac_exeext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_func_mmap_fixed_mapped
=yes
9536 echo "$as_me: program exited with status $ac_status" >&5
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.
$ac_ext >&5
9541 ac_cv_func_mmap_fixed_mapped
=no
9543 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9546 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9547 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9548 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9550 cat >>confdefs.h
<<\_ACEOF
9557 if test $use_mmap_for_buffers = yes; then
9561 LIBS
="$libsrc_libs $LIBS"
9564 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9565 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9566 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 ac_check_lib_save_LIBS
=$LIBS
9571 cat >conftest.
$ac_ext <<_ACEOF
9574 cat confdefs.h
>>conftest.
$ac_ext
9575 cat >>conftest.
$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9578 /* Override any gcc2 internal prototype to avoid an error. */
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9593 rm -f conftest.
$ac_objext conftest
$ac_exeext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9595 (eval $ac_link) 2>conftest.er1
9597 grep -v '^ *+' conftest.er1
>conftest.err
9599 cat conftest.err
>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try
='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try
='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_lib_dnet_dnet_ntoa
=yes
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.
$ac_ext >&5
9620 ac_cv_lib_dnet_dnet_ntoa
=no
9622 rm -f conftest.err conftest.
$ac_objext \
9623 conftest
$ac_exeext conftest.
$ac_ext
9624 LIBS
=$ac_check_lib_save_LIBS
9626 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9628 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9629 cat >>confdefs.h
<<_ACEOF
9630 #define HAVE_LIBDNET 1
9638 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9639 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9640 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 ac_check_lib_save_LIBS
=$LIBS
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9661 rm -f conftest.
$ac_objext conftest
$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1
>conftest.err
9667 cat conftest.err
>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try
='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try
='test -s conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_lib_Xbsd_main
=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.
$ac_ext >&5
9688 ac_cv_lib_Xbsd_main
=no
9690 rm -f conftest.err conftest.
$ac_objext \
9691 conftest
$ac_exeext conftest.
$ac_ext
9692 LIBS
=$ac_check_lib_save_LIBS
9694 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9695 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9696 if test $ac_cv_lib_Xbsd_main = yes; then
9697 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9702 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9703 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9704 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 ac_check_lib_save_LIBS
=$LIBS
9708 LIBS
="-lpthreads $LIBS"
9709 cat >conftest.
$ac_ext <<_ACEOF
9712 cat confdefs.h
>>conftest.
$ac_ext
9713 cat >>conftest.
$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9716 /* Override any gcc2 internal prototype to avoid an error. */
9720 /* We use char because int might match the return type of a gcc2
9721 builtin and then its argument prototype would still apply. */
9731 rm -f conftest.
$ac_objext conftest
$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1
>conftest.err
9737 cat conftest.err
>&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try
='test -z "$ac_c_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try
='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_lib_pthreads_cma_open
=yes
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.
$ac_ext >&5
9758 ac_cv_lib_pthreads_cma_open
=no
9760 rm -f conftest.err conftest.
$ac_objext \
9761 conftest
$ac_exeext conftest.
$ac_ext
9762 LIBS
=$ac_check_lib_save_LIBS
9764 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9765 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9766 if test $ac_cv_lib_pthreads_cma_open = yes; then
9767 cat >>confdefs.h
<<_ACEOF
9768 #define HAVE_LIBPTHREADS 1
9771 LIBS
="-lpthreads $LIBS"
9776 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9777 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9778 if test -d /usr
/X386
/include
; then
9780 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9784 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9785 echo "${ECHO_T}$HAVE_XFREE386" >&6
9790 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9791 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9792 if test "${gdb_cv_bigtoc+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9798 *) gdb_cv_bigtoc
=-bbigtoc ;;
9801 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9802 cat >conftest.
$ac_ext <<_ACEOF
9805 cat confdefs.h
>>conftest.
$ac_ext
9806 cat >>conftest.
$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9817 rm -f conftest.
$ac_objext conftest
$ac_exeext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>conftest.er1
9821 grep -v '^ *+' conftest.er1
>conftest.err
9823 cat conftest.err
>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try
='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try
='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.
$ac_ext >&5
9846 rm -f conftest.err conftest.
$ac_objext \
9847 conftest
$ac_exeext conftest.
$ac_ext
9850 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9851 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9855 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9856 # used for the tests that follow. We set them back to REAL_CFLAGS and
9857 # REAL_CPPFLAGS later on.
9859 REAL_CPPFLAGS
="$CPPFLAGS"
9861 if test "${HAVE_X11}" = "yes"; then
9862 DEFS
="$C_SWITCH_X_SITE $DEFS"
9863 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9865 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9866 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9868 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9869 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9870 # but it's more convenient here to set LD_RUN_PATH
9871 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9872 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9873 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9877 if test "${opsys}" = "gnu-linux"; then
9878 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9879 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9880 cat >conftest.
$ac_ext <<_ACEOF
9883 cat confdefs.h
>>conftest.
$ac_ext
9884 cat >>conftest.
$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9890 XOpenDisplay ("foo");
9895 rm -f conftest.
$ac_objext conftest
$ac_exeext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>conftest.er1
9899 grep -v '^ *+' conftest.er1
>conftest.err
9901 cat conftest.err
>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try
='test -z "$ac_c_werror_flag"
9905 || test ! -s conftest.err'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try
='test -s conftest$ac_exeext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 xlinux_first_failure
=no
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.
$ac_ext >&5
9922 xlinux_first_failure
=yes
9924 rm -f conftest.err conftest.
$ac_objext \
9925 conftest
$ac_exeext conftest.
$ac_ext
9926 if test "${xlinux_first_failure}" = "yes"; then
9927 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9928 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9929 OLD_CPPFLAGS
="$CPPFLAGS"
9931 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9932 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9933 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9934 LIBS
="$LIBS -b i486-linuxaout"
9935 cat >conftest.
$ac_ext <<_ACEOF
9938 cat confdefs.h
>>conftest.
$ac_ext
9939 cat >>conftest.
$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9945 XOpenDisplay ("foo");
9950 rm -f conftest.
$ac_objext conftest
$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9954 grep -v '^ *+' conftest.er1
>conftest.err
9956 cat conftest.err
>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try
='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try
='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 xlinux_second_failure
=no
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.
$ac_ext >&5
9977 xlinux_second_failure
=yes
9979 rm -f conftest.err conftest.
$ac_objext \
9980 conftest
$ac_exeext conftest.
$ac_ext
9981 if test "${xlinux_second_failure}" = "yes"; then
9982 # If we get the same failure with -b, there is no use adding -b.
9983 # So take it out. This plays safe.
9984 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9985 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9986 CPPFLAGS
="$OLD_CPPFLAGS"
9988 echo "$as_me:$LINENO: result: no" >&5
9989 echo "${ECHO_T}no" >&6
9991 echo "$as_me:$LINENO: result: yes" >&5
9992 echo "${ECHO_T}yes" >&6
9995 echo "$as_me:$LINENO: result: no" >&5
9996 echo "${ECHO_T}no" >&6
10000 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10001 # header files included from there.
10002 echo "$as_me:$LINENO: checking for Xkb" >&5
10003 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10004 cat >conftest.
$ac_ext <<_ACEOF
10007 cat confdefs.h
>>conftest.
$ac_ext
10008 cat >>conftest.
$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <X11/Xlib.h>
10011 #include <X11/XKBlib.h>
10015 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10020 rm -f conftest.
$ac_objext conftest
$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>conftest.er1
10024 grep -v '^ *+' conftest.er1
>conftest.err
10026 cat conftest.err
>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try
='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try
='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.
$ac_ext >&5
10049 rm -f conftest.err conftest.
$ac_objext \
10050 conftest
$ac_exeext conftest.
$ac_ext
10051 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10052 echo "${ECHO_T}$emacs_xkb" >&6
10053 if test $emacs_xkb = yes; then
10055 cat >>confdefs.h
<<\_ACEOF
10056 #define HAVE_XKBGETKEYBOARD 1
10065 for ac_func
in XrmSetDatabase XScreenResourceString \
10066 XScreenNumberOfScreen XSetWMProtocols
10068 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10069 echo "$as_me:$LINENO: checking for $ac_func" >&5
10070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10071 if eval "test \"\${$as_ac_var+set}\" = set"; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 cat >conftest.
$ac_ext <<_ACEOF
10077 cat confdefs.h
>>conftest.
$ac_ext
10078 cat >>conftest.
$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10082 #define $ac_func innocuous_$ac_func
10084 /* System header to define __stub macros and hopefully few prototypes,
10085 which can conflict with char $ac_func (); below.
10086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10087 <limits.h> exists even on freestanding compilers. */
10090 # include <limits.h>
10092 # include <assert.h>
10097 /* Override any gcc2 internal prototype to avoid an error. */
10102 /* We use char because int might match the return type of a gcc2
10103 builtin and then its argument prototype would still apply. */
10105 /* The GNU C library defines this for functions which it implements
10106 to always fail with ENOSYS. Some functions are actually named
10107 something starting with __ and the normal name is an alias. */
10108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10111 char (*f) () = $ac_func;
10120 return f != $ac_func;
10125 rm -f conftest.
$ac_objext conftest
$ac_exeext
10126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10127 (eval $ac_link) 2>conftest.er1
10129 grep -v '^ *+' conftest.er1
>conftest.err
10131 cat conftest.err
>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try
='test -z "$ac_c_werror_flag"
10135 || test ! -s conftest.err'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; } &&
10141 { ac_try
='test -s conftest$ac_exeext'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 eval "$as_ac_var=yes"
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.
$ac_ext >&5
10152 eval "$as_ac_var=no"
10154 rm -f conftest.err conftest.
$ac_objext \
10155 conftest
$ac_exeext conftest.
$ac_ext
10157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10159 if test `eval echo '${'$as_ac_var'}'` = yes; then
10160 cat >>confdefs.h
<<_ACEOF
10161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10169 if test "${window_system}" = "x11"; then
10170 echo "$as_me:$LINENO: checking X11 version 6" >&5
10171 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10172 if test "${emacs_cv_x11_version_6+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 cat >conftest.
$ac_ext <<_ACEOF
10178 cat confdefs.h
>>conftest.
$ac_ext
10179 cat >>conftest.
$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <X11/Xlib.h>
10185 #if XlibSpecificationRelease < 6
10193 rm -f conftest.
$ac_objext conftest
$ac_exeext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10195 (eval $ac_link) 2>conftest.er1
10197 grep -v '^ *+' conftest.er1
>conftest.err
10199 cat conftest.err
>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try
='test -z "$ac_c_werror_flag"
10203 || test ! -s conftest.err'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try
='test -s conftest$ac_exeext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 emacs_cv_x11_version_6
=yes
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.
$ac_ext >&5
10220 emacs_cv_x11_version_6
=no
10222 rm -f conftest.err conftest.
$ac_objext \
10223 conftest
$ac_exeext conftest.
$ac_ext
10226 if test $emacs_cv_x11_version_6 = yes; then
10227 echo "$as_me:$LINENO: result: 6 or newer" >&5
10228 echo "${ECHO_T}6 or newer" >&6
10230 cat >>confdefs.h
<<\_ACEOF
10231 #define HAVE_X11R6 1
10235 echo "$as_me:$LINENO: result: before 6" >&5
10236 echo "${ECHO_T}before 6" >&6
10240 if test "${window_system}" = "x11"; then
10241 echo "$as_me:$LINENO: checking X11 version 5" >&5
10242 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10243 if test "${emacs_cv_x11_version_5+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 cat >conftest.
$ac_ext <<_ACEOF
10249 cat confdefs.h
>>conftest.
$ac_ext
10250 cat >>conftest.
$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <X11/Xlib.h>
10256 #if XlibSpecificationRelease < 5
10264 rm -f conftest.
$ac_objext conftest
$ac_exeext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>conftest.er1
10268 grep -v '^ *+' conftest.er1
>conftest.err
10270 cat conftest.err
>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try
='test -z "$ac_c_werror_flag"
10274 || test ! -s conftest.err'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; } &&
10280 { ac_try
='test -s conftest$ac_exeext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 emacs_cv_x11_version_5
=yes
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.
$ac_ext >&5
10291 emacs_cv_x11_version_5
=no
10293 rm -f conftest.err conftest.
$ac_objext \
10294 conftest
$ac_exeext conftest.
$ac_ext
10297 if test $emacs_cv_x11_version_5 = yes; then
10298 echo "$as_me:$LINENO: result: 5 or newer" >&5
10299 echo "${ECHO_T}5 or newer" >&6
10302 cat >>confdefs.h
<<\_ACEOF
10303 #define HAVE_X11R5 1
10308 echo "$as_me:$LINENO: result: before 5" >&5
10309 echo "${ECHO_T}before 5" >&6
10314 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10315 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10316 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10317 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10318 { (exit 1); exit 1; }; };
10322 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10324 if test "X${with_pkg_config_prog}" != X
; then
10325 PKG_CONFIG
="${with_pkg_config_prog}"
10330 if test -z "$PKG_CONFIG"; then
10331 # Extract the first word of "pkg-config", so it can be a program name with args.
10332 set dummy pkg-config
; ac_word
=$2
10333 echo "$as_me:$LINENO: checking for $ac_word" >&5
10334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10335 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 case $PKG_CONFIG in
10340 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10344 for as_dir
in $PATH
10347 test -z "$as_dir" && as_dir
=.
10348 for ac_exec_ext
in '' $ac_executable_extensions; do
10349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10350 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10361 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10363 if test -n "$PKG_CONFIG"; then
10364 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10365 echo "${ECHO_T}$PKG_CONFIG" >&6
10367 echo "$as_me:$LINENO: result: no" >&5
10368 echo "${ECHO_T}no" >&6
10373 if test "$PKG_CONFIG" = "no" ; then
10374 { { echo "$as_me:$LINENO: error:
10375 *** 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
10376 echo "$as_me: error:
10377 *** 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;}
10378 { (exit 1); exit 1; }; }
10380 PKG_CONFIG_MIN_VERSION
=0.9.0
10381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10382 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10383 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10385 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10386 echo "$as_me:$LINENO: result: yes" >&5
10387 echo "${ECHO_T}yes" >&6
10390 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10391 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10392 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10393 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10394 echo "${ECHO_T}$GTK_CFLAGS" >&6
10396 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10397 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10398 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10399 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10400 echo "${ECHO_T}$GTK_LIBS" >&6
10402 echo "$as_me:$LINENO: result: no" >&5
10403 echo "${ECHO_T}no" >&6
10406 ## If we have a custom action on failure, don't print errors, but
10407 ## do set a variable so people can do so.
10408 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10409 echo $GTK_PKG_ERRORS
10415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10420 if test $succeeded = yes; then
10423 { { 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
10424 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;}
10425 { (exit 1); exit 1; }; }
10430 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10431 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10432 LIBS
="$GTK_LIBS $LIBS"
10435 cat >>confdefs.h
<<\_ACEOF
10441 if test "$with_toolkit_scroll_bars" != no
; then
10442 with_toolkit_scroll_bars
=yes
10445 HAVE_GTK_MULTIDISPLAY
=no
10447 for ac_func
in gdk_display_open
10449 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10450 echo "$as_me:$LINENO: checking for $ac_func" >&5
10451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10452 if eval "test \"\${$as_ac_var+set}\" = set"; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 cat >conftest.
$ac_ext <<_ACEOF
10458 cat confdefs.h
>>conftest.
$ac_ext
10459 cat >>conftest.
$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10463 #define $ac_func innocuous_$ac_func
10465 /* System header to define __stub macros and hopefully few prototypes,
10466 which can conflict with char $ac_func (); below.
10467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10468 <limits.h> exists even on freestanding compilers. */
10471 # include <limits.h>
10473 # include <assert.h>
10478 /* Override any gcc2 internal prototype to avoid an error. */
10483 /* We use char because int might match the return type of a gcc2
10484 builtin and then its argument prototype would still apply. */
10486 /* The GNU C library defines this for functions which it implements
10487 to always fail with ENOSYS. Some functions are actually named
10488 something starting with __ and the normal name is an alias. */
10489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10492 char (*f) () = $ac_func;
10501 return f != $ac_func;
10506 rm -f conftest.
$ac_objext conftest
$ac_exeext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>conftest.er1
10510 grep -v '^ *+' conftest.er1
>conftest.err
10512 cat conftest.err
>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try
='test -z "$ac_c_werror_flag"
10516 || test ! -s conftest.err'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; } &&
10522 { ac_try
='test -s conftest$ac_exeext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 eval "$as_ac_var=yes"
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.
$ac_ext >&5
10533 eval "$as_ac_var=no"
10535 rm -f conftest.err conftest.
$ac_objext \
10536 conftest
$ac_exeext conftest.
$ac_ext
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10540 if test `eval echo '${'$as_ac_var'}'` = yes; then
10541 cat >>confdefs.h
<<_ACEOF
10542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10544 HAVE_GTK_MULTIDISPLAY
=yes
10548 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10550 cat >>confdefs.h
<<\_ACEOF
10551 #define HAVE_GTK_MULTIDISPLAY 1
10555 HAVE_GTK_FILE_SELECTION
=no
10557 for ac_func
in gtk_file_selection_new
10559 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10560 echo "$as_me:$LINENO: checking for $ac_func" >&5
10561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10562 if eval "test \"\${$as_ac_var+set}\" = set"; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 cat >conftest.
$ac_ext <<_ACEOF
10568 cat confdefs.h
>>conftest.
$ac_ext
10569 cat >>conftest.
$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10573 #define $ac_func innocuous_$ac_func
10575 /* System header to define __stub macros and hopefully few prototypes,
10576 which can conflict with char $ac_func (); below.
10577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10578 <limits.h> exists even on freestanding compilers. */
10581 # include <limits.h>
10583 # include <assert.h>
10588 /* Override any gcc2 internal prototype to avoid an error. */
10593 /* We use char because int might match the return type of a gcc2
10594 builtin and then its argument prototype would still apply. */
10596 /* The GNU C library defines this for functions which it implements
10597 to always fail with ENOSYS. Some functions are actually named
10598 something starting with __ and the normal name is an alias. */
10599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10602 char (*f) () = $ac_func;
10611 return f != $ac_func;
10616 rm -f conftest.
$ac_objext conftest
$ac_exeext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>conftest.er1
10620 grep -v '^ *+' conftest.er1
>conftest.err
10622 cat conftest.err
>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try
='test -z "$ac_c_werror_flag"
10626 || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try
='test -s conftest$ac_exeext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 eval "$as_ac_var=yes"
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.
$ac_ext >&5
10643 eval "$as_ac_var=no"
10645 rm -f conftest.err conftest.
$ac_objext \
10646 conftest
$ac_exeext conftest.
$ac_ext
10648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10650 if test `eval echo '${'$as_ac_var'}'` = yes; then
10651 cat >>confdefs.h
<<_ACEOF
10652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10654 HAVE_GTK_FILE_SELECTION
=yes
10659 HAVE_GTK_FILE_CHOOSER
=no
10661 for ac_func
in gtk_file_chooser_dialog_new
10663 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10664 echo "$as_me:$LINENO: checking for $ac_func" >&5
10665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10666 if eval "test \"\${$as_ac_var+set}\" = set"; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 cat >conftest.
$ac_ext <<_ACEOF
10672 cat confdefs.h
>>conftest.
$ac_ext
10673 cat >>conftest.
$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10677 #define $ac_func innocuous_$ac_func
10679 /* System header to define __stub macros and hopefully few prototypes,
10680 which can conflict with char $ac_func (); below.
10681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10682 <limits.h> exists even on freestanding compilers. */
10685 # include <limits.h>
10687 # include <assert.h>
10692 /* Override any gcc2 internal prototype to avoid an error. */
10697 /* We use char because int might match the return type of a gcc2
10698 builtin and then its argument prototype would still apply. */
10700 /* The GNU C library defines this for functions which it implements
10701 to always fail with ENOSYS. Some functions are actually named
10702 something starting with __ and the normal name is an alias. */
10703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10706 char (*f) () = $ac_func;
10715 return f != $ac_func;
10720 rm -f conftest.
$ac_objext conftest
$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>conftest.er1
10724 grep -v '^ *+' conftest.er1
>conftest.err
10726 cat conftest.err
>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try
='test -z "$ac_c_werror_flag"
10730 || test ! -s conftest.err'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try
='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 eval "$as_ac_var=yes"
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.
$ac_ext >&5
10747 eval "$as_ac_var=no"
10749 rm -f conftest.err conftest.
$ac_objext \
10750 conftest
$ac_exeext conftest.
$ac_ext
10752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10754 if test `eval echo '${'$as_ac_var'}'` = yes; then
10755 cat >>confdefs.h
<<_ACEOF
10756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10758 HAVE_GTK_FILE_CHOOSER
=yes
10763 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10764 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10766 cat >>confdefs.h
<<\_ACEOF
10767 #define HAVE_GTK_FILE_BOTH 1
10772 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10773 HAVE_GTK_AND_PTHREAD
=no
10775 for ac_header
in pthread.h
10777 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10779 echo "$as_me:$LINENO: checking for $ac_header" >&5
10780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10787 # Is the header compilable?
10788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10790 cat >conftest.
$ac_ext <<_ACEOF
10793 cat confdefs.h
>>conftest.
$ac_ext
10794 cat >>conftest.
$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 $ac_includes_default
10797 #include <$ac_header>
10799 rm -f conftest.
$ac_objext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10801 (eval $ac_compile) 2>conftest.er1
10803 grep -v '^ *+' conftest.er1
>conftest.err
10805 cat conftest.err
>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try
='test -z "$ac_c_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try
='test -s conftest.$ac_objext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_header_compiler
=yes
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.
$ac_ext >&5
10826 ac_header_compiler
=no
10828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10830 echo "${ECHO_T}$ac_header_compiler" >&6
10832 # Is the header present?
10833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10835 cat >conftest.
$ac_ext <<_ACEOF
10838 cat confdefs.h
>>conftest.
$ac_ext
10839 cat >>conftest.
$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841 #include <$ac_header>
10843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10846 grep -v '^ *+' conftest.er1
>conftest.err
10848 cat conftest.err
>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } >/dev
/null
; then
10851 if test -s conftest.err
; then
10852 ac_cpp_err
=$ac_c_preproc_warn_flag
10853 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10860 if test -z "$ac_cpp_err"; then
10861 ac_header_preproc
=yes
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.
$ac_ext >&5
10866 ac_header_preproc
=no
10868 rm -f conftest.err conftest.
$ac_ext
10869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10870 echo "${ECHO_T}$ac_header_preproc" >&6
10872 # So? What about this header?
10873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10879 ac_header_preproc
=yes
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10896 ## ------------------------------------------ ##
10897 ## Report this to the AC_PACKAGE_NAME lists. ##
10898 ## ------------------------------------------ ##
10901 sed "s/^/$as_me: WARNING: /" >&2
10904 echo "$as_me:$LINENO: checking for $ac_header" >&5
10905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 eval "$as_ac_Header=\$ac_header_preproc"
10911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10916 cat >>confdefs.h
<<_ACEOF
10917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10924 if test "$ac_cv_header_pthread_h"; then
10925 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10926 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10927 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 ac_check_lib_save_LIBS
=$LIBS
10931 LIBS
="-lpthread $LIBS"
10932 cat >conftest.
$ac_ext <<_ACEOF
10935 cat confdefs.h
>>conftest.
$ac_ext
10936 cat >>conftest.
$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10939 /* Override any gcc2 internal prototype to avoid an error. */
10943 /* We use char because int might match the return type of a gcc2
10944 builtin and then its argument prototype would still apply. */
10945 char pthread_self ();
10954 rm -f conftest.
$ac_objext conftest
$ac_exeext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956 (eval $ac_link) 2>conftest.er1
10958 grep -v '^ *+' conftest.er1
>conftest.err
10960 cat conftest.err
>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try
='test -z "$ac_c_werror_flag"
10964 || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try
='test -s conftest$ac_exeext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_lib_pthread_pthread_self
=yes
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.
$ac_ext >&5
10981 ac_cv_lib_pthread_pthread_self
=no
10983 rm -f conftest.err conftest.
$ac_objext \
10984 conftest
$ac_exeext conftest.
$ac_ext
10985 LIBS
=$ac_check_lib_save_LIBS
10987 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10988 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10989 if test $ac_cv_lib_pthread_pthread_self = yes; then
10990 HAVE_GTK_AND_PTHREAD
=yes
10994 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10995 GTK_LIBS
="$GTK_LIBS -lpthread"
10997 cat >>confdefs.h
<<\_ACEOF
10998 #define HAVE_GTK_AND_PTHREAD 1
11005 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11006 if test x
"${HAVE_X11R5}" = xyes
; then
11007 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11008 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11009 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 cat >conftest.
$ac_ext <<_ACEOF
11015 cat confdefs.h
>>conftest.
$ac_ext
11016 cat >>conftest.
$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11019 #include <X11/Intrinsic.h>
11020 #include <X11/Xaw/Simple.h>
11029 rm -f conftest.
$ac_objext conftest
$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>conftest.er1
11033 grep -v '^ *+' conftest.er1
>conftest.err
11035 cat conftest.err
>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try
='test -z "$ac_c_werror_flag"
11039 || test ! -s conftest.err'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try
='test -s conftest$ac_exeext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 emacs_cv_x11_version_5_with_xaw
=yes
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.
$ac_ext >&5
11056 emacs_cv_x11_version_5_with_xaw
=no
11058 rm -f conftest.err conftest.
$ac_objext \
11059 conftest
$ac_exeext conftest.
$ac_ext
11062 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11063 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11064 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11065 USE_X_TOOLKIT
=LUCID
11067 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11068 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11076 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11078 if test "${USE_X_TOOLKIT}" != "none"; then
11079 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11080 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11081 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 cat >conftest.
$ac_ext <<_ACEOF
11087 cat confdefs.h
>>conftest.
$ac_ext
11088 cat >>conftest.
$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 #include <X11/Intrinsic.h>
11094 #if XtSpecificationRelease < 6
11102 rm -f conftest.
$ac_objext conftest
$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>conftest.er1
11106 grep -v '^ *+' conftest.er1
>conftest.err
11108 cat conftest.err
>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try
='test -z "$ac_c_werror_flag"
11112 || test ! -s conftest.err'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try
='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 emacs_cv_x11_toolkit_version_6
=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.
$ac_ext >&5
11129 emacs_cv_x11_toolkit_version_6
=no
11131 rm -f conftest.err conftest.
$ac_objext \
11132 conftest
$ac_exeext conftest.
$ac_ext
11135 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11136 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11137 echo "$as_me:$LINENO: result: 6 or newer" >&5
11138 echo "${ECHO_T}6 or newer" >&6
11140 cat >>confdefs.h
<<\_ACEOF
11141 #define HAVE_X11XTR6 1
11145 echo "$as_me:$LINENO: result: before 6" >&5
11146 echo "${ECHO_T}before 6" >&6
11150 if test x
$HAVE_X11XTR6 = xyes
; then
11151 LIBS
="-lXt -lSM -lICE $LIBS"
11156 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11157 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11158 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 ac_check_lib_save_LIBS
=$LIBS
11163 cat >conftest.
$ac_ext <<_ACEOF
11166 cat confdefs.h
>>conftest.
$ac_ext
11167 cat >>conftest.
$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11170 /* Override any gcc2 internal prototype to avoid an error. */
11174 /* We use char because int might match the return type of a gcc2
11175 builtin and then its argument prototype would still apply. */
11176 char XmuConvertStandardSelection ();
11180 XmuConvertStandardSelection ();
11185 rm -f conftest.
$ac_objext conftest
$ac_exeext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11189 grep -v '^ *+' conftest.er1
>conftest.err
11191 cat conftest.err
>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try
='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try
='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.
$ac_ext >&5
11212 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11214 rm -f conftest.err conftest.
$ac_objext \
11215 conftest
$ac_exeext conftest.
$ac_ext
11216 LIBS
=$ac_check_lib_save_LIBS
11218 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11219 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11220 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11221 cat >>confdefs.h
<<_ACEOF
11222 #define HAVE_LIBXMU 1
11229 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11232 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11233 if test "${HAVE_X11}" = "yes"; then
11234 if test "${USE_X_TOOLKIT}" != "none"; then
11236 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11237 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11238 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 ac_check_lib_save_LIBS
=$LIBS
11242 LIBS
="-lXext $LIBS"
11243 cat >conftest.
$ac_ext <<_ACEOF
11246 cat confdefs.h
>>conftest.
$ac_ext
11247 cat >>conftest.
$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11250 /* Override any gcc2 internal prototype to avoid an error. */
11254 /* We use char because int might match the return type of a gcc2
11255 builtin and then its argument prototype would still apply. */
11256 char XShapeQueryExtension ();
11260 XShapeQueryExtension ();
11265 rm -f conftest.
$ac_objext conftest
$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267 (eval $ac_link) 2>conftest.er1
11269 grep -v '^ *+' conftest.er1
>conftest.err
11271 cat conftest.err
>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try
='test -z "$ac_c_werror_flag"
11275 || test ! -s conftest.err'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
11287 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.
$ac_ext >&5
11292 ac_cv_lib_Xext_XShapeQueryExtension
=no
11294 rm -f conftest.err conftest.
$ac_objext \
11295 conftest
$ac_exeext conftest.
$ac_ext
11296 LIBS
=$ac_check_lib_save_LIBS
11298 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11299 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11300 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11301 cat >>confdefs.h
<<_ACEOF
11302 #define HAVE_LIBXEXT 1
11305 LIBS
="-lXext $LIBS"
11312 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11313 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11314 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11315 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 cat >conftest.
$ac_ext <<_ACEOF
11321 cat confdefs.h
>>conftest.
$ac_ext
11322 cat >>conftest.
$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11328 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11331 Motif version prior to 2.1.
11337 rm -f conftest.
$ac_objext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339 (eval $ac_compile) 2>conftest.er1
11341 grep -v '^ *+' conftest.er1
>conftest.err
11343 cat conftest.err
>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
11346 { ac_try
='test -z "$ac_c_werror_flag"
11347 || test ! -s conftest.err'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; } &&
11353 { ac_try
='test -s conftest.$ac_objext'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 emacs_cv_motif_version_2_1
=yes
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.
$ac_ext >&5
11364 emacs_cv_motif_version_2_1
=no
11366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11368 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11369 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11370 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11371 if test $emacs_cv_motif_version_2_1 = yes; then
11374 cat >>confdefs.h
<<\_ACEOF
11375 #define HAVE_MOTIF_2_1 1
11378 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11379 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11380 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 ac_check_lib_save_LIBS
=$LIBS
11385 cat >conftest.
$ac_ext <<_ACEOF
11388 cat confdefs.h
>>conftest.
$ac_ext
11389 cat >>conftest.
$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11392 /* Override any gcc2 internal prototype to avoid an error. */
11396 /* We use char because int might match the return type of a gcc2
11397 builtin and then its argument prototype would still apply. */
11398 char XpCreateContext ();
11402 XpCreateContext ();
11407 rm -f conftest.
$ac_objext conftest
$ac_exeext
11408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409 (eval $ac_link) 2>conftest.er1
11411 grep -v '^ *+' conftest.er1
>conftest.err
11413 cat conftest.err
>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try
='test -z "$ac_c_werror_flag"
11417 || test ! -s conftest.err'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; } &&
11423 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
11429 ac_cv_lib_Xp_XpCreateContext
=yes
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.
$ac_ext >&5
11434 ac_cv_lib_Xp_XpCreateContext
=no
11436 rm -f conftest.err conftest.
$ac_objext \
11437 conftest
$ac_exeext conftest.
$ac_ext
11438 LIBS
=$ac_check_lib_save_LIBS
11440 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11441 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11442 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11446 if test ${HAVE_LIBXP} = yes; then
11448 cat >>confdefs.h
<<\_ACEOF
11449 #define HAVE_LIBXP 1
11454 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11455 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11456 if test "${emacs_cv_lesstif+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 # We put this in CFLAGS temporarily to precede other -I options
11460 # that might be in CFLAGS temporarily.
11461 # We put this in CPPFLAGS where it precedes the other -I options.
11462 OLD_CPPFLAGS
=$CPPFLAGS
11464 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11465 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11466 cat >conftest.
$ac_ext <<_ACEOF
11469 cat confdefs.h
>>conftest.
$ac_ext
11470 cat >>conftest.
$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11481 rm -f conftest.
$ac_objext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11483 (eval $ac_compile) 2>conftest.er1
11485 grep -v '^ *+' conftest.er1
>conftest.err
11487 cat conftest.err
>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try
='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try
='test -s conftest.$ac_objext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 emacs_cv_lesstif
=yes
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.
$ac_ext >&5
11508 emacs_cv_lesstif
=no
11510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11512 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11513 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11514 if test $emacs_cv_lesstif = yes; then
11515 # Make sure this -I option remains in CPPFLAGS after it is set
11516 # back to REAL_CPPFLAGS.
11517 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11518 # have those other -I options anyway. Ultimately, having this
11519 # directory ultimately in CPPFLAGS will be enough.
11520 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11521 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11524 CPPFLAGS
=$OLD_CPPFLAGS
11529 ### Is -lXaw3d available?
11531 if test "${HAVE_X11}" = "yes"; then
11532 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11533 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11534 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11535 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 cat >conftest.
$ac_ext <<_ACEOF
11541 cat confdefs.h
>>conftest.
$ac_ext
11542 cat >>conftest.
$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 #include <X11/Xaw3d/Scrollbar.h>
11546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11547 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11549 grep -v '^ *+' conftest.er1
>conftest.err
11551 cat conftest.err
>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } >/dev
/null
; then
11554 if test -s conftest.err
; then
11555 ac_cpp_err
=$ac_c_preproc_warn_flag
11556 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11563 if test -z "$ac_cpp_err"; then
11564 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.
$ac_ext >&5
11569 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11571 rm -f conftest.err conftest.
$ac_ext
11573 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11574 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11575 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11576 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11577 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11578 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 ac_check_lib_save_LIBS
=$LIBS
11582 LIBS
="-lXaw3d $LIBS"
11583 cat >conftest.
$ac_ext <<_ACEOF
11586 cat confdefs.h
>>conftest.
$ac_ext
11587 cat >>conftest.
$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11590 /* Override any gcc2 internal prototype to avoid an error. */
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11596 char XawScrollbarSetThumb ();
11600 XawScrollbarSetThumb ();
11605 rm -f conftest.
$ac_objext conftest
$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>conftest.er1
11609 grep -v '^ *+' conftest.er1
>conftest.err
11611 cat conftest.err
>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try
='test -z "$ac_c_werror_flag"
11615 || test ! -s conftest.err'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try
='test -s conftest$ac_exeext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.
$ac_ext >&5
11632 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11634 rm -f conftest.err conftest.
$ac_objext \
11635 conftest
$ac_exeext conftest.
$ac_ext
11636 LIBS
=$ac_check_lib_save_LIBS
11638 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11639 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11640 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11647 if test "${HAVE_XAW3D}" = "yes"; then
11649 cat >>confdefs.h
<<\_ACEOF
11650 #define HAVE_XAW3D 1
11659 USE_TOOLKIT_SCROLL_BARS
=no
11660 if test "${with_toolkit_scroll_bars}" != "no"; then
11661 if test "${USE_X_TOOLKIT}" != "none"; then
11662 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11663 cat >>confdefs.h
<<\_ACEOF
11664 #define USE_TOOLKIT_SCROLL_BARS 1
11668 USE_TOOLKIT_SCROLL_BARS
=yes
11669 elif test "${HAVE_XAW3D}" = "yes"; then
11670 cat >>confdefs.h
<<\_ACEOF
11671 #define USE_TOOLKIT_SCROLL_BARS 1
11674 USE_TOOLKIT_SCROLL_BARS
=yes
11676 elif test "${HAVE_GTK}" = "yes"; then
11677 cat >>confdefs.h
<<\_ACEOF
11678 #define USE_TOOLKIT_SCROLL_BARS 1
11681 USE_TOOLKIT_SCROLL_BARS
=yes
11682 elif test "${HAVE_CARBON}" = "yes"; then
11683 cat >>confdefs.h
<<\_ACEOF
11684 #define USE_TOOLKIT_SCROLL_BARS 1
11687 USE_TOOLKIT_SCROLL_BARS
=yes
11691 cat >conftest.
$ac_ext <<_ACEOF
11694 cat confdefs.h
>>conftest.
$ac_ext
11695 cat >>conftest.
$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11698 #include <X11/Xlib.h>
11699 #include <X11/Xresource.h>
11708 rm -f conftest.
$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710 (eval $ac_compile) 2>conftest.er1
11712 grep -v '^ *+' conftest.er1
>conftest.err
11714 cat conftest.err
>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try
='test -z "$ac_c_werror_flag"
11718 || test ! -s conftest.err'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; } &&
11724 { ac_try
='test -s conftest.$ac_objext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11732 cat >>confdefs.h
<<\_ACEOF
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.
$ac_ext >&5
11742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11745 if test "${with_xim}" != "no"; then
11747 cat >>confdefs.h
<<\_ACEOF
11754 if test "${HAVE_XIM}" != "no"; then
11755 late_CFLAGS
=$CFLAGS
11756 if test "$GCC" = yes; then
11757 CFLAGS
="$CFLAGS --pedantic-errors"
11759 cat >conftest.
$ac_ext <<_ACEOF
11762 cat confdefs.h
>>conftest.
$ac_ext
11763 cat >>conftest.
$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11766 #include <X11/Xlib.h>
11767 #include <X11/Xresource.h>
11776 XPointer *client_data;
11778 /* If we're not using GCC, it's probably not XFree86, and this is
11779 probably right, but we can't use something like --pedantic-errors. */
11780 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11781 char*, XIMProc, XPointer*);
11783 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11789 rm -f conftest.
$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11793 grep -v '^ *+' conftest.er1
>conftest.err
11795 cat conftest.err
>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try
='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try
='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 emacs_cv_arg6_star
=yes
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.
$ac_ext >&5
11817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11819 if test "$emacs_cv_arg6_star" = yes; then
11820 cat >>confdefs.h
<<\_ACEOF
11821 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11825 cat >>confdefs.h
<<\_ACEOF
11826 #define XRegisterIMInstantiateCallback_arg6 XPointer
11830 CFLAGS
=$late_CFLAGS
11833 ### Use -lXpm if available, unless `--with-xpm=no'.
11835 if test "${HAVE_X11}" = "yes"; then
11836 if test "${with_xpm}" != "no"; then
11837 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11838 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11839 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11840 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11844 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11846 # Is the header compilable?
11847 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11848 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11849 cat >conftest.
$ac_ext <<_ACEOF
11852 cat confdefs.h
>>conftest.
$ac_ext
11853 cat >>conftest.
$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 $ac_includes_default
11856 #include <X11/xpm.h>
11858 rm -f conftest.
$ac_objext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860 (eval $ac_compile) 2>conftest.er1
11862 grep -v '^ *+' conftest.er1
>conftest.err
11864 cat conftest.err
>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try
='test -z "$ac_c_werror_flag"
11868 || test ! -s conftest.err'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; } &&
11874 { ac_try
='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_header_compiler
=yes
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.
$ac_ext >&5
11885 ac_header_compiler
=no
11887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11889 echo "${ECHO_T}$ac_header_compiler" >&6
11891 # Is the header present?
11892 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11893 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11894 cat >conftest.
$ac_ext <<_ACEOF
11897 cat confdefs.h
>>conftest.
$ac_ext
11898 cat >>conftest.
$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 #include <X11/xpm.h>
11902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11903 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11905 grep -v '^ *+' conftest.er1
>conftest.err
11907 cat conftest.err
>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev
/null
; then
11910 if test -s conftest.err
; then
11911 ac_cpp_err
=$ac_c_preproc_warn_flag
11912 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11919 if test -z "$ac_cpp_err"; then
11920 ac_header_preproc
=yes
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.
$ac_ext >&5
11925 ac_header_preproc
=no
11927 rm -f conftest.err conftest.
$ac_ext
11928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11929 echo "${ECHO_T}$ac_header_preproc" >&6
11931 # So? What about this header?
11932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11934 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11935 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11937 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11938 ac_header_preproc
=yes
11941 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11942 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11944 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11946 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11948 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11950 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11951 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11952 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11955 ## ------------------------------------------ ##
11956 ## Report this to the AC_PACKAGE_NAME lists. ##
11957 ## ------------------------------------------ ##
11960 sed "s/^/$as_me: WARNING: /" >&2
11963 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11964 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11965 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11970 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11971 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11974 if test $ac_cv_header_X11_xpm_h = yes; then
11975 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11976 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11977 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 ac_check_lib_save_LIBS
=$LIBS
11981 LIBS
="-lXpm -lX11 $LIBS"
11982 cat >conftest.
$ac_ext <<_ACEOF
11985 cat confdefs.h
>>conftest.
$ac_ext
11986 cat >>conftest.
$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11989 /* Override any gcc2 internal prototype to avoid an error. */
11993 /* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
11995 char XpmReadFileToPixmap ();
11999 XpmReadFileToPixmap ();
12004 rm -f conftest.
$ac_objext conftest
$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>conftest.er1
12008 grep -v '^ *+' conftest.er1
>conftest.err
12010 cat conftest.err
>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try
='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try
='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.
$ac_ext >&5
12031 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12033 rm -f conftest.err conftest.
$ac_objext \
12034 conftest
$ac_exeext conftest.
$ac_ext
12035 LIBS
=$ac_check_lib_save_LIBS
12037 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12038 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12039 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12046 if test "${HAVE_XPM}" = "yes"; then
12047 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12048 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12049 cat >conftest.
$ac_ext <<_ACEOF
12052 cat confdefs.h
>>conftest.
$ac_ext
12053 cat >>conftest.
$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 #include "X11/xpm.h"
12056 #ifndef XpmReturnAllocPixels
12057 no_return_alloc_pixels
12061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12062 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12070 if test "${HAVE_XPM}" = "yes"; then
12071 echo "$as_me:$LINENO: result: yes" >&5
12072 echo "${ECHO_T}yes" >&6
12074 echo "$as_me:$LINENO: result: no" >&5
12075 echo "${ECHO_T}no" >&6
12080 if test "${HAVE_XPM}" = "yes"; then
12082 cat >>confdefs.h
<<\_ACEOF
12089 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12091 if test "${HAVE_X11}" = "yes"; then
12092 if test "${with_jpeg}" != "no"; then
12093 if test "${ac_cv_header_jerror_h+set}" = set; then
12094 echo "$as_me:$LINENO: checking for jerror.h" >&5
12095 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12096 if test "${ac_cv_header_jerror_h+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12100 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12102 # Is the header compilable?
12103 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12104 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12105 cat >conftest.
$ac_ext <<_ACEOF
12108 cat confdefs.h
>>conftest.
$ac_ext
12109 cat >>conftest.
$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 $ac_includes_default
12112 #include <jerror.h>
12114 rm -f conftest.
$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116 (eval $ac_compile) 2>conftest.er1
12118 grep -v '^ *+' conftest.er1
>conftest.err
12120 cat conftest.err
>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try
='test -z "$ac_c_werror_flag"
12124 || test ! -s conftest.err'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try
='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_header_compiler
=yes
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.
$ac_ext >&5
12141 ac_header_compiler
=no
12143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12145 echo "${ECHO_T}$ac_header_compiler" >&6
12147 # Is the header present?
12148 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12149 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12150 cat >conftest.
$ac_ext <<_ACEOF
12153 cat confdefs.h
>>conftest.
$ac_ext
12154 cat >>conftest.
$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 #include <jerror.h>
12158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12159 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12161 grep -v '^ *+' conftest.er1
>conftest.err
12163 cat conftest.err
>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } >/dev
/null
; then
12166 if test -s conftest.err
; then
12167 ac_cpp_err
=$ac_c_preproc_warn_flag
12168 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12175 if test -z "$ac_cpp_err"; then
12176 ac_header_preproc
=yes
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.
$ac_ext >&5
12181 ac_header_preproc
=no
12183 rm -f conftest.err conftest.
$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12185 echo "${ECHO_T}$ac_header_preproc" >&6
12187 # So? What about this header?
12188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12190 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12191 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12193 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12194 ac_header_preproc
=yes
12197 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12198 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12200 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12202 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12204 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12206 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12208 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12211 ## ------------------------------------------ ##
12212 ## Report this to the AC_PACKAGE_NAME lists. ##
12213 ## ------------------------------------------ ##
12216 sed "s/^/$as_me: WARNING: /" >&2
12219 echo "$as_me:$LINENO: checking for jerror.h" >&5
12220 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12221 if test "${ac_cv_header_jerror_h+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 ac_cv_header_jerror_h
=$ac_header_preproc
12226 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12227 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12230 if test $ac_cv_header_jerror_h = yes; then
12231 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12232 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12233 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 ac_check_lib_save_LIBS
=$LIBS
12237 LIBS
="-ljpeg $LIBS"
12238 cat >conftest.
$ac_ext <<_ACEOF
12241 cat confdefs.h
>>conftest.
$ac_ext
12242 cat >>conftest.
$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12245 /* Override any gcc2 internal prototype to avoid an error. */
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251 char jpeg_destroy_compress ();
12255 jpeg_destroy_compress ();
12260 rm -f conftest.
$ac_objext conftest
$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>conftest.er1
12264 grep -v '^ *+' conftest.er1
>conftest.err
12266 cat conftest.err
>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try
='test -z "$ac_c_werror_flag"
12270 || test ! -s conftest.err'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try
='test -s conftest$ac_exeext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.
$ac_ext >&5
12287 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12289 rm -f conftest.err conftest.
$ac_objext \
12290 conftest
$ac_exeext conftest.
$ac_ext
12291 LIBS
=$ac_check_lib_save_LIBS
12293 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12294 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12295 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12305 if test "${HAVE_JPEG}" = "yes"; then
12306 cat >>confdefs.h
<<\_ACEOF
12307 #define HAVE_JPEG 1
12310 cat >conftest.
$ac_ext <<_ACEOF
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <jpeglib.h>
12317 version=JPEG_LIB_VERSION
12320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12321 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12322 cat >>confdefs.h
<<\_ACEOF
12323 #define HAVE_JPEG 1
12327 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12328 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12336 ### Use -lpng if available, unless `--with-png=no'.
12338 if test "${HAVE_X11}" = "yes"; then
12339 if test "${with_png}" != "no"; then
12340 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12341 # in /usr/include/libpng.
12344 for ac_header
in png.h libpng
/png.h
12346 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12348 echo "$as_me:$LINENO: checking for $ac_header" >&5
12349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12356 # Is the header compilable?
12357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12359 cat >conftest.
$ac_ext <<_ACEOF
12362 cat confdefs.h
>>conftest.
$ac_ext
12363 cat >>conftest.
$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 $ac_includes_default
12366 #include <$ac_header>
12368 rm -f conftest.
$ac_objext
12369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12370 (eval $ac_compile) 2>conftest.er1
12372 grep -v '^ *+' conftest.er1
>conftest.err
12374 cat conftest.err
>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try
='test -z "$ac_c_werror_flag"
12378 || test ! -s conftest.err'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; } &&
12384 { ac_try
='test -s conftest.$ac_objext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_header_compiler
=yes
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.
$ac_ext >&5
12395 ac_header_compiler
=no
12397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399 echo "${ECHO_T}$ac_header_compiler" >&6
12401 # Is the header present?
12402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12404 cat >conftest.
$ac_ext <<_ACEOF
12407 cat confdefs.h
>>conftest.
$ac_ext
12408 cat >>conftest.
$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include <$ac_header>
12412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12415 grep -v '^ *+' conftest.er1
>conftest.err
12417 cat conftest.err
>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } >/dev
/null
; then
12420 if test -s conftest.err
; then
12421 ac_cpp_err
=$ac_c_preproc_warn_flag
12422 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12429 if test -z "$ac_cpp_err"; then
12430 ac_header_preproc
=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.
$ac_ext >&5
12435 ac_header_preproc
=no
12437 rm -f conftest.err conftest.
$ac_ext
12438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12439 echo "${ECHO_T}$ac_header_preproc" >&6
12441 # So? What about this header?
12442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12448 ac_header_preproc
=yes
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12465 ## ------------------------------------------ ##
12466 ## Report this to the AC_PACKAGE_NAME lists. ##
12467 ## ------------------------------------------ ##
12470 sed "s/^/$as_me: WARNING: /" >&2
12473 echo "$as_me:$LINENO: checking for $ac_header" >&5
12474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 eval "$as_ac_Header=\$ac_header_preproc"
12480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12485 cat >>confdefs.h
<<_ACEOF
12486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12493 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12494 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12495 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12496 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 ac_check_lib_save_LIBS
=$LIBS
12500 LIBS
="-lpng -lz -lm $LIBS"
12501 cat >conftest.
$ac_ext <<_ACEOF
12504 cat confdefs.h
>>conftest.
$ac_ext
12505 cat >>conftest.
$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12508 /* Override any gcc2 internal prototype to avoid an error. */
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514 char png_get_channels ();
12518 png_get_channels ();
12523 rm -f conftest.
$ac_objext conftest
$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1
>conftest.err
12529 cat conftest.err
>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try
='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try
='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_lib_png_png_get_channels
=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.
$ac_ext >&5
12550 ac_cv_lib_png_png_get_channels
=no
12552 rm -f conftest.err conftest.
$ac_objext \
12553 conftest
$ac_exeext conftest.
$ac_ext
12554 LIBS
=$ac_check_lib_save_LIBS
12556 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12557 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12558 if test $ac_cv_lib_png_png_get_channels = yes; then
12565 if test "${HAVE_PNG}" = "yes"; then
12567 cat >>confdefs.h
<<\_ACEOF
12574 ### Use -ltiff if available, unless `--with-tiff=no'.
12576 if test "${HAVE_X11}" = "yes"; then
12577 if test "${with_tiff}" != "no"; then
12578 if test "${ac_cv_header_tiffio_h+set}" = set; then
12579 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12580 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12581 if test "${ac_cv_header_tiffio_h+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12587 # Is the header compilable?
12588 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12589 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12590 cat >conftest.
$ac_ext <<_ACEOF
12593 cat confdefs.h
>>conftest.
$ac_ext
12594 cat >>conftest.
$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 $ac_includes_default
12597 #include <tiffio.h>
12599 rm -f conftest.
$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12603 grep -v '^ *+' conftest.er1
>conftest.err
12605 cat conftest.err
>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try
='test -z "$ac_c_werror_flag"
12609 || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try
='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_header_compiler
=yes
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.
$ac_ext >&5
12626 ac_header_compiler
=no
12628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12630 echo "${ECHO_T}$ac_header_compiler" >&6
12632 # Is the header present?
12633 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12634 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12635 cat >conftest.
$ac_ext <<_ACEOF
12638 cat confdefs.h
>>conftest.
$ac_ext
12639 cat >>conftest.
$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 #include <tiffio.h>
12643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12644 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12646 grep -v '^ *+' conftest.er1
>conftest.err
12648 cat conftest.err
>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } >/dev
/null
; then
12651 if test -s conftest.err
; then
12652 ac_cpp_err
=$ac_c_preproc_warn_flag
12653 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12660 if test -z "$ac_cpp_err"; then
12661 ac_header_preproc
=yes
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.
$ac_ext >&5
12666 ac_header_preproc
=no
12668 rm -f conftest.err conftest.
$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12670 echo "${ECHO_T}$ac_header_preproc" >&6
12672 # So? What about this header?
12673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12675 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12676 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12678 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12679 ac_header_preproc
=yes
12682 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12683 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12685 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12687 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12689 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12691 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12693 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12696 ## ------------------------------------------ ##
12697 ## Report this to the AC_PACKAGE_NAME lists. ##
12698 ## ------------------------------------------ ##
12701 sed "s/^/$as_me: WARNING: /" >&2
12704 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12705 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12706 if test "${ac_cv_header_tiffio_h+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 ac_cv_header_tiffio_h
=$ac_header_preproc
12711 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12712 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12715 if test $ac_cv_header_tiffio_h = yes; then
12717 # At least one tiff package requires the jpeg library.
12718 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12719 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12720 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12721 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 ac_check_lib_save_LIBS
=$LIBS
12725 LIBS
="-ltiff $tifflibs $LIBS"
12726 cat >conftest.
$ac_ext <<_ACEOF
12729 cat confdefs.h
>>conftest.
$ac_ext
12730 cat >>conftest.
$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12733 /* Override any gcc2 internal prototype to avoid an error. */
12737 /* We use char because int might match the return type of a gcc2
12738 builtin and then its argument prototype would still apply. */
12739 char TIFFGetVersion ();
12748 rm -f conftest.
$ac_objext conftest
$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>conftest.er1
12752 grep -v '^ *+' conftest.er1
>conftest.err
12754 cat conftest.err
>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try
='test -z "$ac_c_werror_flag"
12758 || test ! -s conftest.err'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; } &&
12764 { ac_try
='test -s conftest$ac_exeext'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_lib_tiff_TIFFGetVersion
=yes
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.
$ac_ext >&5
12775 ac_cv_lib_tiff_TIFFGetVersion
=no
12777 rm -f conftest.err conftest.
$ac_objext \
12778 conftest
$ac_exeext conftest.
$ac_ext
12779 LIBS
=$ac_check_lib_save_LIBS
12781 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12782 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12783 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12792 if test "${HAVE_TIFF}" = "yes"; then
12794 cat >>confdefs.h
<<\_ACEOF
12795 #define HAVE_TIFF 1
12801 ### Use -lgif if available, unless `--with-gif=no'.
12803 if test "${HAVE_X11}" = "yes"; then
12804 if test "${with_gif}" != "no"; then
12805 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12806 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12807 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12808 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12812 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12814 # Is the header compilable?
12815 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12816 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12817 cat >conftest.
$ac_ext <<_ACEOF
12820 cat confdefs.h
>>conftest.
$ac_ext
12821 cat >>conftest.
$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 #include <gif_lib.h>
12826 rm -f conftest.
$ac_objext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828 (eval $ac_compile) 2>conftest.er1
12830 grep -v '^ *+' conftest.er1
>conftest.err
12832 cat conftest.err
>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try
='test -z "$ac_c_werror_flag"
12836 || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try
='test -s conftest.$ac_objext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_header_compiler
=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.
$ac_ext >&5
12853 ac_header_compiler
=no
12855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12857 echo "${ECHO_T}$ac_header_compiler" >&6
12859 # Is the header present?
12860 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12861 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12862 cat >conftest.
$ac_ext <<_ACEOF
12865 cat confdefs.h
>>conftest.
$ac_ext
12866 cat >>conftest.
$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 #include <gif_lib.h>
12870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12873 grep -v '^ *+' conftest.er1
>conftest.err
12875 cat conftest.err
>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } >/dev
/null
; then
12878 if test -s conftest.err
; then
12879 ac_cpp_err
=$ac_c_preproc_warn_flag
12880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12887 if test -z "$ac_cpp_err"; then
12888 ac_header_preproc
=yes
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.
$ac_ext >&5
12893 ac_header_preproc
=no
12895 rm -f conftest.err conftest.
$ac_ext
12896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12897 echo "${ECHO_T}$ac_header_preproc" >&6
12899 # So? What about this header?
12900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12902 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12903 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12905 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12906 ac_header_preproc
=yes
12909 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12910 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12912 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12914 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12916 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12918 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12920 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12923 ## ------------------------------------------ ##
12924 ## Report this to the AC_PACKAGE_NAME lists. ##
12925 ## ------------------------------------------ ##
12928 sed "s/^/$as_me: WARNING: /" >&2
12931 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12932 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12933 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 ac_cv_header_gif_lib_h
=$ac_header_preproc
12938 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12939 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12942 if test $ac_cv_header_gif_lib_h = yes; then
12943 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12944 # Earlier versions can crash Emacs.
12945 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12946 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12947 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 ac_check_lib_save_LIBS
=$LIBS
12951 LIBS
="-lungif $LIBS"
12952 cat >conftest.
$ac_ext <<_ACEOF
12955 cat confdefs.h
>>conftest.
$ac_ext
12956 cat >>conftest.
$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12959 /* Override any gcc2 internal prototype to avoid an error. */
12963 /* We use char because int might match the return type of a gcc2
12964 builtin and then its argument prototype would still apply. */
12965 char EGifPutExtensionLast ();
12969 EGifPutExtensionLast ();
12974 rm -f conftest.
$ac_objext conftest
$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976 (eval $ac_link) 2>conftest.er1
12978 grep -v '^ *+' conftest.er1
>conftest.err
12980 cat conftest.err
>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try
='test -z "$ac_c_werror_flag"
12984 || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try
='test -s conftest$ac_exeext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.
$ac_ext >&5
13001 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13003 rm -f conftest.err conftest.
$ac_objext \
13004 conftest
$ac_exeext conftest.
$ac_ext
13005 LIBS
=$ac_check_lib_save_LIBS
13007 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13008 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13009 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13018 if test "${HAVE_GIF}" = "yes"; then
13020 cat >>confdefs.h
<<\_ACEOF
13027 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13028 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13029 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13030 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13034 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13036 # Is the header compilable?
13037 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13038 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13039 cat >conftest.
$ac_ext <<_ACEOF
13042 cat confdefs.h
>>conftest.
$ac_ext
13043 cat >>conftest.
$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 $ac_includes_default
13046 #include <malloc/malloc.h>
13048 rm -f conftest.
$ac_objext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13050 (eval $ac_compile) 2>conftest.er1
13052 grep -v '^ *+' conftest.er1
>conftest.err
13054 cat conftest.err
>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try
='test -z "$ac_c_werror_flag"
13058 || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try
='test -s conftest.$ac_objext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_header_compiler
=yes
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.
$ac_ext >&5
13075 ac_header_compiler
=no
13077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13079 echo "${ECHO_T}$ac_header_compiler" >&6
13081 # Is the header present?
13082 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13083 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13084 cat >conftest.
$ac_ext <<_ACEOF
13087 cat confdefs.h
>>conftest.
$ac_ext
13088 cat >>conftest.
$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 #include <malloc/malloc.h>
13092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13093 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13095 grep -v '^ *+' conftest.er1
>conftest.err
13097 cat conftest.err
>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } >/dev
/null
; then
13100 if test -s conftest.err
; then
13101 ac_cpp_err
=$ac_c_preproc_warn_flag
13102 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13109 if test -z "$ac_cpp_err"; then
13110 ac_header_preproc
=yes
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.
$ac_ext >&5
13115 ac_header_preproc
=no
13117 rm -f conftest.err conftest.
$ac_ext
13118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13119 echo "${ECHO_T}$ac_header_preproc" >&6
13121 # So? What about this header?
13122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13124 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13125 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13126 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13127 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13128 ac_header_preproc
=yes
13131 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13132 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13134 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13136 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13138 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13140 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13142 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13145 ## ------------------------------------------ ##
13146 ## Report this to the AC_PACKAGE_NAME lists. ##
13147 ## ------------------------------------------ ##
13150 sed "s/^/$as_me: WARNING: /" >&2
13153 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13154 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13155 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13160 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13161 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13164 if test $ac_cv_header_malloc_malloc_h = yes; then
13166 cat >>confdefs.h
<<\_ACEOF
13167 #define HAVE_MALLOC_MALLOC_H 1
13174 ### Use Mac OS X Carbon API to implement GUI.
13175 if test "${HAVE_CARBON}" = "yes"; then
13177 cat >>confdefs.h
<<\_ACEOF
13178 #define HAVE_CARBON 1
13181 ## Specify the install directory
13183 if test "${carbon_appdir_x}" != ""; then
13184 case ${carbon_appdir_x} in
13185 y | ye |
yes) carbon_appdir
=/Applications
;;
13186 * ) carbon_appdir
=${carbon_appdir_x} ;;
13189 # We also have mouse menus.
13192 tmp_CFLAGS
="$CFLAGS"
13193 CFLAGS
="$CFLAGS -framework Carbon"
13194 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13195 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13196 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 cat >conftest.
$ac_ext <<_ACEOF
13202 cat confdefs.h
>>conftest.
$ac_ext
13203 cat >>conftest.
$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13207 #define CancelMenuTracking innocuous_CancelMenuTracking
13209 /* System header to define __stub macros and hopefully few prototypes,
13210 which can conflict with char CancelMenuTracking (); below.
13211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13212 <limits.h> exists even on freestanding compilers. */
13215 # include <limits.h>
13217 # include <assert.h>
13220 #undef CancelMenuTracking
13222 /* Override any gcc2 internal prototype to avoid an error. */
13227 /* We use char because int might match the return type of a gcc2
13228 builtin and then its argument prototype would still apply. */
13229 char CancelMenuTracking ();
13230 /* The GNU C library defines this for functions which it implements
13231 to always fail with ENOSYS. Some functions are actually named
13232 something starting with __ and the normal name is an alias. */
13233 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13236 char (*f) () = CancelMenuTracking;
13245 return f != CancelMenuTracking;
13250 rm -f conftest.
$ac_objext conftest
$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>conftest.er1
13254 grep -v '^ *+' conftest.er1
>conftest.err
13256 cat conftest.err
>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try
='test -z "$ac_c_werror_flag"
13260 || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try
='test -s conftest$ac_exeext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_cv_func_CancelMenuTracking
=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.
$ac_ext >&5
13277 ac_cv_func_CancelMenuTracking
=no
13279 rm -f conftest.err conftest.
$ac_objext \
13280 conftest
$ac_exeext conftest.
$ac_ext
13282 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13283 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13284 if test $ac_cv_func_CancelMenuTracking = yes; then
13290 if test "$have_cmt" = yes; then
13292 cat >>confdefs.h
<<\_ACEOF
13293 #define HAVE_CANCELMENUTRACKING 1
13297 CFLAGS
="$tmp_CFLAGS"
13300 ### Use session management (-lSM -lICE) if available
13302 if test "${HAVE_X11}" = "yes"; then
13303 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13304 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13305 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13306 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13310 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13312 # Is the header compilable?
13313 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13314 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13315 cat >conftest.
$ac_ext <<_ACEOF
13318 cat confdefs.h
>>conftest.
$ac_ext
13319 cat >>conftest.
$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 $ac_includes_default
13322 #include <X11/SM/SMlib.h>
13324 rm -f conftest.
$ac_objext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326 (eval $ac_compile) 2>conftest.er1
13328 grep -v '^ *+' conftest.er1
>conftest.err
13330 cat conftest.err
>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try
='test -z "$ac_c_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try
='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_header_compiler
=yes
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.
$ac_ext >&5
13351 ac_header_compiler
=no
13353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13355 echo "${ECHO_T}$ac_header_compiler" >&6
13357 # Is the header present?
13358 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13359 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13360 cat >conftest.
$ac_ext <<_ACEOF
13363 cat confdefs.h
>>conftest.
$ac_ext
13364 cat >>conftest.
$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 #include <X11/SM/SMlib.h>
13368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13369 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13371 grep -v '^ *+' conftest.er1
>conftest.err
13373 cat conftest.err
>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } >/dev
/null
; then
13376 if test -s conftest.err
; then
13377 ac_cpp_err
=$ac_c_preproc_warn_flag
13378 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13385 if test -z "$ac_cpp_err"; then
13386 ac_header_preproc
=yes
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.
$ac_ext >&5
13391 ac_header_preproc
=no
13393 rm -f conftest.err conftest.
$ac_ext
13394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13395 echo "${ECHO_T}$ac_header_preproc" >&6
13397 # So? What about this header?
13398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13400 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13401 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13403 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13404 ac_header_preproc
=yes
13407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13408 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13410 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13412 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13414 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13416 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13418 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13421 ## ------------------------------------------ ##
13422 ## Report this to the AC_PACKAGE_NAME lists. ##
13423 ## ------------------------------------------ ##
13426 sed "s/^/$as_me: WARNING: /" >&2
13429 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13430 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13431 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13436 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13437 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13440 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13441 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13442 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13443 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 ac_check_lib_save_LIBS
=$LIBS
13447 LIBS
="-lSM -lICE $LIBS"
13448 cat >conftest.
$ac_ext <<_ACEOF
13451 cat confdefs.h
>>conftest.
$ac_ext
13452 cat >>conftest.
$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13455 /* Override any gcc2 internal prototype to avoid an error. */
13459 /* We use char because int might match the return type of a gcc2
13460 builtin and then its argument prototype would still apply. */
13461 char SmcOpenConnection ();
13465 SmcOpenConnection ();
13470 rm -f conftest.
$ac_objext conftest
$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>conftest.er1
13474 grep -v '^ *+' conftest.er1
>conftest.err
13476 cat conftest.err
>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try
='test -z "$ac_c_werror_flag"
13480 || test ! -s conftest.err'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; } &&
13486 { ac_try
='test -s conftest$ac_exeext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_lib_SM_SmcOpenConnection
=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.
$ac_ext >&5
13497 ac_cv_lib_SM_SmcOpenConnection
=no
13499 rm -f conftest.err conftest.
$ac_objext \
13500 conftest
$ac_exeext conftest.
$ac_ext
13501 LIBS
=$ac_check_lib_save_LIBS
13503 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13504 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13505 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13513 if test "${HAVE_X_SM}" = "yes"; then
13515 cat >>confdefs.h
<<\_ACEOF
13516 #define HAVE_X_SM 1
13521 *) LIBS
="-lSM -lICE $LIBS" ;;
13526 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13527 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13528 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13529 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 cat >conftest.
$ac_ext <<_ACEOF
13535 cat confdefs.h
>>conftest.
$ac_ext
13536 cat >>conftest.
$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13547 rm -f conftest.
$ac_objext conftest
$ac_exeext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13549 (eval $ac_link) 2>conftest.er1
13551 grep -v '^ *+' conftest.er1
>conftest.err
13553 cat conftest.err
>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try
='test -z "$ac_c_werror_flag"
13557 || test ! -s conftest.err'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try
='test -s conftest$ac_exeext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 emacs_cv_netdb_declares_h_errno
=yes
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.
$ac_ext >&5
13574 emacs_cv_netdb_declares_h_errno
=no
13576 rm -f conftest.err conftest.
$ac_objext \
13577 conftest
$ac_exeext conftest.
$ac_ext
13579 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13580 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13581 if test $emacs_cv_netdb_declares_h_errno = yes; then
13583 cat >>confdefs.h
<<\_ACEOF
13584 #define HAVE_H_ERRNO 1
13589 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13590 # for constant arguments. Useless!
13591 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13592 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13593 if test "${ac_cv_working_alloca_h+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 cat >conftest.
$ac_ext <<_ACEOF
13599 cat confdefs.h
>>conftest.
$ac_ext
13600 cat >>conftest.
$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #include <alloca.h>
13606 char *p = (char *) alloca (2 * sizeof (int));
13611 rm -f conftest.
$ac_objext conftest
$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613 (eval $ac_link) 2>conftest.er1
13615 grep -v '^ *+' conftest.er1
>conftest.err
13617 cat conftest.err
>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try
='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
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); }; } &&
13627 { ac_try
='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_working_alloca_h
=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.
$ac_ext >&5
13638 ac_cv_working_alloca_h
=no
13640 rm -f conftest.err conftest.
$ac_objext \
13641 conftest
$ac_exeext conftest.
$ac_ext
13643 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13644 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13645 if test $ac_cv_working_alloca_h = yes; then
13647 cat >>confdefs.h
<<\_ACEOF
13648 #define HAVE_ALLOCA_H 1
13653 echo "$as_me:$LINENO: checking for alloca" >&5
13654 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13655 if test "${ac_cv_func_alloca_works+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 cat >conftest.
$ac_ext <<_ACEOF
13661 cat confdefs.h
>>conftest.
$ac_ext
13662 cat >>conftest.
$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13665 # define alloca __builtin_alloca
13668 # include <malloc.h>
13669 # define alloca _alloca
13672 # include <alloca.h>
13677 # ifndef alloca /* predefined by HP cc +Olibcalls */
13688 char *p = (char *) alloca (1);
13693 rm -f conftest.
$ac_objext conftest
$ac_exeext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>conftest.er1
13697 grep -v '^ *+' conftest.er1
>conftest.err
13699 cat conftest.err
>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try
='test -z "$ac_c_werror_flag"
13703 || test ! -s conftest.err'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try
='test -s conftest$ac_exeext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ac_cv_func_alloca_works
=yes
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.
$ac_ext >&5
13720 ac_cv_func_alloca_works
=no
13722 rm -f conftest.err conftest.
$ac_objext \
13723 conftest
$ac_exeext conftest.
$ac_ext
13725 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13726 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13728 if test $ac_cv_func_alloca_works = yes; then
13730 cat >>confdefs.h
<<\_ACEOF
13731 #define HAVE_ALLOCA 1
13735 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13736 # that cause trouble. Some versions do not even contain alloca or
13737 # contain a buggy version. If you still want to use their alloca,
13738 # use ar to extract alloca.o from them instead of compiling alloca.c.
13740 ALLOCA
=alloca.
$ac_objext
13742 cat >>confdefs.h
<<\_ACEOF
13747 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13748 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13749 if test "${ac_cv_os_cray+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.
$ac_ext <<_ACEOF
13755 cat confdefs.h
>>conftest.
$ac_ext
13756 cat >>conftest.
$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 #if defined(CRAY) && ! defined(CRAY2)
13765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13766 $EGREP "webecray" >/dev
/null
2>&1; then
13774 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13775 echo "${ECHO_T}$ac_cv_os_cray" >&6
13776 if test $ac_cv_os_cray = yes; then
13777 for ac_func
in _getb67 GETB67 getb67
; do
13778 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13779 echo "$as_me:$LINENO: checking for $ac_func" >&5
13780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13781 if eval "test \"\${$as_ac_var+set}\" = set"; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 cat >conftest.
$ac_ext <<_ACEOF
13787 cat confdefs.h
>>conftest.
$ac_ext
13788 cat >>conftest.
$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13792 #define $ac_func innocuous_$ac_func
13794 /* System header to define __stub macros and hopefully few prototypes,
13795 which can conflict with char $ac_func (); below.
13796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13797 <limits.h> exists even on freestanding compilers. */
13800 # include <limits.h>
13802 # include <assert.h>
13807 /* Override any gcc2 internal prototype to avoid an error. */
13812 /* We use char because int might match the return type of a gcc2
13813 builtin and then its argument prototype would still apply. */
13815 /* The GNU C library defines this for functions which it implements
13816 to always fail with ENOSYS. Some functions are actually named
13817 something starting with __ and the normal name is an alias. */
13818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13821 char (*f) () = $ac_func;
13830 return f != $ac_func;
13835 rm -f conftest.
$ac_objext conftest
$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>conftest.er1
13839 grep -v '^ *+' conftest.er1
>conftest.err
13841 cat conftest.err
>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try
='test -z "$ac_c_werror_flag"
13845 || test ! -s conftest.err'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try
='test -s conftest$ac_exeext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 eval "$as_ac_var=yes"
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.
$ac_ext >&5
13862 eval "$as_ac_var=no"
13864 rm -f conftest.err conftest.
$ac_objext \
13865 conftest
$ac_exeext conftest.
$ac_ext
13867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13869 if test `eval echo '${'$as_ac_var'}'` = yes; then
13871 cat >>confdefs.h
<<_ACEOF
13872 #define CRAY_STACKSEG_END $ac_func
13881 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13882 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13883 if test "${ac_cv_c_stack_direction+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 if test "$cross_compiling" = yes; then
13887 ac_cv_c_stack_direction
=0
13889 cat >conftest.
$ac_ext <<_ACEOF
13892 cat confdefs.h
>>conftest.
$ac_ext
13893 cat >>conftest.
$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13896 find_stack_direction ()
13898 static char *addr = 0;
13903 return find_stack_direction ();
13906 return (&dummy > addr) ? 1 : -1;
13912 exit (find_stack_direction () < 0);
13915 rm -f conftest
$ac_exeext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917 (eval $ac_link) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_c_stack_direction
=1
13928 echo "$as_me: program exited with status $ac_status" >&5
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.
$ac_ext >&5
13932 ( exit $ac_status )
13933 ac_cv_c_stack_direction
=-1
13935 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13938 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13939 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13941 cat >>confdefs.h
<<_ACEOF
13942 #define STACK_DIRECTION $ac_cv_c_stack_direction
13949 # fmod, logb, and frexp are found in -lm on most systems.
13950 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13952 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13953 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13954 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 ac_check_lib_save_LIBS
=$LIBS
13959 cat >conftest.
$ac_ext <<_ACEOF
13962 cat confdefs.h
>>conftest.
$ac_ext
13963 cat >>conftest.
$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13966 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13981 rm -f conftest.
$ac_objext conftest
$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13985 grep -v '^ *+' conftest.er1
>conftest.err
13987 cat conftest.err
>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try
='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try
='test -s conftest$ac_exeext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_lib_m_sqrt
=yes
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.
$ac_ext >&5
14008 ac_cv_lib_m_sqrt
=no
14010 rm -f conftest.err conftest.
$ac_objext \
14011 conftest
$ac_exeext conftest.
$ac_ext
14012 LIBS
=$ac_check_lib_save_LIBS
14014 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14015 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14016 if test $ac_cv_lib_m_sqrt = yes; then
14017 cat >>confdefs.h
<<_ACEOF
14018 #define HAVE_LIBM 1
14026 # Check for mail-locking functions in a "mail" library. Probably this should
14027 # have the same check as for liblockfile below.
14029 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14030 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14031 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 ac_check_lib_save_LIBS
=$LIBS
14035 LIBS
="-lmail $LIBS"
14036 cat >conftest.
$ac_ext <<_ACEOF
14039 cat confdefs.h
>>conftest.
$ac_ext
14040 cat >>conftest.
$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14043 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14058 rm -f conftest.
$ac_objext conftest
$ac_exeext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14060 (eval $ac_link) 2>conftest.er1
14062 grep -v '^ *+' conftest.er1
>conftest.err
14064 cat conftest.err
>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try
='test -z "$ac_c_werror_flag"
14068 || test ! -s conftest.err'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try
='test -s conftest$ac_exeext'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 ac_cv_lib_mail_maillock
=yes
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.
$ac_ext >&5
14085 ac_cv_lib_mail_maillock
=no
14087 rm -f conftest.err conftest.
$ac_objext \
14088 conftest
$ac_exeext conftest.
$ac_ext
14089 LIBS
=$ac_check_lib_save_LIBS
14091 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14092 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14093 if test $ac_cv_lib_mail_maillock = yes; then
14094 cat >>confdefs.h
<<_ACEOF
14095 #define HAVE_LIBMAIL 1
14098 LIBS
="-lmail $LIBS"
14103 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14104 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14105 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 ac_check_lib_save_LIBS
=$LIBS
14109 LIBS
="-llockfile $LIBS"
14110 cat >conftest.
$ac_ext <<_ACEOF
14113 cat confdefs.h
>>conftest.
$ac_ext
14114 cat >>conftest.
$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14117 /* Override any gcc2 internal prototype to avoid an error. */
14121 /* We use char because int might match the return type of a gcc2
14122 builtin and then its argument prototype would still apply. */
14132 rm -f conftest.
$ac_objext conftest
$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134 (eval $ac_link) 2>conftest.er1
14136 grep -v '^ *+' conftest.er1
>conftest.err
14138 cat conftest.err
>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try
='test -z "$ac_c_werror_flag"
14142 || test ! -s conftest.err'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try
='test -s conftest$ac_exeext'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 ac_cv_lib_lockfile_maillock
=yes
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.
$ac_ext >&5
14159 ac_cv_lib_lockfile_maillock
=no
14161 rm -f conftest.err conftest.
$ac_objext \
14162 conftest
$ac_exeext conftest.
$ac_ext
14163 LIBS
=$ac_check_lib_save_LIBS
14165 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14166 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14167 if test $ac_cv_lib_lockfile_maillock = yes; then
14168 cat >>confdefs.h
<<_ACEOF
14169 #define HAVE_LIBLOCKFILE 1
14172 LIBS
="-llockfile $LIBS"
14176 # If we have the shared liblockfile, assume we must use it for mail
14177 # locking (e.g. Debian). If we couldn't link against liblockfile
14178 # (no liblockfile.a installed), ensure that we don't need to.
14179 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14180 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14181 set dummy liblockfile.so
; ac_word
=$2
14182 echo "$as_me:$LINENO: checking for $ac_word" >&5
14183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14184 if test "${ac_cv_prog_liblockfile+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 if test -n "$liblockfile"; then
14188 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14191 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14192 for as_dir
in $as_dummy
14195 test -z "$as_dir" && as_dir
=.
14196 for ac_exec_ext
in '' $ac_executable_extensions; do
14197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14198 ac_cv_prog_liblockfile
="yes"
14199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14205 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14208 liblockfile
=$ac_cv_prog_liblockfile
14209 if test -n "$liblockfile"; then
14210 echo "$as_me:$LINENO: result: $liblockfile" >&5
14211 echo "${ECHO_T}$liblockfile" >&6
14213 echo "$as_me:$LINENO: result: no" >&5
14214 echo "${ECHO_T}no" >&6
14217 if test $ac_cv_prog_liblockfile = yes; then
14218 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14219 This probably means that movemail could lose mail.
14220 There may be a \`development' package to install containing liblockfile." >&5
14221 echo "$as_me: error: Shared liblockfile found but can't link against it.
14222 This probably means that movemail could lose mail.
14223 There may be a \`development' package to install containing liblockfile." >&2;}
14224 { (exit 1); exit 1; }; }
14229 for ac_func
in touchlock
14231 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 echo "$as_me:$LINENO: checking for $ac_func" >&5
14233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14234 if eval "test \"\${$as_ac_var+set}\" = set"; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 cat >conftest.
$ac_ext <<_ACEOF
14240 cat confdefs.h
>>conftest.
$ac_ext
14241 cat >>conftest.
$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14245 #define $ac_func innocuous_$ac_func
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func (); below.
14249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250 <limits.h> exists even on freestanding compilers. */
14253 # include <limits.h>
14255 # include <assert.h>
14260 /* Override any gcc2 internal prototype to avoid an error. */
14265 /* We use char because int might match the return type of a gcc2
14266 builtin and then its argument prototype would still apply. */
14268 /* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14274 char (*f) () = $ac_func;
14283 return f != $ac_func;
14288 rm -f conftest.
$ac_objext conftest
$ac_exeext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14290 (eval $ac_link) 2>conftest.er1
14292 grep -v '^ *+' conftest.er1
>conftest.err
14294 cat conftest.err
>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try
='test -z "$ac_c_werror_flag"
14298 || test ! -s conftest.err'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try
='test -s conftest$ac_exeext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 eval "$as_ac_var=yes"
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.
$ac_ext >&5
14315 eval "$as_ac_var=no"
14317 rm -f conftest.err conftest.
$ac_objext \
14318 conftest
$ac_exeext conftest.
$ac_ext
14320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14322 if test `eval echo '${'$as_ac_var'}'` = yes; then
14323 cat >>confdefs.h
<<_ACEOF
14324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14331 for ac_header
in maillock.h
14333 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14335 echo "$as_me:$LINENO: checking for $ac_header" >&5
14336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343 # Is the header compilable?
14344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14346 cat >conftest.
$ac_ext <<_ACEOF
14349 cat confdefs.h
>>conftest.
$ac_ext
14350 cat >>conftest.
$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 $ac_includes_default
14353 #include <$ac_header>
14355 rm -f conftest.
$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1
>conftest.err
14361 cat conftest.err
>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try
='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try
='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_header_compiler
=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.
$ac_ext >&5
14382 ac_header_compiler
=no
14384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386 echo "${ECHO_T}$ac_header_compiler" >&6
14388 # Is the header present?
14389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14391 cat >conftest.
$ac_ext <<_ACEOF
14394 cat confdefs.h
>>conftest.
$ac_ext
14395 cat >>conftest.
$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <$ac_header>
14399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14402 grep -v '^ *+' conftest.er1
>conftest.err
14404 cat conftest.err
>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev
/null
; then
14407 if test -s conftest.err
; then
14408 ac_cpp_err
=$ac_c_preproc_warn_flag
14409 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14416 if test -z "$ac_cpp_err"; then
14417 ac_header_preproc
=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.
$ac_ext >&5
14422 ac_header_preproc
=no
14424 rm -f conftest.err conftest.
$ac_ext
14425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14426 echo "${ECHO_T}$ac_header_preproc" >&6
14428 # So? What about this header?
14429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14435 ac_header_preproc
=yes
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14452 ## ------------------------------------------ ##
14453 ## Report this to the AC_PACKAGE_NAME lists. ##
14454 ## ------------------------------------------ ##
14457 sed "s/^/$as_me: WARNING: /" >&2
14460 echo "$as_me:$LINENO: checking for $ac_header" >&5
14461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 eval "$as_ac_Header=\$ac_header_preproc"
14467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472 cat >>confdefs.h
<<_ACEOF
14473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14549 for ac_func
in gethostname getdomainname dup2 \
14550 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14551 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14552 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14553 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14554 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14555 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14556 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14557 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14559 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14560 echo "$as_me:$LINENO: checking for $ac_func" >&5
14561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14562 if eval "test \"\${$as_ac_var+set}\" = set"; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 cat >conftest.
$ac_ext <<_ACEOF
14568 cat confdefs.h
>>conftest.
$ac_ext
14569 cat >>conftest.
$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14573 #define $ac_func innocuous_$ac_func
14575 /* System header to define __stub macros and hopefully few prototypes,
14576 which can conflict with char $ac_func (); below.
14577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14578 <limits.h> exists even on freestanding compilers. */
14581 # include <limits.h>
14583 # include <assert.h>
14588 /* Override any gcc2 internal prototype to avoid an error. */
14593 /* We use char because int might match the return type of a gcc2
14594 builtin and then its argument prototype would still apply. */
14596 /* The GNU C library defines this for functions which it implements
14597 to always fail with ENOSYS. Some functions are actually named
14598 something starting with __ and the normal name is an alias. */
14599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14602 char (*f) () = $ac_func;
14611 return f != $ac_func;
14616 rm -f conftest.
$ac_objext conftest
$ac_exeext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14618 (eval $ac_link) 2>conftest.er1
14620 grep -v '^ *+' conftest.er1
>conftest.err
14622 cat conftest.err
>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try
='test -z "$ac_c_werror_flag"
14626 || test ! -s conftest.err'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try
='test -s conftest$ac_exeext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 eval "$as_ac_var=yes"
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.
$ac_ext >&5
14643 eval "$as_ac_var=no"
14645 rm -f conftest.err conftest.
$ac_objext \
14646 conftest
$ac_exeext conftest.
$ac_ext
14648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14650 if test `eval echo '${'$as_ac_var'}'` = yes; then
14651 cat >>confdefs.h
<<_ACEOF
14652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14660 for ac_header
in sys
/un.h
14662 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14664 echo "$as_me:$LINENO: checking for $ac_header" >&5
14665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14672 # Is the header compilable?
14673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14675 cat >conftest.
$ac_ext <<_ACEOF
14678 cat confdefs.h
>>conftest.
$ac_ext
14679 cat >>conftest.
$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14682 #include <$ac_header>
14684 rm -f conftest.
$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14688 grep -v '^ *+' conftest.er1
>conftest.err
14690 cat conftest.err
>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try
='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try
='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_header_compiler
=yes
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.
$ac_ext >&5
14711 ac_header_compiler
=no
14713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14715 echo "${ECHO_T}$ac_header_compiler" >&6
14717 # Is the header present?
14718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14720 cat >conftest.
$ac_ext <<_ACEOF
14723 cat confdefs.h
>>conftest.
$ac_ext
14724 cat >>conftest.
$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include <$ac_header>
14728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14731 grep -v '^ *+' conftest.er1
>conftest.err
14733 cat conftest.err
>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev
/null
; then
14736 if test -s conftest.err
; then
14737 ac_cpp_err
=$ac_c_preproc_warn_flag
14738 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14745 if test -z "$ac_cpp_err"; then
14746 ac_header_preproc
=yes
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.
$ac_ext >&5
14751 ac_header_preproc
=no
14753 rm -f conftest.err conftest.
$ac_ext
14754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14755 echo "${ECHO_T}$ac_header_preproc" >&6
14757 # So? What about this header?
14758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14764 ac_header_preproc
=yes
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14781 ## ------------------------------------------ ##
14782 ## Report this to the AC_PACKAGE_NAME lists. ##
14783 ## ------------------------------------------ ##
14786 sed "s/^/$as_me: WARNING: /" >&2
14789 echo "$as_me:$LINENO: checking for $ac_header" >&5
14790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 eval "$as_ac_Header=\$ac_header_preproc"
14796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14801 cat >>confdefs.h
<<_ACEOF
14802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14813 for ac_header
in stdlib.h sys
/time.h unistd.h
14815 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14817 echo "$as_me:$LINENO: checking for $ac_header" >&5
14818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14825 # Is the header compilable?
14826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14828 cat >conftest.
$ac_ext <<_ACEOF
14831 cat confdefs.h
>>conftest.
$ac_ext
14832 cat >>conftest.
$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 $ac_includes_default
14835 #include <$ac_header>
14837 rm -f conftest.
$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>conftest.er1
14841 grep -v '^ *+' conftest.er1
>conftest.err
14843 cat conftest.err
>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
14846 { ac_try
='test -z "$ac_c_werror_flag"
14847 || test ! -s conftest.err'
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try
='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_header_compiler
=yes
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.
$ac_ext >&5
14864 ac_header_compiler
=no
14866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14868 echo "${ECHO_T}$ac_header_compiler" >&6
14870 # Is the header present?
14871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14873 cat >conftest.
$ac_ext <<_ACEOF
14876 cat confdefs.h
>>conftest.
$ac_ext
14877 cat >>conftest.
$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 #include <$ac_header>
14881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14882 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14884 grep -v '^ *+' conftest.er1
>conftest.err
14886 cat conftest.err
>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } >/dev
/null
; then
14889 if test -s conftest.err
; then
14890 ac_cpp_err
=$ac_c_preproc_warn_flag
14891 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14898 if test -z "$ac_cpp_err"; then
14899 ac_header_preproc
=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.
$ac_ext >&5
14904 ac_header_preproc
=no
14906 rm -f conftest.err conftest.
$ac_ext
14907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908 echo "${ECHO_T}$ac_header_preproc" >&6
14910 # So? What about this header?
14911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14917 ac_header_preproc
=yes
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14934 ## ------------------------------------------ ##
14935 ## Report this to the AC_PACKAGE_NAME lists. ##
14936 ## ------------------------------------------ ##
14939 sed "s/^/$as_me: WARNING: /" >&2
14942 echo "$as_me:$LINENO: checking for $ac_header" >&5
14943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 eval "$as_ac_Header=\$ac_header_preproc"
14949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14954 cat >>confdefs.h
<<_ACEOF
14955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14963 for ac_func
in alarm
14965 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14966 echo "$as_me:$LINENO: checking for $ac_func" >&5
14967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14968 if eval "test \"\${$as_ac_var+set}\" = set"; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 cat >conftest.
$ac_ext <<_ACEOF
14974 cat confdefs.h
>>conftest.
$ac_ext
14975 cat >>conftest.
$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14979 #define $ac_func innocuous_$ac_func
14981 /* System header to define __stub macros and hopefully few prototypes,
14982 which can conflict with char $ac_func (); below.
14983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14984 <limits.h> exists even on freestanding compilers. */
14987 # include <limits.h>
14989 # include <assert.h>
14994 /* Override any gcc2 internal prototype to avoid an error. */
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15002 /* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15008 char (*f) () = $ac_func;
15017 return f != $ac_func;
15022 rm -f conftest.
$ac_objext conftest
$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>conftest.er1
15026 grep -v '^ *+' conftest.er1
>conftest.err
15028 cat conftest.err
>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try
='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try
='test -s conftest$ac_exeext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 eval "$as_ac_var=yes"
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.
$ac_ext >&5
15049 eval "$as_ac_var=no"
15051 rm -f conftest.err conftest.
$ac_objext \
15052 conftest
$ac_exeext conftest.
$ac_ext
15054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15056 if test `eval echo '${'$as_ac_var'}'` = yes; then
15057 cat >>confdefs.h
<<_ACEOF
15058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15064 echo "$as_me:$LINENO: checking for working mktime" >&5
15065 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15066 if test "${ac_cv_func_working_mktime+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 if test "$cross_compiling" = yes; then
15070 ac_cv_func_working_mktime
=no
15072 cat >conftest.
$ac_ext <<_ACEOF
15075 cat confdefs.h
>>conftest.
$ac_ext
15076 cat >>conftest.
$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078 /* Test program from Paul Eggert and Tony Leneis. */
15079 #if TIME_WITH_SYS_TIME
15080 # include <sys/time.h>
15083 # if HAVE_SYS_TIME_H
15084 # include <sys/time.h>
15091 # include <stdlib.h>
15095 # include <unistd.h>
15099 # define alarm(X) /* empty */
15102 /* Work around redefinition to rpl_putenv by other config tests. */
15105 static time_t time_t_max;
15106 static time_t time_t_min;
15108 /* Values we'll use to set the TZ environment variable. */
15109 static char *tz_strings[] = {
15110 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15111 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15113 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15115 /* Fail if mktime fails to convert a date in the spring-forward gap.
15116 Based on a problem report from Andreas Jaeger. */
15118 spring_forward_gap ()
15120 /* glibc (up to about 1998-10-07) failed this test. */
15123 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15124 instead of "TZ=America/Vancouver" in order to detect the bug even
15125 on systems that don't support the Olson extension, or don't have the
15126 full zoneinfo tables installed. */
15127 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15136 if (mktime (&tm) == (time_t)-1)
15145 if ((lt = localtime (&now)) && mktime (lt) != now)
15153 mktime_test1 (now);
15154 mktime_test1 ((time_t) (time_t_max - now));
15155 mktime_test1 ((time_t) (time_t_min + now));
15161 /* Based on code from Ariel Faigon. */
15171 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15181 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15182 now = mktime (&tm);
15183 if (now != (time_t) -1)
15185 struct tm *lt = localtime (&now);
15187 && lt->tm_year == tm.tm_year
15188 && lt->tm_mon == tm.tm_mon
15189 && lt->tm_mday == tm.tm_mday
15190 && lt->tm_hour == tm.tm_hour
15191 && lt->tm_min == tm.tm_min
15192 && lt->tm_sec == tm.tm_sec
15193 && lt->tm_yday == tm.tm_yday
15194 && lt->tm_wday == tm.tm_wday
15195 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15196 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15207 /* This test makes some buggy mktime implementations loop.
15208 Give up after 60 seconds; a mktime slower than that
15209 isn't worth using anyway. */
15212 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15215 if ((time_t) -1 < 0)
15216 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15218 delta = time_t_max / 997; /* a suitable prime number */
15219 for (i = 0; i < N_STRINGS; i++)
15222 putenv (tz_strings[i]);
15224 for (t = 0; t <= time_t_max - delta; t += delta)
15226 mktime_test ((time_t) 1);
15227 mktime_test ((time_t) (60 * 60));
15228 mktime_test ((time_t) (60 * 60 * 24));
15230 for (j = 1; 0 < j; j *= 2)
15232 bigtime_test (j - 1);
15235 spring_forward_gap ();
15239 rm -f conftest
$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241 (eval $ac_link) 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_cv_func_working_mktime
=yes
15252 echo "$as_me: program exited with status $ac_status" >&5
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.
$ac_ext >&5
15256 ( exit $ac_status )
15257 ac_cv_func_working_mktime
=no
15259 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15262 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15263 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15264 if test $ac_cv_func_working_mktime = no
; then
15266 "mktime.$ac_objext" | \
15267 *" mktime.$ac_objext" | \
15268 "mktime.$ac_objext "* | \
15269 *" mktime.$ac_objext "* ) ;;
15270 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15275 if test "$ac_cv_func_working_mktime" = no
; then
15277 cat >>confdefs.h
<<\_ACEOF
15278 #define BROKEN_MKTIME 1
15283 ac_have_func
=no
# yes means we've found a way to get the load average.
15285 # Make sure getloadavg.c is where it belongs, at configure-time.
15286 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15287 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15288 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15289 { (exit 1); exit 1; }; }
15293 # Check for getloadavg, but be sure not to touch the cache variable.
15294 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15295 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15296 if test "${ac_cv_func_getloadavg+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 cat >conftest.
$ac_ext <<_ACEOF
15302 cat confdefs.h
>>conftest.
$ac_ext
15303 cat >>conftest.
$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15307 #define getloadavg innocuous_getloadavg
15309 /* System header to define __stub macros and hopefully few prototypes,
15310 which can conflict with char getloadavg (); below.
15311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15312 <limits.h> exists even on freestanding compilers. */
15315 # include <limits.h>
15317 # include <assert.h>
15322 /* Override any gcc2 internal prototype to avoid an error. */
15327 /* We use char because int might match the return type of a gcc2
15328 builtin and then its argument prototype would still apply. */
15329 char getloadavg ();
15330 /* The GNU C library defines this for functions which it implements
15331 to always fail with ENOSYS. Some functions are actually named
15332 something starting with __ and the normal name is an alias. */
15333 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15336 char (*f) () = getloadavg;
15345 return f != getloadavg;
15350 rm -f conftest.
$ac_objext conftest
$ac_exeext
15351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15352 (eval $ac_link) 2>conftest.er1
15354 grep -v '^ *+' conftest.er1
>conftest.err
15356 cat conftest.err
>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
15359 { ac_try
='test -z "$ac_c_werror_flag"
15360 || test ! -s conftest.err'
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; } &&
15366 { ac_try
='test -s conftest$ac_exeext'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_cv_func_getloadavg
=yes
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.
$ac_ext >&5
15377 ac_cv_func_getloadavg
=no
15379 rm -f conftest.err conftest.
$ac_objext \
15380 conftest
$ac_exeext conftest.
$ac_ext
15382 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15383 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15384 if test $ac_cv_func_getloadavg = yes; then
15389 ) && ac_have_func
=yes
15391 # On HPUX9, an unprivileged user can get load averages through this function.
15393 for ac_func
in pstat_getdynamic
15395 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15396 echo "$as_me:$LINENO: checking for $ac_func" >&5
15397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15398 if eval "test \"\${$as_ac_var+set}\" = set"; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 cat >conftest.
$ac_ext <<_ACEOF
15404 cat confdefs.h
>>conftest.
$ac_ext
15405 cat >>conftest.
$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15409 #define $ac_func innocuous_$ac_func
15411 /* System header to define __stub macros and hopefully few prototypes,
15412 which can conflict with char $ac_func (); below.
15413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15414 <limits.h> exists even on freestanding compilers. */
15417 # include <limits.h>
15419 # include <assert.h>
15424 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15432 /* The GNU C library defines this for functions which it implements
15433 to always fail with ENOSYS. Some functions are actually named
15434 something starting with __ and the normal name is an alias. */
15435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15438 char (*f) () = $ac_func;
15447 return f != $ac_func;
15452 rm -f conftest.
$ac_objext conftest
$ac_exeext
15453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15454 (eval $ac_link) 2>conftest.er1
15456 grep -v '^ *+' conftest.er1
>conftest.err
15458 cat conftest.err
>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try
='test -z "$ac_c_werror_flag"
15462 || test ! -s conftest.err'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try
='test -s conftest$ac_exeext'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 eval "$as_ac_var=yes"
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.
$ac_ext >&5
15479 eval "$as_ac_var=no"
15481 rm -f conftest.err conftest.
$ac_objext \
15482 conftest
$ac_exeext conftest.
$ac_ext
15484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15486 if test `eval echo '${'$as_ac_var'}'` = yes; then
15487 cat >>confdefs.h
<<_ACEOF
15488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15495 # Solaris has libkstat which does not require root.
15497 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15498 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15499 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 ac_check_lib_save_LIBS
=$LIBS
15503 LIBS
="-lkstat $LIBS"
15504 cat >conftest.
$ac_ext <<_ACEOF
15507 cat confdefs.h
>>conftest.
$ac_ext
15508 cat >>conftest.
$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15511 /* Override any gcc2 internal prototype to avoid an error. */
15515 /* We use char because int might match the return type of a gcc2
15516 builtin and then its argument prototype would still apply. */
15517 char kstat_open ();
15526 rm -f conftest.
$ac_objext conftest
$ac_exeext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>conftest.er1
15530 grep -v '^ *+' conftest.er1
>conftest.err
15532 cat conftest.err
>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try
='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try
='test -s conftest$ac_exeext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_lib_kstat_kstat_open
=yes
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.
$ac_ext >&5
15553 ac_cv_lib_kstat_kstat_open
=no
15555 rm -f conftest.err conftest.
$ac_objext \
15556 conftest
$ac_exeext conftest.
$ac_ext
15557 LIBS
=$ac_check_lib_save_LIBS
15559 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15560 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15561 if test $ac_cv_lib_kstat_kstat_open = yes; then
15562 cat >>confdefs.h
<<_ACEOF
15563 #define HAVE_LIBKSTAT 1
15566 LIBS
="-lkstat $LIBS"
15570 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15572 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15573 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15574 # to get the right answer into the cache.
15575 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15576 if test $ac_have_func = no
; then
15577 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15578 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15579 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 ac_check_lib_save_LIBS
=$LIBS
15584 cat >conftest.
$ac_ext <<_ACEOF
15587 cat confdefs.h
>>conftest.
$ac_ext
15588 cat >>conftest.
$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15591 /* Override any gcc2 internal prototype to avoid an error. */
15595 /* We use char because int might match the return type of a gcc2
15596 builtin and then its argument prototype would still apply. */
15606 rm -f conftest.
$ac_objext conftest
$ac_exeext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15608 (eval $ac_link) 2>conftest.er1
15610 grep -v '^ *+' conftest.er1
>conftest.err
15612 cat conftest.err
>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
15615 { ac_try
='test -z "$ac_c_werror_flag"
15616 || test ! -s conftest.err'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try
='test -s conftest$ac_exeext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_lib_elf_elf_begin
=yes
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.
$ac_ext >&5
15633 ac_cv_lib_elf_elf_begin
=no
15635 rm -f conftest.err conftest.
$ac_objext \
15636 conftest
$ac_exeext conftest.
$ac_ext
15637 LIBS
=$ac_check_lib_save_LIBS
15639 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15640 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15641 if test $ac_cv_lib_elf_elf_begin = yes; then
15646 if test $ac_have_func = no
; then
15647 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15648 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15649 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 ac_check_lib_save_LIBS
=$LIBS
15654 cat >conftest.
$ac_ext <<_ACEOF
15657 cat confdefs.h
>>conftest.
$ac_ext
15658 cat >>conftest.
$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15661 /* Override any gcc2 internal prototype to avoid an error. */
15665 /* We use char because int might match the return type of a gcc2
15666 builtin and then its argument prototype would still apply. */
15676 rm -f conftest.
$ac_objext conftest
$ac_exeext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678 (eval $ac_link) 2>conftest.er1
15680 grep -v '^ *+' conftest.er1
>conftest.err
15682 cat conftest.err
>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try
='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try
='test -s conftest$ac_exeext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_cv_lib_kvm_kvm_open
=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.
$ac_ext >&5
15703 ac_cv_lib_kvm_kvm_open
=no
15705 rm -f conftest.err conftest.
$ac_objext \
15706 conftest
$ac_exeext conftest.
$ac_ext
15707 LIBS
=$ac_check_lib_save_LIBS
15709 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15710 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15711 if test $ac_cv_lib_kvm_kvm_open = yes; then
15715 # Check for the 4.4BSD definition of getloadavg.
15716 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15717 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15718 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 ac_check_lib_save_LIBS
=$LIBS
15722 LIBS
="-lutil $LIBS"
15723 cat >conftest.
$ac_ext <<_ACEOF
15726 cat confdefs.h
>>conftest.
$ac_ext
15727 cat >>conftest.
$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 /* Override any gcc2 internal prototype to avoid an error. */
15734 /* We use char because int might match the return type of a gcc2
15735 builtin and then its argument prototype would still apply. */
15736 char getloadavg ();
15745 rm -f conftest.
$ac_objext conftest
$ac_exeext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747 (eval $ac_link) 2>conftest.er1
15749 grep -v '^ *+' conftest.er1
>conftest.err
15751 cat conftest.err
>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try
='test -z "$ac_c_werror_flag"
15755 || test ! -s conftest.err'
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try
='test -s conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_cv_lib_util_getloadavg
=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.
$ac_ext >&5
15772 ac_cv_lib_util_getloadavg
=no
15774 rm -f conftest.err conftest.
$ac_objext \
15775 conftest
$ac_exeext conftest.
$ac_ext
15776 LIBS
=$ac_check_lib_save_LIBS
15778 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15779 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15780 if test $ac_cv_lib_util_getloadavg = yes; then
15781 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15786 if test $ac_have_func = no
; then
15787 # There is a commonly available library for RS/6000 AIX.
15788 # Since it is not a standard part of AIX, it might be installed locally.
15789 ac_getloadavg_LIBS
=$LIBS
15790 LIBS
="-L/usr/local/lib $LIBS"
15791 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15792 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15793 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 ac_check_lib_save_LIBS
=$LIBS
15797 LIBS
="-lgetloadavg $LIBS"
15798 cat >conftest.
$ac_ext <<_ACEOF
15801 cat confdefs.h
>>conftest.
$ac_ext
15802 cat >>conftest.
$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15805 /* Override any gcc2 internal prototype to avoid an error. */
15809 /* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15811 char getloadavg ();
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"
15830 || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try
='test -s conftest$ac_exeext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_cv_lib_getloadavg_getloadavg
=yes
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.
$ac_ext >&5
15847 ac_cv_lib_getloadavg_getloadavg
=no
15849 rm -f conftest.err conftest.
$ac_objext \
15850 conftest
$ac_exeext conftest.
$ac_ext
15851 LIBS
=$ac_check_lib_save_LIBS
15853 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15854 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15855 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15856 LIBS
="-lgetloadavg $LIBS"
15858 LIBS
=$ac_getloadavg_LIBS
15863 # Make sure it is really in the library, if we think we found it,
15864 # otherwise set up the replacement function.
15866 for ac_func
in getloadavg
15868 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15869 echo "$as_me:$LINENO: checking for $ac_func" >&5
15870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15871 if eval "test \"\${$as_ac_var+set}\" = set"; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 cat >conftest.
$ac_ext <<_ACEOF
15877 cat confdefs.h
>>conftest.
$ac_ext
15878 cat >>conftest.
$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15882 #define $ac_func innocuous_$ac_func
15884 /* System header to define __stub macros and hopefully few prototypes,
15885 which can conflict with char $ac_func (); below.
15886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15887 <limits.h> exists even on freestanding compilers. */
15890 # include <limits.h>
15892 # include <assert.h>
15897 /* Override any gcc2 internal prototype to avoid an error. */
15902 /* We use char because int might match the return type of a gcc2
15903 builtin and then its argument prototype would still apply. */
15905 /* The GNU C library defines this for functions which it implements
15906 to always fail with ENOSYS. Some functions are actually named
15907 something starting with __ and the normal name is an alias. */
15908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15911 char (*f) () = $ac_func;
15920 return f != $ac_func;
15925 rm -f conftest.
$ac_objext conftest
$ac_exeext
15926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15927 (eval $ac_link) 2>conftest.er1
15929 grep -v '^ *+' conftest.er1
>conftest.err
15931 cat conftest.err
>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try
='test -z "$ac_c_werror_flag"
15935 || test ! -s conftest.err'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; } &&
15941 { ac_try
='test -s conftest$ac_exeext'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 eval "$as_ac_var=yes"
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15952 eval "$as_ac_var=no"
15954 rm -f conftest.err conftest.
$ac_objext \
15955 conftest
$ac_exeext conftest.
$ac_ext
15957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15959 if test `eval echo '${'$as_ac_var'}'` = yes; then
15960 cat >>confdefs.h
<<_ACEOF
15961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15966 "getloadavg.$ac_objext" | \
15967 *" getloadavg.$ac_objext" | \
15968 "getloadavg.$ac_objext "* | \
15969 *" getloadavg.$ac_objext "* ) ;;
15970 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15974 cat >>confdefs.h
<<\_ACEOF
15975 #define C_GETLOADAVG 1
15978 # Figure out what our getloadavg.c needs.
15980 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15981 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15982 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15983 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15987 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15989 # Is the header compilable?
15990 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15991 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15992 cat >conftest.
$ac_ext <<_ACEOF
15995 cat confdefs.h
>>conftest.
$ac_ext
15996 cat >>conftest.
$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
15999 #include <sys/dg_sys_info.h>
16001 rm -f conftest.
$ac_objext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
16005 grep -v '^ *+' conftest.er1
>conftest.err
16007 cat conftest.err
>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try
='test -z "$ac_c_werror_flag"
16011 || test ! -s conftest.err'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try
='test -s conftest.$ac_objext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_header_compiler
=yes
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.
$ac_ext >&5
16028 ac_header_compiler
=no
16030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16032 echo "${ECHO_T}$ac_header_compiler" >&6
16034 # Is the header present?
16035 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16036 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16037 cat >conftest.
$ac_ext <<_ACEOF
16040 cat confdefs.h
>>conftest.
$ac_ext
16041 cat >>conftest.
$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 #include <sys/dg_sys_info.h>
16045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16046 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16048 grep -v '^ *+' conftest.er1
>conftest.err
16050 cat conftest.err
>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } >/dev
/null
; then
16053 if test -s conftest.err
; then
16054 ac_cpp_err
=$ac_c_preproc_warn_flag
16055 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16062 if test -z "$ac_cpp_err"; then
16063 ac_header_preproc
=yes
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.
$ac_ext >&5
16068 ac_header_preproc
=no
16070 rm -f conftest.err conftest.
$ac_ext
16071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16072 echo "${ECHO_T}$ac_header_preproc" >&6
16074 # So? What about this header?
16075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16077 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16078 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16080 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16081 ac_header_preproc
=yes
16084 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16085 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16087 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16089 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16091 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16093 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16095 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16098 ## ------------------------------------------ ##
16099 ## Report this to the AC_PACKAGE_NAME lists. ##
16100 ## ------------------------------------------ ##
16103 sed "s/^/$as_me: WARNING: /" >&2
16106 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16107 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16108 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16113 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16114 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16117 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16120 cat >>confdefs.h
<<\_ACEOF
16125 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16126 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16127 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 ac_check_lib_save_LIBS
=$LIBS
16132 cat >conftest.
$ac_ext <<_ACEOF
16135 cat confdefs.h
>>conftest.
$ac_ext
16136 cat >>conftest.
$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16139 /* Override any gcc2 internal prototype to avoid an error. */
16143 /* We use char because int might match the return type of a gcc2
16144 builtin and then its argument prototype would still apply. */
16145 char dg_sys_info ();
16154 rm -f conftest.
$ac_objext conftest
$ac_exeext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16156 (eval $ac_link) 2>conftest.er1
16158 grep -v '^ *+' conftest.er1
>conftest.err
16160 cat conftest.err
>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
16163 { ac_try
='test -z "$ac_c_werror_flag"
16164 || test ! -s conftest.err'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; } &&
16170 { ac_try
='test -s conftest$ac_exeext'
16171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172 (eval $ac_try) 2>&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); }; }; then
16176 ac_cv_lib_dgc_dg_sys_info
=yes
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.
$ac_ext >&5
16181 ac_cv_lib_dgc_dg_sys_info
=no
16183 rm -f conftest.err conftest.
$ac_objext \
16184 conftest
$ac_exeext conftest.
$ac_ext
16185 LIBS
=$ac_check_lib_save_LIBS
16187 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16188 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16189 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16190 cat >>confdefs.h
<<_ACEOF
16191 #define HAVE_LIBDGC 1
16202 if test "${ac_cv_header_locale_h+set}" = set; then
16203 echo "$as_me:$LINENO: checking for locale.h" >&5
16204 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16205 if test "${ac_cv_header_locale_h+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16209 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16211 # Is the header compilable?
16212 echo "$as_me:$LINENO: checking locale.h usability" >&5
16213 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16214 cat >conftest.
$ac_ext <<_ACEOF
16217 cat confdefs.h
>>conftest.
$ac_ext
16218 cat >>conftest.
$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 $ac_includes_default
16221 #include <locale.h>
16223 rm -f conftest.
$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16227 grep -v '^ *+' conftest.er1
>conftest.err
16229 cat conftest.err
>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try
='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try
='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ac_header_compiler
=yes
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.
$ac_ext >&5
16250 ac_header_compiler
=no
16252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16254 echo "${ECHO_T}$ac_header_compiler" >&6
16256 # Is the header present?
16257 echo "$as_me:$LINENO: checking locale.h presence" >&5
16258 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16259 cat >conftest.
$ac_ext <<_ACEOF
16262 cat confdefs.h
>>conftest.
$ac_ext
16263 cat >>conftest.
$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16265 #include <locale.h>
16267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16270 grep -v '^ *+' conftest.er1
>conftest.err
16272 cat conftest.err
>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } >/dev
/null
; then
16275 if test -s conftest.err
; then
16276 ac_cpp_err
=$ac_c_preproc_warn_flag
16277 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16284 if test -z "$ac_cpp_err"; then
16285 ac_header_preproc
=yes
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.
$ac_ext >&5
16290 ac_header_preproc
=no
16292 rm -f conftest.err conftest.
$ac_ext
16293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16294 echo "${ECHO_T}$ac_header_preproc" >&6
16296 # So? What about this header?
16297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16299 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16300 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16302 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16303 ac_header_preproc
=yes
16306 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16307 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16309 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16311 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16313 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16315 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16317 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16320 ## ------------------------------------------ ##
16321 ## Report this to the AC_PACKAGE_NAME lists. ##
16322 ## ------------------------------------------ ##
16325 sed "s/^/$as_me: WARNING: /" >&2
16328 echo "$as_me:$LINENO: checking for locale.h" >&5
16329 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16330 if test "${ac_cv_header_locale_h+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 ac_cv_header_locale_h
=$ac_header_preproc
16335 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16336 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16342 for ac_func
in setlocale
16344 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16345 echo "$as_me:$LINENO: checking for $ac_func" >&5
16346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16347 if eval "test \"\${$as_ac_var+set}\" = set"; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 cat >conftest.
$ac_ext <<_ACEOF
16353 cat confdefs.h
>>conftest.
$ac_ext
16354 cat >>conftest.
$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16358 #define $ac_func innocuous_$ac_func
16360 /* System header to define __stub macros and hopefully few prototypes,
16361 which can conflict with char $ac_func (); below.
16362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16363 <limits.h> exists even on freestanding compilers. */
16366 # include <limits.h>
16368 # include <assert.h>
16373 /* Override any gcc2 internal prototype to avoid an error. */
16378 /* We use char because int might match the return type of a gcc2
16379 builtin and then its argument prototype would still apply. */
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16387 char (*f) () = $ac_func;
16396 return f != $ac_func;
16401 rm -f conftest.
$ac_objext conftest
$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403 (eval $ac_link) 2>conftest.er1
16405 grep -v '^ *+' conftest.er1
>conftest.err
16407 cat conftest.err
>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try
='test -z "$ac_c_werror_flag"
16411 || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try
='test -s conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 eval "$as_ac_var=yes"
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.
$ac_ext >&5
16428 eval "$as_ac_var=no"
16430 rm -f conftest.err conftest.
$ac_objext \
16431 conftest
$ac_exeext conftest.
$ac_ext
16433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16435 if test `eval echo '${'$as_ac_var'}'` = yes; then
16436 cat >>confdefs.h
<<_ACEOF
16437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16444 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16445 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16446 # Irix 4.0.5F has the header but not the library.
16447 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16450 cat >>confdefs.h
<<\_ACEOF
16456 if test $ac_have_func = no
; then
16457 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16458 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16459 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16460 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16464 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16466 # Is the header compilable?
16467 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16468 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16469 cat >conftest.
$ac_ext <<_ACEOF
16472 cat confdefs.h
>>conftest.
$ac_ext
16473 cat >>conftest.
$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 $ac_includes_default
16476 #include <inq_stats/cpustats.h>
16478 rm -f conftest.
$ac_objext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16480 (eval $ac_compile) 2>conftest.er1
16482 grep -v '^ *+' conftest.er1
>conftest.err
16484 cat conftest.err
>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try
='test -z "$ac_c_werror_flag"
16488 || test ! -s conftest.err'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try
='test -s conftest.$ac_objext'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16500 ac_header_compiler
=yes
16502 echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.
$ac_ext >&5
16505 ac_header_compiler
=no
16507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16509 echo "${ECHO_T}$ac_header_compiler" >&6
16511 # Is the header present?
16512 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16513 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16514 cat >conftest.
$ac_ext <<_ACEOF
16517 cat confdefs.h
>>conftest.
$ac_ext
16518 cat >>conftest.
$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <inq_stats/cpustats.h>
16522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16523 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16525 grep -v '^ *+' conftest.er1
>conftest.err
16527 cat conftest.err
>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } >/dev
/null
; then
16530 if test -s conftest.err
; then
16531 ac_cpp_err
=$ac_c_preproc_warn_flag
16532 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16539 if test -z "$ac_cpp_err"; then
16540 ac_header_preproc
=yes
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.
$ac_ext >&5
16545 ac_header_preproc
=no
16547 rm -f conftest.err conftest.
$ac_ext
16548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16549 echo "${ECHO_T}$ac_header_preproc" >&6
16551 # So? What about this header?
16552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16554 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16555 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16557 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16558 ac_header_preproc
=yes
16561 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16562 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16564 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16566 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16568 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16570 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16572 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16575 ## ------------------------------------------ ##
16576 ## Report this to the AC_PACKAGE_NAME lists. ##
16577 ## ------------------------------------------ ##
16580 sed "s/^/$as_me: WARNING: /" >&2
16583 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16584 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16585 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16590 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16591 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16594 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16597 cat >>confdefs.h
<<\_ACEOF
16602 cat >>confdefs.h
<<\_ACEOF
16611 if test $ac_have_func = no
; then
16612 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16613 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16614 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16615 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16619 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16621 # Is the header compilable?
16622 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16623 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16624 cat >conftest.
$ac_ext <<_ACEOF
16627 cat confdefs.h
>>conftest.
$ac_ext
16628 cat >>conftest.
$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 $ac_includes_default
16631 #include <sys/cpustats.h>
16633 rm -f conftest.
$ac_objext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635 (eval $ac_compile) 2>conftest.er1
16637 grep -v '^ *+' conftest.er1
>conftest.err
16639 cat conftest.err
>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try
='test -z "$ac_c_werror_flag"
16643 || test ! -s conftest.err'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try
='test -s conftest.$ac_objext'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_header_compiler
=yes
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.
$ac_ext >&5
16660 ac_header_compiler
=no
16662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16664 echo "${ECHO_T}$ac_header_compiler" >&6
16666 # Is the header present?
16667 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16668 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16669 cat >conftest.
$ac_ext <<_ACEOF
16672 cat confdefs.h
>>conftest.
$ac_ext
16673 cat >>conftest.
$ac_ext <<_ACEOF
16674 /* end confdefs.h. */
16675 #include <sys/cpustats.h>
16677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16678 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16680 grep -v '^ *+' conftest.er1
>conftest.err
16682 cat conftest.err
>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } >/dev
/null
; then
16685 if test -s conftest.err
; then
16686 ac_cpp_err
=$ac_c_preproc_warn_flag
16687 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16694 if test -z "$ac_cpp_err"; then
16695 ac_header_preproc
=yes
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.
$ac_ext >&5
16700 ac_header_preproc
=no
16702 rm -f conftest.err conftest.
$ac_ext
16703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16704 echo "${ECHO_T}$ac_header_preproc" >&6
16706 # So? What about this header?
16707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16709 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16710 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16711 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16712 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16713 ac_header_preproc
=yes
16716 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16717 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16719 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16720 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16721 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16723 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16725 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16727 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16730 ## ------------------------------------------ ##
16731 ## Report this to the AC_PACKAGE_NAME lists. ##
16732 ## ------------------------------------------ ##
16735 sed "s/^/$as_me: WARNING: /" >&2
16738 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16739 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16740 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16745 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16746 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16749 if test $ac_cv_header_sys_cpustats_h = yes; then
16750 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16759 if test $ac_have_func = no
; then
16761 for ac_header
in mach
/mach.h
16763 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16765 echo "$as_me:$LINENO: checking for $ac_header" >&5
16766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16773 # Is the header compilable?
16774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16776 cat >conftest.
$ac_ext <<_ACEOF
16779 cat confdefs.h
>>conftest.
$ac_ext
16780 cat >>conftest.
$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 $ac_includes_default
16783 #include <$ac_header>
16785 rm -f conftest.
$ac_objext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16787 (eval $ac_compile) 2>conftest.er1
16789 grep -v '^ *+' conftest.er1
>conftest.err
16791 cat conftest.err
>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try
='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try
='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_header_compiler
=yes
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.
$ac_ext >&5
16812 ac_header_compiler
=no
16814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16816 echo "${ECHO_T}$ac_header_compiler" >&6
16818 # Is the header present?
16819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16821 cat >conftest.
$ac_ext <<_ACEOF
16824 cat confdefs.h
>>conftest.
$ac_ext
16825 cat >>conftest.
$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 #include <$ac_header>
16829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16832 grep -v '^ *+' conftest.er1
>conftest.err
16834 cat conftest.err
>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } >/dev
/null
; then
16837 if test -s conftest.err
; then
16838 ac_cpp_err
=$ac_c_preproc_warn_flag
16839 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16846 if test -z "$ac_cpp_err"; then
16847 ac_header_preproc
=yes
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.
$ac_ext >&5
16852 ac_header_preproc
=no
16854 rm -f conftest.err conftest.
$ac_ext
16855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16856 echo "${ECHO_T}$ac_header_preproc" >&6
16858 # So? What about this header?
16859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16865 ac_header_preproc
=yes
16868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16882 ## ------------------------------------------ ##
16883 ## Report this to the AC_PACKAGE_NAME lists. ##
16884 ## ------------------------------------------ ##
16887 sed "s/^/$as_me: WARNING: /" >&2
16890 echo "$as_me:$LINENO: checking for $ac_header" >&5
16891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 eval "$as_ac_Header=\$ac_header_preproc"
16897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16902 cat >>confdefs.h
<<_ACEOF
16903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16913 for ac_header
in nlist.h
16915 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16917 echo "$as_me:$LINENO: checking for $ac_header" >&5
16918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16925 # Is the header compilable?
16926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16928 cat >conftest.
$ac_ext <<_ACEOF
16931 cat confdefs.h
>>conftest.
$ac_ext
16932 cat >>conftest.
$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 $ac_includes_default
16935 #include <$ac_header>
16937 rm -f conftest.
$ac_objext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16939 (eval $ac_compile) 2>conftest.er1
16941 grep -v '^ *+' conftest.er1
>conftest.err
16943 cat conftest.err
>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try
='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try
='test -s conftest.$ac_objext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_header_compiler
=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.
$ac_ext >&5
16964 ac_header_compiler
=no
16966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16968 echo "${ECHO_T}$ac_header_compiler" >&6
16970 # Is the header present?
16971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16973 cat >conftest.
$ac_ext <<_ACEOF
16976 cat confdefs.h
>>conftest.
$ac_ext
16977 cat >>conftest.
$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <$ac_header>
16981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16982 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16984 grep -v '^ *+' conftest.er1
>conftest.err
16986 cat conftest.err
>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } >/dev
/null
; then
16989 if test -s conftest.err
; then
16990 ac_cpp_err
=$ac_c_preproc_warn_flag
16991 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16998 if test -z "$ac_cpp_err"; then
16999 ac_header_preproc
=yes
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.
$ac_ext >&5
17004 ac_header_preproc
=no
17006 rm -f conftest.err conftest.
$ac_ext
17007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17008 echo "${ECHO_T}$ac_header_preproc" >&6
17010 # So? What about this header?
17011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17017 ac_header_preproc
=yes
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17034 ## ------------------------------------------ ##
17035 ## Report this to the AC_PACKAGE_NAME lists. ##
17036 ## ------------------------------------------ ##
17039 sed "s/^/$as_me: WARNING: /" >&2
17042 echo "$as_me:$LINENO: checking for $ac_header" >&5
17043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 eval "$as_ac_Header=\$ac_header_preproc"
17049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17054 cat >>confdefs.h
<<_ACEOF
17055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17057 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17058 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17059 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 cat >conftest.
$ac_ext <<_ACEOF
17065 cat confdefs.h
>>conftest.
$ac_ext
17066 cat >>conftest.
$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17073 static struct nlist ac_aggr;
17074 if (ac_aggr.n_un.n_name)
17080 rm -f conftest.
$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082 (eval $ac_compile) 2>conftest.er1
17084 grep -v '^ *+' conftest.er1
>conftest.err
17086 cat conftest.err
>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try
='test -z "$ac_c_werror_flag"
17090 || test ! -s conftest.err'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try
='test -s conftest.$ac_objext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_member_struct_nlist_n_un_n_name
=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.
$ac_ext >&5
17107 cat >conftest.
$ac_ext <<_ACEOF
17110 cat confdefs.h
>>conftest.
$ac_ext
17111 cat >>conftest.
$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17118 static struct nlist ac_aggr;
17119 if (sizeof ac_aggr.n_un.n_name)
17125 rm -f conftest.
$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17129 grep -v '^ *+' conftest.er1
>conftest.err
17131 cat conftest.err
>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try
='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try
='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_member_struct_nlist_n_un_n_name
=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.
$ac_ext >&5
17152 ac_cv_member_struct_nlist_n_un_n_name
=no
17154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17159 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17160 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17162 cat >>confdefs.h
<<_ACEOF
17163 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17167 cat >>confdefs.h
<<\_ACEOF
17168 #define NLIST_NAME_UNION 1
17182 # Some definitions of getloadavg require that the program be installed setgid.
17183 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17184 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17185 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 cat >conftest.
$ac_ext <<_ACEOF
17191 cat confdefs.h
>>conftest.
$ac_ext
17192 cat >>conftest.
$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17195 #ifdef LDAV_PRIVILEGED
17196 Yowza Am I SETGID yet
17199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17200 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17201 ac_cv_func_getloadavg_setgid
=yes
17203 ac_cv_func_getloadavg_setgid
=no
17208 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17209 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17210 if test $ac_cv_func_getloadavg_setgid = yes; then
17213 cat >>confdefs.h
<<\_ACEOF
17214 #define GETLOADAVG_PRIVILEGED 1
17221 if test $ac_cv_func_getloadavg_setgid = yes; then
17222 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17223 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17224 if test "${ac_cv_group_kmem+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17228 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17229 # If we got an error (system does not support symlinks), try without -L.
17230 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17231 ac_cv_group_kmem
=`echo $ac_ls_output \
17232 | sed -ne 's/[ ][ ]*/ /g;
17233 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17237 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17238 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17239 KMEM_GROUP
=$ac_cv_group_kmem
17241 if test "x$ac_save_LIBS" = x
; then
17242 GETLOADAVG_LIBS
=$LIBS
17244 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17250 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17251 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17252 if test "${ac_cv_sys_largefile_source+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 ac_cv_sys_largefile_source
=no
17257 cat >conftest.
$ac_ext <<_ACEOF
17260 cat confdefs.h
>>conftest.
$ac_ext
17261 cat >>conftest.
$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17272 rm -f conftest.
$ac_objext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274 (eval $ac_compile) 2>conftest.er1
17276 grep -v '^ *+' conftest.er1
>conftest.err
17278 cat conftest.err
>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try
='test -z "$ac_c_werror_flag"
17282 || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try
='test -s conftest.$ac_objext'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.
$ac_ext >&5
17300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17301 cat >conftest.
$ac_ext <<_ACEOF
17304 cat confdefs.h
>>conftest.
$ac_ext
17305 cat >>conftest.
$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 #define _LARGEFILE_SOURCE 1
17317 rm -f conftest.
$ac_objext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17319 (eval $ac_compile) 2>conftest.er1
17321 grep -v '^ *+' conftest.er1
>conftest.err
17323 cat conftest.err
>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try
='test -z "$ac_c_werror_flag"
17327 || test ! -s conftest.err'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try
='test -s conftest.$ac_objext'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 ac_cv_sys_largefile_source
=1; break
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.
$ac_ext >&5
17345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17349 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17350 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17351 if test "$ac_cv_sys_largefile_source" != no
; then
17353 cat >>confdefs.h
<<_ACEOF
17354 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17360 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17361 # in glibc 2.1.3, but that breaks too many other things.
17362 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17363 echo "$as_me:$LINENO: checking for fseeko" >&5
17364 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17365 if test "${ac_cv_func_fseeko+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 cat >conftest.
$ac_ext <<_ACEOF
17371 cat confdefs.h
>>conftest.
$ac_ext
17372 cat >>conftest.
$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17378 return fseeko && fseeko (stdin, 0, 0);
17383 rm -f conftest.
$ac_objext conftest
$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>conftest.er1
17387 grep -v '^ *+' conftest.er1
>conftest.err
17389 cat conftest.err
>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try
='test -z "$ac_c_werror_flag"
17393 || test ! -s conftest.err'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try
='test -s conftest$ac_exeext'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 ac_cv_func_fseeko
=yes
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.
$ac_ext >&5
17410 ac_cv_func_fseeko
=no
17412 rm -f conftest.err conftest.
$ac_objext \
17413 conftest
$ac_exeext conftest.
$ac_ext
17415 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17416 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17417 if test $ac_cv_func_fseeko = yes; then
17419 cat >>confdefs.h
<<\_ACEOF
17420 #define HAVE_FSEEKO 1
17426 # Configure getopt.
17427 # getopt.m4 serial 10
17429 # The getopt module assume you want GNU getopt, with getopt_long etc,
17430 # rather than vanilla POSIX getopt. This means your your code should
17431 # always include <getopt.h> for the getopt prototypes.
17443 # Prerequisites of lib/getopt*.
17450 for ac_header
in getopt.h
17452 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17454 echo "$as_me:$LINENO: checking for $ac_header" >&5
17455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17462 # Is the header compilable?
17463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17465 cat >conftest.
$ac_ext <<_ACEOF
17468 cat confdefs.h
>>conftest.
$ac_ext
17469 cat >>conftest.
$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 $ac_includes_default
17472 #include <$ac_header>
17474 rm -f conftest.
$ac_objext
17475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17476 (eval $ac_compile) 2>conftest.er1
17478 grep -v '^ *+' conftest.er1
>conftest.err
17480 cat conftest.err
>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } &&
17483 { ac_try
='test -z "$ac_c_werror_flag"
17484 || test ! -s conftest.err'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try
='test -s conftest.$ac_objext'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; }; then
17496 ac_header_compiler
=yes
17498 echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.
$ac_ext >&5
17501 ac_header_compiler
=no
17503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17505 echo "${ECHO_T}$ac_header_compiler" >&6
17507 # Is the header present?
17508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17510 cat >conftest.
$ac_ext <<_ACEOF
17513 cat confdefs.h
>>conftest.
$ac_ext
17514 cat >>conftest.
$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 #include <$ac_header>
17518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17521 grep -v '^ *+' conftest.er1
>conftest.err
17523 cat conftest.err
>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } >/dev
/null
; then
17526 if test -s conftest.err
; then
17527 ac_cpp_err
=$ac_c_preproc_warn_flag
17528 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17535 if test -z "$ac_cpp_err"; then
17536 ac_header_preproc
=yes
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.
$ac_ext >&5
17541 ac_header_preproc
=no
17543 rm -f conftest.err conftest.
$ac_ext
17544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17545 echo "${ECHO_T}$ac_header_preproc" >&6
17547 # So? What about this header?
17548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17554 ac_header_preproc
=yes
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17571 ## ------------------------------------------ ##
17572 ## Report this to the AC_PACKAGE_NAME lists. ##
17573 ## ------------------------------------------ ##
17576 sed "s/^/$as_me: WARNING: /" >&2
17579 echo "$as_me:$LINENO: checking for $ac_header" >&5
17580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 eval "$as_ac_Header=\$ac_header_preproc"
17586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17591 cat >>confdefs.h
<<_ACEOF
17592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17601 if test -z "$GETOPT_H"; then
17603 for ac_func
in getopt_long_only
17605 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17606 echo "$as_me:$LINENO: checking for $ac_func" >&5
17607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17608 if eval "test \"\${$as_ac_var+set}\" = set"; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 cat >conftest.
$ac_ext <<_ACEOF
17614 cat confdefs.h
>>conftest.
$ac_ext
17615 cat >>conftest.
$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17619 #define $ac_func innocuous_$ac_func
17621 /* System header to define __stub macros and hopefully few prototypes,
17622 which can conflict with char $ac_func (); below.
17623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17624 <limits.h> exists even on freestanding compilers. */
17627 # include <limits.h>
17629 # include <assert.h>
17634 /* Override any gcc2 internal prototype to avoid an error. */
17639 /* We use char because int might match the return type of a gcc2
17640 builtin and then its argument prototype would still apply. */
17642 /* The GNU C library defines this for functions which it implements
17643 to always fail with ENOSYS. Some functions are actually named
17644 something starting with __ and the normal name is an alias. */
17645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17648 char (*f) () = $ac_func;
17657 return f != $ac_func;
17662 rm -f conftest.
$ac_objext conftest
$ac_exeext
17663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17664 (eval $ac_link) 2>conftest.er1
17666 grep -v '^ *+' conftest.er1
>conftest.err
17668 cat conftest.err
>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try
='test -z "$ac_c_werror_flag"
17672 || test ! -s conftest.err'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
17678 { ac_try
='test -s conftest$ac_exeext'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 eval "$as_ac_var=yes"
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.
$ac_ext >&5
17689 eval "$as_ac_var=no"
17691 rm -f conftest.err conftest.
$ac_objext \
17692 conftest
$ac_exeext conftest.
$ac_ext
17694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17696 if test `eval echo '${'$as_ac_var'}'` = yes; then
17697 cat >>confdefs.h
<<_ACEOF
17698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17708 if test -z "$GETOPT_H"; then
17709 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17710 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17711 if test "${ac_cv_have_decl_optreset+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 cat >conftest.
$ac_ext <<_ACEOF
17717 cat confdefs.h
>>conftest.
$ac_ext
17718 cat >>conftest.
$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include <getopt.h>
17726 char *p = (char *) optreset;
17733 rm -f conftest.
$ac_objext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17735 (eval $ac_compile) 2>conftest.er1
17737 grep -v '^ *+' conftest.er1
>conftest.err
17739 cat conftest.err
>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try
='test -z "$ac_c_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try
='test -s conftest.$ac_objext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_have_decl_optreset
=yes
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.
$ac_ext >&5
17760 ac_cv_have_decl_optreset
=no
17762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17765 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17766 if test $ac_cv_have_decl_optreset = yes; then
17772 if test -z "$GETOPT_H"; then
17773 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17774 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17775 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 if test "$cross_compiling" = yes; then
17779 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17780 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17781 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 cat >conftest.
$ac_ext <<_ACEOF
17787 cat confdefs.h
>>conftest.
$ac_ext
17788 cat >>conftest.
$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 #include <getopt.h>
17795 #ifndef getopt_clip
17796 char *p = (char *) getopt_clip;
17803 rm -f conftest.
$ac_objext
17804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17805 (eval $ac_compile) 2>conftest.er1
17807 grep -v '^ *+' conftest.er1
>conftest.err
17809 cat conftest.err
>&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } &&
17812 { ac_try
='test -z "$ac_c_werror_flag"
17813 || test ! -s conftest.err'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try
='test -s conftest.$ac_objext'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_cv_have_decl_getopt_clip
=yes
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.
$ac_ext >&5
17830 ac_cv_have_decl_getopt_clip
=no
17832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17834 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17835 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17836 if test $ac_cv_have_decl_getopt_clip = yes; then
17837 gl_cv_func_gnu_getopt
=no
17839 gl_cv_func_gnu_getopt
=yes
17843 cat >conftest.
$ac_ext <<_ACEOF
17846 cat confdefs.h
>>conftest.
$ac_ext
17847 cat >>conftest.
$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 #include <getopt.h>
17855 myargv[0] = "conftest";
17858 return getopt (2, myargv, "+a") != '?';
17864 rm -f conftest
$ac_exeext
17865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17866 (eval $ac_link) 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 gl_cv_func_gnu_getopt
=yes
17877 echo "$as_me: program exited with status $ac_status" >&5
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.
$ac_ext >&5
17881 ( exit $ac_status )
17882 gl_cv_func_gnu_getopt
=no
17884 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17887 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17888 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17889 if test "$gl_cv_func_gnu_getopt" = "no"; then
17896 if test -n "$GETOPT_H"; then
17901 cat >>confdefs.h
<<\_ACEOF
17902 #define __GETOPT_PREFIX rpl_
17908 GETOPTOBJS
='getopt.o getopt1.o'
17915 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17916 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17917 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 # Use it with a single arg.
17921 cat >conftest.
$ac_ext <<_ACEOF
17924 cat confdefs.h
>>conftest.
$ac_ext
17925 cat >>conftest.
$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 $ac_includes_default
17936 rm -f conftest.
$ac_objext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17938 (eval $ac_compile) 2>conftest.er1
17940 grep -v '^ *+' conftest.er1
>conftest.err
17942 cat conftest.err
>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try
='test -z "$ac_c_werror_flag"
17946 || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try
='test -s conftest.$ac_objext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_func_getpgrp_void
=no
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.
$ac_ext >&5
17963 ac_cv_func_getpgrp_void
=yes
17965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17968 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17969 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17970 if test $ac_cv_func_getpgrp_void = yes; then
17972 cat >>confdefs.h
<<\_ACEOF
17973 #define GETPGRP_VOID 1
17980 for ac_func
in strftime
17982 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983 echo "$as_me:$LINENO: checking for $ac_func" >&5
17984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17985 if eval "test \"\${$as_ac_var+set}\" = set"; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 cat >conftest.
$ac_ext <<_ACEOF
17991 cat confdefs.h
>>conftest.
$ac_ext
17992 cat >>conftest.
$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17996 #define $ac_func innocuous_$ac_func
17998 /* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char $ac_func (); below.
18000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001 <limits.h> exists even on freestanding compilers. */
18004 # include <limits.h>
18006 # include <assert.h>
18011 /* Override any gcc2 internal prototype to avoid an error. */
18016 /* We use char because int might match the return type of a gcc2
18017 builtin and then its argument prototype would still apply. */
18019 /* The GNU C library defines this for functions which it implements
18020 to always fail with ENOSYS. Some functions are actually named
18021 something starting with __ and the normal name is an alias. */
18022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18025 char (*f) () = $ac_func;
18034 return f != $ac_func;
18039 rm -f conftest.
$ac_objext conftest
$ac_exeext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18041 (eval $ac_link) 2>conftest.er1
18043 grep -v '^ *+' conftest.er1
>conftest.err
18045 cat conftest.err
>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try
='test -z "$ac_c_werror_flag"
18049 || test ! -s conftest.err'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try
='test -s conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 eval "$as_ac_var=yes"
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.
$ac_ext >&5
18066 eval "$as_ac_var=no"
18068 rm -f conftest.err conftest.
$ac_objext \
18069 conftest
$ac_exeext conftest.
$ac_ext
18071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18073 if test `eval echo '${'$as_ac_var'}'` = yes; then
18074 cat >>confdefs.h
<<_ACEOF
18075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18079 # strftime is in -lintl on SCO UNIX.
18080 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18081 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18082 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 ac_check_lib_save_LIBS
=$LIBS
18086 LIBS
="-lintl $LIBS"
18087 cat >conftest.
$ac_ext <<_ACEOF
18090 cat confdefs.h
>>conftest.
$ac_ext
18091 cat >>conftest.
$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18094 /* Override any gcc2 internal prototype to avoid an error. */
18098 /* We use char because int might match the return type of a gcc2
18099 builtin and then its argument prototype would still apply. */
18109 rm -f conftest.
$ac_objext conftest
$ac_exeext
18110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18111 (eval $ac_link) 2>conftest.er1
18113 grep -v '^ *+' conftest.er1
>conftest.err
18115 cat conftest.err
>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try
='test -z "$ac_c_werror_flag"
18119 || test ! -s conftest.err'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try
='test -s conftest$ac_exeext'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_lib_intl_strftime
=yes
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.
$ac_ext >&5
18136 ac_cv_lib_intl_strftime
=no
18138 rm -f conftest.err conftest.
$ac_objext \
18139 conftest
$ac_exeext conftest.
$ac_ext
18140 LIBS
=$ac_check_lib_save_LIBS
18142 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18143 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18144 if test $ac_cv_lib_intl_strftime = yes; then
18145 cat >>confdefs.h
<<\_ACEOF
18146 #define HAVE_STRFTIME 1
18149 LIBS
="-lintl $LIBS"
18158 for ac_func
in grantpt
18160 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18161 echo "$as_me:$LINENO: checking for $ac_func" >&5
18162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18163 if eval "test \"\${$as_ac_var+set}\" = set"; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 cat >conftest.
$ac_ext <<_ACEOF
18169 cat confdefs.h
>>conftest.
$ac_ext
18170 cat >>conftest.
$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18174 #define $ac_func innocuous_$ac_func
18176 /* System header to define __stub macros and hopefully few prototypes,
18177 which can conflict with char $ac_func (); below.
18178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18179 <limits.h> exists even on freestanding compilers. */
18182 # include <limits.h>
18184 # include <assert.h>
18189 /* Override any gcc2 internal prototype to avoid an error. */
18194 /* We use char because int might match the return type of a gcc2
18195 builtin and then its argument prototype would still apply. */
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18203 char (*f) () = $ac_func;
18212 return f != $ac_func;
18217 rm -f conftest.
$ac_objext conftest
$ac_exeext
18218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18219 (eval $ac_link) 2>conftest.er1
18221 grep -v '^ *+' conftest.er1
>conftest.err
18223 cat conftest.err
>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
18226 { ac_try
='test -z "$ac_c_werror_flag"
18227 || test ! -s conftest.err'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try
='test -s conftest$ac_exeext'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 eval "$as_ac_var=yes"
18241 echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.
$ac_ext >&5
18244 eval "$as_ac_var=no"
18246 rm -f conftest.err conftest.
$ac_objext \
18247 conftest
$ac_exeext conftest.
$ac_ext
18249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18251 if test `eval echo '${'$as_ac_var'}'` = yes; then
18252 cat >>confdefs.h
<<_ACEOF
18253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18260 # PTY-related GNU extensions.
18262 for ac_func
in getpt
18264 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18265 echo "$as_me:$LINENO: checking for $ac_func" >&5
18266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18267 if eval "test \"\${$as_ac_var+set}\" = set"; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 cat >conftest.
$ac_ext <<_ACEOF
18273 cat confdefs.h
>>conftest.
$ac_ext
18274 cat >>conftest.
$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18278 #define $ac_func innocuous_$ac_func
18280 /* System header to define __stub macros and hopefully few prototypes,
18281 which can conflict with char $ac_func (); below.
18282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18283 <limits.h> exists even on freestanding compilers. */
18286 # include <limits.h>
18288 # include <assert.h>
18293 /* Override any gcc2 internal prototype to avoid an error. */
18298 /* We use char because int might match the return type of a gcc2
18299 builtin and then its argument prototype would still apply. */
18301 /* The GNU C library defines this for functions which it implements
18302 to always fail with ENOSYS. Some functions are actually named
18303 something starting with __ and the normal name is an alias. */
18304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18307 char (*f) () = $ac_func;
18316 return f != $ac_func;
18321 rm -f conftest.
$ac_objext conftest
$ac_exeext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323 (eval $ac_link) 2>conftest.er1
18325 grep -v '^ *+' conftest.er1
>conftest.err
18327 cat conftest.err
>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try
='test -z "$ac_c_werror_flag"
18331 || test ! -s conftest.err'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try
='test -s conftest$ac_exeext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 eval "$as_ac_var=yes"
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.
$ac_ext >&5
18348 eval "$as_ac_var=no"
18350 rm -f conftest.err conftest.
$ac_objext \
18351 conftest
$ac_exeext conftest.
$ac_ext
18353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18355 if test `eval echo '${'$as_ac_var'}'` = yes; then
18356 cat >>confdefs.h
<<_ACEOF
18357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18364 # Check this now, so that we will NOT find the above functions in ncurses.
18365 # That is because we have not set up to link ncurses in lib-src.
18366 # It's better to believe a function is not available
18367 # than to expect to find it in ncurses.
18369 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18370 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18371 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 ac_check_lib_save_LIBS
=$LIBS
18375 LIBS
="-lncurses $LIBS"
18376 cat >conftest.
$ac_ext <<_ACEOF
18379 cat confdefs.h
>>conftest.
$ac_ext
18380 cat >>conftest.
$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18383 /* Override any gcc2 internal prototype to avoid an error. */
18387 /* We use char because int might match the return type of a gcc2
18388 builtin and then its argument prototype would still apply. */
18398 rm -f conftest.
$ac_objext conftest
$ac_exeext
18399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400 (eval $ac_link) 2>conftest.er1
18402 grep -v '^ *+' conftest.er1
>conftest.err
18404 cat conftest.err
>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
18407 { ac_try
='test -z "$ac_c_werror_flag"
18408 || test ! -s conftest.err'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try
='test -s conftest$ac_exeext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_cv_lib_ncurses_tparm
=yes
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.
$ac_ext >&5
18425 ac_cv_lib_ncurses_tparm
=no
18427 rm -f conftest.err conftest.
$ac_objext \
18428 conftest
$ac_exeext conftest.
$ac_ext
18429 LIBS
=$ac_check_lib_save_LIBS
18431 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18432 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18433 if test $ac_cv_lib_ncurses_tparm = yes; then
18434 cat >>confdefs.h
<<_ACEOF
18435 #define HAVE_LIBNCURSES 1
18438 LIBS
="-lncurses $LIBS"
18443 # Do we need the Hesiod library to provide the support routines?
18444 if test "$with_hesiod" = yes ; then
18445 # Don't set $LIBS here -- see comments above.
18447 echo "$as_me:$LINENO: checking for res_send" >&5
18448 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18449 if test "${ac_cv_func_res_send+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18452 cat >conftest.
$ac_ext <<_ACEOF
18455 cat confdefs.h
>>conftest.
$ac_ext
18456 cat >>conftest.
$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18460 #define res_send innocuous_res_send
18462 /* System header to define __stub macros and hopefully few prototypes,
18463 which can conflict with char res_send (); below.
18464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18465 <limits.h> exists even on freestanding compilers. */
18468 # include <limits.h>
18470 # include <assert.h>
18475 /* Override any gcc2 internal prototype to avoid an error. */
18480 /* We use char because int might match the return type of a gcc2
18481 builtin and then its argument prototype would still apply. */
18483 /* The GNU C library defines this for functions which it implements
18484 to always fail with ENOSYS. Some functions are actually named
18485 something starting with __ and the normal name is an alias. */
18486 #if defined (__stub_res_send) || defined (__stub___res_send)
18489 char (*f) () = res_send;
18498 return f != res_send;
18503 rm -f conftest.
$ac_objext conftest
$ac_exeext
18504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18505 (eval $ac_link) 2>conftest.er1
18507 grep -v '^ *+' conftest.er1
>conftest.err
18509 cat conftest.err
>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try
='test -z "$ac_c_werror_flag"
18513 || test ! -s conftest.err'
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; } &&
18519 { ac_try
='test -s conftest$ac_exeext'
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 ac_cv_func_res_send
=yes
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.
$ac_ext >&5
18530 ac_cv_func_res_send
=no
18532 rm -f conftest.err conftest.
$ac_objext \
18533 conftest
$ac_exeext conftest.
$ac_ext
18535 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18536 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18537 if test $ac_cv_func_res_send = yes; then
18540 echo "$as_me:$LINENO: checking for __res_send" >&5
18541 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18542 if test "${ac_cv_func___res_send+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 cat >conftest.
$ac_ext <<_ACEOF
18548 cat confdefs.h
>>conftest.
$ac_ext
18549 cat >>conftest.
$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18553 #define __res_send innocuous___res_send
18555 /* System header to define __stub macros and hopefully few prototypes,
18556 which can conflict with char __res_send (); below.
18557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18558 <limits.h> exists even on freestanding compilers. */
18561 # include <limits.h>
18563 # include <assert.h>
18568 /* Override any gcc2 internal prototype to avoid an error. */
18573 /* We use char because int might match the return type of a gcc2
18574 builtin and then its argument prototype would still apply. */
18575 char __res_send ();
18576 /* The GNU C library defines this for functions which it implements
18577 to always fail with ENOSYS. Some functions are actually named
18578 something starting with __ and the normal name is an alias. */
18579 #if defined (__stub___res_send) || defined (__stub_____res_send)
18582 char (*f) () = __res_send;
18591 return f != __res_send;
18596 rm -f conftest.
$ac_objext conftest
$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>conftest.er1
18600 grep -v '^ *+' conftest.er1
>conftest.err
18602 cat conftest.err
>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try
='test -z "$ac_c_werror_flag"
18606 || 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_func___res_send
=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.
$ac_ext >&5
18623 ac_cv_func___res_send
=no
18625 rm -f conftest.err conftest.
$ac_objext \
18626 conftest
$ac_exeext conftest.
$ac_ext
18628 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18629 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18630 if test $ac_cv_func___res_send = yes; then
18633 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18634 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18635 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 ac_check_lib_save_LIBS
=$LIBS
18639 LIBS
="-lresolv $LIBS"
18640 cat >conftest.
$ac_ext <<_ACEOF
18643 cat confdefs.h
>>conftest.
$ac_ext
18644 cat >>conftest.
$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18647 /* Override any gcc2 internal prototype to avoid an error. */
18651 /* We use char because int might match the return type of a gcc2
18652 builtin and then its argument prototype would still apply. */
18662 rm -f conftest.
$ac_objext conftest
$ac_exeext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664 (eval $ac_link) 2>conftest.er1
18666 grep -v '^ *+' conftest.er1
>conftest.err
18668 cat conftest.err
>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try
='test -z "$ac_c_werror_flag"
18672 || test ! -s conftest.err'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try
='test -s conftest$ac_exeext'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_cv_lib_resolv_res_send
=yes
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.
$ac_ext >&5
18689 ac_cv_lib_resolv_res_send
=no
18691 rm -f conftest.err conftest.
$ac_objext \
18692 conftest
$ac_exeext conftest.
$ac_ext
18693 LIBS
=$ac_check_lib_save_LIBS
18695 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18696 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18697 if test $ac_cv_lib_resolv_res_send = yes; then
18700 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18701 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18702 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 ac_check_lib_save_LIBS
=$LIBS
18706 LIBS
="-lresolv $LIBS"
18707 cat >conftest.
$ac_ext <<_ACEOF
18710 cat confdefs.h
>>conftest.
$ac_ext
18711 cat >>conftest.
$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18714 /* Override any gcc2 internal prototype to avoid an error. */
18718 /* We use char because int might match the return type of a gcc2
18719 builtin and then its argument prototype would still apply. */
18720 char __res_send ();
18729 rm -f conftest.
$ac_objext conftest
$ac_exeext
18730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18731 (eval $ac_link) 2>conftest.er1
18733 grep -v '^ *+' conftest.er1
>conftest.err
18735 cat conftest.err
>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try
='test -z "$ac_c_werror_flag"
18739 || test ! -s conftest.err'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; } &&
18745 { ac_try
='test -s conftest$ac_exeext'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_cv_lib_resolv___res_send
=yes
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.
$ac_ext >&5
18756 ac_cv_lib_resolv___res_send
=no
18758 rm -f conftest.err conftest.
$ac_objext \
18759 conftest
$ac_exeext conftest.
$ac_ext
18760 LIBS
=$ac_check_lib_save_LIBS
18762 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18763 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18764 if test $ac_cv_lib_resolv___res_send = yes; then
18774 if test "$resolv" = yes ; then
18777 cat >>confdefs.h
<<\_ACEOF
18778 #define HAVE_LIBRESOLV 1
18784 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18785 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18786 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 cat >conftest.
$ac_ext <<_ACEOF
18792 cat confdefs.h
>>conftest.
$ac_ext
18793 cat >>conftest.
$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18797 #define hes_getmailhost innocuous_hes_getmailhost
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char hes_getmailhost (); below.
18801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 <limits.h> exists even on freestanding compilers. */
18805 # include <limits.h>
18807 # include <assert.h>
18810 #undef hes_getmailhost
18812 /* Override any gcc2 internal prototype to avoid an error. */
18817 /* We use char because int might match the return type of a gcc2
18818 builtin and then its argument prototype would still apply. */
18819 char hes_getmailhost ();
18820 /* The GNU C library defines this for functions which it implements
18821 to always fail with ENOSYS. Some functions are actually named
18822 something starting with __ and the normal name is an alias. */
18823 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18826 char (*f) () = hes_getmailhost;
18835 return f != hes_getmailhost;
18840 rm -f conftest.
$ac_objext conftest
$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>conftest.er1
18844 grep -v '^ *+' conftest.er1
>conftest.err
18846 cat conftest.err
>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try
='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try
='test -s conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_func_hes_getmailhost
=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.
$ac_ext >&5
18867 ac_cv_func_hes_getmailhost
=no
18869 rm -f conftest.err conftest.
$ac_objext \
18870 conftest
$ac_exeext conftest.
$ac_ext
18872 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18873 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18874 if test $ac_cv_func_hes_getmailhost = yes; then
18877 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18878 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18879 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 ac_check_lib_save_LIBS
=$LIBS
18883 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18884 cat >conftest.
$ac_ext <<_ACEOF
18887 cat confdefs.h
>>conftest.
$ac_ext
18888 cat >>conftest.
$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18891 /* Override any gcc2 internal prototype to avoid an error. */
18895 /* We use char because int might match the return type of a gcc2
18896 builtin and then its argument prototype would still apply. */
18897 char hes_getmailhost ();
18901 hes_getmailhost ();
18906 rm -f conftest.
$ac_objext conftest
$ac_exeext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18908 (eval $ac_link) 2>conftest.er1
18910 grep -v '^ *+' conftest.er1
>conftest.err
18912 cat conftest.err
>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try
='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try
='test -s conftest$ac_exeext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928 ac_cv_lib_hesiod_hes_getmailhost
=yes
18930 echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.
$ac_ext >&5
18933 ac_cv_lib_hesiod_hes_getmailhost
=no
18935 rm -f conftest.err conftest.
$ac_objext \
18936 conftest
$ac_exeext conftest.
$ac_ext
18937 LIBS
=$ac_check_lib_save_LIBS
18939 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18940 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18941 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18943 cat >>confdefs.h
<<\_ACEOF
18944 #define HAVE_LIBHESIOD 1
18955 # These tell us which Kerberos-related libraries to use.
18956 if test "${with_kerberos+set}" = set; then
18958 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18959 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18960 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 ac_check_lib_save_LIBS
=$LIBS
18964 LIBS
="-lcom_err $LIBS"
18965 cat >conftest.
$ac_ext <<_ACEOF
18968 cat confdefs.h
>>conftest.
$ac_ext
18969 cat >>conftest.
$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18972 /* Override any gcc2 internal prototype to avoid an error. */
18976 /* We use char because int might match the return type of a gcc2
18977 builtin and then its argument prototype would still apply. */
18987 rm -f conftest.
$ac_objext conftest
$ac_exeext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18989 (eval $ac_link) 2>conftest.er1
18991 grep -v '^ *+' conftest.er1
>conftest.err
18993 cat conftest.err
>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try
='test -z "$ac_c_werror_flag"
18997 || test ! -s conftest.err'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try
='test -s conftest$ac_exeext'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19009 ac_cv_lib_com_err_com_err
=yes
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.
$ac_ext >&5
19014 ac_cv_lib_com_err_com_err
=no
19016 rm -f conftest.err conftest.
$ac_objext \
19017 conftest
$ac_exeext conftest.
$ac_ext
19018 LIBS
=$ac_check_lib_save_LIBS
19020 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19021 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19022 if test $ac_cv_lib_com_err_com_err = yes; then
19023 cat >>confdefs.h
<<_ACEOF
19024 #define HAVE_LIBCOM_ERR 1
19027 LIBS
="-lcom_err $LIBS"
19032 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19033 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19034 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 ac_check_lib_save_LIBS
=$LIBS
19038 LIBS
="-lk5crypto $LIBS"
19039 cat >conftest.
$ac_ext <<_ACEOF
19042 cat confdefs.h
>>conftest.
$ac_ext
19043 cat >>conftest.
$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19046 /* Override any gcc2 internal prototype to avoid an error. */
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19052 char mit_des_cbc_encrypt ();
19056 mit_des_cbc_encrypt ();
19061 rm -f conftest.
$ac_objext conftest
$ac_exeext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063 (eval $ac_link) 2>conftest.er1
19065 grep -v '^ *+' conftest.er1
>conftest.err
19067 cat conftest.err
>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try
='test -z "$ac_c_werror_flag"
19071 || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try
='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.
$ac_ext >&5
19088 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19090 rm -f conftest.err conftest.
$ac_objext \
19091 conftest
$ac_exeext conftest.
$ac_ext
19092 LIBS
=$ac_check_lib_save_LIBS
19094 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19095 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19096 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19097 cat >>confdefs.h
<<_ACEOF
19098 #define HAVE_LIBK5CRYPTO 1
19101 LIBS
="-lk5crypto $LIBS"
19106 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19107 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19108 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 ac_check_lib_save_LIBS
=$LIBS
19112 LIBS
="-lcrypto $LIBS"
19113 cat >conftest.
$ac_ext <<_ACEOF
19116 cat confdefs.h
>>conftest.
$ac_ext
19117 cat >>conftest.
$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19120 /* Override any gcc2 internal prototype to avoid an error. */
19124 /* We use char because int might match the return type of a gcc2
19125 builtin and then its argument prototype would still apply. */
19126 char mit_des_cbc_encrypt ();
19130 mit_des_cbc_encrypt ();
19135 rm -f conftest.
$ac_objext conftest
$ac_exeext
19136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19137 (eval $ac_link) 2>conftest.er1
19139 grep -v '^ *+' conftest.er1
>conftest.err
19141 cat conftest.err
>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try
='test -z "$ac_c_werror_flag"
19145 || test ! -s conftest.err'
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; } &&
19151 { ac_try
='test -s conftest$ac_exeext'
19152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153 (eval $ac_try) 2>&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; }; then
19157 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.
$ac_ext >&5
19162 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19164 rm -f conftest.err conftest.
$ac_objext \
19165 conftest
$ac_exeext conftest.
$ac_ext
19166 LIBS
=$ac_check_lib_save_LIBS
19168 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19169 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19170 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19171 cat >>confdefs.h
<<_ACEOF
19172 #define HAVE_LIBCRYPTO 1
19175 LIBS
="-lcrypto $LIBS"
19180 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19181 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19182 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 ac_check_lib_save_LIBS
=$LIBS
19186 LIBS
="-lkrb5 $LIBS"
19187 cat >conftest.
$ac_ext <<_ACEOF
19190 cat confdefs.h
>>conftest.
$ac_ext
19191 cat >>conftest.
$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any gcc2 internal prototype to avoid an error. */
19198 /* We use char because int might match the return type of a gcc2
19199 builtin and then its argument prototype would still apply. */
19200 char krb5_init_context ();
19204 krb5_init_context ();
19209 rm -f conftest.
$ac_objext conftest
$ac_exeext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19211 (eval $ac_link) 2>conftest.er1
19213 grep -v '^ *+' conftest.er1
>conftest.err
19215 cat conftest.err
>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try
='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try
='test -s conftest$ac_exeext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 ac_cv_lib_krb5_krb5_init_context
=yes
19233 echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.
$ac_ext >&5
19236 ac_cv_lib_krb5_krb5_init_context
=no
19238 rm -f conftest.err conftest.
$ac_objext \
19239 conftest
$ac_exeext conftest.
$ac_ext
19240 LIBS
=$ac_check_lib_save_LIBS
19242 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19243 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19244 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19245 cat >>confdefs.h
<<_ACEOF
19246 #define HAVE_LIBKRB5 1
19249 LIBS
="-lkrb5 $LIBS"
19253 if test "${with_kerberos5+set}" != set; then
19255 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19256 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19257 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 ac_check_lib_save_LIBS
=$LIBS
19261 LIBS
="-ldes425 $LIBS"
19262 cat >conftest.
$ac_ext <<_ACEOF
19265 cat confdefs.h
>>conftest.
$ac_ext
19266 cat >>conftest.
$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19269 /* Override any gcc2 internal prototype to avoid an error. */
19273 /* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275 char des_cbc_encrypt ();
19279 des_cbc_encrypt ();
19284 rm -f conftest.
$ac_objext conftest
$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286 (eval $ac_link) 2>conftest.er1
19288 grep -v '^ *+' conftest.er1
>conftest.err
19290 cat conftest.err
>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try
='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try
='test -s conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_lib_des425_des_cbc_encrypt
=yes
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.
$ac_ext >&5
19311 ac_cv_lib_des425_des_cbc_encrypt
=no
19313 rm -f conftest.err conftest.
$ac_objext \
19314 conftest
$ac_exeext conftest.
$ac_ext
19315 LIBS
=$ac_check_lib_save_LIBS
19317 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19318 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19319 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19320 cat >>confdefs.h
<<_ACEOF
19321 #define HAVE_LIBDES425 1
19324 LIBS
="-ldes425 $LIBS"
19328 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19329 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19330 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 ac_check_lib_save_LIBS
=$LIBS
19335 cat >conftest.
$ac_ext <<_ACEOF
19338 cat confdefs.h
>>conftest.
$ac_ext
19339 cat >>conftest.
$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 /* Override any gcc2 internal prototype to avoid an error. */
19346 /* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19348 char des_cbc_encrypt ();
19352 des_cbc_encrypt ();
19357 rm -f conftest.
$ac_objext conftest
$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359 (eval $ac_link) 2>conftest.er1
19361 grep -v '^ *+' conftest.er1
>conftest.err
19363 cat conftest.err
>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try
='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
19379 ac_cv_lib_des_des_cbc_encrypt
=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.
$ac_ext >&5
19384 ac_cv_lib_des_des_cbc_encrypt
=no
19386 rm -f conftest.err conftest.
$ac_objext \
19387 conftest
$ac_exeext conftest.
$ac_ext
19388 LIBS
=$ac_check_lib_save_LIBS
19390 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19391 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19392 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19393 cat >>confdefs.h
<<_ACEOF
19394 #define HAVE_LIBDES 1
19404 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19405 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19406 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 ac_check_lib_save_LIBS
=$LIBS
19410 LIBS
="-lkrb4 $LIBS"
19411 cat >conftest.
$ac_ext <<_ACEOF
19414 cat confdefs.h
>>conftest.
$ac_ext
19415 cat >>conftest.
$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 /* Override any gcc2 internal prototype to avoid an error. */
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19424 char krb_get_cred ();
19433 rm -f conftest.
$ac_objext conftest
$ac_exeext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>conftest.er1
19437 grep -v '^ *+' conftest.er1
>conftest.err
19439 cat conftest.err
>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try
='test -z "$ac_c_werror_flag"
19443 || test ! -s conftest.err'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try
='test -s conftest$ac_exeext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 ac_cv_lib_krb4_krb_get_cred
=yes
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.
$ac_ext >&5
19460 ac_cv_lib_krb4_krb_get_cred
=no
19462 rm -f conftest.err conftest.
$ac_objext \
19463 conftest
$ac_exeext conftest.
$ac_ext
19464 LIBS
=$ac_check_lib_save_LIBS
19466 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19467 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19468 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19469 cat >>confdefs.h
<<_ACEOF
19470 #define HAVE_LIBKRB4 1
19473 LIBS
="-lkrb4 $LIBS"
19477 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19478 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19479 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 ac_check_lib_save_LIBS
=$LIBS
19484 cat >conftest.
$ac_ext <<_ACEOF
19487 cat confdefs.h
>>conftest.
$ac_ext
19488 cat >>conftest.
$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19491 /* Override any gcc2 internal prototype to avoid an error. */
19495 /* We use char because int might match the return type of a gcc2
19496 builtin and then its argument prototype would still apply. */
19497 char krb_get_cred ();
19506 rm -f conftest.
$ac_objext conftest
$ac_exeext
19507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19508 (eval $ac_link) 2>conftest.er1
19510 grep -v '^ *+' conftest.er1
>conftest.err
19512 cat conftest.err
>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try
='test -z "$ac_c_werror_flag"
19516 || test ! -s conftest.err'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try
='test -s conftest$ac_exeext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_lib_krb_krb_get_cred
=yes
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.
$ac_ext >&5
19533 ac_cv_lib_krb_krb_get_cred
=no
19535 rm -f conftest.err conftest.
$ac_objext \
19536 conftest
$ac_exeext conftest.
$ac_ext
19537 LIBS
=$ac_check_lib_save_LIBS
19539 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19540 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19541 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19542 cat >>confdefs.h
<<_ACEOF
19543 #define HAVE_LIBKRB 1
19554 if test "${with_kerberos5+set}" = set; then
19556 for ac_header
in krb5.h
19558 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19560 echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19568 # Is the header compilable?
19569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19571 cat >conftest.
$ac_ext <<_ACEOF
19574 cat confdefs.h
>>conftest.
$ac_ext
19575 cat >>conftest.
$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19577 $ac_includes_default
19578 #include <$ac_header>
19580 rm -f conftest.
$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>conftest.er1
19584 grep -v '^ *+' conftest.er1
>conftest.err
19586 cat conftest.err
>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
19589 { ac_try
='test -z "$ac_c_werror_flag"
19590 || test ! -s conftest.err'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; } &&
19596 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
19602 ac_header_compiler
=yes
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.
$ac_ext >&5
19607 ac_header_compiler
=no
19609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19611 echo "${ECHO_T}$ac_header_compiler" >&6
19613 # Is the header present?
19614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19616 cat >conftest.
$ac_ext <<_ACEOF
19619 cat confdefs.h
>>conftest.
$ac_ext
19620 cat >>conftest.
$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <$ac_header>
19624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19627 grep -v '^ *+' conftest.er1
>conftest.err
19629 cat conftest.err
>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } >/dev
/null
; then
19632 if test -s conftest.err
; then
19633 ac_cpp_err
=$ac_c_preproc_warn_flag
19634 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19641 if test -z "$ac_cpp_err"; then
19642 ac_header_preproc
=yes
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.
$ac_ext >&5
19647 ac_header_preproc
=no
19649 rm -f conftest.err conftest.
$ac_ext
19650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19651 echo "${ECHO_T}$ac_header_preproc" >&6
19653 # So? What about this header?
19654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19660 ac_header_preproc
=yes
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19677 ## ------------------------------------------ ##
19678 ## Report this to the AC_PACKAGE_NAME lists. ##
19679 ## ------------------------------------------ ##
19682 sed "s/^/$as_me: WARNING: /" >&2
19685 echo "$as_me:$LINENO: checking for $ac_header" >&5
19686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 eval "$as_ac_Header=\$ac_header_preproc"
19692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19697 cat >>confdefs.h
<<_ACEOF
19698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19707 for ac_header
in des.h
19709 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19711 echo "$as_me:$LINENO: checking for $ac_header" >&5
19712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19719 # Is the header compilable?
19720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19722 cat >conftest.
$ac_ext <<_ACEOF
19725 cat confdefs.h
>>conftest.
$ac_ext
19726 cat >>conftest.
$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 $ac_includes_default
19729 #include <$ac_header>
19731 rm -f conftest.
$ac_objext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19733 (eval $ac_compile) 2>conftest.er1
19735 grep -v '^ *+' conftest.er1
>conftest.err
19737 cat conftest.err
>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try
='test -z "$ac_c_werror_flag"
19741 || test ! -s conftest.err'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try
='test -s conftest.$ac_objext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 ac_header_compiler
=yes
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.
$ac_ext >&5
19758 ac_header_compiler
=no
19760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19762 echo "${ECHO_T}$ac_header_compiler" >&6
19764 # Is the header present?
19765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19767 cat >conftest.
$ac_ext <<_ACEOF
19770 cat confdefs.h
>>conftest.
$ac_ext
19771 cat >>conftest.
$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773 #include <$ac_header>
19775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19776 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19778 grep -v '^ *+' conftest.er1
>conftest.err
19780 cat conftest.err
>&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } >/dev
/null
; then
19783 if test -s conftest.err
; then
19784 ac_cpp_err
=$ac_c_preproc_warn_flag
19785 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19792 if test -z "$ac_cpp_err"; then
19793 ac_header_preproc
=yes
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.
$ac_ext >&5
19798 ac_header_preproc
=no
19800 rm -f conftest.err conftest.
$ac_ext
19801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19802 echo "${ECHO_T}$ac_header_preproc" >&6
19804 # So? What about this header?
19805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19811 ac_header_preproc
=yes
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19828 ## ------------------------------------------ ##
19829 ## Report this to the AC_PACKAGE_NAME lists. ##
19830 ## ------------------------------------------ ##
19833 sed "s/^/$as_me: WARNING: /" >&2
19836 echo "$as_me:$LINENO: checking for $ac_header" >&5
19837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 eval "$as_ac_Header=\$ac_header_preproc"
19843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19848 cat >>confdefs.h
<<_ACEOF
19849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19854 for ac_header
in kerberosIV
/des.h
19856 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19858 echo "$as_me:$LINENO: checking for $ac_header" >&5
19859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19866 # Is the header compilable?
19867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19869 cat >conftest.
$ac_ext <<_ACEOF
19872 cat confdefs.h
>>conftest.
$ac_ext
19873 cat >>conftest.
$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 $ac_includes_default
19876 #include <$ac_header>
19878 rm -f conftest.
$ac_objext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19880 (eval $ac_compile) 2>conftest.er1
19882 grep -v '^ *+' conftest.er1
>conftest.err
19884 cat conftest.err
>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try
='test -z "$ac_c_werror_flag"
19888 || 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
20001 for ac_header
in kerberos
/des.h
20003 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20005 echo "$as_me:$LINENO: checking for $ac_header" >&5
20006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20013 # Is the header compilable?
20014 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20016 cat >conftest.
$ac_ext <<_ACEOF
20019 cat confdefs.h
>>conftest.
$ac_ext
20020 cat >>conftest.
$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20023 #include <$ac_header>
20025 rm -f conftest.
$ac_objext
20026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20027 (eval $ac_compile) 2>conftest.er1
20029 grep -v '^ *+' conftest.er1
>conftest.err
20031 cat conftest.err
>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } &&
20034 { ac_try
='test -z "$ac_c_werror_flag"
20035 || test ! -s conftest.err'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } &&
20041 { ac_try
='test -s conftest.$ac_objext'
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047 ac_header_compiler
=yes
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.
$ac_ext >&5
20052 ac_header_compiler
=no
20054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20056 echo "${ECHO_T}$ac_header_compiler" >&6
20058 # Is the header present?
20059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20061 cat >conftest.
$ac_ext <<_ACEOF
20064 cat confdefs.h
>>conftest.
$ac_ext
20065 cat >>conftest.
$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 #include <$ac_header>
20069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20070 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20072 grep -v '^ *+' conftest.er1
>conftest.err
20074 cat conftest.err
>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } >/dev
/null
; then
20077 if test -s conftest.err
; then
20078 ac_cpp_err
=$ac_c_preproc_warn_flag
20079 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20086 if test -z "$ac_cpp_err"; then
20087 ac_header_preproc
=yes
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.
$ac_ext >&5
20092 ac_header_preproc
=no
20094 rm -f conftest.err conftest.
$ac_ext
20095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20096 echo "${ECHO_T}$ac_header_preproc" >&6
20098 # So? What about this header?
20099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20105 ac_header_preproc
=yes
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20122 ## ------------------------------------------ ##
20123 ## Report this to the AC_PACKAGE_NAME lists. ##
20124 ## ------------------------------------------ ##
20127 sed "s/^/$as_me: WARNING: /" >&2
20130 echo "$as_me:$LINENO: checking for $ac_header" >&5
20131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 eval "$as_ac_Header=\$ac_header_preproc"
20137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20142 cat >>confdefs.h
<<_ACEOF
20143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20159 for ac_header
in krb.h
20161 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163 echo "$as_me:$LINENO: checking for $ac_header" >&5
20164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20171 # Is the header compilable?
20172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20174 cat >conftest.
$ac_ext <<_ACEOF
20177 cat confdefs.h
>>conftest.
$ac_ext
20178 cat >>conftest.
$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 $ac_includes_default
20181 #include <$ac_header>
20183 rm -f conftest.
$ac_objext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185 (eval $ac_compile) 2>conftest.er1
20187 grep -v '^ *+' conftest.er1
>conftest.err
20189 cat conftest.err
>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try
='test -z "$ac_c_werror_flag"
20193 || test ! -s conftest.err'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try
='test -s conftest.$ac_objext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 ac_header_compiler
=yes
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.
$ac_ext >&5
20210 ac_header_compiler
=no
20212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20214 echo "${ECHO_T}$ac_header_compiler" >&6
20216 # Is the header present?
20217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20219 cat >conftest.
$ac_ext <<_ACEOF
20222 cat confdefs.h
>>conftest.
$ac_ext
20223 cat >>conftest.
$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 #include <$ac_header>
20227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20228 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20230 grep -v '^ *+' conftest.er1
>conftest.err
20232 cat conftest.err
>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } >/dev
/null
; then
20235 if test -s conftest.err
; then
20236 ac_cpp_err
=$ac_c_preproc_warn_flag
20237 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20244 if test -z "$ac_cpp_err"; then
20245 ac_header_preproc
=yes
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.
$ac_ext >&5
20250 ac_header_preproc
=no
20252 rm -f conftest.err conftest.
$ac_ext
20253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20254 echo "${ECHO_T}$ac_header_preproc" >&6
20256 # So? What about this header?
20257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20263 ac_header_preproc
=yes
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20280 ## ------------------------------------------ ##
20281 ## Report this to the AC_PACKAGE_NAME lists. ##
20282 ## ------------------------------------------ ##
20285 sed "s/^/$as_me: WARNING: /" >&2
20288 echo "$as_me:$LINENO: checking for $ac_header" >&5
20289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 eval "$as_ac_Header=\$ac_header_preproc"
20295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20300 cat >>confdefs.h
<<_ACEOF
20301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20306 for ac_header
in kerberosIV
/krb.h
20308 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20310 echo "$as_me:$LINENO: checking for $ac_header" >&5
20311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20318 # Is the header compilable?
20319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20321 cat >conftest.
$ac_ext <<_ACEOF
20324 cat confdefs.h
>>conftest.
$ac_ext
20325 cat >>conftest.
$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 $ac_includes_default
20328 #include <$ac_header>
20330 rm -f conftest.
$ac_objext
20331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332 (eval $ac_compile) 2>conftest.er1
20334 grep -v '^ *+' conftest.er1
>conftest.err
20336 cat conftest.err
>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try
='test -z "$ac_c_werror_flag"
20340 || test ! -s conftest.err'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; } &&
20346 { ac_try
='test -s conftest.$ac_objext'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; }; then
20352 ac_header_compiler
=yes
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.
$ac_ext >&5
20357 ac_header_compiler
=no
20359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20361 echo "${ECHO_T}$ac_header_compiler" >&6
20363 # Is the header present?
20364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20366 cat >conftest.
$ac_ext <<_ACEOF
20369 cat confdefs.h
>>conftest.
$ac_ext
20370 cat >>conftest.
$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 #include <$ac_header>
20374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20377 grep -v '^ *+' conftest.er1
>conftest.err
20379 cat conftest.err
>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } >/dev
/null
; then
20382 if test -s conftest.err
; then
20383 ac_cpp_err
=$ac_c_preproc_warn_flag
20384 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20391 if test -z "$ac_cpp_err"; then
20392 ac_header_preproc
=yes
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.
$ac_ext >&5
20397 ac_header_preproc
=no
20399 rm -f conftest.err conftest.
$ac_ext
20400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20401 echo "${ECHO_T}$ac_header_preproc" >&6
20403 # So? What about this header?
20404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20410 ac_header_preproc
=yes
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20427 ## ------------------------------------------ ##
20428 ## Report this to the AC_PACKAGE_NAME lists. ##
20429 ## ------------------------------------------ ##
20432 sed "s/^/$as_me: WARNING: /" >&2
20435 echo "$as_me:$LINENO: checking for $ac_header" >&5
20436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 eval "$as_ac_Header=\$ac_header_preproc"
20442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20447 cat >>confdefs.h
<<_ACEOF
20448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20453 for ac_header
in kerberos
/krb.h
20455 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20457 echo "$as_me:$LINENO: checking for $ac_header" >&5
20458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20465 # Is the header compilable?
20466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20468 cat >conftest.
$ac_ext <<_ACEOF
20471 cat confdefs.h
>>conftest.
$ac_ext
20472 cat >>conftest.
$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 $ac_includes_default
20475 #include <$ac_header>
20477 rm -f conftest.
$ac_objext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>conftest.er1
20481 grep -v '^ *+' conftest.er1
>conftest.err
20483 cat conftest.err
>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
20486 { ac_try
='test -z "$ac_c_werror_flag"
20487 || test ! -s conftest.err'
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try
='test -s conftest.$ac_objext'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_header_compiler
=yes
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.
$ac_ext >&5
20504 ac_header_compiler
=no
20506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20508 echo "${ECHO_T}$ac_header_compiler" >&6
20510 # Is the header present?
20511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20513 cat >conftest.
$ac_ext <<_ACEOF
20516 cat confdefs.h
>>conftest.
$ac_ext
20517 cat >>conftest.
$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 #include <$ac_header>
20521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20524 grep -v '^ *+' conftest.er1
>conftest.err
20526 cat conftest.err
>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } >/dev
/null
; then
20529 if test -s conftest.err
; then
20530 ac_cpp_err
=$ac_c_preproc_warn_flag
20531 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20538 if test -z "$ac_cpp_err"; then
20539 ac_header_preproc
=yes
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.
$ac_ext >&5
20544 ac_header_preproc
=no
20546 rm -f conftest.err conftest.
$ac_ext
20547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20548 echo "${ECHO_T}$ac_header_preproc" >&6
20550 # So? What about this header?
20551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20557 ac_header_preproc
=yes
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20574 ## ------------------------------------------ ##
20575 ## Report this to the AC_PACKAGE_NAME lists. ##
20576 ## ------------------------------------------ ##
20579 sed "s/^/$as_me: WARNING: /" >&2
20582 echo "$as_me:$LINENO: checking for $ac_header" >&5
20583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 eval "$as_ac_Header=\$ac_header_preproc"
20589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20594 cat >>confdefs.h
<<_ACEOF
20595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20612 for ac_header
in com_err.h
20614 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20616 echo "$as_me:$LINENO: checking for $ac_header" >&5
20617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20624 # Is the header compilable?
20625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20627 cat >conftest.
$ac_ext <<_ACEOF
20630 cat confdefs.h
>>conftest.
$ac_ext
20631 cat >>conftest.
$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 $ac_includes_default
20634 #include <$ac_header>
20636 rm -f conftest.
$ac_objext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20638 (eval $ac_compile) 2>conftest.er1
20640 grep -v '^ *+' conftest.er1
>conftest.err
20642 cat conftest.err
>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try
='test -z "$ac_c_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try
='test -s conftest.$ac_objext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_header_compiler
=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.
$ac_ext >&5
20663 ac_header_compiler
=no
20665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20667 echo "${ECHO_T}$ac_header_compiler" >&6
20669 # Is the header present?
20670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20672 cat >conftest.
$ac_ext <<_ACEOF
20675 cat confdefs.h
>>conftest.
$ac_ext
20676 cat >>conftest.
$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 #include <$ac_header>
20680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20681 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20683 grep -v '^ *+' conftest.er1
>conftest.err
20685 cat conftest.err
>&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } >/dev
/null
; then
20688 if test -s conftest.err
; then
20689 ac_cpp_err
=$ac_c_preproc_warn_flag
20690 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20697 if test -z "$ac_cpp_err"; then
20698 ac_header_preproc
=yes
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.
$ac_ext >&5
20703 ac_header_preproc
=no
20705 rm -f conftest.err conftest.
$ac_ext
20706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20707 echo "${ECHO_T}$ac_header_preproc" >&6
20709 # So? What about this header?
20710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20716 ac_header_preproc
=yes
20719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20733 ## ------------------------------------------ ##
20734 ## Report this to the AC_PACKAGE_NAME lists. ##
20735 ## ------------------------------------------ ##
20738 sed "s/^/$as_me: WARNING: /" >&2
20741 echo "$as_me:$LINENO: checking for $ac_header" >&5
20742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20746 eval "$as_ac_Header=\$ac_header_preproc"
20748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20753 cat >>confdefs.h
<<_ACEOF
20754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20763 # Solaris requires -lintl if you want strerror (which calls dgettext)
20764 # to return localized messages.
20766 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20767 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20768 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 ac_check_lib_save_LIBS
=$LIBS
20772 LIBS
="-lintl $LIBS"
20773 cat >conftest.
$ac_ext <<_ACEOF
20776 cat confdefs.h
>>conftest.
$ac_ext
20777 cat >>conftest.
$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20780 /* Override any gcc2 internal prototype to avoid an error. */
20784 /* We use char because int might match the return type of a gcc2
20785 builtin and then its argument prototype would still apply. */
20795 rm -f conftest.
$ac_objext conftest
$ac_exeext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20797 (eval $ac_link) 2>conftest.er1
20799 grep -v '^ *+' conftest.er1
>conftest.err
20801 cat conftest.err
>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } &&
20804 { ac_try
='test -z "$ac_c_werror_flag"
20805 || test ! -s conftest.err'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; } &&
20811 { ac_try
='test -s conftest$ac_exeext'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; }; then
20817 ac_cv_lib_intl_dgettext
=yes
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.
$ac_ext >&5
20822 ac_cv_lib_intl_dgettext
=no
20824 rm -f conftest.err conftest.
$ac_objext \
20825 conftest
$ac_exeext conftest.
$ac_ext
20826 LIBS
=$ac_check_lib_save_LIBS
20828 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20829 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20830 if test $ac_cv_lib_intl_dgettext = yes; then
20831 cat >>confdefs.h
<<_ACEOF
20832 #define HAVE_LIBINTL 1
20835 LIBS
="-lintl $LIBS"
20840 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20841 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20842 if test "${emacs_cv_localtime_cache+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 if test x
$ac_cv_func_tzset = xyes
; then
20846 if test "$cross_compiling" = yes; then
20847 # If we have tzset, assume the worst when cross-compiling.
20848 emacs_cv_localtime_cache
=yes
20850 cat >conftest.
$ac_ext <<_ACEOF
20853 cat confdefs.h
>>conftest.
$ac_ext
20854 cat >>conftest.
$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20857 extern char **environ;
20861 for (to = from = environ; (*to = *from); from++)
20862 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20865 char TZ_GMT0[] = "TZ=GMT0";
20866 char TZ_PST8[] = "TZ=PST8";
20869 time_t now = time ((time_t *) 0);
20870 int hour_GMT0, hour_unset;
20871 if (putenv (TZ_GMT0) != 0)
20873 hour_GMT0 = localtime (&now)->tm_hour;
20875 hour_unset = localtime (&now)->tm_hour;
20876 if (putenv (TZ_PST8) != 0)
20878 if (localtime (&now)->tm_hour == hour_GMT0)
20881 if (localtime (&now)->tm_hour != hour_unset)
20886 rm -f conftest
$ac_exeext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20888 (eval $ac_link) 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }; then
20897 emacs_cv_localtime_cache
=no
20899 echo "$as_me: program exited with status $ac_status" >&5
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.
$ac_ext >&5
20903 ( exit $ac_status )
20904 emacs_cv_localtime_cache
=yes
20906 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20909 # If we lack tzset, report that localtime does not cache TZ,
20910 # since we can't invalidate the cache if we don't have tzset.
20911 emacs_cv_localtime_cache
=no
20914 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20915 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20916 if test $emacs_cv_localtime_cache = yes; then
20918 cat >>confdefs.h
<<\_ACEOF
20919 #define LOCALTIME_CACHE 1
20924 if test "x$HAVE_TIMEVAL" = xyes
; then
20926 for ac_func
in gettimeofday
20928 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20929 echo "$as_me:$LINENO: checking for $ac_func" >&5
20930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20931 if eval "test \"\${$as_ac_var+set}\" = set"; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 cat >conftest.
$ac_ext <<_ACEOF
20937 cat confdefs.h
>>conftest.
$ac_ext
20938 cat >>conftest.
$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20942 #define $ac_func innocuous_$ac_func
20944 /* System header to define __stub macros and hopefully few prototypes,
20945 which can conflict with char $ac_func (); below.
20946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20947 <limits.h> exists even on freestanding compilers. */
20950 # include <limits.h>
20952 # include <assert.h>
20957 /* Override any gcc2 internal prototype to avoid an error. */
20962 /* We use char because int might match the return type of a gcc2
20963 builtin and then its argument prototype would still apply. */
20965 /* The GNU C library defines this for functions which it implements
20966 to always fail with ENOSYS. Some functions are actually named
20967 something starting with __ and the normal name is an alias. */
20968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20971 char (*f) () = $ac_func;
20980 return f != $ac_func;
20985 rm -f conftest.
$ac_objext conftest
$ac_exeext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>conftest.er1
20989 grep -v '^ *+' conftest.er1
>conftest.err
20991 cat conftest.err
>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } &&
20994 { ac_try
='test -z "$ac_c_werror_flag"
20995 || test ! -s conftest.err'
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; } &&
21001 { ac_try
='test -s conftest$ac_exeext'
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 eval "$as_ac_var=yes"
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.
$ac_ext >&5
21012 eval "$as_ac_var=no"
21014 rm -f conftest.err conftest.
$ac_objext \
21015 conftest
$ac_exeext conftest.
$ac_ext
21017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21019 if test `eval echo '${'$as_ac_var'}'` = yes; then
21020 cat >>confdefs.h
<<_ACEOF
21021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21027 if test $ac_cv_func_gettimeofday = yes; then
21028 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21029 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21030 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 cat >conftest.
$ac_ext <<_ACEOF
21036 cat confdefs.h
>>conftest.
$ac_ext
21037 cat >>conftest.
$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21040 #ifdef TIME_WITH_SYS_TIME
21041 #include <sys/time.h>
21044 #ifdef HAVE_SYS_TIME_H
21045 #include <sys/time.h>
21053 struct timeval time;
21054 gettimeofday (&time, 0);
21059 rm -f conftest.
$ac_objext
21060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21061 (eval $ac_compile) 2>conftest.er1
21063 grep -v '^ *+' conftest.er1
>conftest.err
21065 cat conftest.err
>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try
='test -z "$ac_c_werror_flag"
21069 || test ! -s conftest.err'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try
='test -s conftest.$ac_objext'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 emacs_cv_gettimeofday_two_arguments
=yes
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.
$ac_ext >&5
21086 emacs_cv_gettimeofday_two_arguments
=no
21088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21090 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21091 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21092 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21094 cat >>confdefs.h
<<\_ACEOF
21095 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21102 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21103 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21104 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21105 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 cat >conftest.
$ac_ext <<_ACEOF
21111 cat confdefs.h
>>conftest.
$ac_ext
21112 cat >>conftest.
$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <sys/types.h>
21115 #include <$ac_cv_struct_tm>
21121 static struct tm ac_aggr;
21122 if (ac_aggr.tm_zone)
21128 rm -f conftest.
$ac_objext
21129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>conftest.er1
21132 grep -v '^ *+' conftest.er1
>conftest.err
21134 cat conftest.err
>&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try
='test -z "$ac_c_werror_flag"
21138 || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try
='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 ac_cv_member_struct_tm_tm_zone
=yes
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.
$ac_ext >&5
21155 cat >conftest.
$ac_ext <<_ACEOF
21158 cat confdefs.h
>>conftest.
$ac_ext
21159 cat >>conftest.
$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <sys/types.h>
21162 #include <$ac_cv_struct_tm>
21168 static struct tm ac_aggr;
21169 if (sizeof ac_aggr.tm_zone)
21175 rm -f conftest.
$ac_objext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177 (eval $ac_compile) 2>conftest.er1
21179 grep -v '^ *+' conftest.er1
>conftest.err
21181 cat conftest.err
>&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try
='test -z "$ac_c_werror_flag"
21185 || test ! -s conftest.err'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try
='test -s conftest.$ac_objext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ac_cv_member_struct_tm_tm_zone
=yes
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.
$ac_ext >&5
21202 ac_cv_member_struct_tm_tm_zone
=no
21204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21208 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21209 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21210 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21212 cat >>confdefs.h
<<_ACEOF
21213 #define HAVE_STRUCT_TM_TM_ZONE 1
21219 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21221 cat >>confdefs.h
<<\_ACEOF
21222 #define HAVE_TM_ZONE 1
21226 echo "$as_me:$LINENO: checking for tzname" >&5
21227 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21228 if test "${ac_cv_var_tzname+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21231 cat >conftest.
$ac_ext <<_ACEOF
21234 cat confdefs.h
>>conftest.
$ac_ext
21235 cat >>conftest.
$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21238 #ifndef tzname /* For SGI. */
21239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21250 rm -f conftest.
$ac_objext conftest
$ac_exeext
21251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21252 (eval $ac_link) 2>conftest.er1
21254 grep -v '^ *+' conftest.er1
>conftest.err
21256 cat conftest.err
>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } &&
21259 { ac_try
='test -z "$ac_c_werror_flag"
21260 || test ! -s conftest.err'
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; } &&
21266 { ac_try
='test -s conftest$ac_exeext'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; }; then
21272 ac_cv_var_tzname
=yes
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.
$ac_ext >&5
21277 ac_cv_var_tzname
=no
21279 rm -f conftest.err conftest.
$ac_objext \
21280 conftest
$ac_exeext conftest.
$ac_ext
21282 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21283 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21284 if test $ac_cv_var_tzname = yes; then
21286 cat >>confdefs.h
<<\_ACEOF
21287 #define HAVE_TZNAME 1
21294 if test "$ac_cv_func_gettimeofday" = yes; then
21295 echo "$as_me:$LINENO: checking for struct timezone" >&5
21296 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21297 if test "${emacs_cv_struct_timezone+set}" = set; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 cat >conftest.
$ac_ext <<_ACEOF
21303 cat confdefs.h
>>conftest.
$ac_ext
21304 cat >>conftest.
$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 #include <sys/time.h>
21310 struct timezone tz;
21315 rm -f conftest.
$ac_objext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21317 (eval $ac_compile) 2>conftest.er1
21319 grep -v '^ *+' conftest.er1
>conftest.err
21321 cat conftest.err
>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } &&
21324 { ac_try
='test -z "$ac_c_werror_flag"
21325 || test ! -s conftest.err'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; } &&
21331 { ac_try
='test -s conftest.$ac_objext'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 if test "$cross_compiling" = yes; then
21338 emacs_cv_struct_timezone
=yes
21340 cat >conftest.
$ac_ext <<_ACEOF
21343 cat confdefs.h
>>conftest.
$ac_ext
21344 cat >>conftest.
$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21347 #ifdef TIME_WITH_SYS_TIME
21348 #include <sys/time.h>
21351 #ifdef HAVE_SYS_TIME_H
21352 #include <sys/time.h>
21358 struct timeval time;
21359 struct timezone dummy;
21360 exit (gettimeofday (&time, &dummy));
21363 rm -f conftest
$ac_exeext
21364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21365 (eval $ac_link) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374 emacs_cv_struct_timezone
=yes
21376 echo "$as_me: program exited with status $ac_status" >&5
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.
$ac_ext >&5
21380 ( exit $ac_status )
21381 emacs_cv_struct_timezone
=no
21383 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.
$ac_ext >&5
21389 emacs_cv_struct_timezone
=no
21391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21393 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21394 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21398 echo "$as_me:$LINENO: checking for socket" >&5
21399 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21400 if test "${ac_cv_func_socket+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 cat >conftest.
$ac_ext <<_ACEOF
21406 cat confdefs.h
>>conftest.
$ac_ext
21407 cat >>conftest.
$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21411 #define socket innocuous_socket
21413 /* System header to define __stub macros and hopefully few prototypes,
21414 which can conflict with char socket (); below.
21415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21416 <limits.h> exists even on freestanding compilers. */
21419 # include <limits.h>
21421 # include <assert.h>
21426 /* Override any gcc2 internal prototype to avoid an error. */
21431 /* We use char because int might match the return type of a gcc2
21432 builtin and then its argument prototype would still apply. */
21434 /* The GNU C library defines this for functions which it implements
21435 to always fail with ENOSYS. Some functions are actually named
21436 something starting with __ and the normal name is an alias. */
21437 #if defined (__stub_socket) || defined (__stub___socket)
21440 char (*f) () = socket;
21449 return f != socket;
21454 rm -f conftest.
$ac_objext conftest
$ac_exeext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21456 (eval $ac_link) 2>conftest.er1
21458 grep -v '^ *+' conftest.er1
>conftest.err
21460 cat conftest.err
>&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try
='test -z "$ac_c_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try
='test -s conftest$ac_exeext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_cv_func_socket
=yes
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.
$ac_ext >&5
21481 ac_cv_func_socket
=no
21483 rm -f conftest.err conftest.
$ac_objext \
21484 conftest
$ac_exeext conftest.
$ac_ext
21486 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21487 echo "${ECHO_T}$ac_cv_func_socket" >&6
21488 if test $ac_cv_func_socket = yes; then
21494 if test $ok_so_far = yes; then
21495 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21496 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21497 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21502 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21504 # Is the header compilable?
21505 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21506 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21507 cat >conftest.
$ac_ext <<_ACEOF
21510 cat confdefs.h
>>conftest.
$ac_ext
21511 cat >>conftest.
$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 $ac_includes_default
21514 #include <netinet/in.h>
21516 rm -f conftest.
$ac_objext
21517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21518 (eval $ac_compile) 2>conftest.er1
21520 grep -v '^ *+' conftest.er1
>conftest.err
21522 cat conftest.err
>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } &&
21525 { ac_try
='test -z "$ac_c_werror_flag"
21526 || test ! -s conftest.err'
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; } &&
21532 { ac_try
='test -s conftest.$ac_objext'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_header_compiler
=yes
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.
$ac_ext >&5
21543 ac_header_compiler
=no
21545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21547 echo "${ECHO_T}$ac_header_compiler" >&6
21549 # Is the header present?
21550 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21551 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21552 cat >conftest.
$ac_ext <<_ACEOF
21555 cat confdefs.h
>>conftest.
$ac_ext
21556 cat >>conftest.
$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 #include <netinet/in.h>
21560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21561 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21563 grep -v '^ *+' conftest.er1
>conftest.err
21565 cat conftest.err
>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } >/dev
/null
; then
21568 if test -s conftest.err
; then
21569 ac_cpp_err
=$ac_c_preproc_warn_flag
21570 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21577 if test -z "$ac_cpp_err"; then
21578 ac_header_preproc
=yes
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.
$ac_ext >&5
21583 ac_header_preproc
=no
21585 rm -f conftest.err conftest.
$ac_ext
21586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21587 echo "${ECHO_T}$ac_header_preproc" >&6
21589 # So? What about this header?
21590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21592 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21593 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21595 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21596 ac_header_preproc
=yes
21599 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21600 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21602 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21604 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21605 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21606 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21607 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21608 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21610 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21613 ## ------------------------------------------ ##
21614 ## Report this to the AC_PACKAGE_NAME lists. ##
21615 ## ------------------------------------------ ##
21618 sed "s/^/$as_me: WARNING: /" >&2
21621 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21622 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21623 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 ac_cv_header_netinet_in_h
=$ac_header_preproc
21628 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21629 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21632 if test $ac_cv_header_netinet_in_h = yes; then
21640 if test $ok_so_far = yes; then
21641 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21642 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21643 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21644 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21648 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21650 # Is the header compilable?
21651 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21652 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21653 cat >conftest.
$ac_ext <<_ACEOF
21656 cat confdefs.h
>>conftest.
$ac_ext
21657 cat >>conftest.
$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 $ac_includes_default
21660 #include <arpa/inet.h>
21662 rm -f conftest.
$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>conftest.er1
21666 grep -v '^ *+' conftest.er1
>conftest.err
21668 cat conftest.err
>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try
='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try
='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_header_compiler
=yes
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.
$ac_ext >&5
21689 ac_header_compiler
=no
21691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21693 echo "${ECHO_T}$ac_header_compiler" >&6
21695 # Is the header present?
21696 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21697 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21698 cat >conftest.
$ac_ext <<_ACEOF
21701 cat confdefs.h
>>conftest.
$ac_ext
21702 cat >>conftest.
$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 #include <arpa/inet.h>
21706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21707 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21709 grep -v '^ *+' conftest.er1
>conftest.err
21711 cat conftest.err
>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } >/dev
/null
; then
21714 if test -s conftest.err
; then
21715 ac_cpp_err
=$ac_c_preproc_warn_flag
21716 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21723 if test -z "$ac_cpp_err"; then
21724 ac_header_preproc
=yes
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.
$ac_ext >&5
21729 ac_header_preproc
=no
21731 rm -f conftest.err conftest.
$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21733 echo "${ECHO_T}$ac_header_preproc" >&6
21735 # So? What about this header?
21736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21738 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21739 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21741 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21742 ac_header_preproc
=yes
21745 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21746 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21748 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21750 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21752 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21754 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21756 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21759 ## ------------------------------------------ ##
21760 ## Report this to the AC_PACKAGE_NAME lists. ##
21761 ## ------------------------------------------ ##
21764 sed "s/^/$as_me: WARNING: /" >&2
21767 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21768 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21769 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21774 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21775 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21778 if test $ac_cv_header_arpa_inet_h = yes; then
21786 if test $ok_so_far = yes; then
21788 cat >>confdefs.h
<<\_ACEOF
21789 #define HAVE_INET_SOCKETS 1
21795 for ac_header
in sys
/ioctl.h
21797 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21799 echo "$as_me:$LINENO: checking for $ac_header" >&5
21800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21807 # Is the header compilable?
21808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21810 cat >conftest.
$ac_ext <<_ACEOF
21813 cat confdefs.h
>>conftest.
$ac_ext
21814 cat >>conftest.
$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21816 $ac_includes_default
21817 #include <$ac_header>
21819 rm -f conftest.
$ac_objext
21820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21821 (eval $ac_compile) 2>conftest.er1
21823 grep -v '^ *+' conftest.er1
>conftest.err
21825 cat conftest.err
>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } &&
21828 { ac_try
='test -z "$ac_c_werror_flag"
21829 || test ! -s conftest.err'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; } &&
21835 { ac_try
='test -s conftest.$ac_objext'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; }; then
21841 ac_header_compiler
=yes
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.
$ac_ext >&5
21846 ac_header_compiler
=no
21848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21850 echo "${ECHO_T}$ac_header_compiler" >&6
21852 # Is the header present?
21853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21855 cat >conftest.
$ac_ext <<_ACEOF
21858 cat confdefs.h
>>conftest.
$ac_ext
21859 cat >>conftest.
$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21861 #include <$ac_header>
21863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21864 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21866 grep -v '^ *+' conftest.er1
>conftest.err
21868 cat conftest.err
>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } >/dev
/null
; then
21871 if test -s conftest.err
; then
21872 ac_cpp_err
=$ac_c_preproc_warn_flag
21873 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21880 if test -z "$ac_cpp_err"; then
21881 ac_header_preproc
=yes
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.
$ac_ext >&5
21886 ac_header_preproc
=no
21888 rm -f conftest.err conftest.
$ac_ext
21889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21890 echo "${ECHO_T}$ac_header_preproc" >&6
21892 # So? What about this header?
21893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21899 ac_header_preproc
=yes
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21916 ## ------------------------------------------ ##
21917 ## Report this to the AC_PACKAGE_NAME lists. ##
21918 ## ------------------------------------------ ##
21921 sed "s/^/$as_me: WARNING: /" >&2
21924 echo "$as_me:$LINENO: checking for $ac_header" >&5
21925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 eval "$as_ac_Header=\$ac_header_preproc"
21931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21936 cat >>confdefs.h
<<_ACEOF
21937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21945 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21947 cat >>confdefs.h
<<\_ACEOF
21948 #define HAVE_AIX_SMT_EXP 1
21953 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21954 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21955 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21956 echo "$as_me:$LINENO: result: yes" >&5
21957 echo "${ECHO_T}yes" >&6
21959 cat >>confdefs.h
<<\_ACEOF
21960 #define HAVE_DEV_PTMX 1
21964 echo "$as_me:$LINENO: result: no" >&5
21965 echo "${ECHO_T}no" >&6
21968 echo "$as_me:$LINENO: checking for pid_t" >&5
21969 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21970 if test "${ac_cv_type_pid_t+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 cat >conftest.
$ac_ext <<_ACEOF
21976 cat confdefs.h
>>conftest.
$ac_ext
21977 cat >>conftest.
$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 $ac_includes_default
21985 if (sizeof (pid_t))
21991 rm -f conftest.
$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993 (eval $ac_compile) 2>conftest.er1
21995 grep -v '^ *+' conftest.er1
>conftest.err
21997 cat conftest.err
>&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try
='test -z "$ac_c_werror_flag"
22001 || test ! -s conftest.err'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try
='test -s conftest.$ac_objext'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 ac_cv_type_pid_t
=yes
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.
$ac_ext >&5
22018 ac_cv_type_pid_t
=no
22020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22022 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22023 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22024 if test $ac_cv_type_pid_t = yes; then
22028 cat >>confdefs.h
<<_ACEOF
22036 for ac_header
in unistd.h vfork.h
22038 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22040 echo "$as_me:$LINENO: checking for $ac_header" >&5
22041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22048 # Is the header compilable?
22049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22051 cat >conftest.
$ac_ext <<_ACEOF
22054 cat confdefs.h
>>conftest.
$ac_ext
22055 cat >>conftest.
$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 $ac_includes_default
22058 #include <$ac_header>
22060 rm -f conftest.
$ac_objext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22062 (eval $ac_compile) 2>conftest.er1
22064 grep -v '^ *+' conftest.er1
>conftest.err
22066 cat conftest.err
>&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try
='test -z "$ac_c_werror_flag"
22070 || test ! -s conftest.err'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; } &&
22076 { ac_try
='test -s conftest.$ac_objext'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_header_compiler
=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.
$ac_ext >&5
22087 ac_header_compiler
=no
22089 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22091 echo "${ECHO_T}$ac_header_compiler" >&6
22093 # Is the header present?
22094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22096 cat >conftest.
$ac_ext <<_ACEOF
22099 cat confdefs.h
>>conftest.
$ac_ext
22100 cat >>conftest.
$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 #include <$ac_header>
22104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22105 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22107 grep -v '^ *+' conftest.er1
>conftest.err
22109 cat conftest.err
>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } >/dev
/null
; then
22112 if test -s conftest.err
; then
22113 ac_cpp_err
=$ac_c_preproc_warn_flag
22114 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22121 if test -z "$ac_cpp_err"; then
22122 ac_header_preproc
=yes
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.
$ac_ext >&5
22127 ac_header_preproc
=no
22129 rm -f conftest.err conftest.
$ac_ext
22130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22131 echo "${ECHO_T}$ac_header_preproc" >&6
22133 # So? What about this header?
22134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22140 ac_header_preproc
=yes
22143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22157 ## ------------------------------------------ ##
22158 ## Report this to the AC_PACKAGE_NAME lists. ##
22159 ## ------------------------------------------ ##
22162 sed "s/^/$as_me: WARNING: /" >&2
22165 echo "$as_me:$LINENO: checking for $ac_header" >&5
22166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22170 eval "$as_ac_Header=\$ac_header_preproc"
22172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22177 cat >>confdefs.h
<<_ACEOF
22178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22187 for ac_func
in fork vfork
22189 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22190 echo "$as_me:$LINENO: checking for $ac_func" >&5
22191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22192 if eval "test \"\${$as_ac_var+set}\" = set"; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 cat >conftest.
$ac_ext <<_ACEOF
22198 cat confdefs.h
>>conftest.
$ac_ext
22199 cat >>conftest.
$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22203 #define $ac_func innocuous_$ac_func
22205 /* System header to define __stub macros and hopefully few prototypes,
22206 which can conflict with char $ac_func (); below.
22207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22208 <limits.h> exists even on freestanding compilers. */
22211 # include <limits.h>
22213 # include <assert.h>
22218 /* Override any gcc2 internal prototype to avoid an error. */
22223 /* We use char because int might match the return type of a gcc2
22224 builtin and then its argument prototype would still apply. */
22226 /* The GNU C library defines this for functions which it implements
22227 to always fail with ENOSYS. Some functions are actually named
22228 something starting with __ and the normal name is an alias. */
22229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22232 char (*f) () = $ac_func;
22241 return f != $ac_func;
22246 rm -f conftest.
$ac_objext conftest
$ac_exeext
22247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22248 (eval $ac_link) 2>conftest.er1
22250 grep -v '^ *+' conftest.er1
>conftest.err
22252 cat conftest.err
>&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
22255 { ac_try
='test -z "$ac_c_werror_flag"
22256 || test ! -s conftest.err'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try
='test -s conftest$ac_exeext'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 eval "$as_ac_var=yes"
22270 echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.
$ac_ext >&5
22273 eval "$as_ac_var=no"
22275 rm -f conftest.err conftest.
$ac_objext \
22276 conftest
$ac_exeext conftest.
$ac_ext
22278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22280 if test `eval echo '${'$as_ac_var'}'` = yes; then
22281 cat >>confdefs.h
<<_ACEOF
22282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22288 if test "x$ac_cv_func_fork" = xyes
; then
22289 echo "$as_me:$LINENO: checking for working fork" >&5
22290 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22291 if test "${ac_cv_func_fork_works+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22294 if test "$cross_compiling" = yes; then
22295 ac_cv_func_fork_works
=cross
22297 cat >conftest.
$ac_ext <<_ACEOF
22298 /* By Ruediger Kuhlmann. */
22299 #include <sys/types.h>
22301 # include <unistd.h>
22303 /* Some systems only have a dummy stub for fork() */
22311 rm -f conftest
$ac_exeext
22312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_func_fork_works
=yes
22324 echo "$as_me: program exited with status $ac_status" >&5
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.
$ac_ext >&5
22328 ( exit $ac_status )
22329 ac_cv_func_fork_works
=no
22331 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22334 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22335 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22338 ac_cv_func_fork_works
=$ac_cv_func_fork
22340 if test "x$ac_cv_func_fork_works" = xcross
; then
22342 *-*-amigaos* |
*-*-msdosdjgpp*)
22343 # Override, as these systems have only a dummy fork() stub
22344 ac_cv_func_fork_works
=no
22347 ac_cv_func_fork_works
=yes
22350 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22351 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22353 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22354 if test "x$ac_cv_func_vfork" = xyes
; then
22355 echo "$as_me:$LINENO: checking for working vfork" >&5
22356 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22357 if test "${ac_cv_func_vfork_works+set}" = set; then
22358 echo $ECHO_N "(cached) $ECHO_C" >&6
22360 if test "$cross_compiling" = yes; then
22361 ac_cv_func_vfork_works
=cross
22363 cat >conftest.
$ac_ext <<_ACEOF
22366 cat confdefs.h
>>conftest.
$ac_ext
22367 cat >>conftest.
$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 /* Thanks to Paul Eggert for this test. */
22371 #include <stdlib.h>
22372 #include <sys/types.h>
22373 #include <sys/stat.h>
22374 #include <sys/wait.h>
22376 # include <unistd.h>
22379 # include <vfork.h>
22381 /* On some sparc systems, changes by the child to local and incoming
22382 argument registers are propagated back to the parent. The compiler
22383 is told about this with #include <vfork.h>, but some compilers
22384 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22385 static variable whose address is put into a register that is
22386 clobbered by the vfork. */
22389 sparc_address_test (int arg)
22391 sparc_address_test (arg) int arg;
22394 static pid_t child;
22412 pid_t parent = getpid ();
22415 sparc_address_test (0);
22420 /* Here is another test for sparc vfork register problems. This
22421 test uses lots of local variables, at least as many local
22422 variables as main has allocated so far including compiler
22423 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22424 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22425 reuse the register of parent for one of the local variables,
22426 since it will think that parent can't possibly be used any more
22427 in this routine. Assigning to the local variable will thus
22428 munge parent in the parent process. */
22430 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22431 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22432 /* Convince the compiler that p..p7 are live; otherwise, it might
22433 use the same hardware register for all 8 local variables. */
22434 if (p != p1 || p != p2 || p != p3 || p != p4
22435 || p != p5 || p != p6 || p != p7)
22438 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22439 from child file descriptors. If the child closes a descriptor
22440 before it execs or exits, this munges the parent's descriptor
22441 as well. Test for this by closing stdout in the child. */
22442 _exit(close(fileno(stdout)) != 0);
22447 while (wait(&status) != child)
22450 /* Was there some problem with vforking? */
22453 /* Did the child fail? (This shouldn't happen.) */
22456 /* Did the vfork/compiler bug occur? */
22457 || parent != getpid()
22459 /* Did the file descriptor bug occur? */
22460 || fstat(fileno(stdout), &st) != 0
22465 rm -f conftest
$ac_exeext
22466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22467 (eval $ac_link) 2>&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_func_vfork_works
=yes
22478 echo "$as_me: program exited with status $ac_status" >&5
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.
$ac_ext >&5
22482 ( exit $ac_status )
22483 ac_cv_func_vfork_works
=no
22485 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22488 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22489 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22492 if test "x$ac_cv_func_fork_works" = xcross
; then
22493 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22494 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22495 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22498 if test "x$ac_cv_func_vfork_works" = xyes
; then
22500 cat >>confdefs.h
<<\_ACEOF
22501 #define HAVE_WORKING_VFORK 1
22506 cat >>confdefs.h
<<\_ACEOF
22511 if test "x$ac_cv_func_fork_works" = xyes
; then
22513 cat >>confdefs.h
<<\_ACEOF
22514 #define HAVE_WORKING_FORK 1
22520 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22521 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22522 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 cat >conftest.
$ac_ext <<_ACEOF
22528 cat confdefs.h
>>conftest.
$ac_ext
22529 cat >>conftest.
$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 #include <langinfo.h>
22535 char* cs = nl_langinfo(CODESET);
22540 rm -f conftest.
$ac_objext conftest
$ac_exeext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22542 (eval $ac_link) 2>conftest.er1
22544 grep -v '^ *+' conftest.er1
>conftest.err
22546 cat conftest.err
>&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } &&
22549 { ac_try
='test -z "$ac_c_werror_flag"
22550 || test ! -s conftest.err'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; } &&
22556 { ac_try
='test -s conftest$ac_exeext'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562 emacs_cv_langinfo_codeset
=yes
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.
$ac_ext >&5
22567 emacs_cv_langinfo_codeset
=no
22569 rm -f conftest.err conftest.
$ac_objext \
22570 conftest
$ac_exeext conftest.
$ac_ext
22573 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22574 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22575 if test $emacs_cv_langinfo_codeset = yes; then
22577 cat >>confdefs.h
<<\_ACEOF
22578 #define HAVE_LANGINFO_CODESET 1
22583 echo "$as_me:$LINENO: checking for size_t" >&5
22584 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22585 if test "${ac_cv_type_size_t+set}" = set; then
22586 echo $ECHO_N "(cached) $ECHO_C" >&6
22588 cat >conftest.
$ac_ext <<_ACEOF
22591 cat confdefs.h
>>conftest.
$ac_ext
22592 cat >>conftest.
$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22594 $ac_includes_default
22600 if (sizeof (size_t))
22606 rm -f conftest.
$ac_objext
22607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22608 (eval $ac_compile) 2>conftest.er1
22610 grep -v '^ *+' conftest.er1
>conftest.err
22612 cat conftest.err
>&5
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } &&
22615 { ac_try
='test -z "$ac_c_werror_flag"
22616 || test ! -s conftest.err'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; } &&
22622 { ac_try
='test -s conftest.$ac_objext'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; }; then
22628 ac_cv_type_size_t
=yes
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.
$ac_ext >&5
22633 ac_cv_type_size_t
=no
22635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22637 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22638 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22639 if test $ac_cv_type_size_t = yes; then
22641 cat >>confdefs.h
<<_ACEOF
22642 #define HAVE_SIZE_T 1
22649 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22650 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22651 if test "${ac_cv_type_mbstate_t+set}" = set; then
22652 echo $ECHO_N "(cached) $ECHO_C" >&6
22654 cat >conftest.
$ac_ext <<_ACEOF
22657 cat confdefs.h
>>conftest.
$ac_ext
22658 cat >>conftest.
$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22660 $ac_includes_default
22661 # include <wchar.h>
22665 mbstate_t x; return sizeof x;
22670 rm -f conftest.
$ac_objext
22671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22672 (eval $ac_compile) 2>conftest.er1
22674 grep -v '^ *+' conftest.er1
>conftest.err
22676 cat conftest.err
>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } &&
22679 { ac_try
='test -z "$ac_c_werror_flag"
22680 || test ! -s conftest.err'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; } &&
22686 { ac_try
='test -s conftest.$ac_objext'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
22692 ac_cv_type_mbstate_t
=yes
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.
$ac_ext >&5
22697 ac_cv_type_mbstate_t
=no
22699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22701 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22702 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22703 if test $ac_cv_type_mbstate_t = yes; then
22705 cat >>confdefs.h
<<\_ACEOF
22706 #define HAVE_MBSTATE_T 1
22711 cat >>confdefs.h
<<\_ACEOF
22712 #define mbstate_t int
22717 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22718 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22719 if test "${emacs_cv_c_restrict+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 cat >conftest.
$ac_ext <<_ACEOF
22725 cat confdefs.h
>>conftest.
$ac_ext
22726 cat >>conftest.
$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 void fred (int *restrict x);
22737 rm -f conftest.
$ac_objext
22738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22739 (eval $ac_compile) 2>conftest.er1
22741 grep -v '^ *+' conftest.er1
>conftest.err
22743 cat conftest.err
>&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } &&
22746 { ac_try
='test -z "$ac_c_werror_flag"
22747 || test ! -s conftest.err'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; } &&
22753 { ac_try
='test -s conftest.$ac_objext'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 emacs_cv_c_restrict
=yes
22761 echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.
$ac_ext >&5
22764 cat >conftest.
$ac_ext <<_ACEOF
22767 cat confdefs.h
>>conftest.
$ac_ext
22768 cat >>conftest.
$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 void fred (int *__restrict x);
22779 rm -f conftest.
$ac_objext
22780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22781 (eval $ac_compile) 2>conftest.er1
22783 grep -v '^ *+' conftest.er1
>conftest.err
22785 cat conftest.err
>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } &&
22788 { ac_try
='test -z "$ac_c_werror_flag"
22789 || test ! -s conftest.err'
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; } &&
22795 { ac_try
='test -s conftest.$ac_objext'
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; }; then
22801 emacs_cv_c_restrict
=__restrict
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.
$ac_ext >&5
22806 emacs_cv_c_restrict
=no
22808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22812 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22813 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22814 case "$emacs_cv_c_restrict" in
22815 yes) emacs_restrict
=restrict
;;
22816 no
) emacs_restrict
="";;
22817 *) emacs_restrict
="$emacs_cv_c_restrict";;
22819 if test "$emacs_restrict" != __restrict
; then
22821 cat >>confdefs.h
<<_ACEOF
22822 #define __restrict $emacs_restrict
22827 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22828 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22829 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22832 cat >conftest.
$ac_ext <<_ACEOF
22835 cat confdefs.h
>>conftest.
$ac_ext
22836 cat >>conftest.
$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 void fred (int x[__restrict]);
22847 rm -f conftest.
$ac_objext
22848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22849 (eval $ac_compile) 2>conftest.er1
22851 grep -v '^ *+' conftest.er1
>conftest.err
22853 cat conftest.err
>&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } &&
22856 { ac_try
='test -z "$ac_c_werror_flag"
22857 || test ! -s conftest.err'
22858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859 (eval $ac_try) 2>&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }; } &&
22863 { ac_try
='test -s conftest.$ac_objext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 emacs_cv_c_restrict_arr
=yes
22871 echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.
$ac_ext >&5
22874 emacs_cv_c_restrict_arr
=no
22876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22878 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22879 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22880 if test "$emacs_cv_c_restrict_arr" = yes; then
22882 cat >>confdefs.h
<<\_ACEOF
22883 #define __restrict_arr __restrict
22890 # Set up the CFLAGS for real compilation, so we can substitute it.
22891 CFLAGS
="$REAL_CFLAGS"
22892 CPPFLAGS
="$REAL_CPPFLAGS"
22894 #### Find out which version of Emacs this is.
22895 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22896 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22897 if test x
"${version}" = x
; then
22898 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22899 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22900 { (exit 1); exit 1; }; }
22903 ### Specify what sort of things we'll be editing into Makefile and config.h.
22904 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22940 cat >>confdefs.h
<<_ACEOF
22941 #define EMACS_CONFIGURATION "${canonical}"
22945 cat >>confdefs.h
<<_ACEOF
22946 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22950 cat >>confdefs.h
<<_ACEOF
22951 #define config_machfile "${machfile}"
22955 cat >>confdefs.h
<<_ACEOF
22956 #define config_opsysfile "${opsysfile}"
22960 cat >>confdefs.h
<<_ACEOF
22961 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22965 cat >>confdefs.h
<<_ACEOF
22966 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22970 cat >>confdefs.h
<<_ACEOF
22971 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22975 cat >>confdefs.h
<<_ACEOF
22976 #define UNEXEC_SRC ${UNEXEC_SRC}
22980 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22982 cat >>confdefs.h
<<\_ACEOF
22983 #define HAVE_X_WINDOWS 1
22987 if test "${USE_X_TOOLKIT}" != "none" ; then
22989 cat >>confdefs.h
<<\_ACEOF
22990 #define USE_X_TOOLKIT 1
22994 if test "${HAVE_X11}" = "yes" ; then
22996 cat >>confdefs.h
<<\_ACEOF
23001 if test "${HAVE_XFREE386}" = "yes" ; then
23003 cat >>confdefs.h
<<\_ACEOF
23004 #define HAVE_XFREE386 1
23008 if test "${HAVE_MENUS}" = "yes" ; then
23010 cat >>confdefs.h
<<\_ACEOF
23011 #define HAVE_MENUS 1
23015 if test "${GNU_MALLOC}" = "yes" ; then
23017 cat >>confdefs.h
<<\_ACEOF
23018 #define GNU_MALLOC 1
23022 if test "${REL_ALLOC}" = "yes" ; then
23024 cat >>confdefs.h
<<\_ACEOF
23025 #define REL_ALLOC 1
23034 #### Report on what we decided to do.
23035 #### Report GTK as a toolkit, even if it doesn't use Xt.
23036 #### It makes printing result more understandable as using GTK sets
23037 #### toolkit_scroll_bars to yes by default.
23038 if test "${HAVE_GTK}" = "yes"; then
23043 Configured for \`${canonical}'.
23045 Where should the build process find the source code? ${srcdir}
23046 What operating system and machine description files should Emacs use?
23047 \`${opsysfile}' and \`${machfile}'
23048 What compiler should emacs be built with? ${CC} ${CFLAGS}
23049 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23050 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23051 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23052 What window system should Emacs use? ${window_system}
23053 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23055 if test -n "${x_includes}"; then
23056 echo " Where do we find X Windows header files? ${x_includes}"
23058 echo " Where do we find X Windows header files? Standard dirs"
23060 if test -n "${x_libraries}"; then
23061 echo " Where do we find X Windows libraries? ${x_libraries}"
23063 echo " Where do we find X Windows libraries? Standard dirs"
23066 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23067 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23068 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23069 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23070 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23071 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23072 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23075 if test $USE_XASSERTS = yes; then
23076 echo " Compiling with asserts turned on."
23077 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23083 # Remove any trailing slashes in these variables.
23084 test "${prefix}" != NONE
&&
23085 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23086 test "${exec_prefix}" != NONE
&&
23087 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23089 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23090 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23091 ## from Makefile.c can correctly provide the arg `-traditional' to the
23094 cat >conftest.
$ac_ext <<_ACEOF
23097 cat confdefs.h
>>conftest.
$ac_ext
23098 cat >>conftest.
$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23103 $EGREP "yes..yes" >/dev
/null
2>&1; then
23104 CPP_NEED_TRADITIONAL
=no
23106 CPP_NEED_TRADITIONAL
=yes
23111 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"
23112 ac_config_commands
="$ac_config_commands default"
23113 cat >confcache
<<\_ACEOF
23114 # This file is a shell script that caches the results of configure
23115 # tests run on this system so they can be shared between configure
23116 # scripts and configure runs, see configure's option --config-cache.
23117 # It is not useful on other systems. If it contains results you don't
23118 # want to keep, you may remove or edit it.
23120 # config.status only pays attention to the cache file if you give it
23121 # the --recheck option to rerun configure.
23123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23125 # following values.
23129 # The following way of writing the cache mishandles newlines in values,
23130 # but we know of no workaround that is simple, portable, and efficient.
23131 # So, don't put newlines in cache variables' values.
23132 # Ultrix sh set writes to stderr and can't be redirected directly,
23133 # and sets the high bit in the cache file unless we assign to the vars.
23136 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23138 # `set' does not quote correctly, so add quotes (double-quote
23139 # substitution turns \\\\ into \\, and sed turns \\ into \).
23142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23145 # `set' quotes correctly as required by POSIX, so do not add quotes.
23147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23156 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23158 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23159 if test -w $cache_file; then
23160 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23161 cat confcache
>$cache_file
23163 echo "not updating unwritable cache $cache_file"
23168 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23169 # Let make expand exec_prefix.
23170 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23174 # trailing colons and then remove the whole line if VPATH becomes empty
23175 # (actually we leave an empty line to preserve line numbers).
23176 if test "x$srcdir" = x.
; then
23177 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23178 s/:*\$(srcdir):*/:/;
23179 s/:*\${srcdir}:*/:/;
23181 s/^\([^=]*=[ ]*\):*/\1/;
23187 DEFS
=-DHAVE_CONFIG_H
23191 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23192 # 1. Remove the extension, and $U if already installed.
23193 ac_i
=`echo "$ac_i" |
23194 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23196 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23197 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23199 LIBOBJS
=$ac_libobjs
23201 LTLIBOBJS
=$ac_ltlibobjs
23205 : ${CONFIG_STATUS=./config.status}
23206 ac_clean_files_save
=$ac_clean_files
23207 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23208 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23209 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23210 cat >$CONFIG_STATUS <<_ACEOF
23212 # Generated by $as_me.
23213 # Run this file to recreate the current configuration.
23214 # Compiler output produced by configure, useful for debugging
23215 # configure, is in config.log if it exists.
23218 ac_cs_recheck=false
23220 SHELL=\${CONFIG_SHELL-$SHELL}
23223 cat >>$CONFIG_STATUS <<\_ACEOF
23224 ## --------------------- ##
23225 ## M4sh Initialization. ##
23226 ## --------------------- ##
23228 # Be Bourne compatible
23229 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23232 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23233 # is contrary to our usage. Disable this feature.
23234 alias -g '${1+"$@"}'='"$@"'
23235 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23238 DUALCASE
=1; export DUALCASE
# for MKS sh
23240 # Support unset when possible.
23241 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23248 # Work around bugs in pre-3.0 UWIN ksh.
23249 $as_unset ENV MAIL MAILPATH
23256 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23257 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23258 LC_TELEPHONE LC_TIME
23260 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23261 eval $as_var=C
; export $as_var
23267 # Required to use basename.
23268 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23274 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23275 as_basename
=basename
23281 # Name of the executable.
23282 as_me
=`$as_basename "$0" ||
23283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23284 X"$0" : 'X\(//\)$' \| \
23285 X"$0" : 'X\(/\)$' \| \
23286 . : '\(.\)' 2>/dev/null ||
23288 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23289 /^X\/\(\/\/\)$/{ s//\1/; q; }
23290 /^X\/\(\/\).*/{ s//\1/; q; }
23294 # PATH needs CR, and LINENO needs CR and PATH.
23295 # Avoid depending upon Character Ranges.
23296 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23297 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23298 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23299 as_cr_digits
='0123456789'
23300 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23302 # The user is always right.
23303 if test "${PATH_SEPARATOR+set}" != set; then
23304 echo "#! /bin/sh" >conf$$.sh
23305 echo "exit 0" >>conf$$.sh
23307 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23316 as_lineno_1
=$LINENO
23317 as_lineno_2
=$LINENO
23318 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23319 test "x$as_lineno_1" != "x$as_lineno_2" &&
23320 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23321 # Find who we are. Look in the path if we contain no path at all
23324 *[\\/]* ) as_myself
=$0 ;;
23325 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23326 for as_dir
in $PATH
23329 test -z "$as_dir" && as_dir
=.
23330 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23335 # We did not find ourselves, most probably we were run as `sh COMMAND'
23336 # in which case we are not to be found in the path.
23337 if test "x$as_myself" = x
; then
23340 if test ! -f "$as_myself"; then
23341 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23342 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23343 { (exit 1); exit 1; }; }
23345 case $CONFIG_SHELL in
23347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23348 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23351 test -z "$as_dir" && as_dir
=.
23352 for as_base
in sh bash ksh sh5
; do
23355 if ("$as_dir/$as_base" -c '
23356 as_lineno_1=$LINENO
23357 as_lineno_2=$LINENO
23358 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23359 test "x$as_lineno_1" != "x$as_lineno_2" &&
23360 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23361 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23362 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23363 CONFIG_SHELL
=$as_dir/$as_base
23364 export CONFIG_SHELL
23365 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23373 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23374 # uniformly replaced by the line number. The first 'sed' inserts a
23375 # line-number line before each line; the second 'sed' does the real
23376 # work. The second script uses 'N' to pair each line-number line
23377 # with the numbered line, and appends trailing '-' during
23378 # substitution so that $LINENO is not a special case at line end.
23379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23380 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23381 sed '=' <$as_myself |
23386 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23389 s,^['$as_cr_digits']*\n,,
23390 ' >$as_me.lineno
&&
23391 chmod +x
$as_me.lineno ||
23392 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23393 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23394 { (exit 1); exit 1; }; }
23396 # Don't try to exec as it changes $[0], causing all sort of problems
23397 # (the dirname of $[0] is not the place where we might find the
23398 # original and so on. Autoconf is especially sensible to this).
23400 # Exit status is that of the last command.
23405 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23406 *c
*,-n*) ECHO_N
= ECHO_C
='
23408 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23409 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23412 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23418 rm -f conf$$ conf$$.exe conf$$.
file
23420 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23421 # We could just check for DJGPP; but this test a) works b) is more generic
23422 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23423 if test -f conf$$.exe
; then
23424 # Don't use ln at all; we don't have any links
23429 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23434 rm -f conf$$ conf$$.exe conf$$.
file
23436 if mkdir
-p .
2>/dev
/null
; then
23439 test -d .
/-p && rmdir .
/-p
23443 as_executable_p
="test -f"
23445 # Sed expression to map a string onto a valid CPP name.
23446 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23448 # Sed expression to map a string onto a valid variable name.
23449 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23453 # We need space, tab and new line, in precisely that order.
23463 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23464 # report actual input values of CONFIG_FILES etc. instead of their
23465 # values after options handling. Logging --version etc. is OK.
23469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23470 ## Running $as_me. ##
23475 This file was extended by $as_me, which was
23476 generated by GNU Autoconf 2.59. Invocation command line was
23478 CONFIG_FILES = $CONFIG_FILES
23479 CONFIG_HEADERS = $CONFIG_HEADERS
23480 CONFIG_LINKS = $CONFIG_LINKS
23481 CONFIG_COMMANDS = $CONFIG_COMMANDS
23485 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23489 # Files that config.status was made for.
23490 if test -n "$ac_config_files"; then
23491 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23494 if test -n "$ac_config_headers"; then
23495 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23498 if test -n "$ac_config_links"; then
23499 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23502 if test -n "$ac_config_commands"; then
23503 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23506 cat >>$CONFIG_STATUS <<\_ACEOF
23509 \`$as_me' instantiates files from templates according to the
23510 current configuration.
23512 Usage: $0 [OPTIONS] [FILE]...
23514 -h, --help print this help, then exit
23515 -V, --version print version number, then exit
23516 -q, --quiet do not print progress messages
23517 -d, --debug don't remove temporary files
23518 --recheck update $as_me by reconfiguring in the same conditions
23519 --file=FILE[:TEMPLATE]
23520 instantiate the configuration file FILE
23521 --header=FILE[:TEMPLATE]
23522 instantiate the configuration header FILE
23524 Configuration files:
23527 Configuration headers:
23530 Configuration commands:
23533 Report bugs to <bug-autoconf@gnu.org>."
23536 cat >>$CONFIG_STATUS <<_ACEOF
23539 configured by $0, generated by GNU Autoconf 2.59,
23540 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23542 Copyright (C) 2003 Free Software Foundation, Inc.
23543 This config.status script is free software; the Free Software Foundation
23544 gives unlimited permission to copy, distribute and modify it."
23549 cat >>$CONFIG_STATUS <<\_ACEOF
23550 # If no file are specified by the user, then we need to provide default
23551 # value. By we need to know if files were specified by the user.
23557 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23558 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23566 *) # This is not an option, so the user has probably given explicit
23569 ac_need_defaults
=false
;;
23573 # Handling of the options.
23575 cat >>$CONFIG_STATUS <<\_ACEOF
23576 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23578 --version |
--vers* |
-V )
23579 echo "$ac_cs_version"; exit 0 ;;
23581 # Conflict between --help and --header
23582 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23583 Try \`$0 --help' for more information." >&5
23584 echo "$as_me: error: ambiguous option: $1
23585 Try \`$0 --help' for more information." >&2;}
23586 { (exit 1); exit 1; }; };;
23587 --help |
--hel |
-h )
23588 echo "$ac_cs_usage"; exit 0 ;;
23589 --debug |
--d* |
-d )
23591 --file |
--fil |
--fi |
--f )
23593 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23594 ac_need_defaults
=false
;;
23595 --header |
--heade |
--head |
--hea )
23597 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23598 ac_need_defaults
=false
;;
23599 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23600 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23603 # This is an error.
23604 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23605 Try \`$0 --help' for more information." >&5
23606 echo "$as_me: error: unrecognized option: $1
23607 Try \`$0 --help' for more information." >&2;}
23608 { (exit 1); exit 1; }; } ;;
23610 *) ac_config_targets
="$ac_config_targets $1" ;;
23616 ac_configure_extra_args
=
23618 if $ac_cs_silent; then
23620 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23624 cat >>$CONFIG_STATUS <<_ACEOF
23625 if \$ac_cs_recheck; then
23626 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23627 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23632 cat >>$CONFIG_STATUS <<_ACEOF
23634 # INIT-COMMANDS section.
23637 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23643 cat >>$CONFIG_STATUS <<\_ACEOF
23644 for ac_config_target
in $ac_config_targets
23646 case "$ac_config_target" in
23647 # Handling of arguments.
23648 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23649 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23650 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23651 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23652 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23653 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23654 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23655 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23656 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23657 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23658 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23659 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23660 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23661 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23662 { (exit 1); exit 1; }; };;
23666 # If the user did not use the arguments to specify the items to instantiate,
23667 # then the envvar interface is used. Set only those that are not.
23668 # We use the long form for the default assignment because of an extremely
23669 # bizarre bug on SunOS 4.1.3.
23670 if $ac_need_defaults; then
23671 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23672 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23673 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23676 # Have a temporary directory for convenience. Make it in the build tree
23677 # simply because there is no reason to put it here, and in addition,
23678 # creating and moving files from /tmp can sometimes cause problems.
23679 # Create a temporary directory, and hook for its removal unless debugging.
23682 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23683 trap '{ (exit 1); exit 1; }' 1 2 13 15
23686 # Create a (secure) tmp directory for tmp files.
23689 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23690 test -n "$tmp" && test -d "$tmp"
23693 tmp
=.
/confstat$$
-$RANDOM
23694 (umask 077 && mkdir
$tmp)
23697 echo "$me: cannot create a temporary directory in ." >&2
23698 { (exit 1); exit 1; }
23703 cat >>$CONFIG_STATUS <<_ACEOF
23706 # CONFIG_FILES section.
23709 # No need to generate the scripts if there are no CONFIG_FILES.
23710 # This happens for instance when ./config.status config.h
23711 if test -n "\$CONFIG_FILES"; then
23712 # Protect against being on the right side of a sed subst in config.status.
23713 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23714 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23715 s,@SHELL@,$SHELL,;t t
23716 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23717 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23718 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23719 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23720 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23721 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23722 s,@exec_prefix@,$exec_prefix,;t t
23723 s,@prefix@,$prefix,;t t
23724 s,@program_transform_name@,$program_transform_name,;t t
23725 s,@bindir@,$bindir,;t t
23726 s,@sbindir@,$sbindir,;t t
23727 s,@libexecdir@,$libexecdir,;t t
23728 s,@datadir@,$datadir,;t t
23729 s,@sysconfdir@,$sysconfdir,;t t
23730 s,@sharedstatedir@,$sharedstatedir,;t t
23731 s,@localstatedir@,$localstatedir,;t t
23732 s,@libdir@,$libdir,;t t
23733 s,@includedir@,$includedir,;t t
23734 s,@oldincludedir@,$oldincludedir,;t t
23735 s,@infodir@,$infodir,;t t
23736 s,@mandir@,$mandir,;t t
23737 s,@build_alias@,$build_alias,;t t
23738 s,@host_alias@,$host_alias,;t t
23739 s,@target_alias@,$target_alias,;t t
23740 s,@DEFS@,$DEFS,;t t
23741 s,@ECHO_C@,$ECHO_C,;t t
23742 s,@ECHO_N@,$ECHO_N,;t t
23743 s,@ECHO_T@,$ECHO_T,;t t
23744 s,@LIBS@,$LIBS,;t t
23745 s,@MAINT@,$MAINT,;t t
23746 s,@build@,$build,;t t
23747 s,@build_cpu@,$build_cpu,;t t
23748 s,@build_vendor@,$build_vendor,;t t
23749 s,@build_os@,$build_os,;t t
23750 s,@host@,$host,;t t
23751 s,@host_cpu@,$host_cpu,;t t
23752 s,@host_vendor@,$host_vendor,;t t
23753 s,@host_os@,$host_os,;t t
23755 s,@CFLAGS@,$CFLAGS,;t t
23756 s,@LDFLAGS@,$LDFLAGS,;t t
23757 s,@CPPFLAGS@,$CPPFLAGS,;t t
23758 s,@ac_ct_CC@,$ac_ct_CC,;t t
23759 s,@EXEEXT@,$EXEEXT,;t t
23760 s,@OBJEXT@,$OBJEXT,;t t
23762 s,@EGREP@,$EGREP,;t t
23763 s,@LN_S@,$LN_S,;t t
23764 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23765 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23766 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23767 s,@RANLIB@,$RANLIB,;t t
23768 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23769 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23770 s,@GZIP_PROG@,$GZIP_PROG,;t t
23771 s,@LIBSOUND@,$LIBSOUND,;t t
23772 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23773 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23774 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23775 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23776 s,@SET_MAKE@,$SET_MAKE,;t t
23777 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23778 s,@GTK_LIBS@,$GTK_LIBS,;t t
23779 s,@ALLOCA@,$ALLOCA,;t t
23780 s,@liblockfile@,$liblockfile,;t t
23781 s,@LIBOBJS@,$LIBOBJS,;t t
23782 s,@NEED_SETGID@,$NEED_SETGID,;t t
23783 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23784 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23785 s,@GETOPT_H@,$GETOPT_H,;t t
23786 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23787 s,@version@,$version,;t t
23788 s,@configuration@,$configuration,;t t
23789 s,@canonical@,$canonical,;t t
23790 s,@srcdir@,$srcdir,;t t
23791 s,@lispdir@,$lispdir,;t t
23792 s,@locallisppath@,$locallisppath,;t t
23793 s,@lisppath@,$lisppath,;t t
23794 s,@x_default_search_path@,$x_default_search_path,;t t
23795 s,@etcdir@,$etcdir,;t t
23796 s,@archlibdir@,$archlibdir,;t t
23797 s,@docdir@,$docdir,;t t
23798 s,@bitmapdir@,$bitmapdir,;t t
23799 s,@gamedir@,$gamedir,;t t
23800 s,@gameuser@,$gameuser,;t t
23801 s,@c_switch_system@,$c_switch_system,;t t
23802 s,@c_switch_machine@,$c_switch_machine,;t t
23803 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23804 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23805 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23806 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23807 s,@machfile@,$machfile,;t t
23808 s,@opsysfile@,$opsysfile,;t t
23809 s,@carbon_appdir@,$carbon_appdir,;t t
23810 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23815 cat >>$CONFIG_STATUS <<\_ACEOF
23816 # Split the substitutions into bite-sized pieces for seds with
23817 # small command number limits, like on Digital OSF/1 and HP-UX.
23818 ac_max_sed_lines
=48
23819 ac_sed_frag
=1 # Number of current file.
23820 ac_beg
=1 # First line for current file.
23821 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23824 while $ac_more_lines; do
23825 if test $ac_beg -gt 1; then
23826 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23828 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23830 if test ! -s $tmp/subs.frag
; then
23831 ac_more_lines
=false
23833 # The purpose of the label and of the branching condition is to
23834 # speed up the sed processing (if there are no `@' at all, there
23835 # is no need to browse any of the substitutions).
23836 # These are the two extra sed commands mentioned above.
23838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23839 if test -z "$ac_sed_cmds"; then
23840 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23842 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23844 ac_sed_frag
=`expr $ac_sed_frag + 1`
23846 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23849 if test -z "$ac_sed_cmds"; then
23852 fi # test -n "$CONFIG_FILES"
23855 cat >>$CONFIG_STATUS <<\_ACEOF
23856 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23859 - |
*:- |
*:-:* ) # input from stdin
23861 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23862 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23863 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23864 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23865 * ) ac_file_in
=$ac_file.
in ;;
23868 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23869 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23871 X"$ac_file" : 'X\(//\)[^/]' \| \
23872 X"$ac_file" : 'X\(//\)$' \| \
23873 X"$ac_file" : 'X\(/\)' \| \
23874 . : '\(.\)' 2>/dev/null ||
23876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23878 /^X\(\/\/\)$/{ s//\1/; q; }
23879 /^X\(\/\).*/{ s//\1/; q; }
23881 { if $as_mkdir_p; then
23886 while test ! -d "$as_dir"; do
23887 as_dirs
="$as_dir $as_dirs"
23888 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23890 X"$as_dir" : 'X\(//\)[^/]' \| \
23891 X"$as_dir" : 'X\(//\)$' \| \
23892 X"$as_dir" : 'X\(/\)' \| \
23893 . : '\(.\)' 2>/dev/null ||
23895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23897 /^X\(\/\/\)$/{ s//\1/; q; }
23898 /^X\(\/\).*/{ s//\1/; q; }
23901 test ! -n "$as_dirs" || mkdir
$as_dirs
23902 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23903 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23904 { (exit 1); exit 1; }; }; }
23908 if test "$ac_dir" != .
; then
23909 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23910 # A "../" for each directory in $ac_dir_suffix.
23911 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23913 ac_dir_suffix
= ac_top_builddir
=
23917 .
) # No --srcdir option. We are building in place.
23919 if test -z "$ac_top_builddir"; then
23922 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23924 [\\/]* | ?
:[\\/]* ) # Absolute path.
23925 ac_srcdir
=$srcdir$ac_dir_suffix;
23926 ac_top_srcdir
=$srcdir ;;
23927 *) # Relative path.
23928 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23929 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23932 # Do not use `cd foo && pwd` to compute absolute paths, because
23933 # the directories may not exist.
23935 .
) ac_abs_builddir
="$ac_dir";;
23938 .
) ac_abs_builddir
=`pwd`;;
23939 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23940 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23943 case $ac_abs_builddir in
23944 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23946 case ${ac_top_builddir}.
in
23947 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23948 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23949 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23952 case $ac_abs_builddir in
23953 .
) ac_abs_srcdir
=$ac_srcdir;;
23956 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23957 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23958 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23961 case $ac_abs_builddir in
23962 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23964 case $ac_top_srcdir in
23965 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23966 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23967 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23973 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23974 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23977 if test x
"$ac_file" != x-
; then
23978 { echo "$as_me:$LINENO: creating $ac_file" >&5
23979 echo "$as_me: creating $ac_file" >&6;}
23982 # Let's still pretend it is `configure' which instantiates (i.e., don't
23983 # use $as_me), people would be surprised to read:
23984 # /* config.h. Generated by config.status. */
23985 if test x
"$ac_file" = x-
; then
23988 configure_input
="$ac_file. "
23990 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23991 sed 's,.*/,,'` by configure."
23993 # First look for the input files in the build tree, otherwise in the
23995 ac_file_inputs
=`IFS=:
23996 for f in $ac_file_in; do
23998 -) echo $tmp/stdin ;;
24000 # Absolute (can't be DOS-style, as IFS=:)
24001 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24002 echo "$as_me: error: cannot find input file: $f" >&2;}
24003 { (exit 1); exit 1; }; }
24006 if test -f "$f"; then
24009 elif test -f "$srcdir/$f"; then
24014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24015 echo "$as_me: error: cannot find input file: $f" >&2;}
24016 { (exit 1); exit 1; }; }
24019 done` ||
{ (exit 1); exit 1; }
24021 cat >>$CONFIG_STATUS <<_ACEOF
24025 cat >>$CONFIG_STATUS <<\_ACEOF
24027 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24028 s
,@configure_input@
,$configure_input,;t t
24029 s
,@srcdir@
,$ac_srcdir,;t t
24030 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24031 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24032 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24033 s
,@builddir@
,$ac_builddir,;t t
24034 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24035 s
,@top_builddir@
,$ac_top_builddir,;t t
24036 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24037 s
,@INSTALL@
,$ac_INSTALL,;t t
24038 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24040 if test x"$ac_file" != x-; then
24041 mv $tmp/out $ac_file
24049 cat >>$CONFIG_STATUS <<\_ACEOF
24052 # CONFIG_HEADER section.
24055 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24056 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24058 # ac_d sets the value in "#define NAME VALUE" lines.
24059 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24060 ac_dB
='[ ].*$,\1#\2'
24063 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24064 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24065 ac_uB
='$,\1#\2define\3'
24069 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24072 - |
*:- |
*:-:* ) # input from stdin
24074 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24075 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24076 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24077 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24078 * ) ac_file_in
=$ac_file.
in ;;
24081 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24082 echo "$as_me: creating $ac_file" >&6;}
24084 # First look for the input files in the build tree, otherwise in the
24086 ac_file_inputs
=`IFS=:
24087 for f in $ac_file_in; do
24089 -) echo $tmp/stdin ;;
24091 # Absolute (can't be DOS-style, as IFS=:)
24092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24093 echo "$as_me: error: cannot find input file: $f" >&2;}
24094 { (exit 1); exit 1; }; }
24095 # Do quote $f, to prevent DOS paths from being IFS'd.
24098 if test -f "$f"; then
24101 elif test -f "$srcdir/$f"; then
24106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24107 echo "$as_me: error: cannot find input file: $f" >&2;}
24108 { (exit 1); exit 1; }; }
24111 done` ||
{ (exit 1); exit 1; }
24112 # Remove the trailing spaces.
24113 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24117 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24118 # `conftest.undefs', that substitutes the proper values into
24119 # config.h.in to produce config.h. The first handles `#define'
24120 # templates, and the second `#undef' templates.
24121 # And first: Protect against being on the right side of a sed subst in
24122 # config.status. Protect against being in an unquoted here document
24123 # in config.status.
24124 rm -f conftest.defines conftest.undefs
24125 # Using a here document instead of a string reduces the quoting nightmare.
24126 # Putting comments in sed scripts is not portable.
24128 # `end' is used to avoid that the second main sed command (meant for
24129 # 0-ary CPP macros) applies to n-ary macro definitions.
24130 # See the Autoconf documentation for `clear'.
24131 cat >confdef2sed.
sed <<\_ACEOF
24136 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24138 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24141 # If some macros were called several times there might be several times
24142 # the same #defines, which is useless. Nevertheless, we may not want to
24143 # sort them, since we want the *last* AC-DEFINE to be honored.
24144 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24145 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24146 rm -f confdef2sed.sed
24148 # This sed command replaces #undef with comments. This is necessary, for
24149 # example, in the case of _POSIX_SOURCE, which is predefined and required
24150 # on some systems where configure will not decide to define it.
24151 cat >>conftest.undefs <<\_ACEOF
24152 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24155 # Break up conftest.defines because some shells have a limit on the size
24156 # of here documents, and old seds have small limits too (100 cmds).
24157 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24158 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24159 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24160 echo ' :' >>$CONFIG_STATUS
24161 rm -f conftest.tail
24162 while grep . conftest.defines >/dev/null
24164 # Write a limited-size here document to $tmp/defines.sed.
24165 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24166 # Speed up: don't consider the non `#define' lines.
24167 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24168 # Work around the forget-to-reset-the-flag bug.
24169 echo 't clr' >>$CONFIG_STATUS
24170 echo ': clr' >>$CONFIG_STATUS
24171 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24173 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24175 mv $tmp/out $tmp/in
24177 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24178 rm -f conftest.defines
24179 mv conftest.
tail conftest.defines
24181 rm -f conftest.defines
24182 echo ' fi # grep' >>$CONFIG_STATUS
24183 echo >>$CONFIG_STATUS
24185 # Break up conftest.undefs because some shells have a limit on the size
24186 # of here documents, and old seds have small limits too (100 cmds).
24187 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24188 rm -f conftest.
tail
24189 while grep . conftest.undefs
>/dev
/null
24191 # Write a limited-size here document to $tmp/undefs.sed.
24192 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24193 # Speed up: don't consider the non
`#undef'
24194 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24195 # Work around the forget-to-reset-the-flag bug.
24196 echo 't clr' >>$CONFIG_STATUS
24197 echo ': clr' >>$CONFIG_STATUS
24198 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24200 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24202 mv $tmp/out $tmp/in
24204 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24205 rm -f conftest.undefs
24206 mv conftest.tail conftest.undefs
24208 rm -f conftest.undefs
24210 cat >>$CONFIG_STATUS <<\_ACEOF
24211 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24212 # use $as_me), people would be surprised to read:
24213 # /* config.h. Generated by config.status. */
24214 if test x
"$ac_file" = x-
; then
24215 echo "/* Generated by configure. */" >$tmp/config.h
24217 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24219 cat $tmp/in >>$tmp/config.h
24221 if test x
"$ac_file" != x-
; then
24222 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24223 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24224 echo "$as_me: $ac_file is unchanged" >&6;}
24226 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24228 X"$ac_file" : 'X\(//\)[^/]' \| \
24229 X"$ac_file" : 'X\(//\)$' \| \
24230 X"$ac_file" : 'X\(/\)' \| \
24231 . : '\(.\)' 2>/dev/null ||
24233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24235 /^X\(\/\/\)$/{ s//\1/; q; }
24236 /^X\(\/\).*/{ s//\1/; q; }
24238 { if $as_mkdir_p; then
24243 while test ! -d "$as_dir"; do
24244 as_dirs
="$as_dir $as_dirs"
24245 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247 X"$as_dir" : 'X\(//\)[^/]' \| \
24248 X"$as_dir" : 'X\(//\)$' \| \
24249 X"$as_dir" : 'X\(/\)' \| \
24250 . : '\(.\)' 2>/dev/null ||
24252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24253 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24254 /^X\(\/\/\)$/{ s//\1/; q; }
24255 /^X\(\/\).*/{ s//\1/; q; }
24258 test ! -n "$as_dirs" || mkdir
$as_dirs
24259 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24260 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24261 { (exit 1); exit 1; }; }; }
24264 mv $tmp/config.h
$ac_file
24268 rm -f $tmp/config.h
24272 cat >>$CONFIG_STATUS <<\_ACEOF
24275 # CONFIG_COMMANDS section.
24277 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24278 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24279 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24280 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24281 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24282 X"$ac_dest" : 'X\(//\)[^/]' \| \
24283 X"$ac_dest" : 'X\(//\)$' \| \
24284 X"$ac_dest" : 'X\(/\)' \| \
24285 . : '\(.\)' 2>/dev/null ||
24287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24289 /^X\(\/\/\)$/{ s//\1/; q; }
24290 /^X\(\/\).*/{ s//\1/; q; }
24292 { if $as_mkdir_p; then
24297 while test ! -d "$as_dir"; do
24298 as_dirs
="$as_dir $as_dirs"
24299 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301 X"$as_dir" : 'X\(//\)[^/]' \| \
24302 X"$as_dir" : 'X\(//\)$' \| \
24303 X"$as_dir" : 'X\(/\)' \| \
24304 . : '\(.\)' 2>/dev/null ||
24306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24308 /^X\(\/\/\)$/{ s//\1/; q; }
24309 /^X\(\/\).*/{ s//\1/; q; }
24312 test ! -n "$as_dirs" || mkdir
$as_dirs
24313 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24315 { (exit 1); exit 1; }; }; }
24319 if test "$ac_dir" != .
; then
24320 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24321 # A "../" for each directory in $ac_dir_suffix.
24322 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24324 ac_dir_suffix
= ac_top_builddir
=
24328 .
) # No --srcdir option. We are building in place.
24330 if test -z "$ac_top_builddir"; then
24333 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24335 [\\/]* | ?
:[\\/]* ) # Absolute path.
24336 ac_srcdir
=$srcdir$ac_dir_suffix;
24337 ac_top_srcdir
=$srcdir ;;
24338 *) # Relative path.
24339 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24340 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24343 # Do not use `cd foo && pwd` to compute absolute paths, because
24344 # the directories may not exist.
24346 .
) ac_abs_builddir
="$ac_dir";;
24349 .
) ac_abs_builddir
=`pwd`;;
24350 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24351 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24354 case $ac_abs_builddir in
24355 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24357 case ${ac_top_builddir}.
in
24358 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24359 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24360 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24363 case $ac_abs_builddir in
24364 .
) ac_abs_srcdir
=$ac_srcdir;;
24367 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24368 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24369 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24372 case $ac_abs_builddir in
24373 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24375 case $ac_top_srcdir in
24376 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24377 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24378 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24383 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24384 echo "$as_me: executing $ac_dest commands" >&6;}
24388 ### Make the necessary directories, if they don't exist.
24389 for dir
in etc lisp
; do
24390 test -d ${dir} || mkdir
${dir}
24393 # Build src/Makefile from ${srcdir}/src/Makefile.c
24394 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24395 # This must be done after src/config.h is built, since we rely on that file.
24397 # Now get this: Some word that is part of the ${srcdir} directory name
24398 # or the ${configuration} value might, just might, happen to be an
24399 # identifier like `sun4' or `i386' or something, and be predefined by
24400 # the C preprocessor to some helpful value like 1, or maybe the empty
24401 # string. Needless to say consequent macro substitutions are less
24402 # than conducive to the makefile finding the correct directory.
24403 undefs
="`echo $top_srcdir $configuration $canonical |
24404 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24405 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24408 echo creating src
/epaths.h
24409 ${MAKE-make} epaths-force
24411 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24412 # `..' to `. .' unless invoked with -traditional
24414 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24415 CPPFLAGS
="$CPPFLAGS -traditional"
24418 echo creating lib-src
/Makefile
24420 rm -f junk.c junk1.c junk2.c
24421 sed -e '/start of cpp stuff/q' \
24422 < Makefile.c
> junk1.c
24423 sed -e '1,/start of cpp stuff/d'\
24424 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24425 < Makefile.c
> junk.c
24426 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24427 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24428 cat junk1.c junk2.c
> Makefile.new
24429 rm -f junk.c junk1.c junk2.c
24430 chmod 444 Makefile.new
24431 mv -f Makefile.new Makefile
24434 echo creating src
/Makefile
24436 rm -f junk.c junk1.c junk2.c
24437 sed -e '/start of cpp stuff/q' \
24438 < Makefile.c
> junk1.c
24439 sed -e '1,/start of cpp stuff/d'\
24440 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24441 < Makefile.c
> junk.c
24442 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24443 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24444 cat junk1.c junk2.c
> Makefile.new
24445 rm -f junk.c junk1.c junk2.c
24446 chmod 444 Makefile.new
24447 mv -f Makefile.new Makefile
24450 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24451 echo creating src
/.gdbinit
24452 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24455 # This is how we know whether to re-run configure in certain cases.
24456 touch src
/config.stamp
24463 cat >>$CONFIG_STATUS <<\_ACEOF
24465 { (exit 0); exit 0; }
24467 chmod +x
$CONFIG_STATUS
24468 ac_clean_files
=$ac_clean_files_save
24471 # configure is writing to config.log, and then calls config.status.
24472 # config.status does its own redirection, appending to config.log.
24473 # Unfortunately, on DOS this fails, as config.log is still kept open
24474 # by configure, so config.status won't be able to write to it; its
24475 # output is simply discarded. So we exec the FD to /dev/null,
24476 # effectively closing config.log, so it can be properly (re)opened and
24477 # appended to by config.status. When coming back to configure, we
24478 # need to make the FD available again.
24479 if test "$no_create" != yes; then
24481 ac_config_status_args
=
24482 test "$silent" = yes &&
24483 ac_config_status_args
="$ac_config_status_args --quiet"
24485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24488 # would make configure fail if this is the last instruction.
24489 $ac_cs_success ||
{ (exit 1); exit 1; }